Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Quick Reply for Guests for VB4 by BOP5 Details »»
Quick Reply for Guests for VB4 by BOP5
Version: 0.985, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.x.x Rating:
Released: 02-18-2012 Last Update: 06-10-2012 Installs: 44
Uses Plugins Auto-Templates
Translations Is in Beta Stage  
No support by the author.


This is a port of my VB 3.8 Mod.

Live Demo: Guest Forum at Qapla.com

This mod allows guests to use Quick Reply.

Quick Reply will only be shown in threads in which guests are allowed to post.

If human verification is enabled, that too will be displayed for the guest.

I have tested this on 4.1.10, I expect it should work on all 4.0.x/4.1.x versions.

Although it was a simple result it was actually pretty tricky to get this mod working right.

I've marked this as Beta because it is new but it is working for me without issue.

v0.98 - Initial Release (for VB4)
v0.981 - Bug Fix- Human Verify will only show if human verify enabled for posts
v0.985 - Updated to work with SolveMedia Captcha

Please Mark as Installed if you use this.
Donations are always appreciated. :up:

Download Now

File Type: zip Quick Reply for Guests by BOP5 VB4 v0985.zip (4.3 KB, 253 views)

Screenshots

File Type: jpg qrg_settings_vb4.jpg (54.1 KB, 0 views)
File Type: jpg qrg_vb4demo1.jpg (41.0 KB, 0 views)
File Type: jpg qrg_vb4demo2.jpg (77.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
deverill2010, goxy63

Comments
  #2  
Old 02-19-2012, 04:44 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved... Oh wow someone beat me to this. :up:
Reply With Quote
Благодарность от:
blueperspective
  #3  
Old 02-19-2012, 04:47 PM
Kraxell's Avatar
Kraxell Kraxell is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent! I'll test it.
Reply With Quote
  #4  
Old 02-19-2012, 04:48 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't worry about it. Thank you.

Must have got lucky. Please let me know if you have any issues with it.
Reply With Quote
  #5  
Old 02-19-2012, 05:11 PM
deverill2010 deverill2010 is offline
 
Join Date: Jan 2011
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Birdofprey your a legend!

Is there anyway to make the username box 'more' part of the quick reply and ontop?

Look at my image quick, is there anyway to make it look like quick 2, just so it looks all together. I originally missed the username box at first lol.

ETA: Works fine for me!!!
Attached Images
File Type: jpg quick.jpg (26.1 KB, 0 views)
File Type: jpg quick2.jpg (30.9 KB, 0 views)
Reply With Quote
Благодарность от:
BirdOPrey5
  #6  
Old 02-19-2012, 05:20 PM
blueperspective blueperspective is offline
 
Join Date: Sep 2011
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh My Gosh... Bird ftw!!! )
Lemme test it. Will come back with comments if needed.
Thanks a lot for listening to our prayer!
Reply With Quote
Благодарность от:
BirdOPrey5
  #7  
Old 02-19-2012, 05:22 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by deverill2010 View Post
Birdofprey your a legend!

Is there anyway to make the username box 'more' part of the quick reply and ontop?

Look at my image quick, is there anyway to make it look like quick 2, just so it looks all together. I originally missed the username box at first lol.

ETA: Works fine for me!!!
That was my first thought for placement as well but in my testing trying to add any code over there destroyed the layout of the rest of the quick reply box... I will put some more time into trying to add this alternate location.
Reply With Quote
  #8  
Old 02-19-2012, 05:25 PM
deverill2010 deverill2010 is offline
 
Join Date: Jan 2011
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Even if its not directly within the quick reply box (which would be ace), even below the reply to thread button would be better I reckon as it's more in your eye line ifyswim.

ETA: nominated for MOTM and a donation made as it's just ace!
Reply With Quote
  #9  
Old 02-19-2012, 05:53 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by deverill2010 View Post
Even if its not directly within the quick reply box (which would be ace), even below the reply to thread button would be better I reckon as it's more in your eye line ifyswim.

ETA: nominated for MOTM and a donation made as it's just ace!
Much appreciated. :up:

I am working on getting this to look better but if you want to see where I'm going go to your Plugin Manager, find this product, and edit the plugin on the showthread_complete hook.

Erase all the code there and replace it with:

PHP Code:
global $vbulletin$vbphrase;

if (
$vbulletin->options['bop5qrg_en'] AND $vbulletin->options['bop5qrg_auto'] AND $vbulletin->options['bop5username'])
{
  
$usrnmcode '<div style="margin-left: 10px;"><label for="username">'.$vbphrase['bop5qrg_guest_user_name'].':</label><input type="text" class="primary textbox" id="username" name="username" value="'.addslashes($vbulletin->options['bop5qrg_username']).'" tabindex="1" /><p class="description"><a href="javascript://" onclick="return highlight_login_box();">'.$vbphrase['click_here_to_log_in'].'</a></p><br />';

  
$human_verify str_replace ('rightcol'''$human_verify);

  
//$find = '<input type="hidden" name="poststarttime" value="" />';
  
$find '<div class="wysiwyg_block">';

  
  if (
$vbulletin->options['hv_type'] == "Recaptcha")
  {
       
$human_verify str_replace ("'""\\'"$human_verify);
  }
 
  
$replace $find .'<table class="formcontrols" padding="10" style="border-bottom: 0px;" border="0" width="100%"><tr><td width="200" VALIGN="top">' $usrnmcode .'</td><td VALIGN="top">' .  $human_verify '</td></tr></table>';

  
$vbulletin->templatecache['SHOWTHREAD'] = str_replace($find$replace.$find$vbulletin->templatecache['SHOWTHREAD']);


If you want to go back to how it was just re-install the mod with allow overwrite set to yes.
Reply With Quote
  #10  
Old 02-19-2012, 06:06 PM
deverill2010 deverill2010 is offline
 
Join Date: Jan 2011
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
global $vbulletin$vbphrase;

if (
$vbulletin->options['bop5qrg_en'] AND $vbulletin->options['bop5qrg_auto'] AND $vbulletin->options['bop5username'])
{
  
$usrnmcode '<br /><div style="margin-left: 10px;"><label for="username">'.$vbphrase['bop5qrg_guest_user_name'].':</label><input type="text" class="primary textbox" id="username" name="username" value="'.addslashes($vbulletin->options['bop5qrg_username']).'" tabindex="1" /><p class="description"><a href="javascript://" onclick="return highlight_login_box();">'.$vbphrase['click_here_to_log_in'].'</a></p>';

  
$human_verify str_replace ('rightcol'''$human_verify);

  
//$find = '<input type="hidden" name="poststarttime" value="" />';
  
$find '<div class="wysiwyg_block">';

  
  if (
$vbulletin->options['hv_type'] == "Recaptcha")
  {
       
$human_verify str_replace ("'""\\'"$human_verify);
  }
 
  
$replace $find .'<table class="formcontrols" padding="10" style="border-bottom: 0px;" border="0" width="100%"><tr><td width="200" VALIGN="top">' $usrnmcode .'</td><td VALIGN="top">' .  $human_verify '</td></tr></table>';

  
$vbulletin->templatecache['SHOWTHREAD'] = str_replace($find$replace.$find$vbulletin->templatecache['SHOWTHREAD']);



I've swapped a <br/> around which makes it sit nice and neatly in within the box evenly. It doesn't like my ESB mod though, I am going to disable that on threads and see whats the outcome.
Reply With Quote
Reply

Thread Tools

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 01:27 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05457 seconds
  • Memory Usage 2,365KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (5)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (6)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete