PDA

View Full Version : Show Thread Enhancements - Register to view all text


Adrian.
18 Sep 2006, 12:44
Register to view all text
By Adrian at Development Chat (developmentchat.com)
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:

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

Replace with:
<!-- 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:
<!-- 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:
<!-- 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

Snake
18 Sep 2006, 13:14
Excellent. I'll check this out soon.

Rich
18 Sep 2006, 13:17
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.

Holidazed
18 Sep 2006, 14:31
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.

bitHacker
18 Sep 2006, 17:52
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!

Adrian.
18 Sep 2006, 19:16
Thanks.

Have taken the suggestions into consideration.
Hopefully will update it tomorrow. :)

redlabour
18 Sep 2006, 23:21
Fake Hacks to get Users registered destroys Trust in the Community from the beginning. Terrible..... :down:

Neal-UK
19 Sep 2006, 03:10
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.

Calash
19 Sep 2006, 20:38
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.

Necrosaro420
02 Nov 2006, 02:05
Does this work with 3.6.2??? Thanks~!

adonfun
28 Dec 2006, 01:42
I m very interested in this mod, but not to trick them.

Isn't it possible to really only show a max number of characters or lines of a post for quests?

Smoothie
28 Dec 2006, 03:45
Thats why the limit guest viewing mod is a better option.

adonfun
28 Dec 2006, 13:05
Thats why the limit guest viewing mod is a better option.

You mean the mod vS-Hide Hack Resurrection from psionic vision?

ForumOrtami
30 Dec 2006, 20:16
how is to set max number of characters?

Smoothie
30 Dec 2006, 23:02
You mean the mod vS-Hide Hack Resurrection from psionic vision?No, the one by TedS, LGV, same guy who made welcome headers.

ForumOrtami
08 Jan 2007, 13:16
how is to set max number of characters?

??????????????????????????? :(

PinkDaisy
16 Jan 2007, 22:05
Okay... I have a question. I'd love this hack but where I am suppose to add the first template edit I have:

<!-- message -->
<if condition="$post['field26'] != '' OR $post['field27'] != ''">

<font style="font-family:$post[field27]; color:$post[field26];">$post[message]</font>

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

I have this because I have a hack that allows my users to chose their font/color in each posts. Is there a way I can do this without messing up that hack ???

Thanks in advance!!!

PinkDaisy
17 Jan 2007, 20:29
Anyone know what I can do ???

PinkDaisy
25 Jan 2007, 18:37
No one knows how I can do this ???

bahrame
18 Feb 2007, 18:36
Daddy likes

bahrame
18 Feb 2007, 18:39
Import the .xml
links
help
Import the .xml links
iran

Kap O
10 Mar 2007, 00:36
Good Hack!..

YeşiLMeN
11 Mar 2007, 01:19
Import the .xml
links
help
Import the .xml links
iran
open notepad. Save as .xml
-- import.

Max characters?

ngocha85
17 Mar 2007, 18:52
Find:


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

<!-- Post extension -->
<div id="post_message_$post[postid]">
$post[message]
<if condition="$show['guest'] && ($vboptions['rtv_enabled'] == 1)">
<div class="smallfont">
<a href="register.php">Register</a> to view full text.
</div>
</if>
</div>
<!-- / Post extension -->

Dannyloski
06 Sep 2007, 19:48
Interested in this, but I would want it to actually show limited amounts of the Message Text, rather than lying about it ... Anyone get that to work?

shervin_dvb
15 Dec 2008, 10:29
HI
How is to set max number of characters?

shervin_dvb
17 Dec 2008, 14:27
HI
How is to set max number of characters?HI
How is to set max number of characters?