The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Digg.com System Integration Details »» | |||||||||||||||||||||||||
Well I haven't seen this posted yet so I'll give it a crack.
Digg.com will bring your site huge traffic, trust me. A friend and I made this where you can click "digg this" in a thread and then embed the "digg me" button in a thread. Screenshots are below. Admin CP -> Custom BB Code -> Add New BB Code Code:
Title: Digg Tag: digg Replacement: <script> digg_url = '{param}'; </script> <script src="http://digg.com/api/diggthis.js"></script> Example: [digg]http://digg.com/programming/Xfire_Game_Spoofing[/digg] Description: [digg]URL TO ARTICLE[/digg]. Allows you to enter a counter for digg. Button Image: You can borrow mine. http://www.zomgstuff.net/forum/images/techtwo/editor/digg.gif Admin CP -> Styles and Templates -> Style Manager -> Edit Template -> postbit_legacy. and Admin CP -> Styles and Templates -> Style Manager -> Edit Template -> postbit Code:
<A HREF="http://digg.com/submit?phase=2&url=http://www.url.net/forum/showthread.php?$session[sessionurl]p=$post[postid]&title=$post[title]" target="_blank"><img src="IMAGEHERE" border=0></A> http://digg.com/tools/buttons Screenshot: Show Your Support
|
Comments |
#2
|
|||
|
|||
For the template code... which template do we put that in?
Thanks |
#3
|
|||
|
|||
postbit_legacy... but i can't get this to work, always says "This doesn't look like a valid url!
|
#4
|
||||
|
||||
Haha where is t he download link?
|
#5
|
|||
|
|||
It works perfectly for me. Did you remember to change the URL for your own and not use the example one?
|
#6
|
|||
|
|||
There is no download, just this template change. I guess I placed this in the wrong seciton sorry! I just signed up here last night so I was't too familiar where everything went
|
#7
|
||||
|
||||
Awesome idea for a mod! Nice work.
|
#8
|
|||
|
|||
Where "exactly" am I putting that code in my postbit_legacy template? Before/after with a condition? I'm new at this.. sorry. Love the mod idea.
|
#9
|
|||
|
|||
You can put it anywhere you want, it depends where on the screen you want it to appear.
I wanted mine appearing before the 'Thanks' button that's part of the thanks hack so I added it before that. If I didn't have the thanks hack I'd have looked for the edit button code and placed it before that. This would have then put the link at the bottom of the post window by the edit and quote buttons. Don't forget to change the image part too so it's a valid image. |
#10
|
|||
|
|||
Depends on where you want it. The simplest way is to copy the entire code for the template, paste it in Dreamweaver and place your mouse where you want it to be, then paste the code. Here is where I placed mine (in postbit), although I don't know if it will be the same for you because my template is heavily modded.
After Code:
<div class="normal"> <a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a><if condition="$show['inlinemod']"><input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" /></if> </div> <!-- / status icon and date --> </td> <td class="thead" style="font-weight:normal"> <div class="normal" style="float:$stylevar[right]"> Code:
<if condition="$show['postcount']">(#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]">$post[postcount]</a>)</if> |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|