Custom menus in portal!? - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Community Archive (https://community.mybb.com/forum-106.html) +--- Forum: Archived Forums (https://community.mybb.com/forum-143.html) +---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html) +----- Forum: MyBB 1.2 Series (https://community.mybb.com/forum-3.html) +------ Forum: MyBB 1.2 General Support (https://community.mybb.com/forum-4.html) +------ Thread: Custom menus in portal!? (/thread-6034.html) |
Custom menus in portal!? - diablo_ - 2006-01-14 Is there a way to make a custom menu in portal to stand to the left with welcom menu,latest thread,etc...?I need it to put some banners... RE: Custom menus in portal!? - zaher1988 - 2006-01-14 ow yeah you can in Admin CP > Templates > Modify / Delete > Expand > Portal Templates > Portal Find this $welcome above it add $adv now go back to the list, find the button New Template at the top add a new template called portal_adv and add this code to it
or you may add the code directly above $welcome and in portal.php just above // Get the online users add eval("\$adv = \"".$templates->get("portal_adv")."\";"); Many regards RE: Custom menus in portal!? - diablo_ - 2006-01-14 Thanks Zaher you were really helpful and polite to me!I ought you one Just one more thing.How to set that menu to be on the right side of the portal? RE: Custom menus in portal!? - zaher1988 - 2006-01-14 ow alright again in Admin CP > Templates > Modify / Delete > Expand > Portal Templates > Portal FInd this
just below it add
see !! the $adv which is the template we have made is here. so make sure to name it correct as u made it. many regards RE: Custom menus in portal!? - diablo_ - 2006-01-15 I have got this: "Hosting" menu needs to be on the right.I wrote the code as you said watching the menu name (adv)! RE: Custom menus in portal!? - zaher1988 - 2006-01-15 well no make sure you have put the code menitoned in my last post after
because it worked for me! and u may check it at my testing forum RE: Custom menus in portal!? - diablo_ - 2006-01-15 It won't work Here is the whole code: <html> <head> <title>$settings[bbname]</title> $headerinclude </head> <body> $header <table width="$theme[tablewidth]" cellspacing="0" cellpadding="$theme[tablespace]" border="0" align="center"> <tr><td valign="top" width="200"> $adv <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td class="tborder"> <table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" width="100%"> <tr> <td class="thead"><strong>Hosting</strong></td> </tr> <tr> <td class="trow1"> </div><div align="center"><a href="http://www.soloymi.com?hosting_id=143" target="_blank"><img src="http://www.soloymi.com/markica.php?hosting_id=143" border="0"></div></a> </td> </tr> </table></td></tr></table> <br /> $welcome $pms $search $stats $whosonline $latestthreads </td> <td class="trow"> </td> <td width="*" valign="top"> $announcements </td> <td class="trow"> </td> <td width="200" valign="top"> $adv </td> </td> </tr> </table> $footer </body> </html> RE: Custom menus in portal!? - zaher1988 - 2006-01-16 alright what u have done is that u have put the code for the new box in the same template above $welcome this code i mean
so what ur going to do now is wheter to make the new template called adv with this code or replace $adv with this code. but i prefer the new template one anyway i will put the code below
best regards RE: Custom menus in portal!? - diablo_ - 2006-01-16 Thanks Zaher!You are the best RE: Custom menus in portal!? - diablo_ - 2006-01-20 Ok zaher i can now create menus alone but there is one more thing i need to know. I created main menu and there are some links like download,texts,etc... My portal looks like this http://slackware-srbija.org but i don't know how to make it when i click download or texts link i get new page instead of news i have in the middle? |