a 2.0 wiki... that *anyone* can edit
Recent changes to the pbwiki 2.0 api have created a secure way to allow anyone to get editor access to your wiki without compromising your admin security. This should be a sufficient replacement for public 1.0 wikis that published their invite key.
Ok.. here's the source code you should add if you want to create a user signup page on your 2.0 wiki:
<div id="admin_key" style="visibility: hidden">YOUR_ADMIN_KEY_GOES_HERE</div>
<p><img class="pluginslug" contenteditable="false" src="/plugin_helper.php?plugin=googlegadget&html=%3Cscript+src%3D%27http%3A%2F%2Fcopytest3.pbwiki.com%2Ff%2Fsignup.js%27%3E%3C%2Fscript%3E&w=200&h=50" isapbwikiplugin="1" /></p>
Here's a demo if you want to see it in action:
http://copytest2.pbwiki.com/signup
Here's what you need to do in order to use this script on your wiki:
http://yourwiki.pbwiki.com/api_v2/#Ad...
click the [show] that's next to opkey_adduser_edit on that page....
Don't be afraid of all the programmer speak on the page, it will not harm you.
Copy the magic code that it reveals for you into the YOUR_ADMIN_KEY_GOES_HERE from the snippet above
Ok.. here's the source code you should add if you want to create a user signup page on your 2.0 wiki:
<div id="admin_key" style="visibility: hidden">YOUR_ADMIN_KEY_GOES_HERE</div>
<p><img class="pluginslug" contenteditable="false" src="/plugin_helper.php?plugin=googlegadget&html=%3Cscript+src%3D%27http%3A%2F%2Fcopytest3.pbwiki.com%2Ff%2Fsignup.js%27%3E%3C%2Fscript%3E&w=200&h=50" isapbwikiplugin="1" /></p>
Here's a demo if you want to see it in action:
http://copytest2.pbwiki.com/signup
Here's what you need to do in order to use this script on your wiki:
http://yourwiki.pbwiki.com/api_v2/#Ad...
click the [show] that's next to opkey_adduser_edit on that page....
Don't be afraid of all the programmer speak on the page, it will not harm you.
Copy the magic code that it reveals for you into the YOUR_ADMIN_KEY_GOES_HERE from the snippet above
2
people like this idea
I like this idea!
Tell me when this idea gets some attention.
The more people who like this idea, the more it gets noticed.
The more people who like this idea, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?You're so fancy :D
Man, I wish I had more time to screw around like this like I used to in PBwiki's early days, especially since the new API gives us all kinds of cool tricks to work with. I'm glad somebody's having fun with them though!
-
Inappropriate?Is there a way to do this without getting so "fancy," to borrow Vu's description? Or might you spell out the details of "what you need to do" a bit more clearly, for those of us less familiar with "all the programmer speak on the page"? Many thanks.
-
Inappropriate?sorry.. I don't think that there is a "less fancy" way to do this, since it's not something inherently supported by pbwiki....
but here are the steps:
copy and paste the snippet above (beginning with the div and ending with p) into the HTML view of a page on your wiki...
if you save that you will see that you get a signup link..
but if you try it.. it won't sign you up...
what you need to do is do the next step (it's a bit scarier, but just trudge through and it should work) .. get that special key from your wiki, then edit your page (in HTML mode again) and plug in the magic value that allows let's your wiki know that it's ok to create users from that link.
Sorry that it can't be easier than that since only somebody with admin rights on your wiki can get that code for you... although pbwiki could create a simpler page with nothing on it but that passwords if they wanted to make that part of it a bit more user friendly...
hope that helps!
-Tim
Loading Profile...



