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 - retweet thread (https://vborg.vbsupport.ru/showthread.php?t=221510)

gordietbh 01-13-2010 10:26 PM

if you use the following:

Code:

<if condition="!$GLOBALS['FIRSTPOSTID']">
<span style="float: left;" class="smallfont"><script type="text/javascript">
tweetmeme_style = 'compact';
tweetmeme_source = 'TwitterUsername';
tweetmeme_url = 'http://www.yourURL.com/vb/showthread.php?t=$thread[threadid]';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></span>
</if>

it will only display the link for the first post in each thread.

setting "showthread.php?t=$thread[threadid]" will use the thread ID for each twitter post instead of the URL of the page being viewed.

The benefits of this are that if somebody views a thread by showthread.php?p=1234 or showpost.php?p=1234 they will all get classified under the same tweet. Otherwise you will have different counts depending on which URL a user uses to view the page.

gordietbh 01-13-2010 10:29 PM

Quote:

Originally Posted by Loco.M (Post 1888132)
Some of my members have been asking, but does anyone know the correct condition to not show the tweetme button in pm's?
since it would be pointless to have it in pms :D

You can wrap it in this:

Code:

<if condition="!$post['forwardlink']"></if>

a9eel 01-14-2010 03:22 PM

thanks

DoubleGlasses 02-13-2010 06:47 PM

Will this be made available for Vbulletin 4.0?

MagicThemeParks 02-13-2010 10:30 PM

Quote:

Originally Posted by gordietbh (Post 1954928)
You can wrap it in this:

Code:

<if condition="!$post['forwardlink']"></if>

That worked for me! Thanks! :)


All times are GMT. The time now is 01:51 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.01108 seconds
  • Memory Usage 1,726KB
  • 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
  • (3)bbcode_code_printable
  • (2)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
  • (5)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