The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
CES Wiki Conditionals Details »» | |||||||||||||||||||||||||
CES WIKI CONDITIONALS
Version: 1.1.0 Requires vbWiki Pro v1.3 RC3 or later (also unsupported). *** NEWS *** 5/30/2007 - linked first post to a bug fix for vbWiki Pro that prevents this mod from working 5/20/2007 - v1.1.0 released 5/14/2007 - v1.0.3 released on vb.org Products to Install: 1 Plugins Included: 2 Files to Upload: 1 Template Edits: 0 Files to Edit: 0 What It Does: Allows you to use vBulletin template conditionals in MediaWiki articles. HTML Code:
<if condition="code"> ... <else /> ... </if> - Because of some bugs in the MediaWiki parser, nesting <if> tags inside each other will result in unexpected behavior. - Some public versions of vbWiki Pro have a bug where the hooks don't work properly. Until a new build corrects this, use the fix here: https://vborg.vbsupport.ru/showthread.php?p=1257327 - You should NOT be using this mod to hide or show dynamic content based on Usergroup Permissions, since there are holes in the implementation. - We have abandoned most of our other-party-wiki addons since we started our own wiki project for vBulletin called VaultWiki. *** Changelog *** As of Version 1.1.0: - rewrote the parser function to use vBulletin's code - fixed bug where the page would cache As of Version 1.0.3: - finally compatible with public versions of vbWiki Pro As of Version 1.0.2: - uses vBulletin's hook system - else parameter changed to vBulletin's <else /> tag As of Version 1.0.1: - added else parameter Show Your Support
|
Comments |
#12
|
||||
|
||||
Then don't use it. Quite simply, I see a Wiki as simply another form of content management. I may not want the general public to change my content and integrations like this allow me to lock things down without worrying about protecting every page.
|
#13
|
|||
|
|||
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? |
#14
|
|||
|
|||
What are you trying to accomplish?
A frequently used condition on my own and probably most other forums utilizing this hack is PHP Code:
|
#15
|
|||
|
|||
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? |
#16
|
|||
|
|||
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:
|
#17
|
|||
|
|||
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 Fatal error: require_once() [function.require]: Failed opening required '/.../vbulletin/vbWiki/vbConditions.php' (include_path='/.../wiki:/home/mp3car/public_html/wiki/includes:/home/mp3car/public_html/wiki/languages:.:/usr/lib/php:/usr/local/lib/php') in /.../vbulletin/vbWiki/vbWiki.php(38) : eval()'d code on line 1 |
#18
|
|||
|
|||
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. |
#19
|
|||
|
|||
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 |
#20
|
|||
|
|||
And you do have vbConditions.php in the vbWiki folder?
|
#21
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|