vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Add buttons your on navbar (https://vborg.vbsupport.ru/showthread.php?t=239447)

adigaorg 03-30-2010 10:00 PM

Add buttons your on navbar
 
1 Attachment(s)
With this plug-in You can add the buttons in the drop-down list in the Navbar easily

install

1 create new plug-in and select:

Product : vBulletin
Hook Location : process_templates_complete
Title : Navbar Tab Drop Down
Execution Order : 5
Plugin PHP Code : download code from attachment add copy and paste<br>

you can change $allowguests from 'true' to 'false' if you do NOT want guests to see the menu

for links change Site Links and http://site1.com and Link 1 ect...

stl7997 03-31-2010 01:00 AM

Pretty straight forward. Works great! Thanks!

JAFRI 03-31-2010 04:06 AM

Thanks, nice job.

starman? 03-31-2010 04:59 PM

Any screen-shots available?

Dr.osamA 04-03-2010 01:46 AM

nice job

installed

shuett 04-06-2010 05:44 AM

Works great, thanks so much.

Demo here:
http://www.tasmaniaforums.com.au

Micaiah 04-14-2010 04:43 PM

just what i was looking for thank you :D

GamerPerfection 04-19-2010 06:27 PM

This looks fine in FF and in IE 8, but not in IE 8 when in Compatability Mode.

dprice 08-04-2010 12:18 AM

Great mod! Thanks! So if I wanted to create a separate button for each "link", how would I modify the code?

COL NIL SATIS 08-04-2010 11:55 AM

tagged

Michlerish 08-20-2010 07:29 AM

Thanks! This is great.

pportuese 09-23-2010 04:32 PM

Where do I add this code?

Krusty1231 09-29-2010 09:26 AM

installed. Thanks

mondiuk 10-08-2010 11:34 PM

work's good on 4.0.7 aswell.

thank's

ravehistory 10-09-2010 11:17 PM

i have had my internet techie guy install this and its on my site but cant see where to edit it - it just says links 1-7, where do i find settings option please ?

clubvr4 10-10-2010 09:01 AM

They were in the file, you have to go to the hook and edit it there mate.

ravehistory 10-10-2010 03:50 PM

wicked thanks mate - appreciated. one other question - if I use this mod for external web sites can i alter the mod so it opens links in another window ?

ARandomOWl 10-12-2010 10:14 PM

Quote:

Originally Posted by ravehistory (Post 2108770)
wicked thanks mate - appreciated. one other question - if I use this mod for external web sites can i alter the mod so it opens links in another window ?

Change

Code:

<a href="http://site1.com' . $adiga . '">Link 1</a>
to

Code:

<a href="http://site1.com' . $adiga .'" target="_blank">Link 1</a>

Guest191216 10-13-2010 07:34 PM

Installed it on 4.0.7CMS w/o a problem
txs
khb

cassiejane 10-16-2010 06:16 AM

This is brilliant. Man, it solves quite a bit of headache that I was having with adding options to the navbar... lol.

My only question is... Can I install this more than once? In other words, if I wanted to have two different buttons with separate dropdown menus, do I have to install this plugin twice? And what variables do I need to change so it recognizes that it's a separate button?

Cicada 10-19-2010 09:23 PM

bookmarking this for later. thanks!

paulnicholson 10-25-2010 06:15 PM

http://www.theatrenetwork.co.nz/atta...2010-10-26.png

Firefox works over the top of flash.

http://www.theatrenetwork.co.nz/atta...2010-10-26.png

IE8 doesn't.

How can I fix this?

paulnicholson 10-25-2010 06:24 PM

The problem occurs in Google Chrome as well.

paulnicholson 10-25-2010 07:48 PM

Solution: http://www.twistermc.com/790/fix-fla...op-down-menus/

Here's the code for my flash ad in ACP>Advertising>Add new ad>Global>Below navbar

Code:

<html>

<body>

<center><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"

codebase="http://download.macromedia.com/pub/shockwave/
cabs/flash/swflash.cab#version=6,0,40,0"
 
width="728" height="90"
 id="mymoviename">

<param name="wmode" value="transparent">

<param name="movie" 

value="http://www.theatrenetwork.co.nz/images/ads/flashvortex - advertise here 2010-10-22.swf" />
 
<param name="quality" value="high" />

<param name="bgcolor" value="#ffffff" />

<embed src="http://www.theatrenetwork.co.nz/images/ads/flashvortex - advertise here 2010-10-22.swf" quality="high" bgcolor="#ffffff"

width="728" height="90"

name="mymoviename" align="" type="application/x-shockwave-flash"

wmode="transparent"

pluginspage="http://www.macromedia.com/go/getflashplayer">


</embed>

</object></center>

</body>

</html>

I made my swf ad in one minute here: www.vortex.com.

yahooooh 11-22-2010 08:05 AM

thank you very much
installed

rmcdaniels 11-25-2010 08:46 PM

This is perfect, thanks.

mattcaswell 12-14-2010 03:05 AM

Doesn't work in 4.1.. any ideas?

Catostylus 12-22-2010 12:27 AM

Quote:

Originally Posted by mattcaswell (Post 2133597)
Doesn't work in 4.1.. any ideas?

Working fine for me in 4.1.0 PL2.

FizziksGuy 01-12-2011 10:39 AM

Seems to have issues in 4.1.1, but works fine in 4.1.0 PL2. I get the following code... any ideas? Thanks!

Your Customized Value
<vb:if condition="!$vboptions['selectednavtab']">
<li class="selected"><a class="navtab" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}">{vb:rawphrase forum}</a>

Old Default Value
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'">
<li class="selected"><a class="navtab" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}">{vb:rawphrase forum}</a>

New Default Value
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'">
<li class="selected"><a class="navtab" href="{vb:link forumhome}">{vb:rawphrase forum}</a>

HUSSEINDAWOOD 03-20-2011 07:23 PM

Installed .. Thank you.


All times are GMT. The time now is 05:56 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01076 seconds
  • Memory Usage 1,768KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete