I don't know if it would be easier to manage. On my site, I only want to add one or two more tabs and so it's no problem for me to do it the way everything is currently set up. I find it pretty simple the way it is, so I've never looked into an 'easier' method.
|
Now that I've gone through all of the work, I hope this helps someone on here. A while back, I created two new tabs (Home and Groups) over at http://www.drzforums.com, and just replicated the navlinks from the Forums navtab. The result was a set of broken links for visitors, since some of the navlinks require registration.
Today, I converted the navlinks conditional statements from the vB-specific HTML found in navheader, into the PHP required for a plug-in. Here is the plug-in code for my Groups tab: PHP Code:
|
how do you check permissions at that hook?
$cando = $permissions['myproduct'] & $vbulletin->bf_ugp['myproduct']['cando'] ? true : false; is not doing anything. edit ... found answer in blogs |
Thanks. Using this for one of my subforums (kind of like the tabs here at vB.org). However, instead of forumdisplay.php?{vb:raw session.sessionurl}2-Main-Forum I would like to generate 2-Main-Forum using the vBulletin link generator so it takes the current rewrite rules into consideration. Any ideas how I would do that?
|
Lynne can this be used to make a simple navtab with out the drop down and sub links in the lower navbar ?
thanks |
Quote:
|
thanks
|
I cannot seem to get the plugin to accept a userid in the menu. I'm probably overlooking something obvious, but here's my code:
Code:
$tablinks .= '<li><a href="tracker.php?'. $session['sessionurl'] . '&do=search&userid=' . Code:
require_once('./global.php'); Any ideas what I might be doing wrong or overlooking? Thanks :) |
Try
Code:
$tablinks .= '<li><a href="tracker.php?'. $session['sessionurl'] . '&do=search&userid=' .$vbulletin->userinfo[userid]. '"> |
Quote:
|
All times are GMT. The time now is 09:47 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|