![]() |
Quote:
|
Now that I have this installed (after updating everything on our forum with the newest vB release, et. al.)...I'm not sure how to utilize the "condition".
I'm no coder, so I'm a bit lost as to the conditions I would need to use. Can anyone help me and my ignorant self? :) |
What are you trying to accomplish?
A frequently used condition on my own and probably most other forums utilizing this hack is PHP Code:
|
that's what I was looking for!
Thanks! Now, I've put the following at the beginning of this article: Code:
<if condition="is_member_of($bbuserinfo, array(6))"> You can find the article here: http://www.mp3car.com/wiki/index.php/Bit-perfect I'm just using this article as a test since it's a little known article on our forum. I'm trying to block out text to only be seen by admins right now, but it's not working. I'm guessing I'm not using the code properly? |
Well first of all, your </else> should be <else />. Also the condition needs to be wrapped in quotes so the most recent revision is incorrect.
According to your Special:Version page, MediaWiki is not detecting the extension. I had the same problem and released 1.1.0 to fix it, only to realize that the hooks in vbWiki were not parsing. In fact, I should be the only one with a working installation of this currently thanks to a bug in all current versions of vbWiki Pro. You can fix the bug by doing the following: In vbwiki/arcane_vbulletin_core.php, find: PHP Code:
PHP Code:
|
Code:
Warning: require_once(/.../vbulletin/vbWiki/vbConditions.php) [function.require-once]: failed to open stream: No such file or directory in /.../vbulletin/vbWiki/vbWiki.php(38) : eval()'d code on line 1 |
I remember that in the last version you had to change the single quotes to double quotes to get that error to stop. Try that in the vbw_start plugin.
I still have absolutely no idea why this error is isolated to your installation. |
Added the double quotes as you suggested.
The wiki page will come up, but this is at the top of it: Code:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /.../vbulletin/vbWiki/vbWiki.php(38) : eval()'d code on line 1 |
And you do have vbConditions.php in the vbWiki folder?
|
Yes.
if I remove the double quotes, the parse error goes away at the top of the screen but the code still doesn't do anything from within the article. I've also tried completely reinstalling the mod as well, no dice. The mod does show up in the special pages now. |
All times are GMT. The time now is 11:35 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:
|