vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Show Thread Enhancements - Email to Friend, Print Version, Subscribe Thread in Postbit/Postbit Legacy (https://vborg.vbsupport.ru/showthread.php?t=203105)

Neutral Singh 01-25-2009 10:00 PM

Email to Friend, Print Version, Subscribe Thread in Postbit/Postbit Legacy
 
1 Attachment(s)
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

Code:

Find:

       
Quote:

       
       
               
       
       

                       

                       
                                <if condition="$post['title']"><strong>$post[title]</strong></if>
                       
                       

               

Add Below:

       
Quote:

       
       
               
       
       

                       

                       
                                >>&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
:

Code:

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 01-26-2009 02:12 PM

Any Demo or screenshot. THanks

tei727 01-26-2009 03:43 PM

how would you limit this to the first post only?

lazydesis 01-26-2009 04:48 PM

screenshots pls

TandyServices 01-26-2009 05:44 PM

1 Attachment(s)
I installed works great. I attached my screen shot of it..

Deviant K1 01-26-2009 06:42 PM

**INSTALLED**

Works great on our boards!

Thanks :D

Vinyljunky 01-27-2009 08:42 AM

Simple yet effective!

Thanks

VJ

powersilie 02-26-2009 06:46 AM

Quote:

Originally Posted by tei727 (Post 1725315)
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 02-26-2009 08:35 AM

great stuff !! installed :D

sunnycher 02-28-2009 01:23 AM

how do you get it to the bottom of the posts instead of the top?

as7apcool 02-28-2009 01:43 AM

plz pm for details

powersilie 03-01-2009 07:32 AM

Is that Mod dead?
Why don't we get any answer?

greez
Karin

Domainer 03-02-2009 07:33 PM

Thank You added

dascrow 03-06-2009 06:24 PM

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 03-06-2009 07:00 PM

Cracking little mod mate !

TimberFloorAu 03-06-2009 07:27 PM

Removed the <u> and </u> from email to friend :)

dascrow 03-06-2009 07:40 PM

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? 03-06-2009 07:49 PM

nice Mod, thanks!

TimberFloorAu 03-08-2009 01:43 AM

Anyway of limiting this to first post Please.

Neutral Singh 03-12-2009 02:03 PM

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 03-12-2009 02:44 PM

very useful! Thanks!

nascartr 03-12-2009 02:57 PM

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 03-12-2009 03:24 PM

This also shows up in PM's without the text, only the images and no link either. Kinda out of place.

nascartr 03-12-2009 03:40 PM

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 04-17-2009 03:45 PM

thank you --teşekk?r ederim ben yaptım ama bu biraz daha fazla :)

vbob 06-18-2009 08:24 PM

1 Attachment(s)
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:


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:

Attachment 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:


Code:

<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:

Attachment 100754

ludachris 07-23-2009 06:31 PM

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 08-09-2009 01:39 PM

Thanks, great feature. I used vbob's version.

bmckinley 09-03-2009 02:19 AM

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_foru...%20buttons.JPG

In the postbit or postbit_legacy template, find the following:

Code:

<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)

Code:


&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 09-03-2009 07:53 AM

great,,,
thank u


All times are GMT. The time now is 05:03 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.01357 seconds
  • Memory Usage 1,807KB
  • 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
  • (6)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete