Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

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
  #52  
Old 08-29-2012, 08:15 AM
deverill2010 deverill2010 is offline
 
Join Date: Jan 2011
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I'll uninstall your mod then. As the sidebar is more useful. Thanks anyway.
Reply With Quote
Благодарность от:
BirdOPrey5
  #53  
Old 09-03-2012, 06:53 PM
wilford brimley wilford brimley is offline
 
Join Date: Apr 2012
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod. two questions you can help me with. Im already trying to edit it but havent got it yet.

1. where it says Random question; how cna i make it formated like "random question: blahblahblah" insteaf of the question below? it throws off the box allignments.

edit: see it makes the boxes out of line also the surrounding color is not lined up, i think due to the java link under the username box.




2. How cna I make a java so it auto fills the username if you have added your own? if you add a custom name you have to do it each time. this might lead to the same guest using multiple names. if they use one i cna combine them if they reigster pretty easily.
Reply With Quote
  #54  
Old 09-03-2012, 10:29 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wilford-

1) There is no way to put Random Question on one line- that code is supplied by the vBulletin human verify function and it would be a lot of extra work to modify it.

What you can do is add a blank line above "Guest User Name:" so the white boxes line up.

To do that edit the plugin SHOWTHREAD Template Edit

Find the line:

Code:
  $usrnmcode = '<div class="blockrow"><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 />';
And add the code in red:

Code:
  $usrnmcode = '<div class="blockrow"><br /><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 />';
That will force it down a line.

As for issue #2 I would guess something like that would have to be stored in a cookie but it's not something I intend to add to this mod.
Reply With Quote
  #55  
Old 09-04-2012, 03:36 AM
wilford brimley wilford brimley is offline
 
Join Date: Apr 2012
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok. i fixed it. on the "humanverify_question" template

change
Code:
<label for="humanverify">{vb:rawphrase random_question}:</label>
		<div class="rightcol">
			<p class="description">{vb:raw humanverify.question}</p>
to
Code:
<label for="humanverify">{vb:rawphrase random_question}:&nbsp{vb:raw humanverify.question}</label>
		<div class="rightcol">
			<p class="description"></p>
dont know how it would look if you have a really long question. it looks fine on the quick reply mod. it just spreads across the bottom in a long sentence. in the registration options instead of being under the box it is jsut right besides the "Random Question:" and flows down in that column. it doenst break the layout but it doesnt look as great on registration. i have my reg simplified but you can see it


http://i.imgur.com/SeX0L.png

http://i.imgur.com/6rPbQ.png

so you can see, unless you have a paragraph or soemthing for the question that it would flow across the bottom well.

i think ill try to change the phrase "random question" to "human?" or something like that.


i dont know how to make that store in cookies but if i can find out online ill let you know. thanks.
Reply With Quote
  #56  
Old 09-04-2012, 04:58 AM
wilford brimley wilford brimley is offline
 
Join Date: Apr 2012
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did some edits. made it so the boxes are lined up. moved the "click to login" to right about the previous/next thread
http://i.imgur.com/KJ7yu.png

I couldnt get it to work with the name of the phrase in the javescript so i just changed the code. i put
Code:
<vb:if condition="$show['guest']"><center><a href="javascript://" onclick="return highlight_login_box();">Click here to login</a></center></vb:if>
right above <vb:if condition="$show['next_prev_links']"> in showthread.

seems to be working. Im banging my head against the wall trying to figure out how to make the username box autofill last entry with javascript. i dont really know how to do all this ha
Reply With Quote
  #57  
Old 09-24-2012, 07:08 PM
dougdirac's Avatar
dougdirac dougdirac is offline
 
Join Date: Nov 2011
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this mod work for Blogs as well? That's the one place where I'd like to allow guests to comment and the exiting "Leave comment" link is too easy to miss.
Reply With Quote
  #58  
Old 09-26-2012, 07:39 AM
artscripts artscripts is offline
 
Join Date: Aug 2011
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by deverill2010 View Post
BOP I'm using version 0.981 and have just realised that it conflicts with the everywhere sidebar mod - https://vborg.vbsupport.ru/showpost....postcount=1827

I know it's deffo your mod as I disabled and turned on every single one till I found the conflict. Anyway to fix this as i really want to use both side by side. Ty.
I solved this problem by removing the code $ find, happened like this

Code:
 $replace = '<table  class="formcontrols" padding="10" style="border-bottom: 0px;" border="0" width="100%"><tr><td width="234" VALIGN="top">' . $usrnmcode .'</td><td VALIGN="top">' .  $human_verify . '</td></tr></table>';
Reply With Quote
  #59  
Old 09-27-2012, 03:08 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 dougdirac View Post
Does this mod work for Blogs as well? That's the one place where I'd like to allow guests to comment and the exiting "Leave comment" link is too easy to miss.
It does not.
Reply With Quote
  #60  
Old 12-01-2012, 04:42 PM
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@BOP5 : Great Mod. In future, can you add feature so that all NON-Link post are directly accepted while Guest posting links are moderated .

Edit : I guess, if I have set rules in vbulletin, then it follows and puts in Moderation queue.
Reply With Quote
  #61  
Old 12-02-2012, 06:59 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 sivaganeshk View Post
@BOP5 : Great Mod. In future, can you add feature so that all NON-Link post are directly accepted while Guest posting links are moderated .

Edit : I guess, if I have set rules in vbulletin, then it follows and puts in Moderation queue.
You are correct, this is done though usergroup rules to always go to moderation for unregistered users.

Please "Mark as Installed."
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 12:20 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.05036 seconds
  • Memory Usage 2,357KB
  • 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
  • (6)bbcode_code
  • (3)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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