vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Adding EMAIL THIS THREAD button (https://vborg.vbsupport.ru/showthread.php?t=167471)

edward hamilton 01-10-2008 10:59 PM

Adding EMAIL THIS THREAD button
 
One of the best ways to get a forum noticed is for members to email threads to others.

Is there a hack to add a button next to the left of THREAD TOOLS drop down menu that would email this open thread to a friend?

I believe I've found the code but don't know where to put it in the showthread.php

or maybe I'm way off course.

Thanks for any help.

Marco van Herwaarden 01-11-2008 07:08 AM

That is default vBulletin functionality. Thread Tools -> Email this page

edward hamilton 01-11-2008 03:28 PM

Thanks, I see it there.

The problem is that unless you spend some time clicking all the links on a page you won't see it. I've seen EMAIL THIS THREAD / POST on the toolbar on some other forums which is much easier for the link to get noticed.

I just checked and it was an Invision board which had a sticky link on the nav bar above the post.

Marco van Herwaarden 01-11-2008 03:52 PM

You could put that link on any place on showthread.php.

edward hamilton 01-11-2008 06:42 PM

Thank you. I didn't want to edit the showthread.php file and then upload it, though that would have been easier, I found that file in

Styles and Templates > Style Manager > All Style Options > Edit Templates > Show Threads Template > SHOWTHREAD

then added the code in red

<!-- toolbar -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
<td class="tcat" width="100%">
<div class="smallfont">
<if condition="$show['firstunreadlink']">
<a href="$firstunread"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[view_first_unread]" border="0" /></a>
<a href="$firstunread"><strong>$vbphrase[view_first_unread]</strong></a>
</if>
&nbsp;
</div>
</td>

<!-- ADDED EMAIL THIS PAGE -->
<td class="vbmenu_control" >

<a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$threadid" rel="nofollow">$vbphrase[email_this_page]</a>

</td>


<td class="vbmenu_control" id="threadtools" nowrap="nowrap">
<a href="$show[nojs_link]#goto_threadtools"<if condition="is_browser('ie')"> accesskey="3"</if>>$vbphrase[thread_tools]</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadtools"); </script></if>
</td>


Later, I'll add another link EMAIL THIS POST but that will require a little more work.

mystic10 01-11-2008 07:18 PM

if possible keep us posted so we can learn how to do it as well..thanks for the share

edward hamilton 01-11-2008 08:54 PM

Adding the phrase isn't hard.
Admincp > Languages & Phrases > Phrase manager > Add Phrase

add email_this_post as a variable
and Email this Post as the text.

But I'm having difficulty finding which template controls the line above the post where the DATE is on the left and the post count is on the right. I want to add this link in that bar.

Right now, you have to go to the top of the page to find the EMAIL THIS THREAD link.

But to my surprise I've got a couple of pm's thanking me for that link this afternoon. It was just too hard to find.


All times are GMT. The time now is 01:15 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.00954 seconds
  • Memory Usage 1,722KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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