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 09-03-2010 09:21 AM

Quote:

Originally Posted by gagan007 (Post 2093119)
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.

goran424 10-01-2010 08:35 PM

Quote:

Originally Posted by Jack12 (Post 2091135)
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*!

luan7749 10-05-2010 11:27 AM

GOOD JOB ! Thank BRO :D
Demo : http://tuoitrenangdong.net/forum/fif...lai-55619.html

grunty1 10-07-2010 04:43 PM

Installed! Like it, simple and useful little mod.

Jack12 10-08-2010 04:30 AM

You're very welcome to everyone who said thanks.

Glad to see people are finding it useful :)

mondiuk 10-10-2010 11:52 PM

This is grait it works on 4.0.7vb aswell. grait jobe welldone..

ChangeFive 10-11-2010 04:43 AM

Simple, but very useful. Thanks!

StarBuG 10-23-2010 08:03 AM

Neat idea! Thanks.

Installed

Dennis Kaczor 02-17-2011 04:06 PM

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.

Randomm 02-17-2011 04:55 PM

works great on 4.0.8 p1


All times are GMT. The time now is 01:41 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.01065 seconds
  • Memory Usage 1,734KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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