View Full Version : Quick Reply Box for 'guests'
MacMorag
04-26-2004, 07:38 PM
I've just discovered that the Quick Reply Box which comes with vb3 does not show up for 'unregistered/guest' users. I was using Chen's hack on vb2 and it worked a treat (it sets a static 'Guest' username for all unregistered users).
Has anyone created a hack for vb3 which allows guest to see/use the Quick Reply Box? If not, any pointers on what needs modding would be greatly appreciated.
I've been testing vb3 for a couple of weeks now - and have only just realised that guests couldn't see the Quick Reply Box. :o
NTLDR
04-26-2004, 08:46 PM
In showthread.php find:
!$thread['isdeleted'] AND !is_browser('netscape') AND $vboptions['quickreply'] AND $bbuserinfo['userid']
Replace with:
!$thread['isdeleted'] AND !is_browser('netscape') AND $vboptions['quickreply']
Untested but should work.
MacMorag
04-26-2004, 08:57 PM
Tried - and failed (but thanks). It fails with error:
You did not specify a username for your post. Please press your back button and enter one.
So I'm guessing that there must be a check for a username - just need to find it and remove it (I only use the Quick Reply Box, so check for username is not required anyway).
Any ideas where to look?
Thanks.
NTLDR
04-26-2004, 09:03 PM
In includes/functions_newpost.php find:
if (empty($post['username']))
{
eval('$errors[] = "' . fetch_phrase('nousername', PHRASETYPEID_ERROR) . '";');
}
else
And remove it (NOTE, the if AFTER the last else above must be left).
You really should have some sort of default username for posts so I'd suggest editing the QRB HTML and adding a hidden field with a default username in.
MacMorag
04-26-2004, 09:25 PM
All works fine now - well almost. I get a javascript error message whenever the page with the quick search box for guests loads.
There's loads of Javascript in vb now (and I'm no expert) so I'm tempted just to leave it - I just hate seeing that little yellow triangle in the status bar though.
But guests can now post. I intend to remove guest posting eventually anyway - so maybe this is another way to get them to register. The promise of an "error free" board. They'll love that ;)
I should add that I did add a hidden username field in the QRB.
NTLDR
04-26-2004, 10:01 PM
What Javascript error does it give? And whats around the lines it says the error is on (in the HTML source).
MacMorag
04-27-2004, 06:55 AM
Hi Lee,
I didn't debug the page - so don't know the exact cause. I did notice that when you logged in on any page that had a QRB, instead of tabbing to the password field you tabbed directly into the QRB. I tried messing around with "tabindex" but gave up because I couldn't get rid of the error warning in the status bar - and because I hit on a better solution.
Now whenever a guest views a thread they see the reply button. When a member views the thread they see the QRB. It just means one extra click for guests - but I'm quite happy to point out the fact that they will have 'in line' reply facility as soon as they register :)
Thanks for your help though.
luxotic
10-25-2008, 09:50 AM
MacMorag did you ever find a quick reply box for guest unregistered users?
Madlike
12-05-2010, 01:38 PM
Thanks.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.