Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
diggTopic - Full Integration with Digg (OMG) Details »»
diggTopic - Full Integration with Digg (OMG)
Version: 1.08, by Coders Shack Coders Shack is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.6.7 Rating:
Released: 05-26-2007 Last Update: 05-31-2007 Installs: 133
DB Changes Uses Plugins
 
No support by the author.

[hr]value[/hr]
. . . . . . . . Brought to you by

. . . http://www.Scriptasy.com
[hr]value[/hr]
Installation Time: [error] number too small
Products: 1
VB Version: 3.6.X
  • v1.02
    • added on/off in admincp
    • added digg image/link if you haven't added the url to the thread
    v1.04
    • forgot to add the database field
    • forgot a hook/plugin
    v1.05
    • checks HTTP_REFERER, for digg.com then looks up the thread URL if it returns a digg_url then it will add it to the thread.
    • threadadmins can also manually add the url. The manual edit overrides the auto add url.
    v1.06
    • enable/disable users digg counts
    • disable per-forum option
    • enable/disable auto add digg url option
    v1.07
    • custom placements
    • custom digg image
    v1.08
    • fixed autoadd (which will make user counts work)
Example: [live demo]

Description:
[hr]value[/hr]
This has evolved into full digg integration, when someone diggs someone elses topic. And someone on digg.com clicks on the link, the thread poster gets credited with 1 digg. Plus the digg button with the current digg count gets added to the threads postbit.


Installation:
[hr]value[/hr]
  • Install product

Upgrading:
[hr]value[/hr]
if your upgrading from a version less than 1.06 you will need to uninstall the product then re-install it. If the version is 1.06 then you can just install the product with Allow Overwrite on.


Custom postbit placements:
[hr]value[/hr]
  • <!-- diggTopic_diggit --> - For the digg button
  • <!-- diggTopic_userdiggcount --> - For the user digg count
[hr]value[/hr]
If you like then [Mark As Installed]
[hr]value[/hr]

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 05-28-2007, 06:41 PM
Darat Darat is offline
 
Join Date: Aug 2004
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd just started checking version 1.06 out, had a problem with a custom style and before I could even post a question about it you've uploaded a new version that solves the problem I had!

Now that's what I call great service - now if you could just tell me next week's lottery numbers.
Reply With Quote
  #43  
Old 05-28-2007, 06:42 PM
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Location: Culver City, CA
Posts: 807
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol only if

no problem.
Reply With Quote
  #44  
Old 05-28-2007, 07:08 PM
Fireproof Fireproof is offline
 
Join Date: Apr 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL at Darat and the lottery!

Great job Coders Shack. Thanks for the quick response. Going to update this afternoon.
Reply With Quote
  #45  
Old 05-28-2007, 07:22 PM
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Location: Culver City, CA
Posts: 807
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh no problem, only thing i can think of adding now is a option to swich between the compact digg and the normal:

example: http://digg.com/img/integrate-example.png

when using the normal one you would have to use a custom placement for it because its too large.
Reply With Quote
  #46  
Old 05-28-2007, 07:23 PM
Fireproof Fireproof is offline
 
Join Date: Apr 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I wish I was more experienced (just got my board converted to vB recently, so I'm still learning it...)

At any rate, I'm still working on getting the css / postbit editing just right, but one thing I noticed is there is no option to turn OFF the auto-addition of the Digg count.. In otherwords, I can manually add mine, but if the Mod is enabled, it ALSO shows yours...
Reply With Quote
  #47  
Old 05-28-2007, 07:25 PM
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Location: Culver City, CA
Posts: 807
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fireproof View Post
Okay, I wish I was more experienced (just got my board converted to vB recently, so I'm still learning it...)

At any rate, I'm still working on getting the css / postbit editing just right, but one thing I noticed is there is no option to turn OFF the auto-addition of the Digg count.. In otherwords, I can manually add mine, but if the Mod is enabled, it ALSO shows yours...
dont really understand what you mean ? are you talking abt the user digg count? its in the ACP.

if <!-- diggTopic_userdiggcount --> is in the postbit template it will not use the old template replacement.

can i get a link to your page
Reply With Quote
  #48  
Old 05-28-2007, 07:56 PM
Fireproof Fireproof is offline
 
Join Date: Apr 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Coders Shack View Post
dont really understand what you mean ? are you talking abt the user digg count? its in the ACP.

if <!-- diggTopic_userdiggcount --> is in the postbit template it will not use the old template replacement.

can i get a link to your page

Oh - okay - I thought if I disabled that, then it wouldn't count them at all. But are you saying it just won't display them? And as long as I manually add that code somewhere, then it will show their counts?

Also - how does that codebit work - I thought <!-- was for comments and nothing after it does anything? (Told you I'm a newbie).

My site is at http://www.clutchfitness.com/forums if you want to have a look.. Haven't figured out the postbit part yet.
Reply With Quote
  #49  
Old 05-28-2007, 08:05 PM
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Location: Culver City, CA
Posts: 807
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fireproof View Post
Oh - okay - I thought if I disabled that, then it wouldn't count them at all. But are you saying it just won't display them? And as long as I manually add that code somewhere, then it will show their counts?

Also - how does that codebit work - I thought <!-- was for comments and nothing after it does anything? (Told you I'm a newbie).

My site is at http://www.clutchfitness.com/forums if you want to have a look.. Haven't figured out the postbit part yet.
ok just add this under your post count div:
HTML Code:
<div class="postdata">
	Diggs: <!-- diggTopic_userdiggcount -->
</div>
and leave it on.

also I'm just using the <!-- --> as a marker, when the template is processed it looks for <!-- diggTopic_userdiggcount --> and replaces it with the code.
Reply With Quote
  #50  
Old 05-28-2007, 08:10 PM
Fireproof Fireproof is offline
 
Join Date: Apr 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, below is the code I added (I have to use that div class to get it to match the others). It looks real good, but it's not showing a "0" (zero) as expected.

Here's the code:
Code:
<div class="smallfont">
				&nbsp;<br />
				<if condition="$post['joindate']"><div class="postdata">$vbphrase[join_date]: $post[joindate]</div></if>
				<if condition="$post['field2']"><div class="postdata">$vbphrase[location_perm]: $post[field2]</div></if>
				<if condition="$post['age']"><div class="postdata">$vbphrase[age]: $post[age]</div></if>
				<div class="postdata">
					$vbphrase[posts]: $post[posts]
				</div>
<!-- Digg Counts -->
                                <div class="postdata">Diggs:<!-- diggTopic_userdiggcount--></div>
<!-- /Digg Counts -->
				<if condition="$show['infraction']"><div class="postdata">$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
				<if condition="$show['reputation']"><div class="postdata"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
				$template_hook[postbit_userinfo_right]
				<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
			</div>
Use my link above to check out any thread and see what it looks like...
Reply With Quote
  #51  
Old 05-28-2007, 08:15 PM
Panagioths Panagioths is offline
 
Join Date: Feb 2004
Location: Greece
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where can we find the <!-- diggTopic_diggit --> at the templates?
Is it possible to add the diggit button next to the first post title?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06215 seconds
  • Memory Usage 2,319KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete