vBulletin ModsThe Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=226914 |
Quote:
|
Lynne,
Thanks for this awesome guide. So I'm trying to hide the tab from people not logged in. Also I only want some user groups to see it. This is what I have so far.
I tried just testing out the if statement first to see if I could only let some user groups see the tab. But that didn't work. Maybe I placed it in the wrong place? --------------- Added 18 Nov 2009 at 17:07 --------------- Woot I just fixed it. I put the if statement above the global and it works. Doesn't matter about the member part now. Because if they are not part of the right group it won't even show up. :-) So here is my answer:
|
You really should have { and } around the whole thing after your if is_member_of statement. Right now, you are basically just saying if is_member_of then make the $template_hook global, which is needed right now for this plugin to work. If they fix the issue of the $template_hook not being global, then suddenly your plugin isn't going to work because it will be made global elsewhere and therefore work.
|
Ok so something like this?
Oh this is the Kallell account by the way :-) With your help we found out how to set up more than one account with access. |
Yes, that looks correct - you have the content of the whole plugin in the condition now.
Hello Kallell! Now I recognize you. :) |
Quote:
What about if I want to add two tabs? with one unblocked and the other one set to usergroups. Would it be like this:
|
Quote:
|
Quote:
-edit- i've just removed #navtabs li.selected a.navtab from vbulletin-chrome.css, the navigation structure doesn't make sense. when vbull combined with CMS, features such as calendar, FAQ, photo gallery, friends, group should be global and not under the forum section. they should have it's own link at the parent navigation bar. now i will just manually add navigation links from the template, hope vbull developer will fix this in the future. |
Hello all! I am puzzled. I tried to adopt this with the following code to link to our store on our site.
The above doesn't seem to do a thing. Any help? (I'm not the best in PHP coding...so I appreciate a layman's explaination if possible.) |
Is "https://www.scsimulations.com/store/" this a page your wrote yourself? Does it have a line at the top that defines THIS_SCRIPT as STORE like this?
When you say it doesn't seem to do anything, are you seeing a tab at all? Do you have the plugin active? |
It sure is....and it wasn't activated...:eek:
Its always the simplest solution. Appreciate it! |
First off, great article it's really helped me in getting my test site going. Is there a way that anyone knows of to have a specific navtab show as selected if a certain article is showing. Basically I guess what i'd need to do is set what the script id is for a specific article. Any ideas?
|
I am not familiar enough with the new cms to know the answer to that question. You would, however, have to actually do some modifying to some code somewhere since the condition is already set that if you are in the cms, then the Home tab is selected. So, you'd have to change that code to say "if in cms except this article, then the Home tab is selected".
|
Lynne, I have thehack working but would love to have a sub link on the sub link as you have tab saying Tech with a link saying Carburetors then you have Cleaning Carbs and Jetting. so you would have
Tech>Carbs>cleaning Carbs and Tech>Carbs>Jeting Menu would look like Carbs Cleaning Jetting What would code be? |
Quote:
|
All times are GMT. The time now is 22:33. |
Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.