Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Register to view all text Details »»
Register to view all text
Version: 1.0.1, by Adrian. Adrian. is offline
Developer Last Online: Feb 2014 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.1 Rating:
Released: 09-17-2006 Last Update: Never Installs: 32
Template Edits
 
No support by the author.

Register to view all text
By Adrian at Development Chat
Tested on vB3.6.1, should work on 3.5.x/3.6.0 i think. : )
Version 1.0.1


Hey,
This is a simple little "trick", to think guests are only viewing part of the text.

All this does is add "Register to view all the text in posts. : )" under the actual post text.

All the post text is shown however, the message is "fake", but will hopefully trick your users into thinking it's real and therefore encouraging them to register.

It should look more convincing via the "..." at the end of the posts, to show the text has being cut off.

Installing
Import the product-rtv.xml file.
Go to Options > Thread Display Options (showthread).
Enable "Register to view all text" (Should be enabled by default)

Template changes

Open Postbit > postbit/postbit_lagacy
(Whichever you use, the template edit is the same for both templates)

Find:

HTML Code:
		<!-- message -->
		<div id="post_message_$post[postid]">$post[message]</div>
		<!-- / message -->
Replace with:
HTML Code:
<!-- Post extension -->

	<if condition="$vboptions['rtv_enabled'] == 0">

		<!-- message -->
		<div id="post_message_$post[postid]">$post[message]</div>
		<!-- / message -->
		
</if>

<if condition="$vboptions['rtv_enabled'] == 1">
	<if condition="$show['guest']">
		<div id="post_message_$post[postid]">$post[message]...</div><div class="smallfont"><a href="register.php">Register</a> to view all the text in posts. :)</div>

<else />

		<!-- message -->
		<div id="post_message_$post[postid]">$post[message]</div>
		<!-- / message -->
</if>
</if>

<!-- / Post extension -->
Save, Done.

Upgrading
If you are upgrading from 1.0.0.
Import the .xml file.
Make the following template edit

Find:
HTML Code:
<!-- Post extension -->
		<if condition="$show['guest']">
		<div id="post_message_$post[postid]">$post[message]...</div><div class="smallfont"><a href="register.php">Register</a> to view all the text in posts. :)</div>
		
		<else />
		
		<!-- message -->
		<div id="post_message_$post[postid]">$post[message]</div>
		<!-- / message -->
		
		</if>
		<!-- / Post extension -->
Replace with:
HTML Code:
<!-- Post extension -->

	<if condition="$vboptions['rtv_enabled'] == 0">

		<!-- message -->
		<div id="post_message_$post[postid]">$post[message]</div>
		<!-- / message -->
		
</if>

<if condition="$vboptions['rtv_enabled'] == 1">
	<if condition="$show['guest']">
		<div id="post_message_$post[postid]">$post[message]...</div><div class="smallfont"><a href="register.php">Register</a> to view all the text in posts. :)</div>

<else />

		<!-- message -->
		<div id="post_message_$post[postid]">$post[message]</div>
		<!-- / message -->
</if>
</if>

<!-- / Post extension -->
Upgrade Done.

If you installed this basic mod', please click Install.
This may be basic, but i'm learning.

Thanks.

Adrian

Show Your Support

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

Comments
  #2  
Old 09-18-2006, 11:14 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent. I'll check this out soon.
Reply With Quote
  #3  
Old 09-18-2006, 11:17 AM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I just wanted to post a reminder that some users will get a little ticked off if they realize this was just a manipulative tactic to get them to join. Personally, I think that if you need to lie to people to get them to join your site, your site likely needs some work.
Reply With Quote
  #4  
Old 09-18-2006, 12:31 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I am sure this could be modified to show only the first 2 lines of a post and then display this. Then it would not be a lie. Also, you might want to modify it to say "Register or Login to view all of this post" or something like that. Other that this, it is an awesome idea.
Reply With Quote
  #5  
Old 09-18-2006, 03:52 PM
bitHacker bitHacker is offline
 
Join Date: Sep 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

have an idea, this hack would be great if it would be usergroup based, since members can register and not activate their account, so that would be nice if it was usergroup based.

other then that, great hack!
Reply With Quote
  #6  
Old 09-18-2006, 05:16 PM
Adrian.'s Avatar
Adrian. Adrian. is offline
 
Join Date: Oct 2005
Location: South Yorkshire
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.

Have taken the suggestions into consideration.
Hopefully will update it tomorrow.
Reply With Quote
  #7  
Old 09-18-2006, 09:21 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fake Hacks to get Users registered destroys Trust in the Community from the beginning. Terrible..... :down:
Reply With Quote
  #8  
Old 09-19-2006, 01:10 AM
Neal-UK's Avatar
Neal-UK Neal-UK is offline
 
Join Date: Feb 2004
Location: Lancashire, England
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by redlabour
Fake Hacks to get Users registered destroys Trust in the Community from the beginning. Terrible..... :down:
I just realised what this does.....removed.

I thought it actually limited the amount of text shown.
Reply With Quote
  #9  
Old 09-19-2006, 06:38 PM
Calash's Avatar
Calash Calash is offline
 
Join Date: Jun 2006
Location: East Coast, USA
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am a bit new at VB, but it does not seem like it would be that hard to make this limit the actual text shown.

If I understand how this works you would just have to put some code at the hook before the post is displayed that would limit the output, ie $short_message = substr (0,200,$post[message]);

Then just use $short_message in the guest view.
Reply With Quote
  #10  
Old 11-02-2006, 12:05 AM
Necrosaro420 Necrosaro420 is offline
 
Join Date: Apr 2004
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work with 3.6.2??? Thanks~!
Reply With Quote
Reply

Thread Tools

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:43 PM.


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.08109 seconds
  • Memory Usage 2,303KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete