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

Reply
 
Thread Tools
Register to reply button in postfoot for guests Details »»
Register to reply button in postfoot for guests
Version: 1.00, by Jack12 Jack12 is offline
Developer Last Online: Nov 2017 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.6 Rating:
Released: 08-27-2010 Last Update: Never Installs: 119
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

This is just a simple little edit that changes the reply with quote button, to a register to reply button that points to a register page instead of a no permissions page.

INSTRUCTIONS: Open postbit or postbit_legacy template depending on your forum setup.

Find:
Code:
<vb:if condition="$post['replylink']">
Replace with:
Code:
<vb:if condition="$post['replylink'] AND $show['member']">
Find:
Code:
<vb:if condition="$show['multiquote_post']"><span class="seperator">&nbsp;</span></vb:if>
</vb:if>
Add After:
Code:
<vb:if condition="$show['guest']">
<a id="qrwq_5837" class="newreply" href="http://YOUR FORUM URL/register.php" rel="nofollow"><img id="quoteimg_5837" src="clear.gif" alt="Reply With Quote" />  Register To Reply</a>
</vb:if>
Replace "YOUR FORUM URL" with your forum path, save template and you should be all good to go.

I am by no means an experience coder, but can find my way around php. If you have any problems please let me know and I will do my best to help. Enjoy.

You can see it working here: http://forums.epczone.net

Screenshots

File Type: jpg reply.jpg (3.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 09-03-2010, 09:21 AM
Jack12's Avatar
Jack12 Jack12 is offline
 
Join Date: May 2010
Location: Western Australia
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gagan007 View Post
I am also using 4.0.6 and new to VB though not to php (came a long way from phpBB)...so I wanted to ask whether I should edit postbit or postbit_legacy as I can find the code in both of 'em
I came from phpbb to vbulletin aswell, but I'm learning most of my php coding in vbulletin.

The file you edit depends on which postbit you use for your forum.

Options -> Style and Language Settings

If you have "Use Legacy (Vertical) Postbit Template" set to yes then you need to edit the postbit_legacy template, if not you need to edit the postbit template.
Reply With Quote
  #23  
Old 10-01-2010, 08:35 PM
goran424's Avatar
goran424 goran424 is offline
 
Join Date: Feb 2010
Location: Thailand
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jack12 View Post
Hi, I saw you were running 4.0.2 so I tested it and there is one little change in the code you need to search for, I'll put all the instructions here.

Find
Code:
<vb:if condition="$post['replylink']">
Replace with
Code:
<vb:if condition="$post['replylink'] AND $show['member']">
Find
Code:
alt="{vb:rawphrase multi_quote_this_message}" />&nbsp;</a> 
</vb:if>
Add After
Code:
<vb:if condition="$show['guest']">
<a id="qrwq_5837" class="newreply" href="http://YOUR FORUM URL/register.php" rel="nofollow"><img id="quoteimg_5837" src="clear.gif" alt="Reply With Quote" />  Register To Reply</a>
</vb:if>
You should be all good to go after that.

Also, thanks for all the kind words guys
Thanks, it works now.
Installed and rated 5*!
Reply With Quote
  #24  
Old 10-05-2010, 11:27 AM
luan7749's Avatar
luan7749 luan7749 is offline
 
Join Date: Apr 2008
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

GOOD JOB ! Thank BRO
Demo : http://tuoitrenangdong.net/forum/fif...lai-55619.html
Reply With Quote
  #25  
Old 10-07-2010, 04:43 PM
grunty1 grunty1 is offline
 
Join Date: Apr 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed! Like it, simple and useful little mod.
Reply With Quote
  #26  
Old 10-08-2010, 04:30 AM
Jack12's Avatar
Jack12 Jack12 is offline
 
Join Date: May 2010
Location: Western Australia
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're very welcome to everyone who said thanks.

Glad to see people are finding it useful
Reply With Quote
  #27  
Old 10-10-2010, 11:52 PM
mondiuk mondiuk is offline
 
Join Date: Jun 2009
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is grait it works on 4.0.7vb aswell. grait jobe welldone..
Reply With Quote
  #28  
Old 10-11-2010, 04:43 AM
ChangeFive ChangeFive is offline
 
Join Date: Feb 2010
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Simple, but very useful. Thanks!
Reply With Quote
  #29  
Old 10-23-2010, 08:03 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Neat idea! Thanks.

Installed
Reply With Quote
  #30  
Old 02-17-2011, 04:06 PM
Dennis Kaczor Dennis Kaczor is offline
 
Join Date: Oct 2005
Location: Toronto
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This does not seem to work with 4.1.1 as it removes the reply and does not show the Register to Reply, revert it back and get the Reply button back. Anyone have this working on 4.1.1 at this time?

Got it to work, it was in a mesage below that I followed and it work.

Look to the next line in your template and you will see that it is </vb:if>. Start a new line directly under that and enter the code I specified in the first post.
Reply With Quote
  #31  
Old 02-17-2011, 04:55 PM
Randomm Randomm is offline
 
Join Date: Jul 2010
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great on 4.0.8 p1
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 03:11 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.05652 seconds
  • Memory Usage 2,336KB
  • Queries Executed 28 (?)
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
  • (8)bbcode_code
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)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_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_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