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
  #52  
Old 05-28-2007, 08: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, 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...
ok are you editing postbit or postbit_legacy , your using postbit_legacy so you need to make the edit there.
Quote:
Originally Posted by Panagioths View Post
Where can we find the <!-- diggTopic_diggit --> at the templates?
Is it possible to add the diggit button next to the first post title?
there is no <!-- diggTopic_diggit --> in the template, its optional once you addit it, it places the digg button there.
Reply With Quote
  #53  
Old 05-28-2007, 08:28 PM
Fireproof Fireproof is offline
 
Join Date: Apr 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL. Editing postbit_legacy. You can see the attached screenshot - looks real purdy!! But I dug myself and I'm not getting any "diggs" calculated. (But the digg worked - went to digg, posted it, etc.)
Reply With Quote
  #54  
Old 05-28-2007, 08:30 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
LOL. Editing postbit_legacy. You can see the attached screenshot - looks real purdy!! But I dug myself and I'm not getting any "diggs" calculated. (But the digg worked - went to digg, posted it, etc.)
you should at least be getting a 0 did you disable it in the acp?

also heres a good custom digg button
Reply With Quote
  #55  
Old 05-28-2007, 08:36 PM
Fireproof Fireproof is offline
 
Join Date: Apr 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Coders Shack View Post
also heres a good custom digg button
Oooh - very nice - thank you! :up:


Okay - something else isn't working quite right. I can't find where I can see the Digg URL. Even when I edit the thread, I don't get the manual box or an auto-populated one like you show in your screenshots.

And a feature request: Anyway we can show that it's been Dugg? Like change the button or something? Or show the number of diggs?

Nothing changed on my dugg thread, but when I tried to digg it again, it DID link up appropriately and say "Cool, this story has already been dugg" and then it displayed it at Digg.com. Very cool.
Reply With Quote
  #56  
Old 05-28-2007, 08:36 PM
Fireproof Fireproof is offline
 
Join Date: Apr 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Coders Shack View Post
you should at least be getting a 0 did you disable it in the acp?
Nope. It's enabled now. Dugg a thread to see if I would see a "1". Nope.
Reply With Quote
  #57  
Old 05-28-2007, 08:39 PM
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Location: Culver City, CA
Posts: 807
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ha... i see your problem the replacement needs to be added perfectly:

<!-- diggTopic_userdiggcount --> not <!-- diggTopic_userdiggcount-->

you forgot a space at the end.
Reply With Quote
  #58  
Old 05-28-2007, 09:40 PM
Panagioths Panagioths is offline
 
Join Date: Feb 2004
Location: Greece
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to add the diggit button next to the first post title?
Reply With Quote
  #59  
Old 05-28-2007, 09:42 PM
Fireproof Fireproof is offline
 
Join Date: Apr 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Coders Shack View Post
ha... i see your problem the replacement needs to be added perfectly:

<!-- diggTopic_userdiggcount --> not <!-- diggTopic_userdiggcount-->

you forgot a space at the end.
LOL. Stupid space typo..
Reply With Quote
  #60  
Old 05-29-2007, 12:09 AM
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Location: Culver City, CA
Posts: 807
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if theres still active intrest in this modification ill be releasing the new addition that displays the diggs on forum display:

demo: http://codersshack.com/forums/php_11/
Reply With Quote
  #61  
Old 05-29-2007, 12:12 AM
Fireproof Fireproof is offline
 
Join Date: Apr 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool. I'm definitely interested in getting this to work. I would suggest for display features like the above, that you keep it flexible by allowing people to enable/disable the forum display.
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 10:55 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.11423 seconds
  • Memory Usage 2,321KB
  • 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
  • (6)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