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-26-2007 10:00 PM

diggTopic - Full Integration with Digg (OMG)
 
[hr]value[/hr]
. . . . . . . . Brought to you by
https://vborg.vbsupport.ru/
. . . 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]

Coders Shack 05-27-2007 04:45 AM

version 1.05 updated

Ok heres a scenario someone likes your thread and they are a digg member. They decide to digg it, 4 mins later your digged page is on diggs upcoming page and someone decides to click it. Your forum will see that the visitor is coming from digg.com and trying to access thread X, what will happen next is your forum will use diggs API to check if the thread URL is dugg if it is it will record the DIGG url and add it to your thread. Now if a thread has a digg url then the process wont be repeated.

Hope you like it, i spent some time on it :D

100% template/file edit free

Coders Shack 05-27-2007 05:53 AM

ok, if you installed it please tell me if its working. :D

mcyates 05-27-2007 07:13 AM

Installed but nothing is appearing.

Coders Shack 05-27-2007 07:19 AM

Quote:

Originally Posted by mcyates (Post 1255391)
Installed but nothing is appearing.

could be your VBSEO.

personally i removed the sites in post and just made them for thread.

Coders Shack 05-27-2007 09:00 AM

Quote:

Originally Posted by Coders Shack (Post 1255393)
could be your VBSEO.

personally i removed the sites in post and just made them for thread.

actually it was my fault forgot to add a plugin.

Sofia 05-27-2007 09:04 AM

Thanks a lot :) Installed !

Coders Shack 05-27-2007 09:34 AM

ok final one is 2.04 used a different template hook, and tested it.

Coders Shack 05-27-2007 09:43 AM

ok im going to bed lol :P

night

projectego 05-27-2007 11:07 AM

Looks awesome! Thanks a bunch, CS! ;)

amjadakmal 05-27-2007 12:02 PM

Very Nice .. This is what i was looking for.. I am not Coder .. .Thanks this really helped me.

Coders Shack 05-27-2007 08:36 PM

doesnt seem that many people want this...

I finished v1.05 but not for release, if more people wanted it i would make it release ready.

nanaimobar 05-27-2007 11:18 PM

Downloaded and installed product. Works Great.

Maybe the traffic on this product is not high as it is a major holiday long weekend in the U.S. Indy 500, Nascar CC600, sunny weather, parties and stuff.

Post the update.

Devil Woman 05-27-2007 11:54 PM

Thanks for this, just what I have been looking for working great :)

Coders Shack 05-28-2007 12:52 AM

updated

gforce75 05-28-2007 01:02 AM

Installed on my site. I love how all the icons show up. Keep up the great work.

Coders Shack 05-28-2007 01:09 AM

Quote:

Originally Posted by gforce75 (Post 1255862)
Installed on my site. I love how all the icons show up. Keep up the great work.

install the new one its better, automatically adds the digg url.

Coders Shack 05-28-2007 03:04 AM

whats next in 1.06 ?
  • ability to change digg background through acp
  • user digg count (when the digg automation system picks up a digg it will give the thread poster 1 digg point or what ever. Goal is an incentive to digg your threads = more traffic)

gforce75 05-28-2007 04:05 AM

Alright, I'll check it out

Billspaintball 05-28-2007 05:00 AM

Is there an option so that you can only Digg posts that are visible to guests?
I can see it being a problem if people Digg posts that are only visible when logged in.

Coders Shack 05-28-2007 05:09 AM

well ill add that to 1.06 if you want. Has no use for me but it may for others.

A digg to a login-only would prolly get you a member.

DementedMindz 05-28-2007 05:34 AM

Coders Shack nice work I must say but any chance of having it so you can enable it per forum? cause I'm sure on mostly all sites some section of the forum wouldn't use this. (ex. Site Rules)

Coders Shack 05-28-2007 05:37 AM

Quote:

Originally Posted by DementedMindz (Post 1255975)
Coders Shack nice work I must say but any chance of having it so you can enable it per forum? cause I'm sure on mostly all sites some section of the forum wouldn't use this. (ex. Site Rules)

1.06

ok any other ideas?

DementedMindz 05-28-2007 05:40 AM

Not that I can think of now once they are added maybe once I wake up a bit more :)

Billspaintball 05-28-2007 06:31 AM

Enabling it per forum would solve my problem too.

I could just enable it to forums in which guests had access.

Coders Shack 05-28-2007 06:45 AM

Quote:

Originally Posted by Billspaintball (Post 1256015)
Enabling it per forum would solve my problem too.

I could just enable it to forums in which guests had access.

ok i have decided to give a disable forums option as for the guest feature you can just disable that forum.

lol it was tricky, because i already have soo many if statements. Look at the 1.06 Template Edits plugin lol.

the product is just getting larger lol, started at 3kb and is now almost 9kb

Coders Shack 05-28-2007 07:07 AM

feedback is greatly appriciated, if you would like to see any additions or changes I'm open to hearing them.

karlm 05-28-2007 01:11 PM

Gonna check it out :)

Fireproof 05-28-2007 03:07 PM

Looks good - think I'll try it.

Fireproof 05-28-2007 03:28 PM

I'm a newbie, so go easy on me. ;)

I have a custom skin that changes the look of postbit_legacy. When I enable DiggTopic, the Diggs count for the users doesn't look great. (See attached screenshot).

What would I need to edit to get it to display like my Location and Posts boxes in the postbit?

nanaimobar 05-28-2007 03:53 PM

Congratulations on all the updates so quickly. Much appreciated.

I seem to have a problem with the postbit bg colour, or maybe it's my understanding of a postbit.

I changed the bg colour for the postbit in the admincp but the "Digg this story" button background stayed the same. I tried several different bg colours and the button background didn't change.

Granted, I'm an impatient fellow and immediately went to forum page and refreshed it to see if bg had changed.

I simply wanted the "Digg this story" button bg to stand out a tad more in both IE and Firefox.

Does the postbit bg line in admincp change the bg on the "Digg this story" button?

Panagioths 05-28-2007 04:30 PM

The "diggs" in postbit after I dugg some threads from my forum remained 0. When there is a number in the postbit changes?

pcoskat 05-28-2007 05:10 PM

Quote:

Originally Posted by Coders Shack (Post 1255872)
install the new one its better, automatically adds the digg url.

Well that answers my question. From the current description in the OP, the process sounded manual.

Now that it's automatic, I'm digging your digg! :D

Clicks install.

Coders Shack 05-28-2007 05:22 PM

Quote:

Originally Posted by nanaimobar (Post 1256273)
Congratulations on all the updates so quickly. Much appreciated.

I seem to have a problem with the postbit bg colour, or maybe it's my understanding of a postbit.

I changed the bg colour for the postbit in the admincp but the "Digg this story" button background stayed the same. I tried several different bg colours and the button background didn't change.

Granted, I'm an impatient fellow and immediately went to forum page and refreshed it to see if bg had changed.

I simply wanted the "Digg this story" button bg to stand out a tad more in both IE and Firefox.

Does the postbit bg line in admincp change the bg on the "Digg this story" button?

the postbit bg only apply's after the story has been dugg, if you would like to be able to change the digg image i may be ables to do something.

Quote:

Originally Posted by Panagioths (Post 1256297)
The "diggs" in postbit after I dugg some threads from my forum remained 0. When there is a number in the postbit changes?

you forum needs to update the count, it isn't instant.

see digg.com takes time to register you url as dugg, even though you see your story. Also the digg count only changes when your topic gets automatically dugg, so the manually adding the digg url will avoid adding a digg to your account.

Coders Shack 05-28-2007 05:26 PM

Quote:

Originally Posted by Fireproof (Post 1256259)
I'm a newbie, so go easy on me. ;)

I have a custom skin that changes the look of postbit_legacy. When I enable DiggTopic, the Diggs count for the users doesn't look great. (See attached screenshot).

What would I need to edit to get it to display like my Location and Posts boxes in the postbit?

hmm, i really want to avoid template changes. I guess i can add a option in the ACP like postbit diggs CLASS or somthing the reason why it shows up like that is because the <div has a custom class.

Fireproof 05-28-2007 05:30 PM

Quote:

Originally Posted by Coders Shack (Post 1256334)
hmm, i really want to avoid template changes. I guess i can add a option in the ACP like postbit diggs CLASS or somthing the reason why it shows up like that is because the <div has a custom class.

Well, it might look better if it were added under the Instant Messaging icons, and maybe with a space in front of Diggs, so that is a little better aligned. Just a thought.

Good work so far.


If I wanted to play with the code, can you tell me what DiggTopic code I'd need to manually insert into the Postbit_legacy template? I can play around with it manually to see if I can come up with some better placement.

But I agree with you - I was attracted to your Mod specifically because of no template changes required. ;)

Coders Shack 05-28-2007 05:33 PM

lol dont bother messing with the plugin code its very complex.

i might create postbit template hooks, like:

<!-- diggTopic_digg -->
<!-- diggTopic_usercount -->

for custom positioning.

Fireproof 05-28-2007 05:41 PM

Quote:

Originally Posted by Coders Shack (Post 1256337)
lol dont bother messing with the plugin code its very complex.

i might create postbit template hooks, like:

<!-- diggTopic_digg -->
<!-- diggTopic_usercount -->

for custom positioning.

That would be awesome. Much like some of the other mods out there (Billspaypal comes to mind). Most of the automatically placed things don't work for my custom skin, so it's nice to be able to manually place some code-bits where I need them.

:up:

Coders Shack 05-28-2007 06:22 PM

Quote:

Originally Posted by Fireproof (Post 1256340)
That would be awesome. Much like some of the other mods out there (Billspaypal comes to mind). Most of the automatically placed things don't work for my custom skin, so it's nice to be able to manually place some code-bits where I need them.

:up:

added all your suggestions

also fireproof for the custom digg user count placement it will just product a number so you can do this:

HTML Code:

<div class="info">
        Diggs: <!-- diggTopic_userdiggcount -->
</div>


Coders Shack 05-28-2007 06:29 PM

if you can think of anything else to add I'm open to suggestions :D

also if your upgrading from 1.05, 1.04 , 1.02 then uninstall the product and re-install it. If your upgrading from 1.06 then just update the product.


All times are GMT. The time now is 04:55 PM.

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.01603 seconds
  • Memory Usage 1,831KB
  • 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_html_printable
  • (12)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