Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Email to Friend, Print Version, Subscribe Thread in Postbit/Postbit Legacy Details »»
Email to Friend, Print Version, Subscribe Thread in Postbit/Postbit Legacy
Version: 1.00, by Neutral Singh Neutral Singh is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.x Rating:
Released: 01-25-2009 Last Update: Never Installs: 40
Template Edits
Re-useable Code Translations  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-28-2009, 01:43 AM
as7apcool as7apcool is offline
 
Join Date: Feb 2009
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

plz pm for details
Reply With Quote
  #13  
Old 03-01-2009, 07:32 AM
powersilie powersilie is offline
 
Join Date: Dec 2008
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

greez
Karin
Reply With Quote
  #14  
Old 03-02-2009, 07:33 PM
Domainer Domainer is offline
 
Join Date: Feb 2009
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank You added
Reply With Quote
  #15  
Old 03-06-2009, 06:24 PM
dascrow dascrow is offline
 
Join Date: Mar 2007
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you! This is almost exactly what I've been looking for. How would I force a certain name/email address into the fields?
Reply With Quote
  #16  
Old 03-06-2009, 07:00 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cracking little mod mate !
Reply With Quote
  #17  
Old 03-06-2009, 07:27 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Removed the <u> and </u> from email to friend
Reply With Quote
  #18  
Old 03-06-2009, 07:40 PM
dascrow dascrow is offline
 
Join Date: Mar 2007
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #19  
Old 03-06-2009, 07:49 PM
DobieGillis? DobieGillis? is offline
 
Join Date: Feb 2009
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice Mod, thanks!
Reply With Quote
  #20  
Old 03-08-2009, 01:43 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyway of limiting this to first post Please.
Reply With Quote
  #21  
Old 03-12-2009, 02:03 PM
Neutral Singh's Avatar
Neutral Singh Neutral Singh is offline
 
Join Date: Sep 2004
Location: Sikh Philosophy Network
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:32 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06127 seconds
  • Memory Usage 2,323KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete