-
AuthorPosts
-
carlucci Friend
carlucci
- Join date:
- November 2006
- Posts:
- 509
- Downloads:
- 195
- Uploads:
- 108
- Thanks:
- 172
- Thanked:
- 17 times in 3 posts
July 12, 2010 at 3:26 pm #152484The following code is in layouts/blocks/footer.php:
<ul class=”ja-links”>
<li class=”layout-switcher”> <? php $ this-> loadBlock (‘usertools / layout-switcher’)?> </ li>
</ ul>I want to insert it into mod_custom Features (mega-item position).
I do not know translate PHP to html. Is there anyone who can help?gray Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
July 13, 2010 at 5:26 am #349745Mod_customs accepts only HTML. In you case, <? php $ this-> loadBlock (‘usertools / layout-switcher’)?> have to be transfered to HTML.
As any PHP finally is rendered on the web-page as HTML, JS or other client-side code, just open the page where foooter.php is being loaded, open the page source file (any browser has “View Source File”) and look for the code between <ul class=”ja-links”></ ul>1 user says Thank You to gray for this useful post
micrantha Friendmicrantha
- Join date:
- May 2007
- Posts:
- 465
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 6
- Thanked:
- 158 times in 148 posts
carlucci Friendcarlucci
- Join date:
- November 2006
- Posts:
- 509
- Downloads:
- 195
- Uploads:
- 108
- Thanks:
- 172
- Thanked:
- 17 times in 3 posts
July 13, 2010 at 7:28 am #349748<em>@micrantha 186269 wrote:</em><blockquote>Hello,
A little addition to answer of gray:
You can use plugin “Sourcerer” to be able to add php-code in article or mod_custom.
good luck,
Micrantha</blockquote>
Thank you very much both.
I installed the plugin but it does not work.
This is the code:
<div class=”ja-links”>
<a class=”layout-switcher”><? php $ this->loadBlock (‘usertools/layout-switcher’)?></ a>
</div>Also I have a bigger problem.
You can not change the menu items topmega.
Every time I change the name of the item Features. (Example: a change name Features to Version.)
the module content of mod_custom Features is not displayed .
And worse yet, I have to install the database again to work properly.micrantha Friendmicrantha
- Join date:
- May 2007
- Posts:
- 465
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 6
- Thanked:
- 158 times in 148 posts
July 13, 2010 at 10:09 pm #349820Hello,
Sorry, I have no time left before holiday.Plugin: maybe problem now is the path to what must be loaded – gray is more at home with script issues.
Topmega: you probably use version 1.4.1; I have posted a lot of anwers to questions about problems with this: please look at other posts I wrote about configuring this menu in new version. You have to delete plugin JA Menu Parameters plugin from database, download and reinstall it anew, before you get the extra parameter group Ja Extended to configure a menu item for megamenu.
Good luck,
MicranthaThanh Nguyen Viet FriendThanh Nguyen Viet
- Join date:
- September 2014
- Posts:
- 1461
- Downloads:
- 0
- Uploads:
- 44
- Thanked:
- 258 times in 217 posts
July 14, 2010 at 7:05 am #349862Hi mate,
Please using module mod_customcode
It work very similar to mod_custom, except it allow you to add php code into its content.
You can download this module hereBest regards,
ThanhNV -
AuthorPosts
This topic contains 6 replies, has 4 voices, and was last updated by Thanh Nguyen Viet 14 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum