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)

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 07:15 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.01960 seconds
  • Memory Usage 1,738KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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