vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Register to reply button in postfoot for guests (https://vborg.vbsupport.ru/showthread.php?t=249485)

Jack12 08-27-2010 10:00 PM

Register to reply button in postfoot for guests
 
1 Attachment(s)
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

TheLastSuperman 08-28-2010 03:48 PM

Actually, a good idea, I've done this before (similar) but did not think to share so hats off from Supes :D.

Edit: Not marking as installed but I did vote, 5 stars for concept and implementation ;).

basilrath 08-28-2010 04:16 PM

I actually agree as its very simple and the fact that its "under the nose" can often be reason someone will register and reply.

Well thought..... less is more

YankForum 08-28-2010 08:57 PM

tnx installed

Trip 08-29-2010 10:50 AM

Agree w/TheLastSuperman. I'm not running vB4, but 5 stars for a great idea and share.

goran424 08-29-2010 01:52 PM

Would this work for all 4.x.x versions?

basilrath 08-29-2010 01:56 PM

cant see why not its straight forward code

Jack12 08-29-2010 03:19 PM

Quote:

Originally Posted by goran424 (Post 2091113)
Would this work for all 4.x.x versions?

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 :)

saadessa 08-29-2010 06:03 PM

reserved thank you

Strike3ForumsMH 08-29-2010 08:03 PM

Great simple idea. Thanks!


All times are GMT. The time now is 04:15 PM.

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.01037 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete