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)
-   -   Miscellaneous Hacks - tDigg - Digg like system for threads (https://vborg.vbsupport.ru/showthread.php?t=150751)

Coders Shack 06-26-2007 10:00 PM

tDigg - Digg like system for threads
 
[hr]value[/hr]
. . . . . . . . Brought to you by
https://vborg.vbsupport.ru/
. . . http://www.Scriptasy.com
[hr]value[/hr]
Installation Time: < 1 mins
Product: 1
File: 1
VB Version: 3.6.X


Description: [hr]value[/hr]
Creates a digg-like system that runs alongside your threads, stuck threads always stay on top but threads with more than one "digg" will show up before threads with 0 or less than zero "diggs"

[DEMO]

Installation Instructions: [hr]value[/hr]
  1. Install Product
  2. Upload the misc folder to your style directory
[hr]value[/hr]
If you like then [Mark As Installed]
[hr]value[/hr]

Coders Shack 06-26-2007 11:42 PM

Also like most of my mods this is an edit-free mod.

Barakat 06-27-2007 12:35 AM

??

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/**********/public_html/gti/global.php(554) : eval()'d code on line 1012

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ']' in /home/******/public_html/gti/global.php(554) : eval()'d code on line 1012

TTG 06-27-2007 12:36 AM

Looks interesting but :-

Demo link doesn't work.

Couple of errors when I installed on my test forum :-

Code:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ']'
Code:

Warning: Unexpected character in input: '\' (ASCII=92)
EDIT .. lol .. Barakat having same problems.

Coders Shack 06-27-2007 12:58 AM

yea umm i added the wrong XML to the zip.

*updated*

rootnik 06-27-2007 01:25 AM

The product installation didn't edit my templates? I only assume that it was supposed to because no template modification are provided.

Can you list modifications to the templates we have to make?

Coders Shack 06-27-2007 01:37 AM

well, does it work on your default template?

i have not provided changes for postbit_legacy yet.

rootnik 06-27-2007 01:40 AM

Quote:

Originally Posted by Coders Shack (Post 1277391)
well, does it work on your default template?

i have not provided changes for postbit_legacy yet.

On *my* default template, no. I do not have the vbulletin default template installed.

I am not using the legacy template.

edenx 06-27-2007 01:50 AM

excelent! installing now

Coders Shack 06-27-2007 01:58 AM

Quote:

Originally Posted by rootnik (Post 1277392)
On *my* default template, no. I do not have the vbulletin default template installed.

I am not using the legacy template.

did you add the forum your trying to use it on in the ACP ?

https://vborg.vbsupport.ru/external/2007/06/16.jpg

rootnik 06-27-2007 02:03 AM

Quote:

Originally Posted by Coders Shack (Post 1277401)
did you add the forum your trying to use it on in the ACP ?

https://vborg.vbsupport.ru/attachmen...7&d=1182905931


Yes, and I do use the template cache mod, but have it disabled.

Don't waste to much time on me though. If nobody else reports a problem like this we know it is something wrong with my personal setup.

Thanks for the release, the community has been waiting for this for a while.

glorify 06-27-2007 02:40 AM

Will install once you get thelegacy template done ;)

Coders Shack 06-27-2007 03:24 AM

Quote:

Originally Posted by glorify (Post 1277419)
Will install once you get thelegacy template done ;)

both display templates are working now :D

mtlcore 06-27-2007 03:36 AM

Good work.

Is it possible to have something like that Thank You hack but a Digg system.
What I mean: the thank you button is in every post, but I have seen one where it is only in the first post, and then if you click it(ie digg), it will have 1 vote. Then it will be displayed on the frontpage of the forums.

projectego 06-27-2007 07:04 AM

Awesome! I like it! :)

[high]* projectego clicks install[/high]

s0b 06-27-2007 08:01 AM

great mod!!

can we have a top page with the most rated topics in last 24h?


Quote:

Creates a digg-like system that runs alongside your threads, stuck threads always stay on top but threads with more than one "digg" will show up before threads with 0 or less than zero "diggs"
Then when the forum have very much threads with +1, a new thread will appear in the second page?

dizzy100 06-27-2007 08:19 AM

Fantastic and very handy mod. I love it too.

A top digs across the board would be awesome on a separate page. This is really great for social networking sites.

Well done.

Coders Shack 06-27-2007 08:25 AM

do you have a forum with over 20 threads ? I'm not sure how it will react with 21 threads.

but the way i intended to code it was it grabs the latest X bumped threads then organizes them by diggs.

dizzy100 06-27-2007 08:29 AM

Ah it only grabs the last 20 ? I thought this would organise them completely depending on the amount of diggs they had.

Coders Shack 06-27-2007 08:34 AM

Quote:

Originally Posted by dizzy100 (Post 1277521)
Ah it only grabs the last 20 ? I thought this would organise them completely depending on the amount of diggs they had.

well not really the last 20 but like a normal display, like if your on page two it should grab page twos threads and then organize them by their diggs.

I think its better that way because it still factors in the recent topics then the diggs.

dizzy100 06-27-2007 09:07 AM

doesn't really seem logical that. But your the coder :)

Coders Shack 06-27-2007 09:29 AM

well i didnt want it to rule out the recent posts, like if 20 threads have over 0 "diggs" your way the next thread would be on the 2nd page, my wayt it ill still display on the first page but not on the top.

edenx 06-27-2007 10:58 AM

I second to show best rated topics on a separate page... and the functionality to filter threads by the total rating... in forumdisplay

JD45 06-27-2007 02:31 PM

Installed. Worked perfectly! Thank you.

Nominated for MOTM

dope15gd 06-27-2007 02:41 PM

this looks to be quite awesome. I'll probably run it on my test install later

TCattitude 06-27-2007 04:26 PM

Maybe left the "forumdisplay" show thread like vb's default is (not modify that)... but generate a brand new "home page"... even a new index.php, and sort thread in that page how digg.com does; so "news" (hot threads, most voted) will display automatically in that other index.
Show hot threads for today (most voted in the last 24 hours), the last week, the last month, and "all the time". Again, like digg.com or like youtube.com does with the options in the left menu of videos main category.

Even create a new module for vbadvanced and get a new home page, more like digg too.
Will be great to have a separate page to view more "tdiggest" (voted) threads, separate it by forumids maybe, "categorize" the listing.

Nice mod, Coders Shack, really awesome ;)

Brandon Sheley 06-27-2007 04:37 PM

interesting hack :)

Coders Shack 06-27-2007 05:00 PM

Quote:

Originally Posted by edenx (Post 1277606)
I second to show best rated topics on a separate page... and the functionality to filter threads by the total rating... in forumdisplay

Well, there might be a file edit involved if you want it to rate it by just the "diggs".

Quote:

Originally Posted by TCattitude (Post 1277786)
Maybe left the "forumdisplay" show thread like vb's default is (not modify that)... but generate a brand new "home page"... even a new index.php, and sort thread in that page how digg.com does; so "news" (hot threads, most voted) will display automatically in that other index.
Show hot threads for today (most voted in the last 24 hours), the last week, the last month, and "all the time". Again, like digg.com or like youtube.com does with the options in the left menu of videos main category.

Even create a new module for vbadvanced and get a new home page, more like digg too.
Will be great to have a separate page to view more "tdiggest" (voted) threads, separate it by forumids maybe, "categorize" the listing.

Nice mod, Coders Shack, really awesome ;)

well all that is possible because the table added uses timestamps too for future features but i might need to also add a new field "forumid" so if i were to create a mod that displayed top threads in the last 24 hours it could get X for each forum. Unfortunately I'm unfamiliar with vbadvanced add-ons but your welcome to try to come up with something.

I'll tinker with it, more suggestions are welcome.

edenx 06-27-2007 06:06 PM

Quote:

Originally Posted by Coders Shack (Post 1277816)
Well, there might be a file edit involved if you want it to rate it by just the "diggs".

I dont want to rate by "diggs" I want to be able to do this when viewing a forum

"show me only the threads that have 10+ digg votes"
"show me only the threads that have 5+ digg votes"

:D

Subah 06-27-2007 06:11 PM

Cool , Thanks :)

rootnik 06-27-2007 11:17 PM

Coders Shack,

I finally got to play around with this again tonight. It only seems to work for me if I set more than 1 forum. If I only set 1 forum, the array is ignored.

I *THINK* I read somewhere a while back about php5 (at least some versions) handling some array functions differently than php4, where these versions of php expect the array to be a true array (more than 1 item).

Or maybe that was in a dream. Anyhow, it works for me (php 5.2.1) if I have more than 1 forum listed.

Coders Shack 06-27-2007 11:18 PM

Quote:

Originally Posted by rootnik (Post 1278075)
Coders Shack,

I finally got to play around with this again tonight. It only seems to work for me if I set more than 1 forum. If I only set 1 forum, the array is ignored.

I *THINK* I read somewhere a while back about php5 (at least some versions) handling some array functions differently than php4, where these versions of php expect the array to be a true array (more than 1 item).

Or maybe that was in a dream. Anyhow, it works for me (php 5.2.1) if I have more than 1 forum listed.

hmm so if i just added 0, to the array it would be fine?

edenx 06-27-2007 11:20 PM

Doesn't work for me...

Coders Shack 06-27-2007 11:32 PM

Quote:

Originally Posted by edenx (Post 1278078)
Doesn't work for me...

enter more than one forum ID?

edenx 06-27-2007 11:53 PM

Quote:

Originally Posted by Coders Shack (Post 1278084)
enter more than one forum ID?

neither. nothing happens when pressing the thumbs up button

rootnik 06-27-2007 11:54 PM

Quote:

Originally Posted by Coders Shack (Post 1278076)
hmm so if i just added 0, to the array it would be fine?

Yes, I just tested 0 in my array and it worked as expected.

dope15gd 06-28-2007 12:34 AM

Quote:

Originally Posted by edenx (Post 1277859)
I dont want to rate by "diggs" I want to be able to do this when viewing a forum

"show me only the threads that have 10+ digg votes"
"show me only the threads that have 5+ digg votes"

:D

I like this idea. I'd also like it if there was a setting where a thread with x amount of negative votes would be locked automatically.

subnet_rx 06-28-2007 12:43 AM

I think this is an excellent idea, I too would like to see different things happen based on how a thread is modded. Or maybe a algorithm where diggs and replies both come into play when judging what is on the first page of a forum.

rootnik 06-28-2007 02:22 AM

It may be useful to have an option to not allow 'sticky' threads to be 'dugg'.

glorify 06-28-2007 02:27 AM

Works great now in postbit legacy :)

If you did something that grabbed the latest digs or most dugg, then added them to the forumhome somewhere, it would be fairly easy to do for vb advanced. I'd replace my current vba news module with this.


All times are GMT. The time now is 05:52 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.02304 seconds
  • Memory Usage 1,828KB
  • 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
  • (2)bbcode_code_printable
  • (14)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