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?


All times are GMT. The time now is 06:57 AM.

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.01079 seconds
  • Memory Usage 1,737KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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