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!

Merjawy 08-30-2010 01:07 AM

Great idea.. I noticed a lot of new visitors don't understand these things and get mad when they get the notice (you don't have permission blah blah blah)

Thanks

Greight 08-30-2010 03:28 PM

Yes, great idea. Anyway to add a new phrase instead of editing the phrase in template?

Jack12 08-31-2010 04:23 AM

Quote:

Originally Posted by Greight (Post 2091615)
Yes, great idea. Anyway to add a new phrase instead of editing the phrase in template?

I wish I could help you there, but it will require somebody more experienced in php and vbulletin, I'm just learning as I go along and thought I would share a simple mod I did.

Keev 09-01-2010 09:24 AM

I tried with 4.06 and searching for them lines isn't found in the templates

ged 09-01-2010 10:31 AM

Neat and useful. Thanks. :)

Jack12 09-01-2010 10:51 AM

Quote:

Originally Posted by Keev (Post 2092361)
I tried with 4.06 and searching for them lines isn't found in the templates

I see, the code is there but I think I know why you're not able to find it.

The second part of code you need to find is actually 2 lines, and vbulletin will not find the code when entered all together.

Do a search for:
Code:

<vb:if condition="$show['multiquote_post']"><span class="seperator">&nbsp;</span></vb:if>

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.

Hopefully I've explained it well enough for you, but if you need any additional help, please don't hesitate to ask :)


Quote:

Originally Posted by ged (Post 2092392)
Neat and useful. Thanks. :)

Thanks, glad you like it :)

Greight 09-01-2010 04:18 PM

Thanks anyway. I hope you get skillfull soon enough in vB to help me out in this.

nomoreturn 09-01-2010 10:54 PM

installed on 4.0.6 and not working i try with postbit_legacy and postbit but not working
here's the link
http://www.mastdunya.com/showthread.php?t=2461

Jack12 09-02-2010 02:25 AM

Quote:

Originally Posted by nomoreturn@hotm (Post 2092629)
installed on 4.0.6 and not working i try with postbit_legacy and postbit but not working
here's the link
http://www.mastdunya.com/showthread.php?t=2461

I can't read your source code because you have right click disabled, and firebug isn't showing anything in the postfoot div. Although I have been having some issues with firebug lately.

Would you be able to PM me your postbit_legacy or postbit template code?

It's hard to troubleshoot when I can't see the code.

gagan007 09-03-2010 05:45 AM

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

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

Last_Zero 02-17-2011 07:11 PM

Thanks So Much Installed

archet1337 02-22-2011 04:54 AM

Installed and working great on 4.1.2. Thanks a lot!

I'm wondering if there is a way to get the "+ Reply to Thread" button to do the same?

ComoEstaEso-com 02-22-2011 11:31 PM

Running on 4.1.2, all is good.
Thank you for this!

I followed post #8 of this thread, and all is doing great.
THANKS! :)

CMSTemplateZ 02-25-2011 07:44 AM

Cheers see if this improves my sign up rates

BadgerDog 02-26-2011 01:47 PM

Installed with thanks ... :)

Note .. using vbulletin 4.04pl1 and used mod install instructions as outlined in Post #8. :up:

Regards,
Doug

Rofo 03-03-2011 07:52 PM

Nevermind, figured it out. Working on 4.1.1

Thanks!

Donkon 03-04-2011 02:43 PM

nm it works

merk_aus 03-16-2011 12:26 AM

installed no issues - thanks for taking the time, I just put register.php in the code rather than our entire forum domain and still works a treat.

Daisyboo 04-12-2011 02:19 PM

Quote:

Originally Posted by ComoEstaEso-com (Post 2165610)
Running on 4.1.2, all is good.
Thank you for this!

I followed post #8 of this thread, and all is doing great.
THANKS! :)

Me too thanks!

General Zod 05-01-2011 07:33 PM

installed and working on 4.1.3 good job


All times are GMT. The time now is 07:14 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.01327 seconds
  • Memory Usage 1,817KB
  • 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
  • (13)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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