The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Tweet-This (vBulletin Style) Details »» | |||||||||||||||||||||||||||||
Hello,
*First of all, this modification works quite easily. Insert the code and follow the steps, when you click the link which will appear in the first thread at the top right a fader box will appear at the lower right page of your screen where you can connect to Twitter to tweet that page. It is not 100% perfect, I think it might reflect better with an image though This is more a modification that I have made to my board from a (Tweet-it) application: http://pongsocket.com/tweet-it/ (I take no credit). Step 1: Admin Panel >> Style Manager >> Edit Templates >> Header I added this to the top of my header file, it seems to work whatever position it is inserted: Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="http://tweet-it.s3.amazonaws.com/tweet-it.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".tweet-this a").tweetIt({ animate: "fade", header: "Tweet The Sparrow!" }); // Something else $("tr.openclose a").click(function(){ $(this).parents("tr").hide(); $("tr.closed").show(); }); }) </script> Admin Panel >> Advertising >> Manage Ads >> Add New Add >> (DropDown) Thread >> First Box I titled mine "tweet", call it as you wish. Ad HTML >> I suck at code so do bare with me - Perhaps someone can code this up for me a little better than I can, I do apologise: Code:
<div style="float: left; padding: 0px 3px 0px 0px;"><img src="http://forums.speedysparrow.com/images/ads/arrow-retweet.png" /></div><div style="float: left; padding: 0px 25px 0px 0px;"><p class="tweet-this"><p class="tweet-this"><a href="javascript://">Tweet Thread!</a></p></div> That is it! EDIT: You can add this to your POSTBIT_LEGACY: Find: Code:
<a class="forwardpost" href="{vb:raw post.forwardlink}" rel="nofollow"><img src="{vb:stylevar imgdir_button}/reply_40b.png" alt="{vb:rawphrase forward_message}" /> {vb:rawphrase forward}</a></vb:if> Code:
<div style="float: right; padding: 0px 0px 0px 0px;"><p class="tweet-this"><p class="tweet-this"><a href="javascript://"><img src="http://forums.speedysparrow.com/images/retweet.png" />Re-Tweet This Topic!</a></p></div> ================================================== ============== You can edit the header code to change the name of the Tweet-Box Name ie. Please excuse my bad coding, I am not a developer and this is my first experience with this so if anyone can re-code correctly please do so. Test This: http://forums.speedysparrow.com/show...rrow-Promotion Select TWEET THREAD. ================================================== ============== EDIT 09/07/10: Use the following code to hide from PM's: Code:
<vb:if condition="THIS_SCRIPT == 'showthread'">Code Here</vb:if> Thank you, Sean Screenshots
Show Your Support
|
Comments |
#12
|
|||
|
|||
Hi guys... I can´t find the ADVERTISING option to paste the code, and where is the POSTBIT_LEGACY so I can edit ?
I think those steps are easy but I don´t know about programming so please help me. |
#13
|
|||
|
|||
As a person of lack of intelligence here, there has to be someone who can mimick this code surely to integrate it better in to a forum
Dargox, what version are you running? |
#14
|
||||
|
||||
PHP Code:
|
#15
|
|||
|
|||
Quote:
Thanks, Sean |
#16
|
|||
|
|||
I?m running the 4.0.3
|
#17
|
||||
|
||||
Quote:
Look at the start of the php file, under the block of copyright and stuff, there's a definition of "THIS_SCRIPT". showthread.php = showthread, private.php = private etc. The template conditional I gave will only activate if the page that the viewer is on is showthread.php (so, not private.php). |
#18
|
||||
|
||||
Mine looks like this? Any way to bump it up???
http://grab.by/grabs/c01c7f6d95cef17...9766cd8959.png |
#19
|
||||
|
||||
Read Above Post!
|
#20
|
||||
|
||||
|
#21
|
|||
|
|||
You can just add it into the showthread template.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|