Register Members List Search Today's Posts Mark Forums Read

 
 
Mod Options
  #1  
Old 17 Aug 2002, 08:50
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
How do I remove certain cats from navbits?

Christophe_O says:

Originally posted by smachol
$navbits... is in functions.php...
Am I correct in saying, then, that to modify the navbar requires PhP coding---therefore this would be a "hack" and not a template modification?

What I want to do is remove the forum category from the navbar.

I did look in functions.php, and found "$navbits=makenav" So I went farther down to "function makenav"----but well, I don't know PhP......

Well, maybe this is beyond the scope of this forum.... but anyway here is the makenav. Can someone tell me what to remove to take out the forum category from the navbar? Just copy and paste in your reply what to remove.... That is, IF this is the right function and IF it's easy for an experienced programmer to spot...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
lamo mac boy
Comments
  #2  
Old 17 Aug 2002, 08:53
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
i just did that on my forums. here is my makenavbar function for my 2.2.5 forums:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

you need to manually add the forumids of your categories you don't want to show in this line:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
lamo mac boy
  #3  
Old 17 Aug 2002, 09:18
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Is there a way to take just the thread title out of the navbar?
  #4  
Old 17 Aug 2002, 09:19
Christophe_O's Avatar
Christophe_O Christophe_O is offline
 
Join Date: Jul 2002
Thank you, Jake, this looks do-able.

A minute ago, I also happened to notice there are 2 references to a "nav_joiner"----and of course there are 2 ">" joiners in the navbar-----so I was thinking, maybe just remove most of the section above the first reference to a "nav_joiner".....

.......well, guess that won't do..... heh....
__________________
Krystof
Starnectar Forums
  #5  
Old 17 Aug 2002, 09:27
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
Originally posted by Christophe_O
Thank you, Jake, this looks do-able.

A minute ago, I also happened to notice there are 2 references to a "nav_joiner"----and of course there are 2 ">" joiners in the navbar-----so I was thinking, maybe just remove most of the section above the first reference to a "nav_joiner".....

.......well, guess that won't do..... heh....
notice i completely commented out the original instance of:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

make sure you comment out that one and add the one within the if statement. if the makenavbits function hasn't changed between 2.2.5 and 2.2.6 then you can just copy and paste my whole function and put in your own forumids in the if statement.
__________________
lamo mac boy
  #6  
Old 17 Aug 2002, 09:30
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
Originally posted by Boofo
Is there a way to take just the thread title out of the navbar?
sure. i will test it and post the code when i make sure it's working. i'm going to sleep right now.
__________________
lamo mac boy
  #7  
Old 17 Aug 2002, 09:35
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Thank you very much. I will be looking forward to this.

Originally posted by Jakeman


sure. i will test it and post the code when i make sure it's working. i'm going to sleep right now.
  #8  
Old 17 Aug 2002, 16:19
Christophe_O's Avatar
Christophe_O Christophe_O is offline
 
Join Date: Jul 2002
Question Opposite question.... name ONLY the current page whatever...

Originally posted by Boofo
Is there a way to take just the thread title out of the navbar?
I have sort of the opposite question: is there a way to state ONLY the title of the current page.

I am coming along nicely with a new "framed" version of vB---I can put all necessary links into a banner frame---so I actually don't need a Navbar at all---just need a way to "name the current page..."
__________________
Krystof
Starnectar Forums

Last edited by Christophe_O; 22 Aug 2002 at 15:13.
  #9  
Old 18 Aug 2002, 09:48
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
i haven't had a chance to look at this yet.

@Christophe_O - the page title is already in the... title tag, right? wouldn't you just remove the navbits completely then?
__________________
lamo mac boy
  #10  
Old 18 Aug 2002, 19:56
Christophe_O's Avatar
Christophe_O Christophe_O is offline
 
Join Date: Jul 2002
Well, maybe so, Jake. Anyway, the hack that you kindly have supplied here also is very do-able. Thank you.
__________________
Krystof
Starnectar Forums

Last edited by Christophe_O; 22 Aug 2002 at 15:11.
  #11  
Old 24 Aug 2002, 07:32
Christophe_O's Avatar
Christophe_O Christophe_O is offline
 
Join Date: Jul 2002
Just discovered this prints the page title: $foruminfo[title]

Now if only I can figure out how to get the navbar links in the thread display to use the action <target="left"> ......
__________________
Krystof
Starnectar Forums
  #12  
Old 10 Dec 2002, 15:24
PsyBlast PsyBlast is offline
 
Join Date: Dec 2002
is there an easy way to make all of the navbits a certain format without having to go through every single template?

I dont want them to be these big bulky long sentances, i ant them divided up like this:

VB icon here Forum name here
--2nd line here
--3rd line here
-- etc. etc. etc.
 

Similar Mod
Mod Developer Type Replies Last Post
Remove thread title in navbits if you have large thread title installed VietSoil vBulletin 2.x Full Releases 17 30 Oct 2002 03:07



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 08:06.

Layout Options | Width: Wide Color: