The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Xenon's gone- can someone please help?
Hi,
vB.org has the ability to hide certain forums if the user chooses through the UserCP. Xenon kindly told us how to do it here: https://vborg.vbsupport.ru/showthread.php?t=110344. Unfortunately, it doesn't work for me but I may be doing something wrong. Would someone be willing to lend a quick hand? I'm sure for a coder this is baby stuff as Stefan already posted the code for the plugin. What happened when I activated the plug in was that when you clicked on a URL on forumhome, it redirected back to home or gave an error. Thanks! |
#2
|
||||
|
||||
If you post the code you came up with I'm sure somebody can point you in the right direction.
|
#3
|
|||
|
|||
|
#4
|
|||
|
|||
Thanks.
Anthony that is almost perfect for me except I don't have control over which forums you can hide. This was the plugin code Xenon posted that doesn't work for me: Code:
// Exclude Forums except direct link to thread if ($vbulletin->userinfo['fieldxx'] != 0 AND THIS_SCRIPT != 'showthread' AND THIS_SCRIPT != 'attachment') { $excludeforums = array(); if ($vbulletin->userinfo['fieldxx'] & (1 << 0)) // first checkbox { $excludeforums = array_merge($excludeforums, array(xy, xy, xy, xy)); } if ($vbulletin->userinfo['fieldxx'] & (1 << 1)) // second checkbox { $excludeforums = array_merge($excludeforums, array(za, za, za, ta)); } ... foreach ($excludeforums AS $fid) { $vbulletin->userinfo['forumpermissions']["$fid"] = 0; } } |
#5
|
|||
|
|||
To have control over which forums you can hide, you would simple have to modify the html code a bit and also add a simple verification on the php end.
|
#6
|
|||
|
|||
I can handle the html but the php verification is over my head. Do you or anyone have an example of that?
Thanks. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|