vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Additional Navbar 3.5.3 and up (https://vborg.vbsupport.ru/showthread.php?t=106875)

attroll 07-18-2006 05:28 AM

Quote:

Originally Posted by badblu01
Hello

I am running 3.5.4

I have created my navbar using Sothink DHTMLMenu i have never had a problem in the past with my menu or in 3.5.3 its just very weird.

i dont know can you possible take a look i will give you temp admin access if you like.

I don't know what this program you call Sothink DHTMLMenu is. I do everything in basica HTML.

I just registered on your site and went to reply to a message and I can not simulate any of these problems you are talking about.

aaamaretto 07-21-2006 02:13 AM

great hack...
only thing, i can't get the navbar2 on my cmps homepage... i followed your step:

Go into your ADMINCP-->vBa CPMS-->Default Setting-->Portal Output Global Variables and add navbar2 in the block there and save it.

but still it doesn't show up

check it out: cobbtalks dot com

what can you suggest? any help would be appreciated.

aaamaretto 07-21-2006 02:19 AM

nevermind, i figured it out...
i had to go to each individual cmps page and add "navbar2" to the Portal Output Global Variables too

Draygonia 07-21-2006 03:44 PM

In step one... I know, its kinda newby, but where do I paste the contents exactly? I have no clue, but I have done the rest of the steps :D

Draygonia 07-21-2006 03:50 PM

Srry for double, but anyways, I found out that the navbar thing works in the new navbar2 template I made, but how do I get it to add on to the navbar in the templates I use?

I dont want the navbar2 template to be used either, the directions are so hard to understand :(

attroll 07-30-2006 02:39 AM

Quote:

Originally Posted by Draygonia
Srry for double, but anyways, I found out that the navbar thing works in the new navbar2 template I made, but how do I get it to add on to the navbar in the templates I use?

I dont want the navbar2 template to be used either, the directions are so hard to understand :(

I don't understand what your trying to say here? If you don't want to use the navbar2 template then do not install this hack. Maybe I don't understand what you mean?

Are you trying to install this into your default navbar template? If you are referr to Note#1.

Ncturnal 08-18-2006 08:44 PM

I had a 3.6 question. Do you know if something changed with the global.php? When I tried to add the navbar2 reference under // misc useful, I get a syntax error. Any ideas on what would be causing that?

attroll 08-19-2006 03:07 AM

Quote:

Originally Posted by Ncturnal
I had a 3.6 question. Do you know if something changed with the global.php? When I tried to add the navbar2 reference under // misc useful, I get a syntax error. Any ideas on what would be causing that?

I just installed this in vB 3.6 and it works fine. I also added the command to global.php and had no problem. Maybe your adding an extra character or something. Here is what it should look like in between the two lines in global.php

// misc useful
'navbar2',
'spacer_open',

Ohiosweetheart 09-08-2006 04:14 PM

this works just fine for me in 3.6

SupremeWeapon 10-10-2006 08:27 AM

seeing some issues.


modified things as per post and instructions how ever i get.

Quote:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/vhosts/subdomains/boards/httpdocs/includes/adminfunctions_template.php(3537) : eval()'d code on line 9

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

this is what I have.

Code:

<!-- nav buttons bar -->
<div align="center">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
        <tr align="center">       
<td id="vbimghost" class="vbmenu_control"><a href="#vbimghost" >$vbphrase[vbimghost_title]</a>
<script type="text/javascript"> vbmenu_register("vbimghost");</script></td>
<td class="vbmenu_control"><a href="jukebox.php?$session[sessionurl_q]">Jukebox</a></td>
<!-- v3 Arcade -->
<td class="vbmenu_control"><a href="arcade.php$session[sessionurl_q]">Arcade</a></td>
<!-- /v3 Arcade -->
                <if condition="$show['popups']">       
<!-- vbPlaza start -->
                        <if condition="$show['member']">
                                <if condition="$vboptions['vbplaza_enabled']"><td id="vbplazamenu" class="vbmenu_control"><a href="$show[nojs_link]#vbplazamenu">$vbphrase[vbplaza_name] $vbphrase[vbplaza_menu]</a> <script type="text/javascript"> vbmenu_register("vbplazamenu"); </script></td></if>
                        </if>
<!-- vbPlaza end -->
<!-- vbPlaza start -->
        <if condition="$show['member']">
        <!-- vbplaza tools menu -->
        <div class="vbmenu_popup" id="vbplazamenu_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">

                <tr><td class="thead"><a href="vbplaza.php?$session[sessionurl]">$vbphrase[vbplaza_name] $vbphrase[vbplaza_main]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=48">$vbphrase[vbplaza_lottery]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=27">$vbphrase[vbplaza_give_gifts]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=118">$vbphrase[vbplaza_give_ribbons]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=13">$vbphrase[vbbux_bank]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=7">$vbphrase[vbplaza_donate]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=16">$vbphrase[vbplaza_thief]</a></td></tr>

                <tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=richestusers">$vbphrase[vbbux_richest_users]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=userhistory">$vbphrase[vbplaza_history]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=mostsold">$vbphrase[vbplaza_most_sold]</a></td></tr>

                <if condition="is_member_of($vbulletin->userinfo, $vboptions['vbplaza_adminusergroups'])">
                        <tr><td class="thead">$vbphrase[vbplaza_admin_only]</a></td></tr>
                        <tr><td class="vbmenu_option"><a href="vbplaza.php?$session[sessionurl]do=action&amp;itemid=12">$vbphrase[vbplaza_admin_donate]</a></td></tr>
                </if>

                </table>
        </div>
        <!-- / vbplaza tools menu -->
        </if>
<!-- vbPlaza end -->

<!-- / NAVBAR POPUP MENUS -->

<!-- Image Host Popup -->
<div class="vbmenu_popup" id="vbimghost_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[vbimghost_title]</td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/vbimghost.php?do=myimages">$vbphrase[vbimghost_menushimg]</a></td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/vbimghost.php?do=upload">$vbphrase[vbimghost_menuupimg]</a></td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/vbimghost.php?do=userlist">$vbphrase[vbimghost_menulistuser]</a></td></tr>
</table>
</div>
<!-- / Image Host Popup -->



I dont even see the navbar either.

ideas?

attroll 10-10-2006 04:33 PM

SupremeWeapon

What version of Vb are you running? I tried putting the code you listing into a template for VB 3.6.1 and got a totally different template error.

Here is the error I got:
PHP Code:

The conditional on line 11 appears to be missing its end tag (</if>). The template will not function properly unless this is fixed


SupremeWeapon 10-11-2006 09:55 AM

3.5.4

agl 10-12-2006 11:16 AM

i don't find the phpinclude_start
where is it ?

(i am on 3.5.4)

-> ok go step 2A

Rexster 10-16-2006 12:29 PM

Hello,

Great hack . I have everything working accept i have a linking problem for vBadvanced CMPS . I need to use Header Replacements . The original navbar links to it fine but the navbar2 dosnt and gives me bad links . Is there a way to correct this so that i dont have to hard code it ?

attroll 10-16-2006 04:33 PM

Quote:

Originally Posted by Rexster
Hello,

Great hack . I have everything working accept i have a linking problem for vBadvanced CMPS . I need to use Header Replacements . The original navbar links to it fine but the navbar2 dosnt and gives me bad links . Is there a way to correct this so that i dont have to hard code it ?

I believe if you go to your ADMINCP --> vBa CMPS --> Default Setting and scroll down to "Portal Output Global Variables" and then put "navbar2" in the box withour the " marks that is will work.

Rexster 10-16-2006 05:37 PM

Quote:

Originally Posted by attroll
I believe if you go to your ADMINCP --> vBa CMPS --> Default Setting and scroll down to "Portal Output Global Variables" and then put "navbar2" in the box withour the " marks that is will work.

Hello,

Yes i do have navbar2 in the Portal Output Global Variables as instructed before but the links dont work . The bar does show on the main page but the links are wrong . The same thing happend to the original navbar when i first installed vbadvanced but it was corrected after i copy and pasted the files shown in the "Navbar Replacements" section to the "Header Replacements" section then it worked but not for the navbar2 .

Rexster 10-19-2006 12:49 AM

I still cant get this to work . Ive placed the cmps_index.php outside of my forums folder and in my public_html folder . For example I have a link on the navbar2 called "calender" . Its actual path is http://www.mydomain.com/forums/calender.php but when i click on the link its takes me to http://www.mydomain.com/calender.php . I placed navbar2 in the Portal Output Global Variables .

Tru2Chevy 10-27-2006 11:14 PM

I would like to add this second navbar, but I want to know if everyone is having trouble using this with vBAdvanced.

- Justin

Ncturnal 10-27-2006 11:28 PM

I use it without any problem on www.mr2board.com using CMPS.

attroll 10-28-2006 12:43 AM

Quote:

Originally Posted by Rexster
I still cant get this to work . Ive placed the cmps_index.php outside of my forums folder and in my public_html folder . For example I have a link on the navbar2 called "calender" . Its actual path is http://www.mydomain.com/forums/calender.php but when i click on the link its takes me to http://www.mydomain.com/calender.php . I placed navbar2 in the Portal Output Global Variables .

Rexster

If you want, could you please send me your navbar2 template from your templates in a PM and I will install this in my test site and see if I run into any problems.

Ncturnal 10-28-2006 02:06 AM

Quote:

Originally Posted by Rexster
I still cant get this to work . Ive placed the cmps_index.php outside of my forums folder and in my public_html folder . For example I have a link on the navbar2 called "calender" . Its actual path is http://www.mydomain.com/forums/calender.php but when i click on the link its takes me to http://www.mydomain.com/calender.php . I placed navbar2 in the Portal Output Global Variables .

Go into your CMPS options in AdminCP and add calendar.php to the Navbar Replacements section in Default Settings.

Shazz 10-28-2006 02:15 AM

Works like a charm :)

Rexster 10-28-2006 03:18 PM

Quote:

Originally Posted by Ncturnal
Go into your CMPS options in AdminCP and add calendar.php to the Navbar Replacements section in Default Settings.

Yep did that awhile ago and it still dont work

Ncturnal 10-28-2006 03:25 PM

Quote:

Originally Posted by Rexster
Yep did that awhile ago and it still dont work

I also have calendar.php in my header and footer replacements in CMPS options. Outside of that, I didn't do anything special to get the calendar link to work.

Rexster 10-28-2006 06:10 PM

Hey Guys I finally figured out what i was doing wrong . In the navbar2 template i was forgetting to put the foward slash on the beginning of the link "/" . I had "forums/calender.php" . I changed it to "/forums/calender.php" and They all now work .

Thanks

rnmcd 02-10-2007 06:33 PM

Does the author's "and up" include 3.6.4?

Shazz 02-10-2007 06:48 PM

^Works fine

rnmcd 02-11-2007 12:47 AM

Does anyone know of a vb 3.6.4 that has this installed?

Shazz 02-11-2007 01:25 AM

Yes,
Again
Quote:

Originally Posted by Shazz (Post 1179324)
^Works fine


rnmcd 02-11-2007 03:20 PM

I bet you can't show me a 3.6.4 website that has it installed. I'm not talking about your 3.6.2 patched version.;)

Shazz 02-11-2007 03:23 PM

Quote:

Originally Posted by rnmcd (Post 1179949)
I bet you can't show me a 3.6.4 website that has it installed. I'm not talking about your 3.6.2 patched version.;)

I have it on a test site which is .htaccess protected, Would you really like a screen shot of it?

rnmcd 02-11-2007 03:59 PM

Don't worry about it, thanks for the offer though.

attroll 02-11-2007 11:37 PM

Quote:

Originally Posted by rnmcd (Post 1179975)
Don't worry about it, thanks for the offer though.

If you need help and would like me to look at this them let me know. It works with all versions on VB. I am the one that put this hack together.

rnmcd 02-12-2007 12:29 AM

How do you create the 'links' in the new navbar?

Also, can you have a different Additional Navbar for various forums/sub-forumus?

attroll 02-12-2007 01:52 AM

Quote:

Originally Posted by rnmcd (Post 1180301)
How do you create the 'links' in the new navbar?

Also, can you have a different Additional Navbar for various forums/sub-forumus?

I don't know what you mean by "how do you create the links"?

The attached navbar2.txt is a good example of the template you need to create and it has samples of how to create links.

I am sure you can also set it up to use different additional navbars for different forums. I have never looked into it and I don't have to time to do that. Maybe someone else will jump in and help you on that.

Eagle Creek 02-14-2007 05:09 PM

Im trying to install it.. It's kinda confusing...

Eagle Creek 02-14-2007 05:20 PM

I guess I managed :).

afmarko99 03-15-2007 09:22 PM

I have a question. I made an additional navbar and placed the coding in my header template. I couldn't post it like yours because my navbar is made of images from a style I imported.

How would I go about adding a dropdown menu to my additional navbar www.thepublicenemy.net. (The navbar with links I.E. Roster, TWL, New Post, etc.)

I would like to take a few of those links and categorize them into one dropdown.

myown 09-16-2007 01:52 AM

is it supported on 3.6.8 ?

RichieBoy67 10-30-2007 03:24 AM

Where is the plug in? I just spent a halfhour doing the template...

Can someone e-mail this to me maybe??

Thanks


All times are GMT. The time now is 05: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.01376 seconds
  • Memory Usage 1,844KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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