Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
CES Wiki Conditionals Details »»
CES Wiki Conditionals
Version: 1.1.0, by thincom2000 thincom2000 is offline
Developer Last Online: Sep 2022 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.6.x Rating:
Released: 05-13-2007 Last Update: 05-20-2007 Installs: 10
Uses Plugins
Additional Files  
No support by the author.

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>
Known Issues:
- 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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 05-31-2007, 02:45 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay that's a step in the right direction...
Reply With Quote
  #23  
Old 05-31-2007, 02:50 AM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

btw - I do really appreciate your assistance on this. It is greatly appreciated.

If I used PayPal (I refuse) I would donate.

Any other way you suggest?
Reply With Quote
  #24  
Old 05-31-2007, 02:54 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I registered and made an edit to the page. It's working. The problem was that the old version of the page was cached, so it wasn't trying to reparse anything after the hook issue was fixed.

Since I made an edit you should probably re-edit to remove the extra text "Only showing to admins..." (don't revert to the last revision).

P.S. If you are using the conditions to hide text by Usergroup, I would not recommend letting anyone lower than that edit the page. With the hook vbw_map_permissions, you should be able to lock down certain pages if this isn't already a feature of vbWiki Pro.
Reply With Quote
  #25  
Old 05-31-2007, 03:07 AM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.

I noticed this change, but I also noticed the <else /> as being still visible when I check the page, but the first part of the code isn't.

Also, if I logged in as a non-admin and looked at the page, it showed as desired, but if I went in to edit it, I could see it all.

So by your last post...

If I have an article that the members of the company are working on but we don't want to be visible by the public yet...we shoud only allow that user group to edit the article. Do I understand that correctly?
Reply With Quote
  #26  
Old 05-31-2007, 02:13 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That understanding is correct.

EDIT: I noticed what you said about using <else />. I will fix that for the next build, thanks.
Reply With Quote
  #27  
Old 05-31-2007, 03:00 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the support! It's greatly appreciated.

I'm off to send an email to the company to let them know about the new ability.
Reply With Quote
  #28  
Old 05-31-2007, 05:55 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm back...

Perhaps this isn't possible, but I cannot figure out how to allow only certain user groups to edit an article.

I can see where we can protect it, but there's only the Sysops group that I can choose or the unregistered group.

Am I missing something?
Reply With Quote
  #29  
Old 05-31-2007, 06:06 PM
majorxp majorxp is offline
 
Join Date: Aug 2005
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wayne Luke View Post
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.
I'm incredibly confused by this message.

integrations like this allow me to lock things down
I was pretty clear that you do not want to use this plugin to lock down content. Simply adding your wiki to an rss feed will show any 'protected' content you may have (as well as showing the code you place on the page). You could also show the full content of the page by adding the "raw" option.

without worrying about protecting every page.
This plugin requires page by page protection since it only works on a per page basis.
Reply With Quote
  #30  
Old 05-31-2007, 11:02 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working on this... How do you view the RSS output of the page? Is this a new feature in MW 1.10?
Reply With Quote
  #31  
Old 06-01-2007, 02:54 PM
majorxp majorxp is offline
 
Join Date: Aug 2005
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can get the rss feed of the recent changes which would include any code you add to a page.


RSS Feed:
http://www.crackedeggstudios.net/wik...anges&feed=rss
(you have disabled the feed presumably to not show the code)

Furthermore, you can see the diff history of any page and see the code. This is just too easy to see the 'hidden code' that it is (unfortunately) ineffective at best.

For example, see this page:
http://www.crackedeggstudios.net/wik...anges&days=100

From there, you can look at this page:
http://www.crackedeggstudios.net/wik...293&oldid=2292

This page clearly shows the 'protected content' and the CODE.

To make matters worse, you could view the raw page and see the full current page with all of your code and the hidden content:
http://www.crackedeggstudios.net/wik...ent&action=raw


EDIT: If anyone is going to say something like, "well...this is just to hack or someone who tries to see hidden code" you are fooling yourself.

A simple search also shows hidden content.
Someone could search for something as simple as the word "links" and show 'hidden content' (since the search engine has no idea it is supposed to be hidden from that user).
http://www.crackedeggstudios.net/wik...searchx=Search



Again, this mod should NOT be used to hide or protect content under any circumstance. It just doesn't work. If you want to protect or hide content, I would wait until there is an extension that will tie categories or pages to user groups and then use the vbwiki tool to match wiki user groups and vb groups.

Seriously, a wiki is not designed or intended to protect or show content. It is a tool to openly share information where everyone can edit it. If you need to hide or protect information, mediawiki is not the tool you are looking for.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:25 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04907 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete