PDA

View Full Version : rebuild forum info help...


meowmeow
06-10-2004, 09:06 AM
i'd like to put this process in the sceduled tasks... so that it basically does an update of the forums once a day!
when in the scheduled task page, in the field
"filename" what file would i have to put there???

I saw that when running this process it does this:
..../admincp/misc.php?do=updateforum&startat=0&perpage=100

can I run this entire code form the scheduled tasks?

meowmeow
06-10-2004, 09:28 AM
or should i copy the script from misc.php do==updateforum
and create another file, say myCounters.php,
and run that???

meowmeow
06-10-2004, 10:22 AM
or should i copy the script from misc.php do==updateforum

i did that and it works...

josiespencer
10-12-2006, 06:43 PM
Could you post your myCounters.php script here please? I just need to rebuild 1 forum every night and I want to automate it.

josiespencer
10-22-2006, 04:43 PM
I gutted the misc.php source and created a UpdateForum.php module:

if ($_REQUEST['do'] == 'updateforum')
{
build_forum_permissions($forum['757']);
vbflush();
unset($forum['757'], $vbulletin->forumcache);
}


Now my SQL query runs replacing the forum password:

UPDATE forum SET PASSWORD = '<new pass>' WHERE forumid = 757;

Then I run /forums/admincp/UpdateForum.php?do=updateforum and the password is reset!