PDA

View Full Version : Show Thread Enhancements - Email to Friend, Print Version, Subscribe Thread in Postbit/Postbit Legacy


Neutral Singh
26 Jan 2009, 02:25
Another simple yet useful template modification for the benefit of forum members. This shows Email to Friend, Print Version, Subscribe Thread in Postbit/Postbit Legacy:

Benefits:
1. More visibility to 'Email a Friend' alongside each about the topic... means more invitations, New Registrations!
2. Easy access to See Print version of the topic... more printouts more free publicity!
3. Easy access to Subscribe/unsubscribe option... members feel obliged!

Step 1. Edit Template: Postbit or Postbit_legacy


Find:
<if condition="$post['title']"><strong>$post[title]</strong></if>
Add Below:
>>&nbsp;&nbsp;
<img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" />&nbsp;&nbsp;<a href="printthread.php?$session[sessionurl]t=$post[threadid]" accesskey="3" rel="nofollow">$vbphrase[show_printable_version]</a>&nbsp;&nbsp;

<img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" />&nbsp;&nbsp;<u><a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$post[threadid]" rel="nofollow">$vbphrase[email_this_page]</a></u>&nbsp;&nbsp;

<if condition="$show['member']">
<img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" />&nbsp;&nbsp;
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;t=$post[threadid]" rel="nofollow">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$post[threadid]" rel="nofollow">$vbphrase[subscribe_to_this_thread]</a>
</if>
</if>


And for those who want this to show for only first post:

Warp the above code with the following conditional:

<if condition="$post[postcount] % $vboptions[maxposts] == 1">
put the above code here!
</if>
That's it!!

nJoy!!

cagbaazee
26 Jan 2009, 15:12
Any Demo or screenshot. THanks

tei727
26 Jan 2009, 16:43
how would you limit this to the first post only?

lazydesis
26 Jan 2009, 17:48
screenshots pls

TandyServices
26 Jan 2009, 18:44
I installed works great. I attached my screen shot of it..

Deviant K1
26 Jan 2009, 19:42
**INSTALLED**

Works great on our boards!

Thanks :D

Vinyljunky
27 Jan 2009, 09:42
Simple yet effective!

Thanks

VJ

powersilie
26 Feb 2009, 07:46
how would you limit this to the first post only?

I also think, only to the first post would be enough. I also would like it this way! By the way, a great Mod!

Thanks
Karin

cindy helmond
26 Feb 2009, 09:35
great stuff !! installed :D

sunnycher
28 Feb 2009, 02:23
how do you get it to the bottom of the posts instead of the top?

as7apcool
28 Feb 2009, 02:43
plz pm for details

powersilie
01 Mar 2009, 08:32
Is that Mod dead?
Why don't we get any answer?

greez
Karin

Domainer
02 Mar 2009, 20:33
Thank You added

dascrow
06 Mar 2009, 19:24
Thank you! This is almost exactly what I've been looking for. How would I force a certain name/email address into the fields?

TimberFloorAu
06 Mar 2009, 20:00
Cracking little mod mate !

TimberFloorAu
06 Mar 2009, 20:27
Removed the <u> and </u> from email to friend :)

dascrow
06 Mar 2009, 20:40
I still would like it to email, but not to a friend. To one of our writers. For example, if a thread is front page worthy, I want a users to be able to "Email this to the Editor". So this hack works perfect, but the user has to type in the email address every time. I just want the email address (editor@myforum.com) already there similar to the way the email subject is already filled in.

DobieGillisİ
06 Mar 2009, 20:49
nice Mod, thanks!

TimberFloorAu
08 Mar 2009, 01:43
Anyway of limiting this to first post Please.

Neutral Singh
12 Mar 2009, 15:03
For all those who want this to be shown in the first post only. Please read the instructions in the modification post. Thanks for appreciating.

Warm Regards
Aman Singh

nascartr
12 Mar 2009, 15:44
very useful! Thanks!

nascartr
12 Mar 2009, 15:57
The Subscribe to thread works on my site but once subscribed it doesn't allow you to unsubscribe nor does it give the option.

http://diecastcrazy.com/community/forums.php

nascartr
12 Mar 2009, 16:24
This also shows up in PM's without the text, only the images and no link either. Kinda out of place.

nascartr
12 Mar 2009, 16:40
Solved the PM problem by using the "if" condiitonal in the instructions post, just wish it would show for all posts without showing the images in PM's. Still can't figure out the Subscribe/Unsubscribe problem.

coskun6048
17 Apr 2009, 16:45
thank you --teşekkür ederim ben yaptım ama bu biraz daha fazla :)

vbob
18 Jun 2009, 21:24
Very useful mod.
Thank you. :-)
Installed...!!!
I modified a little the code to fit my needs. I changed it just to fit well in my forum (I removed the text next to the icons). ;-)


Here is the modified Code:


<div align=right>
<if condition="$post[postcount] % $vboptions[maxposts] == 1">

&nbsp;
&nbsp;
&nbsp;
&nbsp;

<a href="printthread.php?$session[sessionurl]t=$post[threadid]" accesskey="3" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt=" Show Printable Version]" border="0"/></a>

&nbsp;
&nbsp;
&nbsp;

<a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$post[threadid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="Email this Page to a Friend" border="0"/></a>

&nbsp;
&nbsp;
&nbsp;
<if condition="$show['member']">
<if condition="$show['subscribed']">

<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;t=$post[threadid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="Un-Subscribe from this Thread" border="0"/></a>

<else />

<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$post[threadid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="Subscribe to this Thread" border="0"/></a>

</if>
</if>
</if>
</div>

Here is the Result in my forum:

100753

I posted it in case someone is interested in removing the text next to the pictures too and use less space in his/her theme. :-)

What is strange to me is the fact that the "unsubscribe" code, seems that it is not working (at least in my forums). Either with the original code neither with the code I used (see above).
Also I would like to know where exactly is the correct spot in the template code to put the mod, so the 3 icon links can appear below the "Quote", "Multi Quote", "Reply" without a problem (at the bottom of the post).

Thanks a priori for your reply. :-)


EDIT: I Found the right spot inside the template I think...;-)

in "postbit_legacy" Search for:

<td colspan="2" class="postbit_bottom_right"><div style="background:url($stylevar[imgdir_misc]/post-br-r.gif);float:right;height:47px;width:10px;"></div>

After that put the mod code. :-)

Here are the results in my site:

100754

ludachris
23 Jul 2009, 19:31
Any way of modifying this so that each post will have an "email to friend" link, yet, forcing the link that shows up in the message of the email pointing to the post within the thread, instead of to the thread? This way, people could email specific posts to friends in very long threads. In a thread that is 20 pages long, I want people to be able to point to a specific post when they email to a friend.

Fergal C
09 Aug 2009, 14:39
Thanks, great feature. I used vbob's version.

bmckinley
03 Sep 2009, 03:19
Thanks for the Mod. Installed.

I did move it around a little by moving the code and changed the spacing a bit:

Here's what I got:

http://hearts4horses.net/member_forum/upload/images/misc/postbit%20buttons.JPG

In the postbit or postbit_legacy template, find the following:

<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px" align="$stylevar[right]">
&nbsp;


and insert this code below: (it's the same as the original, just added a couple of spaces)


&nbsp;&nbsp;
<img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" />&nbsp;<a href="printthread.php?$session[sessionurl]t=$post[threadid]" accesskey="3" rel="nofollow">$vbphrase[show_printable_version]</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" />&nbsp;<u><a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$post[threadid]" rel="nofollow">$vbphrase[email_this_page]</a></u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<if condition="$show['member']">
<img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" />&nbsp;
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;t=$post[threadid]" rel="nofollow">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$post[threadid]" rel="nofollow">$vbphrase[subscribe_to_this_thread]</a>
</if>
</if>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

Log on
03 Sep 2009, 08:53
great,,,
thank u