vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Submission buttons. eg Clesto, Digg, Del icio us. (https://vborg.vbsupport.ru/showthread.php?t=123210)

Adrian. 08-05-2006 10:00 PM

Submission buttons. eg Clesto, Digg, Del icio us.
 
Submission Buttons.

By Adrian at Dream It.
Inspired by SecondV, from vBulletin version v3.4.5.

What does it do?
This small template modification adds a button to Clesto, Digg and others, when clicked it will take you to the submission pages on the chosen site,

and it will automatically have the URL loaded on the submission form.

A great way to boost your traffic.

Notes:
Thanks to ShackMaster for the Spurl icon. It has being included in the vBsubmission.zip

Installalation

Download the vBsubmission.zip

Extract it.

Upload all the images to /images/buttons/ on your server.

--

Login into your Admin Panel.

Go to Styles and Templates > Style Manager > (Choose the appropiate theme) Select Edit Templates from the dropdown list.

Find the template:
Postbit Templates >>
postbit_legacy

FIND:
HTML Code:

$post[iplogged]
ADD BELOW: Note: Not all of these are needed, if you prefer to only have two, get rid of the rest. Clesto and Digg recommended. ;)

HTML Code:

<!-- Clesto -->
<a href="http://clesto.com/submit.php?phase=2&url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/clesto.png" alt="Submit to Clesto" border="0" />
</a>

<!-- Digg -->
<a href="http://digg.com/submit?phase=2&url=$vboptions[bburl]/showthread.php?t=$post[threadid]&title=$thread[title]" target="_blank"><img

class="inlineimg"  src="$stylevar[imgdir_button]/digg.png" alt="Submit to Digg" border="0" />
</a>

<!-- Reddit -->
<a href="http://reddit.com/submit?url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/reddit.gif" alt="Submit to Reddit" border="0" />
</a>

<!-- Furl -->
<a href="http://www.furl.net/storeIt.jsp?u=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/furl.gif" alt="Submit to Furl" border="0" />
</a>

<!-- Dec icio us -->
<a href="http://del.icio.us/post?url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/delicious.png" alt="Submit to Del.icio.us" border="0" />
</a>

<!-- Jeqq -->
<a href="http://jeqq.com/submit.php?phase=2&url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/jeqq.gif" alt="Submit to Jeqq" border="0" />
</a>

<!-- Spurl -->
<a href="http://www.spurl.net/spurl.php?url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/spurl.gif" alt="Submit to Spurl" border="0" />
</a>

SAVE TEMPLATE.

--

Find the template: Optional: Depending if you have the "Use Legacy (Vertical) Postbit Template" Set to No.
Postbit Templates >>
postbit

FIND:
HTML Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
ADD BELOW:

HTML Code:

<!-- Clesto -->
<a href="http://clesto.com/submit.php?phase=2&url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/clesto.png" alt="Submit to Clesto" border="0" />
</a>

<!-- Digg -->
<a href="http://digg.com/submit?phase=2&url=$vboptions[bburl]/showthread.php?t=$post[threadid]&title=$thread[title]" target="_blank"><img

class="inlineimg"  src="$stylevar[imgdir_button]/digg.png" alt="Submit to Digg" border="0" />
</a>

<!-- Reddit -->
<a href="http://reddit.com/submit?url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/reddit.gif" alt="Submit to Reddit" border="0" />
</a>

<!-- Furl -->
<a href="http://www.furl.net/storeIt.jsp?u=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/furl.gif" alt="Submit to Furl" border="0" />
</a>

<!-- Dec icio us -->
<a href="http://del.icio.us/post?url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/delicious.png" alt="Submit to Del.icio.us" border="0" />
</a>

<!-- Jeqq -->
<a href="http://jeqq.com/submit.php?phase=2&url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/jeqq.gif" alt="Submit to Jeqq" border="0" />
</a>

<!-- Spurl -->
<a href="http://www.spurl.net/spurl.php?url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/spurl.gif" alt="Submit to Spurl" border="0" />
</a>

SAVE TEMPLATE.

Done.

That's it, easy. ;)

Edit: Added Jeqq.com per request. :)

Enjoy.

Mike Gaidin 08-06-2006 03:04 PM

I like it.

/me clicks install.

Snake 08-30-2006 04:42 PM

Thanks for the hack! I'll install it right away...

ShackMaster 08-31-2006 04:15 AM

Great hack... thanks!

Installed!

Here's a Spurl icon I made for temporary: https://vborg.vbsupport.ru/external/2006/08/1.gif

Adrian. 08-31-2006 05:20 PM

Thanks ShackMaster.

That will do perfectly! :)

CarVenue.com 09-01-2006 05:51 AM

Cool!

jquan 09-06-2006 01:10 PM

working nice, what about if you wanted to add to the title instead of in your postbit, which template would you edit?

and will future version include how many diggs and which member digged, or Clesto'd :)

99SIVTEC 09-06-2006 11:53 PM

<a href="https://vborg.vbsupport.ru/showthread.php?p=1069705#post1069705" target="_blank">https://vborg.vbsupport.ru/showt...05#post1069705</a>

Above i've added a button to submit automotive threads to AutomotiveArena.com for automotive web sites.

Hornstar 09-07-2006 12:33 AM

This will be comming standard with vbseo from rc4 and above. Pretty cool idea.

99SIVTEC 09-07-2006 03:45 PM

I made a change so this is displayed in showthread at the top of the posts. I also added the ability to submit to http://www.threadtag.com which is a digg style sute specifically for forums.

In showthread find:
PHP Code:

<if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
</
tr>
</
table>
<!-- / 
controls above postbits --> 

Under that paste the following code:
PHP Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center" style="border-bottom-width:0px">
<
tr>
    <
td class="thead" width="100%">
        
Add this thread to:&nbsp;
        <!-- 
ThreadTag -->
<
a href="http://www.threadtag.com/submit.php?url=$vboptions[bburl]/showthread.php?t=$threadidtarget="_blank"><img class="inlineimg"  

src="$stylevar[imgdir_button]/threadtag.png" alt="Tag This Thread" border="0" />&nbsp;Tag This Thread&nbsp;</a>
        
<!-- 
Clesto -->
<
a href="http://clesto.com/submit.php?phase=2&url=$vboptions[bburl]/showthread.php?t=$threadidtarget="_blank"><img class="inlineimg"  

src="$stylevar[imgdir_button]/clesto.png" alt="Submit to Clesto" border="0" />&nbsp;Clesto&nbsp;</a>

<!-- 
Digg -->
<
a href="http://digg.com/submit?phase=2&url=$vboptions[bburl]/showthread.php?t=$threadid&title=$thread[title]target="_blank"><img 

class="inlineimg"  src="$stylevar[imgdir_button]/digg.png" alt="Submit to Digg" border="0" />&nbsp;Digg&nbsp;</a>

<!-- 
Reddit -->
<
a href="http://reddit.com/submit?url=$vboptions[bburl]/showthread.php?t=$threadidtarget="_blank"><img class="inlineimg"  

src="$stylevar[imgdir_button]/reddit.gif" alt="Submit to Reddit" border="0" />&nbsp;Reddit&nbsp;</a>

<!-- 
Furl -->
<
a href="http://www.furl.net/storeIt.jsp?u=$vboptions[bburl]/showthread.php?t=$threadidtarget="_blank"><img class="inlineimg"  

src="$stylevar[imgdir_button]/furl.gif" alt="Submit to Furl" border="0" />&nbsp;Furl&nbsp;</a>

<!-- 
Dec icio us -->
<
a href="http://del.icio.us/post?url=$vboptions[bburl]/showthread.php?t=$threadidtarget="_blank"><img class="inlineimg"  

src="$stylevar[imgdir_button]/delicious.png" alt="Submit to Del.icio.us" border="0" />&nbsp;Del.icio.us&nbsp;</a>

<!-- 
Spurl -->
<
a href="http://www.spurl.net/spurl.php?url=$vboptions[bburl]/showthread.php?t=$threadidtarget="_blank"><img class="inlineimg"  

src="$stylevar[imgdir_button]/spurl.gif" alt="Submit to Spurl" border="0" />&nbsp;Spurl</a> </td>
  </
tr>
</
table

Also be sure to upload the button to your images/buttons directorywith the others https://vborg.vbsupport.ru/attachmen...1&d=1157647453

keithsl 09-21-2006 07:38 PM

Is there anyway to add some more customization to this?

I'm looking to only have it only show up in a certain forum and to only show up on the first post. I would also like to click a checkbox to even decide if it should show up in that post or not

Gastongr 11-11-2006 03:35 AM

Great hack!
I added it in the top of showthread.php
Screenshot attached.

libertate 11-13-2006 11:41 PM

An excellent piece!

I have added this to my "News" vBAdvanced module. It only appears within the module at top of each article.

Simple replace all occurance of $threadid with $news[threadid] and and $thread[title] with $news[title].

Insert it in adv_portal_newsbits style template under:
Code:

$news[dateposted] - <phrase 1="$vboptions[bburl]/member.php?$session[sessionurl]u=$news[postuserid]" 2="$news[postusername]">$vbphrase[by_x]</phrase>

DPSR 11-14-2006 01:57 AM

Very nice, i made one for my site a month back with a drop down menu.. if somebody need it i can share it ;)

Excellent hack Adrian. :)

ForumDog 11-14-2006 08:25 AM

Thank you! I redid some of the graphics, added one or two others and restricted it to just a drop-down in the first post since there's not much point giving over bandwidth to links in every single post. If anyone wants to grab something, feel free.

Capper5016 11-15-2006 05:04 PM

Quote:

Originally Posted by DPSR (Post 1116798)
Very nice, i made one for my site a month back with a drop down menu.. if somebody need it i can share it ;)

Excellent hack Adrian. :)

I'd very much like that

Hemanth 11-16-2006 08:34 AM

Any hacks available to show a digg button in the thread. ie. The digg i button woth the number of diggs & an option to add a digg.

rezapci 11-16-2006 06:18 PM

awesome,how about google and yahoo and msn.. ect xml feeder?

Hypocrisy 11-17-2006 12:46 PM

Will this work under vBulletin 3.5.x?

Hypocrisy 11-18-2006 07:07 PM

When using the threadbit modification, "threadtag", "clesto" and digg doesn't show any icons using Internet Explorer, how come?


Edit: 'cause they're pngs?! :p *duh*

MaestroX 12-12-2006 03:25 PM

I have a problem with this, anytime i click a button to submit I do not get the thread id at the end of the url. It just "showhread.php?t="
Example: http://www.music-web.org/forum/showthread.php?t=540

I maybe should mention that I have my submit buttons under the frop down menu "thread tools"

mac27 12-13-2006 03:01 AM

You can add the buttons to the left of the edit, quote, multi quote buttons if you want. Just do this.

Go into postbit_legacy

Find:
Code:

<!-- controls -->
Add below:
Code:

<!-- Clesto -->
<a href="http://clesto.com/submit.php?phase=2&url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/clesto.png" alt="Submit to Clesto" border="0" hspace="3" vspace="0" align="left" /></a>

<!-- Digg -->
<a href="http://digg.com/submit?phase=2&url=$vboptions[bburl]/showthread.php?t=$post[threadid]&title=$thread[title]" target="_blank"><img

class="inlineimg"  src="$stylevar[imgdir_button]/digg.png" alt="Submit to Digg" border="0" hspace="3" vspace="0" align="left" /></a>

<!-- Reddit -->
<a href="http://reddit.com/submit?url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/reddit.gif" alt="Submit to Reddit" border="0" hspace="3" vspace="0" align="left" /></a>

<!-- Furl -->
<a href="http://www.furl.net/storeIt.jsp?u=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/furl.gif" alt="Submit to Furl" border="0" hspace="3" vspace="0" align="left" /></a>

<!-- Dec icio us -->
<a href="http://del.icio.us/post?url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/delicious.png" alt="Submit to Del.icio.us" border="0" hspace="3" vspace="0" align="left" /></a>

<!-- Spurl -->
<a href="http://www.spurl.net/spurl.php?url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/spurl.gif" alt="Submit to Spurl" border="0" hspace="3" vspace="0" align="left" /></a>

Here is a screenshot of what I am talking about.
http://img182.imageshack.us/img182/6...ttonsssql2.png

dprundle 12-20-2006 06:13 PM

thx m8, this worked perfectly. Iadded it to the top of the threads at http://www.wvutalk.com

chkdgate 12-22-2006 08:30 AM

How effective can this be?

s25 12-22-2006 12:28 PM

If your site got digged allot it could be very effective, Over all it would make your site get more hits and traffic assuming it is used!

Adrian. 12-22-2006 04:07 PM

Added Jeqq.com by request.

chkdgate 12-23-2006 12:26 AM

Quote:

Originally Posted by DPSR (Post 1116798)
Very nice, i made one for my site a month back with a drop down menu.. if somebody need it i can share it ;)

Excellent hack Adrian. :)

Dude, that really sweet! Will you release it?

Quote:

Originally Posted by 99SIVTEC (Post 1070107)
I made a change so this is displayed in showthread at the top of the posts. I also added the ability to submit to http://www.threadtag.com which is a digg style sute specifically for forums.

My icons are not displaying properly. Can you help? Thanks.

Edit: Man, I think it's my skin because I just tried it for vb's default theme and it worked fine. Is there any way around this? I can't let go of my current skin.

Edit 2: Sorry everyone. I never dealt with styles before. I didn't realize that I had to upload the images in my "new" style's button folder. Btw, did anyone else notice that Thread Tag and Clesto aren't working?

chkdgate 12-23-2006 06:00 AM

I just thought you guys would like an updated reddit icon. I cleaned it up quite a bit in photoshop.:up:

chkdgate 12-26-2006 05:25 AM

Quote:

Originally Posted by libertate (Post 1116738)
An excellent piece!

I have added this to my "News" vBAdvanced module. It only appears within the module at top of each article.

Simple replace all occurance of $threadid with $news[threadid] and and $thread[title] with $news[title].

Insert it in adv_portal_newsbits style template under:
Code:

$news[dateposted] - <phrase 1="$vboptions[bburl]/member.php?$session[sessionurl]u=$news[postuserid]" 2="$news[postusername]">$vbphrase[by_x]</phrase>

You're the man, libertate! Thanks. You should update it for the rest of us.

Freak0204 12-26-2006 09:49 PM

Quote:

Originally Posted by 99SIVTEC (Post 1070107)
I made a change so this is displayed in showthread at the top of the posts. I also added the ability to submit to http://www.threadtag.com which is a digg style sute specifically for forums.


Thank you! :D

Eagle Eyes 12-28-2006 07:36 PM

Quote:

Originally Posted by mac27 (Post 1137512)
You can add the buttons to the left of the edit, quote, multi quote buttons if you want. Just do this.

Go into postbit_legacy

Find:
Code:

<!-- controls -->
Add below:
Code:

<!-- Clesto -->
<a href="http://clesto.com/submit.php?phase=2&url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/clesto.png" alt="Submit to Clesto" border="0" hspace="3" vspace="0" align="left" /></a>

<!-- Digg -->
<a href="http://digg.com/submit?phase=2&url=$vboptions[bburl]/showthread.php?t=$post[threadid]&title=$thread[title]" target="_blank"><img

class="inlineimg"  src="$stylevar[imgdir_button]/digg.png" alt="Submit to Digg" border="0" hspace="3" vspace="0" align="left" /></a>

<!-- Reddit -->
<a href="http://reddit.com/submit?url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/reddit.gif" alt="Submit to Reddit" border="0" hspace="3" vspace="0" align="left" /></a>

<!-- Furl -->
<a href="http://www.furl.net/storeIt.jsp?u=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/furl.gif" alt="Submit to Furl" border="0" hspace="3" vspace="0" align="left" /></a>

<!-- Dec icio us -->
<a href="http://del.icio.us/post?url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/delicious.png" alt="Submit to Del.icio.us" border="0" hspace="3" vspace="0" align="left" /></a>

<!-- Spurl -->
<a href="http://www.spurl.net/spurl.php?url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/spurl.gif" alt="Submit to Spurl" border="0" hspace="3" vspace="0" align="left" /></a>

Here is a screenshot of what I am talking about.
http://img182.imageshack.us/img182/6...ttonsssql2.png

Mine doesn't go on the left, any reason why? Its just next to the edit thing.

mac27 12-28-2006 09:13 PM

If you are using IE then you need to place the code in a table.

Find:
Code:

<!-- Clesto -->
add above:
Code:

<table valign="middle" align="left">
Next find:
Code:

<!-- Spurl -->
<a href="http://www.spurl.net/spurl.php?url=$vboptions[bburl]/showthread.php?t=$post[threadid]" target="_blank"><img class="inlineimg" 

src="$stylevar[imgdir_button]/spurl.gif" alt="Submit to Spurl" border="0" hspace="3" vspace="0" align="left" /></a>

add below:
Code:

</table>

That should align it to the left in IE.

MajorFm.com 01-01-2007 01:58 PM

Quote:

Originally Posted by Hemanth (Post 1118475)
Any hacks available to show a digg button in the thread. ie. The digg i button woth the number of diggs & an option to add a digg.

ditto... that way digg users can just digg it instead of re-submitting the story again and again.

MajorFm.com 01-01-2007 02:13 PM

ok this is a wicked hack, 2 secs to install and exactly what i was about to do manually... but... how do i get it to work with vbseo? like the link it wants to submit is the php one... need the html one... also any chance some photoshop wizzkid can make me the buttons for darker backrounds? i notice its just made for light backrounds...

MajorFm.com 01-01-2007 02:23 PM

also i think clesto.com is now dead?

MajorFm.com 01-01-2007 02:38 PM

Quote:

Originally Posted by Gastongr (Post 1114600)
Great hack!
I added it in the top of showthread.php
Screenshot attached.

exactly how do i do this one? i like this layout the most...

BillAlpha 01-02-2007 08:59 PM

Quote:

Originally Posted by MaestroX (Post 1137159)
I have a problem with this, anytime i click a button to submit I do not get the thread id at the end of the url. It just "showhread.php?t="
"

Just installed and I have this same issue. Even though the code shows showthread.php?t=$post[threadid] the resulting URL just ends showhread.php?t=

Any suggestions?

BillAlpha 01-02-2007 09:08 PM

I have found that if I use showthread.php?t=$threadid instead of showthread.php?t=$post[threadid] the URL works.

Not having an account with any of these services, will this still work?

Cheers :)

hinch 01-05-2007 12:10 PM

installed seems to work fine on www.furious-angels.com

BigJimTheLug 01-06-2007 03:38 AM

what about adding

mister-wong?


All times are GMT. The time now is 05:57 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.01707 seconds
  • Memory Usage 1,905KB
  • 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
  • (10)bbcode_code_printable
  • (4)bbcode_html_printable
  • (2)bbcode_php_printable
  • (9)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
  • (40)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