Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

GuestPost v1.3

Download

Make a guest user account and define the username and password in the default.php file and it should just add the add comments form to all pages and allow guests to post. It will log them in and immediately back out again in order to do so. I suggest you choose a hard to guess password since otherwise someone will just log into the guest account properly, change its password, and break the extension. If people are posting while not logged in it will add a warning that they are posting as guest.

The extension will not work in conjunction with the AddComments extension since that requires the fields to be filled in (if you're php savvy you could just remove that requirement from the addcomments/default.php and it should work fine)

As of v1.3, if a guest enters their own name into the Username box and leaves the password box free, it will head up the post with their name. This requires the HTML formatter to be installed.

Let me know how it goes.
«13456

Comments

  • Works good so far. Awesome Mini, you will please many people.
  • amazing, mini DID it
  • Great work Minisweeper!

    Btw. in addons it says requires version 1.0.1 but works fine with my 1.0 as well (if someone is interested).

    One suggestion: As for now, the guest can only participate in threads. Would it be too complicated to allow it to make new threads as well?

    Thanks again!
  • Yeah, I wrote it using the new SetDefinition method but then realised nicks forum (which i used to test it) is still only running v1 so i had to go back to the old method. I might change it back to the new way at some point though.

    As for making whole discussions, it is a lot more work yes. There's a whole load more permission checking in place at a higher level than for just adding comments (un-signed in users cant even view the post.php page - all users can see the comment grid it's just a matter of adding more stuff to it)
  • At first I was like "what, cant post?" but then realized you can post comments, just not start discussions. Which I kind of like better.
  • Well the thing is if users have nothing to gain by registering an account then they wont. I think this is a pretty good compromise. In any case it was literally about 10 minutes work so aslong as it keeps some people happy i dont really care :D
  • I think you are right, this way it may be for the better. I am happy. :)
  • it's great :)
  • The extension will not work in conjunction with the AddComments extension since that requires the fields to be filled in (if you're php savvy you could just remove that requirement from the addcomments/default.php and it should work fine)
    Can you show us how? We're keen to learn :)
  • Actually, come to think of it it wouldnt work since both extensions are adding to the same delegate so whichever one added itself last would take precedence (i assume - either that or it'd just generally break). If people want it I could release another version of this extension which allowed people to enter login details or post as a guest?
  • I think it makes sense to allow users to start discussions if you have it limited to one category in which they can do so. For example, a help forum if they are having troubles logging in, rumor mill, etc.
  • It's not a matter of choosing them to allow it, it's getting round the permissions problem for someone who isnt logged in (this extension only logs people in to post their comment then logs them back out again).
  • hi mini, if you could improve the extenion (i couldn't really get what u were trying to say after ur explanation for my question, my bad), I would b grateful to try it out. Cheers.
  • Um. yeah. I'll try and get onto it tonight it shouldnt take long. If you could post again in like 6 hours that would probably help :D
  • Here you go. Grab the latest source from here: http://lussumo.com/addons/?PostBackAction=AddOn&AddOnID=182 It's not tested but I think it should work. Let me know how it goes.
  • hm ... i think i have a spam problem with this extension :(
  • That doesnt surprise me. Yet another reason to make people register. I guess i could add requirements for email addresses/captcha but by that time its easier just to register. The form is only like 5 inputs long.
  • edited October 2006
    Some problems were encountered The requested username and password combination could not be found.
    I get the above error.
    I've made the guest account and entered the details in default.php
    I tested the account by logging in with the details.
    Any ideas?

    Later:
    I manually entered the guest account details and they were accepted, post successful.
    Somehow, they are not being picked up from the default.php definitions.

    Yes I double-checked my typing.
  • ^ I'm having the exact same issue.
  • Is this with the version I uploaded the other day (1.1)?
This discussion has been closed.