The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi guys,
I'm trying to add a nav link to the parent forum of the thread being viewed. I've already added a "Home" link but I can't figure out the link structure for the parent forum. This is what I currently have... ![]() and I'm looking for it to be... <<Prev Thread | Home | [Parent_forum_name] | Next Thread >> any ideas? Thanks in advance. -James |
#2
|
|||
|
|||
![]()
This may help, here is the code used for the Navbit in the Navbar template.
![]() HTML Code:
<vb:if condition="$show['breadcrumb']"> <li class="navbit"><a href="{vb:raw nav_url}">{vb:raw nav_title}</a></li> <vb:else /> <li class="navbit lastnavbit"><span>{vb:raw nav_title}</span></li> </vb:if> |
#3
|
|||
|
|||
![]()
This may help, here is the code used for the Navbit in the navbar_link template.
HTML Code:
<vb:if condition="$show['breadcrumb']"> <li class="navbit"><a href="{vb:raw nav_url}">{vb:raw nav_title}</a></li> <vb:else /> <li class="navbit lastnavbit"><span>{vb:raw nav_title}</span></li> </vb:if> |
#4
|
|||
|
|||
![]()
Hi Da-Vinci, I appreciate the response but I haven't been able to achieve this as of yet. I tried the recommendation you provided (I had already tried it but I tried it again anyways) but for some reason it doesn't work. I might be missing something. FYI I'm editing the following code in the SHOWTHREAD template;
Code:
<vb:if condition="$nextthreadinfo"> <a href="{vb:link thread, {vb:raw nextthreadinfo}}">{vb:raw nextthreadinfo.title}</a> <strong>»</strong> </vb:if> <vb:else /> <strong>«</strong> <a href="{vb:link thread, {vb:raw thread}, "goto=nextoldest"}" rel="nofollow">{vb:rawphrase prev_thread}</a> | <a href="{vb:link forumhome}">Home</a> | <a href="{vb:link thread, {vb:raw thread}, "goto=nextnewest"}" rel="nofollow">{vb:rawphrase next_thread}</a> <strong>»</strong> </vb:if> I think I found the problem but I don't know how to fix it. This code should work... Code:
<a href="forumdisplay.php?{vb:raw session.sessionurl}&f={vb:raw foruminfo.forumid}">Parent Forum</a> but for some reason... {vb:raw foruminfo.forumid} ...isn't replacing the forum id. Any thoughts? |
#5
|
|||
|
|||
![]()
I got this to work as seen below. However, I was unable to figure out how to display the title of the parent forum so I'm simply using "Thread List". Would really like to fix this if anyone has ideas.
Code:
<vb:if condition="$nextthreadinfo"> <a href="{vb:link thread, {vb:raw nextthreadinfo}}">{vb:raw nextthreadinfo.title}</a> <strong>»</strong> </vb:if> <vb:else /> <strong>«</strong> <a href="{vb:link thread, {vb:raw thread}, "goto=nextoldest"}" rel="nofollow">{vb:rawphrase prev_thread}</a> | <a href="{vb:link forumhome}">Home</a> | <a href="forumdisplay.php?{vb:raw session.sessionurl}&f={vb:raw thread.forumid}">Thread List</a> | <a href="{vb:link thread, {vb:raw thread}, "goto=nextnewest"}" rel="nofollow">{vb:rawphrase next_thread}</a> <strong>»</strong> </vb:if> |
#6
|
|||
|
|||
![]()
Hi all, I was able to accomplish my original idea by simply preregistering the variable 'foruminfo' for the SHOWTHREAD template and using the following code;
Code:
<a href="forumdisplay.php?{vb:raw session.sessionurl}&f={vb:raw thread.forumid}">{vb:raw foruminfo.title}</a> |
#7
|
|||
|
|||
![]()
Glad you got it sorted, good to know how you done it as well
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|