1 (edited by pcoxygen 2009-08-23 19:50)

Topic: Quick Reply not working when not logged in

I have just set up a new PunBB board.  Everything is working fine, except that the Quick Reply does not load when NOT logged in.  The Quick Reply DOES load when logged in.

I allow for posts by guests.

The error message at the bottom of the web browser (IE7 and IE 8) shows:

Webpage error details

Message: 'document.getElementById(...)' is null or not an object
Line: 148
Char: 1
Code: 0
URI: http://www.burkesville.net/forum/viewtopic.php?id=5

When I disable the pun_bbcode from admin, the error message does not appear, however the Quick reply still does not appear.  It only works when loggen in.

What can I do to resolve the error, or to show the Quick Reply when logged off?

Re: Quick Reply not working when not logged in

Okay, I've found the problem.  Though I don't know crap about PHP a little detective work and playing with script solved the issue.

So for those of you who experience the same issue (Quick Reply not showing up when logged off -- allowing Guest posts) here is the solution:


  • Open viewtopic.php (this file is in the root directory of your PunBB forum).

  • Go to line 584 and find " !$forum_user['is_guest'] && " (without quotes)

  • Delete this line, save doc, upload file to server, and refresh page (while NOT logged in).


PROBLEM SOLVED.

Thank you everyone for you assistance! lol

3 (edited by KeyDog 2009-08-23 22:08)

Re: Quick Reply not working when not logged in

excellent, just tried it aswell and worked
thx for sharing solution!

edit: btw it shows quickreply in footer but without field for entering name etc,
but then when you send reply post it asks for name , (captcha and email aswell in my case) ....

Re: Quick Reply not working when not logged in

KeyDog wrote:

excellent, just tried it aswell and worked
thx for sharing solution!

edit: btw it shows quickreply in footer but without field for entering name etc,
but then when you send reply post it asks for name , (captcha and email aswell in my case) ....

Hay, nice catch.  I didn't notice that.   You are correct, the Name and Captcha doesn't show up on the INITIAL page, but when you click on Submit Reply, the next page does show request the Name and show Captcha WITH THE message saved in the Write Message box.

Interesting!  hmm

Let me play with the script to come up with a possible solution (to save the extra step of having that second page).

Thank you KeyDog for the catch.  Good one!

5 (edited by KeyDog 2009-08-23 22:30)

Re: Quick Reply not working when not logged in

It's strange because I have
Guests must supply e-mail addresses when posting.
(admin, settings, features)
deactivated and still it asked me for it...

yw, will be interesting to hear what devs think....

edit: okay just found
Require a captcha for guest posting (if enabled one)  (admin, settings, features) near bottom....
turned that off and now only guest name and guest email are fields shown....
and I see now that it doesn't require the email - but gives option to enter it....

Re: Quick Reply not working when not logged in

Well I've played with the script all I can.  I'm not a coder so I'd better stop before I really screw something up.

I guess I should report this as a bug?

Can this topic be moved to a Bug Report forum and let the developers/coders figure it out?

Strange though, Quick Reply should be the same exact script as on Post Reply, as least I would thing so.

Re: Quick Reply not working when not logged in

The Quick Reply form is not shown for guests in the current version of PunBB.

pcoxygen wrote:

Webpage error details

Message: 'document.getElementById(...)' is null or not an object
Line: 148
Char: 1
Code: 0
URI: http://www.burkesville.net/forum/viewtopic.php?id=5

I haven't found this error on this page.

Re: Quick Reply not working when not logged in

Slavok wrote:

The Quick Reply form is not shown for guests in the current version of PunBB.

pcoxygen wrote:

Webpage error details

Message: 'document.getElementById(...)' is null or not an object
Line: 148
Char: 1
Code: 0
URI: http://www.burkesville.net/forum/viewtopic.php?id=5

I haven't found this error on this page.

Sorry, to prevent the error from showing on the page, I disabled Quick Reply.  I've now enabled it.  Please try and take a peak at it again.

Thank you.

Re: Quick Reply not working when not logged in

Thanks for reporting. Fixed in [1291].

Re: Quick Reply not working when not logged in

Slavok wrote:

Thanks for reporting. Fixed in [1291].

Still not working.

I've uploaded the new manifest.xml to /extensions/pun_bbcode
Refreshed the page, cleared cache, etc and still not working.  Getting a new error message now:

Message: 'document.getElementById(...)' is null or not an object
viewtopic.php
Line: 145
Char: 1
Code: 0
URI: http://www.burkesville.net/forum/viewtopic.php?id=5

I've disabled the pub_bbcode extension.  The error message goes away but the Quick Reply still does not appear when logged off (doesn't appear to guests).

Possibly the error is in viewtopic.php at line 145:

$cur_topic = $forum_db->fetch_assoc($result);

11

Re: Quick Reply not working when not logged in

Did you reinstall pun_bbcode extension after updating manifest.xml?

Re: Quick Reply not working when not logged in

Slavok wrote:

Did you reinstall pun_bbcode extension after updating manifest.xml?

I just uninstalled the pun_bbcode extension, logged off, logged back in and reinstalled the pun_bbcode extension.  That took care of the error message.  Thank you.  However, the Quick reply still doesn't show up to guests.

In Admin / Settings / Features I have "Add a quick post form at the foot of topics" box ticked on.  The quick reply doesn't show up when logged off (to guests).

But Yes, thank you for making correctins to that that error, the error is gone.

Re: Quick Reply not working when not logged in

I have the same problem as pcoxygen:
The Quick reply still doesn't show up to guests.
I enabled '  Allow users to post replies in topics. ' in '» Administration  » Users  » Groups  » Edit existing group' and the reply button now shows for guests, however not the QUICK reply.

14

Re: Quick Reply not working when not logged in

NettiCat wrote:

I have the same problem as pcoxygen:
The Quick reply still doesn't show up to guests.

The Quick reply option will not show up for guests.