MyBB Community Forums

Full Version: "forum parent name" variable?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I know {$forum['pid']} produces the parent forum/category id. But is there a variable that produces the parent forum/category name?

Basically, I want to place a link to the parent forum/category on the child forum's page in a custom location of my choosing by using the parent's name.

I've looked for a long time trying to figure out how the breadcrumbs worked since the link to the parent (with name) is there. No luck, seeing as though this is my first go at myBB.

Thanks!
1. Download Template Conditionals: http://mybbhacks.zingaburga.com/showthread.php?tid=464
2. Upload both .txt and .php file to inc/plugins
3. Put this code to a place wherever {$forum['pid']} or {$pid} is available:
<a href="<?=get_forum_link($forum['pid'])?>">Parent</a>
it will generate the link.
Thanks, I'll give this a shot!