The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
vB Variables and MediaWiki
Is there any way to get a logged-in user's usergroupid on my MediaWiki installation? I tried require_once('../forum/global.php'); but it returned errors. Is there another way to do this?
|
#2
|
||||
|
||||
Any ideas? Anyone...?
|
#3
|
|||
|
|||
What exactely do you want to do?
|
#4
|
||||
|
||||
I just want to prevent users in a certain usergroup from seeing a block of code in the Wiki's skin. In this case, I don't want to show ad code to forum subscribers.
|
#5
|
|||
|
|||
Hmm, for that just including the global.php (like you did it) should do the trick....
What errors are you getting? |
#6
|
||||
|
||||
Here's the error message:
Quote:
Here's how I included the file in the beginning of my MediaWiki skin: PHP Code:
|
#7
|
|||
|
|||
Try replacing:
PHP Code:
PHP Code:
|
#8
|
||||
|
||||
Sorry I couldn't get back to this thread sooner - I've been crazy busy. Anyway, thanks for your help Marco! However, the following code still seemed to return a similar error.
PHP Code:
Quote:
|
#9
|
|||
|
|||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|