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)

MikaK 03-06-2005 10:59 AM

Quote:

Originally Posted by MarcoH64
Please tell me which version you're running, also php and MySQL versions.

scll is your uCash points table? Do you have uCash installed? How is the uCash integration set in the vB settings for Thread of the Week?

scll is the data table prefix in my vBulletin database.



I have ToW 1.13 installed on vB 3.0.3. I tried to install ucash but rolled back to a previous backup since I had trouble with it.

uCash setting in your script for this poll are the default ones: first three fields as 0 and the fourth empty.


PHP version 4.3.10

MySQL version 4.0.23-standard.



Regs,

-Mika

Marco van Herwaarden 03-06-2005 12:01 PM

ACP->vBulletin Settings-->Thread of the Week-->uCah integration: No

That should solve your problem.

MikaK 03-06-2005 12:13 PM

Quote:

Originally Posted by MarcoH64
ACP->vBulletin Settings-->Thread of the Week-->uCah integration: No

That should solve your problem.

Thanks Marco,

The message changed shape a tad: Warning: Invalid argument supplied for foreach() in /home/soundchi/public_html/loud_lounge/includes/cron/threadoftheweek.php on line 358

my file looks from row 358 like:
PHP Code:

foreach ($svotes AS $key=>$values)
{
if (
$count != 0)
{
--
$count;
++
$position;
continue 
1;
}
if (
$values['votes'] == 0)     // No more winners
break;
 
++
$position;
$winners[$position] = $values['polloption'];
 
// More sharing the same number of votes?
$count 0;
while (++
$count)
{
if (
$svotes[$key $count]['votes'] == $values['votes'])
{
    
$winners[$position] .= "," $svotes[$key $count]['polloption'];
}
else
{
    --
$count;
    break 
1;
}
 
}


How critical is this? The cron was executed ok and the poll apeaed at the wanted forum.

Regs,
-Mika

jzewatsky 03-10-2005 01:06 AM

What a great hack! I'm sure my thread count will increase by installing this. Thank you!

Side note.

Does anyone know how to give ucash for responding to polls?

Thanks again!!!!!

Lionel 03-11-2005 02:35 PM

Hi,

I was wondering if the thread title could be automated to say "thread of the week for week of xxx to xxx" ?

This way, while being specific, it will change the monotomy of title.

Marco van Herwaarden 03-11-2005 03:47 PM

Quote:

Originally Posted by Lionel
Hi,

I was wondering if the thread title could be automated to say "thread of the week for week of xxx to xxx" ?

This way, while being specific, it will change the monotomy of title.

Hmm sounds like a good suggestion, will try to implement in a next version.

Lionel 03-11-2005 04:20 PM

Quote:

Originally Posted by MarcoH64
Hmm sounds like a good suggestion, will try to implement in a next version.

Thanks for considering it. Real nice hack! Couldn't that be achieved now by doing something like:

Best thread for week ending $lastrundate (something to that extent using that parameter)

Marco van Herwaarden 03-11-2005 05:51 PM

Well that parameter is not implemented, only start weeknumber and i think start date if i remember correct.

Kru 03-15-2005 03:55 AM

I am getting the following error message, too: Warning: Invalid argument supplied for foreach() in /includes/cron/threadoftheweek.php on line 358 if I run it in the Scheduled Task Manager. I am using vBulletin. 3.0.7

Marco van Herwaarden 03-15-2005 05:53 AM

Edit your includes/cron/threadoftheweek.php.

Find:
PHP Code:

if ($pollid

Add above:
PHP Code:

        $svotes = array(); 

Please report back if this is solving anything.

1 Question, did the current poll maybe never get any votes?


All times are GMT. The time now is 12:51 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.01255 seconds
  • Memory Usage 1,749KB
  • 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
  • (3)bbcode_php_printable
  • (4)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