vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Additional Navbar (https://vborg.vbsupport.ru/showthread.php?t=65198)

Onkel_Tom 06-03-2004 09:55 AM

thanks for your work !
click install ;)

attroll 06-06-2004 03:54 AM

Quote:

Originally Posted by iguanairs
Hello,
I have been playing with this,and I placed it under my current navbar. My question is,how do I remove the space between the 2? I want them to sit directly underneath one another without any space. Currently,there is a space the width of a navbar.

To make this work directly under the current navbar without any space you first need to open your navbar template and find:

PHP Code:

<!-- / nav buttons bar -->

<
br />
<
br /> 

And delete:

PHP Code:

<br />
<
br /> 

Then go to the very bottom of the navbar template and add the code for the new navbar.

chrisvonc 06-06-2004 11:57 AM

I like that look very much. I tried putting it directly above but get the space back. Any insight how to do that like you did for directly under?

Onkel_Tom 06-06-2004 12:50 PM

Quote:

Originally Posted by chrisvonc
I like that look very much. I tried putting it directly above but get the space back. Any insight how to do that like you did for directly under?

same for me !

attroll 06-06-2004 03:02 PM

I found an error in my navbar that creates a space after my navbar. I have fixed it in the first post. So you can download it and it will work now without the space. But if you have installed it and get the space between the new and the old navbar when you are trying to combine them then do this:

Find this in the lines of the navbar I created:
PHP Code:

<!-- / nav buttons bar -->
<
br />

<!-- 
NAVBAR POPUP MENUS --> 

Remove this:
PHP Code:

<br /> 


For those of you that have not done or tried to put the new navbar on top of the old navbar and would like to then you can do so by doing this.

To put the new navbar directly on top of the old navbar look for this line:
PHP Code:

<!-- nav buttons bar --> 

After this line inset the navbar2.txt from the first post. You will have to edit the navbar2.txt for your site though of course.

chrisvonc 06-06-2004 03:10 PM

Attroll, that did it! Thank you!

NJChins 07-05-2004 02:14 AM

I know this thread is older- but I have a quick question.
This is my case: www.critterparadise.com
If you see that I have the navbar2 set up under the main navbar
how do I remove the one from the top?
I have looked and I don't know where or what I'm missing...

Thanks

attroll 07-05-2004 02:53 AM

I can tell you how to remove it but I would have to look at your navbar template. If you put it in the way I posted it in the first post then then you would go into the Navbar template and remove the lines between. But I can not guarantee this without looking at it.

If you did as the direction I posted and left the comment tags in the code then you would remove the lines between these two lines including these two lines:

<!-- nav buttons bar -->

<!-- / NAVBAR POPUP MENUS -->

NJChins 07-05-2004 10:42 AM

So if I post my navbar template you can check it out for me?

attroll 07-05-2004 02:26 PM

Sure I will check it and redue it for you if you want. It might be easier to post it as an attachment if you want or you can post it either way.

But just to make things clear. You want the very top navbar gone right?

NJChins 07-05-2004 02:46 PM

You won't even have to check for me. My friend figured out that I had put $navbar2 at the bottom of the header template.

Thanks!! :)

attroll 07-05-2004 03:06 PM

No problem. Glad you got it figured out.

sully02 08-08-2004 01:55 AM

Hate to beat a dead horse, but I appear to have a problem with the table borders in the upper navbar, as you can see: http://www.sports-boards.net/index.php?

I'm currently looking through the templates to see how I can fix it, but if anybody knows how off the top of their head, I'd greatly appreciate it.

attroll 08-08-2004 04:25 AM

Quote:

Originally Posted by sully02
Hate to beat a dead horse, but I appear to have a problem with the table borders in the upper navbar, as you can see: http://www.sports-boards.net/index.php?

I'm currently looking through the templates to see how I can fix it, but if anybody knows how off the top of their head, I'd greatly appreciate it.

What is your problem. It looks fine to me.

sully02 08-08-2004 11:34 AM

Maybe it's just my browser, but it's an appearance issue. I can see the lines in between the columns, I have a thick blue border below the upper navbar, and there is no border at the top at all.

chrisvonc 08-08-2004 11:35 AM

He is having the same issue I was from Post #33 . I dont exactly recall what it was that fixed me up but I think it was:
AdminCP > Style Manager > Edit the Main CSS > Table Border > Extra CSS Attributes. If I am not mistaken, that controls the space where you are seeing the extra Blue (#0B198C) line. Try changing that as well as the PX.

Caiman 08-22-2004 09:40 AM

Installed with ease. Thanks

venomx 09-04-2004 06:16 PM

Hey where do we add $navbar2 so it appears right above the Welcome panel?

venomx 09-06-2004 07:42 AM

Ok I got a problem... I am using this and my uShop drop down is in there but nothing shows under the History link.. Action and everything below it is missing. Any ideas?

attroll 09-07-2004 03:43 PM

Quote:

Originally Posted by venomx
Ok I got a problem... I am using this and my uShop drop down is in there but nothing shows under the History link.. Action and everything below it is missing. Any ideas?

Is this your web site? http://www.venomx.com/

I was trying to look at your site and see what you were talking about but this does not seem to be your site. I am confused as to what you mean by History Link?

venomx 09-07-2004 10:11 PM

Yes thats a site of mine but not the one I am currently working on. The one thats got the forum isnt open yet I am just installing all the hacks I want then Ill open it.
I moved the ushop back to the regular navbar and it works.

The Realist 09-15-2004 08:33 PM

This I have had installed for a while but I have added an additional dropdown. This new dropdown is viewable and usable by all none members which I dont want.

How can I hide this new dropdown menu from none members?

Thanks.

rex_b 09-15-2004 09:01 PM

Quote:

Originally Posted by The Realist
This I have had installed for a while but I have added an additional dropdown. This new dropdown is viewable and usable by all none members which I dont want.

How can I hide this new dropdown menu from none members?

Thanks.


Set a conditional for the people you do want to see it-


Code:

<if condition="$bbuserinfo[usergroupid]== '2' ></if>

The Realist 09-15-2004 09:15 PM

With respect, Im a follower not a leader :)

So I presume this code would go infront of what ever line in the menu I dont want the choosen usergroup to see or use.

IE:

FROM:

<!-- Setup for drop down menu #2 in navbar -->
<td id="dropdown2" class="vbmenu_control"><a href="#dropdown2">GSM Calculators</a> <script type="text/javascript"> vbmenu_register("dropdown2"); </script></td>
<!-- / Setup for down menu #2 in navbar-->


TO:

<!-- Setup for drop down menu #2 in navbar -->
<if condition="$bbuserinfo[usergroupid]== '2' ><td id="dropdown2" class="vbmenu_control"><a href="#dropdown2">GSM Calculators</a> <script type="text/javascript"> vbmenu_register("dropdown2"); </script></td></if>
<!-- / Setup for down menu #2 in navbar-->


Thanks.

Quote:

Originally Posted by rex_b
Set a conditional for the people you do want to see it-


Code:

<if condition="$bbuserinfo[usergroupid]== '2' ></if>


mholtum 11-22-2004 01:54 AM

I have been looking looking for and working on this exact thing! Thank you so much.. One thing, and I am sorry if this was addressed and I missed it.

I am running vb 3.0.3 with vBadvanced CMPS v1.0.0, the second navbar works fine but won't display on my portal. Is there something I missed??

attroll 11-22-2004 02:04 AM

I don't know what portal you are using. I am using CMPS.

To get this additional navbar working on the CMPS frontpage I had to go into my includes/vba_cmps_include_bottom.php and do the following:

Find:
PHP Code:

global $vboptions$vba_options$vbphrase$stylevar$bbuserinfo$show$pmbox

Replace with:
PHP Code:

global $vboptions$vba_options$vbphrase$stylevar$bbuserinfo$show$pmbox$navbar2

Or you could have just added $navbar2 in it somewhere.

mholtum 11-22-2004 03:38 AM

I am using CMPS as well. I think that is the same one.. I got it here http://www.vbadvanced.com

mholtum 11-22-2004 03:41 AM

where is that file located? Is it an actual .php file or a template?

mholtum 11-22-2004 03:41 AM

found it, works great! Thank you

Jaxx 11-28-2004 07:26 AM

Just installed this but having an issue.

http://www.ahazi.org

if you go into the gallery, you will notice that my drop downs vanish. Not sure as to what is wrong here.

Basically, anything that is posted as:

Code:

<td id="journalnavbar" class="vbmenu_control"><a href="#journalnavbar">Journal</a> <script type="text/javascript"> vbmenu_register("journalnavbar"); </script></td>
or
<td id="usercptools" class="vbmenu_control"><a href="#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>

Does not work from with in the gallery itself.

Any help?

attroll 11-28-2004 08:52 PM

Jaxx

I don't know if this will help. I also use Photopost. These are the instuctions that I wrote down for myself for future use in case I had these problems again.

You will have to replace all the "your_website.com" with the name of your web site.


I had to do the following to get the VB header and footer to work in the gallery area.

Go to the gallery area and empty all the code in the file "header-inc.php" and replace it with:

PHP Code:

<?php
$vbpath 
="/home/atphotos/public_html/geomaine/forum";
$pppath ="/home/atphotos/public_html/geomaine/gallery";
chdir($vbpath);
require(
"./global.php");
eval(
'$navbar = "' fetch_template('navbar') . '";');
$vbheader "$stylevar[htmldoctype]
<html dir=\"
$stylevar[textdirection]\" lang=\"$stylevar[languagecode]\">
<head>
<link rel=\"stylesheet\" href=\"/gallery/stylesheets/gm.css\" type=\"text/css\" />
$headinclude";
$vbheader .= "</head>
<body>
$header
$navbar
<div align=\"center\">"
;
eval(
'$vbfooter = "' fetch_template('footer') . '";');
$vbfooter process_replacement_vars($vbfooter);
$vbfooter "</div>$vbfooter";
chdir($pppath "/");
$HTTP_POST_FILES $_FILES;
$HTTP_POST_VARS $_POST;
?>

You will have to create a style in your gallery called "gm.css" for this to work.



Now go to your vBulletin templates in your ADMINCP and do the following changes:

In the headerinclude template.

Find:

Code:

<script type="text/javascript" src="clientscript/vbulletin_global.js"></script>
<if condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js"></script></if>

Replace with:
Code:

<script type="text/javascript" src="<A href="http://geocachingmaine.org/forum/clientscript/vbulletin_global.js"></script">http://geocachingmaine.org/forum/clientscript/vbulletin_global.js"></script>
<if condition="$show['popups']"><script type="text/javascript" src="<A href="http://geocachingmaine.org/forum/clientscript/vbulletin_menu.js"></script></if>[/CODE">http://geocachingmaine.org/forum/clientscript/vbulletin_menu.js"></script></if>

Go to you vBulletin footer template and replace it with the following code:

Find:
Code:

    <a href="$vboptions[contactuslink]">$vbphrase[contact_us]</a> -
    <a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -
    <if condition="$show['admincplink']"><a href="$admincpdir/index.php?$session[sessionurl]">$vbphrase[admin]</a> -</if>
    <if condition="$show['modcplink']"><a href="$modcpdir/index.php?$session[sessionurl]">$vbphrase[mod]</a> -</if>
    <if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
    <!-- - <a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> - -->
    <a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>

Replace with:
Code:

<!-- attroll foot mod for gallery -->
    <a href="<A href="http://geocachingmaine.org/forum/sendmessage.php">$vbphrase[contact_us]</a">http://geocachingmaine.org/forum/sendmessage.php">$vbphrase[contact_us]</a> -
    <a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -
    <if condition="$show['admincplink']"><a href="<A href="http://geocachingmaine.org/forum/admincp/index.php?$session[sessionurl]">$vbphrase[admin]</a">http://geocachingmaine.org/forum/admincp/index.php?$session[sessionurl]">$vbphrase[admin]</a> -</if>
    <if condition="$show['modcplink']"><a href="<A href="http://geocachingmaine.org/forum/modcp/index.php?$session[sessionurl]">$vbphrase[mod]</a">http://geocachingmaine.org/forum/modcp/index.php?$session[sessionurl]">$vbphrase[mod]</a> -</if>
    <if condition="$vboptions['archiveenabled']"><a href="<A href="http://geocachingmaine.org/forum/archive/index.php">$vbphrase[archive]</a">http://geocachingmaine.org/forum/archive/index.php">$vbphrase[archive]</a> -</if>
    <if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
    <a href="http://geocachingmaine.org/forum/#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
<!-- / attroll foot mod for gallery -->


CSS59 12-05-2004 11:14 PM

Quote:

Originally Posted by attroll
Jaxx

how come your not using it on your site anymore?

attroll 12-06-2004 01:44 AM

I don't know who that post was intented for. I am still using it on my site. I have it on the CMPS frontpage, forums, and the Gallery.

wacnstac 12-13-2004 02:26 AM

I have a question. Once you add an item to the navbar such as a link to a photogallery, how do you get this to display accurately in the breadcrumbs when the user goes there?

I don't quite understand this step.

shadiguy1 12-28-2004 09:19 PM

hey i have a problem. i cant find out how to make a space to separate my second nav bar and my stats or portal from separting. heres a screenshot of wat i mean.

http://img148.exs.cx/img148/1623/untitled1qm.jpg

Thanks In Advance my site is www.nextelelite.com if you wanna look

attroll 12-29-2004 02:45 AM

shadiguy1

I just went to your web site and it looks like you figured out how to do it. I work the second shift so I am sorry I just got home otherwise I would have got ahold of you sooner.

shadiguy1 12-29-2004 03:29 AM

thanks yah left out something but i figured it out.

DWard 12-31-2004 08:01 PM

Yer, the hack seems too be quite useful. I tried doing the same on my site about 5 months back and it's been quire effective... So you look how you can make it look (www.collegepranks.co.uk)

Viks 01-13-2005 10:48 PM

one of those mods, which is simple yet powerful.
thanks for sharing it.

I just installed it but I am having 2 problems -

1. Cannot see navbar2 on CMPS homepage. I added the navbar2 in includes/vba_cmps_include_bottom.php

Do i have to add it in a CMPS tempelate too? maybe?

2. Where can I put the navbar2 so that it is right below the first navbar? I do not want it in the header and if I put it in forumshome then I see it only in forumshome page.

please advise,

thanks

Vik

Viks 01-14-2005 03:35 AM

update: I tried adding navbar2 in adv_portal tempelate - nabar2 did not appear on CMPS.

If i add nabar2 on header it shows up BUT i want both the navbar together + I want the URLS to work from CMPS as well as /Forum just like they do normally.

ne suggestions??


All times are GMT. The time now is 06:51 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.01510 seconds
  • Memory Usage 1,861KB
  • 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
  • (7)bbcode_code_printable
  • (8)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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