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)

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 02:26 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.01211 seconds
  • Memory Usage 1,751KB
  • 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
  • (4)bbcode_code_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