The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[HOW TO - vB4] Create a New Tab in the navbar (with template)
I know that lynne allready postet an article, but here's a other way: This tutorial will show you, how to add own links to your navbar. (In the tutorial i'll use the code for my news add-on) 1. create a template (ragtek_news_navbar) HTML Code:
<vb:if condition="$vboptions['selectednavtab'] == 'ragteknews'"> <li class="selected"> <a class="navtab" href="news.php{vb:raw session.sessionurl_q}">{vb:rawphrase ragtek_news}</a> <ul class="floatcontainer"> <li><a href="#">#</a></li> </ul> </li> <vb:else /> <li><a class="navtab" href="news.php{vb:raw session.sessionurl_q}">{vb:rawphrase ragtek_news}</a></li> </vb:if> PHP Code:
Thats important because where using a condition in the template: HTML Code:
<vb:if condition="$vboptions['selectednavtab'] == 'ragteknews'">
|
#52
|
|||
|
|||
If there's a hook, yes
|
#53
|
|||
|
|||
Hey ragtek thanks for this i managed to create the button im doing an arcade on my site and did the button no probs but how do i create a page as when you press the button it leads no where im a little bit of a noob only been doing this 3 months an learning lol thanks in advance p.s i know i have to load the games to my server etc just working on that..
--------------- Added [DATE]1262146923[/DATE] at [TIME]1262146923[/TIME] --------------- BTW think im getting there but i also need to add this html code to make the game work <html> <head> <title>Pacman Advanced</title> </head> <body> <center> <h1>Pacman Advanced</h1> <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="600" height="400"> <param name="movie" value="pacmanadv.swf"> <param name="quality" value="high"> <embed src="pacmanadv.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="400"> </embed> </object> <br> <a href="http://www.startgames.ws">Online flash game</a> </center> </body> </html> Where would i add that? this is harder than i thought when i stared 12 hours ago lol. Thanks. --------------- Added [DATE]1262152274[/DATE] at [TIME]1262152274[/TIME] --------------- Also how do i create a page for it to link to when you press the tab?? |
#54
|
|||
|
|||
There are some articles for own pages
https://vborg.vbsupport.ru/forumdisplay.php?f=242 |
#55
|
|||
|
|||
Thanks ragtek but ive looked through everything bud ive been doing this 14 hours with no sleep so getting a little tired now.
i just wanted to know how a create a page forr the button to link to. Thanks B. |
#56
|
|||
|
|||
|
#57
|
|||
|
|||
Ok great ragtek thank you very much big help think the second one is easiar but how would i direct the tab to that page sorry to be a pest but i am really new to all this and avin many sleepless nights learning while i have time off work great way to spend hols...:erm:
|
#58
|
||||
|
||||
tx helped alot,
one problem on a board im getting these stange spacers but only on the first line "always" as if the text is indent once. and same result for various browsers.. Attachment 108759 Code:
<li class="popupmenu"> <a href="javascript://" class="popupctrl navtab" style="background:transparent url({vb:stylevar imgdir_misc}/arrow.png) no-repeat {vb:stylevar right} center; padding-right: 10px">Gallery</a> <ul class="popupbody popuphover"> <li><a style="color:{vb:stylevar navbar_selected_popup_body_a_Color}" href="http://www.google.com" target="_blank">Google</a></li> <li><a style="color:{vb:stylevar navbar_selected_popup_body_a_Color}" href="http://www.google.com" target="_blank">Google</a></li> </ul></li> |
#59
|
|||
|
|||
Is not possible for a not coder user , to use this mod
Will be great if one of the vb.org coder release a "Generic addon Tabs" , with a working link that just must be changed..... "Ready to use". |
#60
|
|||
|
|||
There already is one of those. vBH-Add Tabs.
|
#61
|
|||
|
|||
I want to show TEST Menu Option only if $myvar is set to 1 (Usergroup Permission) but this is not working for me.
Could someone help me ? PHP Code:
PHP Code:
Fixed it with Lynnes Article: https://vborg.vbsupport.ru/showthread.php?t=226914 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|