• This is a demo site for the purposes of showing and testing VaultWiki in a XenForo environment. If you have real questions or need support, please visit the real VaultWiki web site here: https://www.vaultwiki.org

Permission to use WYSIWYG editor for unregistered users?

TheOrigin

New Member
Hi all,

i am stuck at solving a problem i ran into when i installed VaultWiki today on my page. I have different projects on my website and i want Unregistered Users to be able to edit specific pages/forums too. I already worked myself through all those settings of the usergroups, forum permissions and vaultwiki permissions, but i cant find the error.

I want this page to be editable via WYSIWYG editor for unregistered Users:
http://www.theorigin.de/showwiki.php?title=Releaseprobleme+bei+Spielen

For registered Users its working without problems and for unregistered i already set permissions for the usergroup, the subforum itself and i even ran a sql-query for all users "advanced editor (WYSIWYG) show".

So where is the missing right between registered users and unregistered, so they can see both the advanced editor.

I really need this because Unregistered would only see the plain HTML code instead ...
 

Attachments

  • unregistered_vaultwiki_permissions.jpg
    unregistered_vaultwiki_permissions.jpg
    23 KB · Views: 4
  • unregistered_vaultwiki_editor.jpg
    unregistered_vaultwiki_editor.jpg
    15.6 KB · Views: 4
From what I understand by reading includes/functions_editor.php and by trying it out in a regular (non-wiki) forum just now, vBulletin doesn't let unregistered users use the WYSIWYG editor, or even let them use the toolbar buttons.

It has to do with $vbulletin->userinfo['showvbcode'] not being set for unregistered users. If you believe this is a bug, please report it to the developers of vBulletin.
 
Oh - thats sad. B/C that means unexperienced users cannot participate in editing the wiki/VB with more complicated content like tables and stuff :(

But thx anyway to let me know.
 
You can try creating a plugin at hook editor_wysiwyg_compatible, to see if that helps. This is some code that might work:
Code:
if ($userchoice == -1 AND !$vbulletin->userinfo['showvbcode'])
{
    $hook_return = 1; // also try 2, 0 turns editor controls off
}
Don't add the plugin to a mod, unless it's your own mod, or it will be deleted next time you upgrade.
 
Back
Top