vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - Navbar add-on's (https://vborg.vbsupport.ru/showthread.php?t=144792)

Dark_D 04-13-2007 10:00 PM

Navbar add-on's
 
This code is for a drop down menu coded for "RSS Feed Links" in the navbar with it's own navbar cell and a search box with radio buttons with the choose of Google and your own site.

Normally for vBulletin, you would place code in a few different places throughout the navbar template code for a drop down menu. I was able to condense all of the code into one block. It makes keeping track of, reading and debugging the code a lot easier to do.


You will have to do the following:
1) RSS feed features activated in "External Data Provider".
2) Add the Rss-Icon.png image to your "/forum/images/" directory.
3) Add your site address of your RSS Feed where "YOUR SITE RSS" is.
4) Add your site address where "YOUR SITE" is.
5) Add your site address for the search engine box code where "YOUR SITE engine" is. Do not add the "http://www.", only "sitename.something".


In Navbar template locate:
Code:

<!-- / login form -->
                       
                </td>
               
        </if>       
       
</tr>
</table>
<!-- / breadcrumb, login, pm info -->

<!-- nav buttons bar -->


Put code as indicated below:
Code:

<!-- / login form -->
                       
                </td>
               
        </if>       
       
</tr>
Place Navbar add-on code here.
</table>
<!-- / breadcrumb, login, pm info -->

<!-- nav buttons bar -->


Navbar add-on code:
PHP Code:

<tr> <td class="alt1" width="72.5%" > <div class="navbar" style="font-size:10pt">
<
class="alt1" id="rssmenu" class="vbmenu_control"><font color#0000A0>RSS Feed links:</font></a><script type="text/javascript">
vbmenu_register("rssmenu");
</
script>
    
<
div class="vbmenu_popup" id="rssmenu_menu" style="display:none">
<
table cellpadding="4" cellspacing="1" border="0">
        
        <
tr>
            <
td class="vbmenu_option">
<

href
="http://www.YOUR SITE" target="_new"><img src="/forum/images/Rss-Icon.png" align=middle border="0" alt="YOUR SITE RSS Feed"/> </a></td></tr>

<
td class="vbmenu_option" >
<
a href="http://fusion.google.com/add?feedurl=http%3A//www.YOUR SITE RSS" target="_new"><img src="http://buttons.googlesyndication.com/fusion/add.gif" width="104" height="17" border="0" align=middle alt="Add to Google"/></a></td></tr>

<
td class="vbmenu_option" >
<
a href="http://add.my.yahoo.com/content?.intl=us&url=http%3A//www.YOUR SITE RSS" target="_new"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif" width="91" height="17" border="0" align=middle alt="Add to My Yahoo!"/></a></td></tr>

<
td class="vbmenu_option" >
<

href
="http://www.live.com/?add=http://www.YOUR SITE RSS" target="_new"><img src="http://www.updatexp.com/image-files/addtolive.gif" align=middle alt="Add rss feed to live.com" border="0" /></a></td></tr>

<
td class="vbmenu_option" >
<

href
="http://my.msn.com/addtomymsn.armx?id=rss&ut=http://www.YOUR SITE RSS&ru=http://www.YOUR SITE" target="_new"><img src="http://sc.msn.com/44/G,UCH%7BZBSS3%7BOS%7BSE469LG.gif" border=0 align=middle alt="Add to My MSN"></a> </td></tr>

<
td class="vbmenu_option" >
<
a href="http://feeds.my.aol.com/?url=http%3A//www.YOUR SITE" target="_new"><img src="http://feeds.my.aol.com/html/vis/myaol_cta1.gif" align=middle alt="Add to My AOL" border="0"/></a></td></tr>
</
td></tr></table></div></div></td>

<
td class="alt1" align="right"><div class="navbar" style="font-size:10pt"><form action="http://www.google.com/search" target="_new" method="get" >
<
input type="text"  name="q" size="20"
 
maxlength="255" value="" />
<
input type="submit" value="Search" />
<
br>
<
input type="radio"  name="sitesearch" value=""/>Google
<input type="radio"  name="sitesearch"
 
value="YOUR SITE engine" checked />YOUR SITE<br />
</
form></div>
</
td>
</
tr


rjmjr69 04-14-2007 04:15 AM

hhhhhmmmm Nice idea reserved

Coux 04-14-2007 04:29 AM

Quote:

Originally Posted by rjmjr69 (Post 1227214)
hhhhhmmmm Nice idea reserved

ditto

blogtorank 04-14-2007 04:32 AM

Nice hack installing!

Dark_D 04-14-2007 04:40 AM

Quote:

Originally Posted by rjmjr69
hhhhhmmmm Nice idea reserved

Quote:

Originally Posted by Coux
ditto

You guys should speak your mind's, I'd like to hear what you may be thinking.


Quote:

Originally Posted by blogtorank
Nice hack installing!

Thanks for doing the install thing.

MaestroX 04-14-2007 08:03 AM

Nice one, a good addition :)

Mr. Brian 04-14-2007 11:31 AM

Looks more like a template mod rather then a hack. ;)

puertoblack2003 04-14-2007 11:58 AM

installed ..nice addition as well and neat ;)

Dark_D 04-14-2007 04:20 PM

Quote:

Originally Posted by Mr. Brian (Post 1227399)
Looks more like a template mod rather then a hack. ;)

I put it as an add-on because it uses functions that are outside of your site like google's search engine.
To me template mods only alter appearance and do no processing of data, like my "Dark User legend" in the template section.

FleaBag 04-14-2007 10:18 PM

Lovely hack! Thank you.


All times are GMT. The time now is 12:08 AM.

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.01344 seconds
  • Memory Usage 1,769KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete