![]() |
How do I link to parent forum?
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 |
1 Attachment(s)
This may help, here is the code used for the Navbit in the Navbar template.
https://vborg.vbsupport.ru/external/2011/05/33.jpg HTML Code:
<vb:if condition="$show['breadcrumb']"> |
This may help, here is the code used for the Navbit in the navbar_link template.
https://vborg.vbsupport.ru/attachmen...1&d=1305587782 HTML Code:
<vb:if condition="$show['breadcrumb']"> |
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"> 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? |
1 Attachment(s)
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"> |
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> |
Glad you got it sorted, good to know how you done it as well ;)
|
All times are GMT. The time now is 02:57 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|