vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   TOTW: Thread of the Week Poll - Version 1.16 (https://vborg.vbsupport.ru/showthread.php?t=74737)

docvader 01-22-2005 05:18 PM

I just did the 3.06 upgrade, which has screwed up a bunch of my hacks. So, I'm not sure it's your hack that's doing this, I was just wondering if you thought it might. (I'm still dealing with some Shoutbox issues, LOL). The rule settings for the poll look fine to me, as does the functioning of the hack within the AdminCP. But the only two new Cron additions were the Statistics hack by PDFreak, and yours. So, I was just wondering if you had seen this error before, or, if you might recognize it.

Marco van Herwaarden 01-22-2005 09:56 PM

Well the hack is pretty stand alone, an upgrade shouldn't effect anything except maybe some phrases.

Yes this query is part of the cronjob for this hack.

What this cronjob does is read the rules table and then execute for every rule some code.

This query that give you an error is inside the part that gets triggered for each rule that needs to be run (meaning that there IS a rule row in the database that needs to be run).

So given the fact that this part of the code can only be executed if there is a rule, i really dont get why this query have no values from the rules row.

The line [sql], ((views * ) + (replycount * )) AS score[/sql]
should have the values of the weight for views and replies inserted there. So for example:
[sql], ((views * VIEWWEIGHT) + (replycount * REPLYWEIGHT)) AS score[/sql]
If you have access to the database, please check if there is somehow an empty row in the 'threadofweekrules' table.

Otherwise all i can think of is to clear all rules, and add them again.

Romeos Tune 01-22-2005 10:23 PM

Thanks for the fun hack! :) Good Job!

docvader 01-22-2005 11:13 PM

This is what is in the database:
Quote:

row(s) starting from record #
in mode and repeat headers after cells

Full Texts threadofweekrulesid description active schedule_type schedule_value postforumid postasuser threadtitle posttext sticky pollquestion pollpublic numberpolloptions analyzeforums permission_usergroupids weight_views weight_replies lastrun currentpollid previouspolledthreads
All boxes have data in them, with the exception of permission_usergroupids

Now, I did set this up so that it ran for one day. And, it seemed to have worked. So, I'm not saying that this doesn't work; I just don't understand where this error came from. I wanted you to be aware of it.

let me know what I can do to help, if need be.

James T Brock 01-26-2005 06:58 PM

It doesn't work as advertised. On my forum I have it set for the last 7 days but it shows threads from months ago in the poll!!

sabret00the 01-26-2005 07:10 PM

Quote:

Originally Posted by James T Brock
It doesn't work as advertised. On my forum I have it set for the last 7 days but it shows threads from months ago in the poll!!

it will do that for the inital poll, proceeding polls will be as set.

sabret00the 01-26-2005 07:11 PM

Quote:

Originally Posted by MarcoH64
- Integration with an Award system? If yes which one?

uCash unless you mean adding a simple to show thread to show that "this a thread of the month winner"

Quote:

Originally Posted by MarcoH64
- More 'Weight' criteria to select threads. Based on what would you like threads to be selected. Can't believe that replies and views are enough.

it seems to work of views, it would be nice to have something like replies * views = weight

fiber1 01-26-2005 07:29 PM

I have the same issue that docvader does so there is an issue there. I am just not sure of the resolution.

Marco van Herwaarden 01-26-2005 08:51 PM

Quote:

Originally Posted by James T Brock
It doesn't work as advertised. On my forum I have it set for the last 7 days but it shows threads from months ago in the poll!!

In the current version the initial poll takes threads from the beginning. I got a new version here that has some small modifications, one of them is that also the initial poll limits the age of the threads.

Quote:

Originally Posted by fiber1
have the same issue that docvader does so there is an issue there. I am just not sure of the resolution.

I have send docvader (i think, or am i mixing up mail addresses now) a test version with some extra debug options to find the problem. I don't have a result from that yet. You can send me a pm with MSN/ICQ or mail contact info and i could send you that also.

Quote:

Originally Posted by sabret00the
it seems to work of views, it would be nice to have something like replies * views = weight

Current selection score is calculated as follows:
score = (views * weight_views) + (replies * weight_replies)

General:
Will look soon into a uShop integration.

trackpads 01-26-2005 09:44 PM

Quote:

Originally Posted by MarcoH64
Will look soon into a uShop integration.


Thanks!!!!!


All times are GMT. The time now is 10:57 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.01581 seconds
  • Memory Usage 1,745KB
  • 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
  • (8)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