![]() |
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?
|
Any ideas? Anyone...?
|
What exactely do you want to do?
|
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.
|
Hmm, for that just including the global.php (like you did it) should do the trick....
What errors are you getting? |
Here's the error message:
Quote:
Here's how I included the file in the beginning of my MediaWiki skin: PHP Code:
|
Try replacing:
PHP Code:
PHP Code:
|
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:
|
Quote:
|
All times are GMT. The time now is 02:02 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|