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 |
#2
|
|||
|
|||
sweet!
thanks for this! |
#3
|
|||
|
|||
Could we have a better description of what this does please?
Template conditionals? |
#4
|
|||
|
|||
You can use the <if> ... <else /> tags from vBulletin's template system within wiki articles.
|
#5
|
|||
|
|||
I'm really not quite sure on what the intended usage would be. I understand the functionality, but could you give an example where you would use it?
|
#6
|
||||
|
||||
Quote:
1) You have a documentation Wiki and want to include additional information for staff members outside of the public eye. 2) You want to leave annotations within an article to the author of the page. 3) You want to show different content based on usergroup. e.g. easily include advertising via a Wiki template for regular members and exclude it for paid members. I am sure there are a million and one things that could be done. |
#7
|
||||
|
||||
I guess I could have spent a bit more time in my prior post and been more clear. Mediawiki is a platform designed to be open as possible. Tools like this that attempt to hide or protect content are inherently rife for problems.
Quote:
Quote:
Quote:
Quote:
I did install the code on my running server and expected it to fail some simple 'hack' tests.
I'm not trying be difficult here or harsh, but I don't see this as a good solution for what it could be intended to be used for. Furthermore, this isn't anything against thincom2000, many of the extensions for mediawiki also fail these tests as well. Frankly, mediawiki isn't a platform for dynamically hiding or presenting content based on usergroups (which is really what the three examples above are - just in different flavors). |
#8
|
|||
|
|||
Using the new hooks available in vbWiki I should be able to get this to pass your other two tests. I will look into this.
And to give you some more ideas, I have used this code to displayed userinfo based on the logged in user. Also, on my site in particular, we run a wiki for editing by higher level Usergroups (when we launched it we pushed it as more of a CMS), and thus this was helpful in show/hiding information from editors, while not showing this content to for example unregistered users. |
#9
|
|||
|
|||
On our site we wanted to use teh Wiki to host owners manuals for new products that are coming out. Sure, we can post them in the forum in a hidden forum then reformat everything to post it in the wiki...but why create more work than you have to?
|
#10
|
|||
|
|||
Glad this newest version is finally working for you, RedGTiVR6.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|