Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2004, 07:38 PM
MacMorag MacMorag is offline
 
Join Date: Dec 2001
Location: Ayr, Scotland
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Quick Reply Box for 'guests'

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.
Reply With Quote
  #2  
Old 04-26-2004, 08:46 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In showthread.php find:

PHP Code:
!$thread['isdeleted'] AND !is_browser('netscape') AND $vboptions['quickreply'] AND $bbuserinfo['userid'
Replace with:

PHP Code:
!$thread['isdeleted'] AND !is_browser('netscape') AND $vboptions['quickreply'
Untested but should work.
Reply With Quote
  #3  
Old 04-26-2004, 08:57 PM
MacMorag MacMorag is offline
 
Join Date: Dec 2001
Location: Ayr, Scotland
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 04-26-2004, 09:03 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In includes/functions_newpost.php find:

PHP Code:
        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.
Reply With Quote
  #5  
Old 04-26-2004, 09:25 PM
MacMorag MacMorag is offline
 
Join Date: Dec 2001
Location: Ayr, Scotland
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 04-26-2004, 10:01 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What Javascript error does it give? And whats around the lines it says the error is on (in the HTML source).
Reply With Quote
  #7  
Old 04-27-2004, 06:55 AM
MacMorag MacMorag is offline
 
Join Date: Dec 2001
Location: Ayr, Scotland
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 10-25-2008, 09:50 AM
luxotic luxotic is offline
 
Join Date: Nov 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MacMorag did you ever find a quick reply box for guest unregistered users?
Reply With Quote
  #9  
Old 12-05-2010, 01:38 PM
Madlike's Avatar
Madlike Madlike is offline
 
Join Date: Jan 2008
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:45 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04157 seconds
  • Memory Usage 2,246KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete