vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Integration with vBulletin - diggTopic - Full Integration with Digg (OMG) (https://vborg.vbsupport.ru/showthread.php?t=148216)

Coders Shack 05-28-2007 08:25 PM

Quote:

Originally Posted by Fireproof (Post 1256432)
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 :D, your using postbit_legacy so you need to make the edit there.
Quote:

Originally Posted by Panagioths (Post 1256437)
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.

Fireproof 05-28-2007 08:28 PM

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.)

Coders Shack 05-28-2007 08:30 PM

Quote:

Originally Posted by Fireproof (Post 1256447)
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

Fireproof 05-28-2007 08:36 PM

Quote:

Originally Posted by Coders Shack (Post 1256450)
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.

Fireproof 05-28-2007 08:36 PM

Quote:

Originally Posted by Coders Shack (Post 1256450)
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. :(

Coders Shack 05-28-2007 08:39 PM

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

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

you forgot a space at the end.

Panagioths 05-28-2007 09:40 PM

Is it possible to add the diggit button next to the first post title?

Fireproof 05-28-2007 09:42 PM

Quote:

Originally Posted by Coders Shack (Post 1256456)
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..

Coders Shack 05-29-2007 12:09 AM

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/

Fireproof 05-29-2007 12:12 AM

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.


All times are GMT. The time now is 03:36 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.02087 seconds
  • Memory Usage 1,751KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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