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)
-   -   MAF: (Moderator Application Form & Application Rating Module) (https://vborg.vbsupport.ru/showthread.php?t=77340)

Yukino_AE 08-25-2005 10:33 PM

[QUOTE=djsydeburnz]Would there be a way to send a PM to all moderators rather than having it post to a forum?

Quote:

Originally Posted by sabret00the
yes there would but it requires hacking the hack.

would you be able to tell us how to do this?

sabret00the 08-25-2005 10:43 PM

Quote:

Originally Posted by Yukino_AE
no i don't really need that. i'm frequently in the admin cp so i'm always checking.

in that case, comment out the thread creation bit.

Yukino_AE 08-26-2005 02:24 AM

Quote:

Originally Posted by sabret00the
in that case, comment out the thread creation bit.

i'm sorry do what exactly?

djsydeburnz 08-26-2005 03:00 AM

thaks for the response.

is there plans for any of my questions in the future?

PM Mods when new apps are submitted
Automatically change usergroup to Moderator upon completion

sabret00the 08-26-2005 08:19 AM

Quote:

Originally Posted by Yukino_AE
i'm sorry do what exactly?

in maf_cron.php find
PHP Code:

        // Create thread
        
$poststarttime TIMENOW;
        
$maf_forumid intval($vboptions[maf_forumid]);
        
$DB_site->query("
            INSERT INTO " 
TABLE_PREFIX "thread(title, lastpost, forumid, open, replycount, postusername, postuserid, lastposter, dateline, visible, sticky)
            VALUES ('New Mod Applications To Be Rated',    
$poststarttime,    $maf_forumid, 1,    0,    '" $threadstuff[username] . "',    $threadstuff[userid],    '" $threadstuff[username] . "',    $poststarttime,    1,    0)
        "
);
        
$threadid $DB_site->insert_id();
    
        
// Now add Post to thread
        
$DB_site->query("
            INSERT INTO " 
TABLE_PREFIX "post(threadid, parentid, title, username, userid, dateline, pagetext, allowsmilie, showsignature, ipaddress, iconid, visible, attach)
            VALUES (
$threadid,    0,    'New Mod Applications To Be Rated',    '" $threadstuff[username] . "', $threadstuff[userid],    $poststarttime,    'Their are new moderator applications that need rating, please go and rate them, if need be return here to discuss them further.', 1,    1, '', 0, 1, 0)
        "
);
        
$postid $DB_site->insert_id();

        
// Add to last post on forumhome for that forum
        
$DB_site->query("
            UPDATE " 
TABLE_PREFIX "forum
            SET replycount = replycount + 1, lastpost = " 
TIMENOW ", lastposter = '" addslashes($threadstuff['username']) . "', lastthread = 'New Mod Applications To Be Rated', lastthreadid = $threadid, lasticonid = 0
            WHERE forumid = 
$maf_forumid
        "
); 

and replace with
PHP Code:

/*
        // Create thread
        $poststarttime = TIMENOW;
        $maf_forumid = intval($vboptions[maf_forumid]);
        $DB_site->query("
            INSERT INTO " . TABLE_PREFIX . "thread(title, lastpost, forumid, open, replycount, postusername, postuserid, lastposter, dateline, visible, sticky)
            VALUES ('New Mod Applications To Be Rated',    $poststarttime,    $maf_forumid, 1,    0,    '" . $threadstuff[username] . "',    $threadstuff[userid],    '" . $threadstuff[username] . "',    $poststarttime,    1,    0)
        ");
        $threadid = $DB_site->insert_id();
    
        // Now add Post to thread
        $DB_site->query("
            INSERT INTO " . TABLE_PREFIX . "post(threadid, parentid, title, username, userid, dateline, pagetext, allowsmilie, showsignature, ipaddress, iconid, visible, attach)
            VALUES ($threadid,    0,    'New Mod Applications To Be Rated',    '" . $threadstuff[username] . "', $threadstuff[userid],    $poststarttime,    'Their are new moderator applications that need rating, please go and rate them, if need be return here to discuss them further.', 1,    1, '', 0, 1, 0)
        ");
        $postid = $DB_site->insert_id();

        // Add to last post on forumhome for that forum
        $DB_site->query("
            UPDATE " . TABLE_PREFIX . "forum
            SET replycount = replycount + 1, lastpost = " . TIMENOW . ", lastposter = '" . addslashes($threadstuff['username']) . "', lastthread = 'New Mod Applications To Be Rated', lastthreadid = $threadid, lasticonid = 0
            WHERE forumid = $maf_forumid
        ");
*/ 


sabret00the 08-26-2005 08:21 AM

Quote:

Originally Posted by djsydeburnz
thaks for the response.

is there plans for any of my questions in the future?

PM Mods when new apps are submitted
Automatically change usergroup to Moderator upon completion

nope not on either, the pm one is the most likely but at the same time unlikely, however i'll be upgrading this hack i a couple weeks so we'll see how i feel then i suppose.

FatalBreeze 08-26-2005 10:16 AM

ok i installed the hack the problem is that when i ran the cron for the first time it gave me the error:

Code:

Warning: main(): Unable to access ./includes/cron/maf_cron.php.php in /rashy/cronadmin.php on line 56
 
Warning: main(./includes/cron/maf_cron.php.php): failed to open stream: No such file or directory in /rashy/cronadmin.php on line 56

(my admincp dir is called rashy and i set this value in the hack config.)

so i went through the cron and saw this:
PHP Code:

// ## Grabs global.php this grabs vbulletins global.php so we can use the most basic of vBulletins functions ##
chdir('FULL FORUMS PATH HERE'); //change to your vbulletin path
chdir("K:/Network/xampp/htdocs/forums/"); //change to your vbulletin path 

so, what do you mean by full forums path? do you mean
http://www.mysite.com/forums/
or
bin/user/public_html/ ?
i tried the latter by it didn't work...
what to do?

and im sorry for my awful coding skills but why did you wrote two chdir()s
one right after the other?

sabret00the 08-26-2005 02:29 PM

Quote:

Originally Posted by FatalBreeze
bin/user/public_html/

it's the equivalent of that, thought it should be "/home/site/public_html/forums/"

and delete teh line above it, this one "chdir('FULL FORUMS PATH HERE'); //change to your vbulletin path"

Yukino_AE 08-26-2005 08:52 PM

many thanx! ^_^

djsydeburnz 09-02-2005 11:54 AM

hmmm . . .

ran the script by calling it directly cuz ive been getting some emails. got this:

Shortlisting Email Sent To eclypz
Shortlisting Email Sent To Bucho

Fatal error: Call to undefined function: log_cron_action() in /home/httpd/vhosts/syde-sho.com/httpdocs/forums/includes/cron/maf_cron.php on line 163

this is what is on line 163:

log_cron_action($logmessage, $nextitem);

sabret00the 09-02-2005 12:55 PM

Quote:

Originally Posted by djsydeburnz
hmmm . . .

ran the script by calling it directly cuz ive been getting some emails. got this:

Shortlisting Email Sent To eclypz
Shortlisting Email Sent To Bucho

Fatal error: Call to undefined function: log_cron_action() in /home/httpd/vhosts/syde-sho.com/httpdocs/forums/includes/cron/maf_cron.php on line 163

this is what is on line 163:

log_cron_action($logmessage, $nextitem);

due to running it directly, it's not included by your cron.php or whatever it's called so it has no idea where the function lies.

AlexUK 09-02-2005 04:11 PM

I am getting this error:

Warning: main(DIR/includes/adminfunctions.php): failed to open stream: No such file or directory in /home/lounge/public_html/forums/modcp/global.php on line 34

Fatal error: main(): Failed opening required 'DIR/includes/adminfunctions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lounge/public_html/forums/modcp/global.php on line 34

any help?

sabret00the 09-02-2005 04:32 PM

Quote:

Originally Posted by AlexUK
I am getting this error:

Warning: main(DIR/includes/adminfunctions.php): failed to open stream: No such file or directory in /home/lounge/public_html/forums/modcp/global.php on line 34

Fatal error: main(): Failed opening required 'DIR/includes/adminfunctions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lounge/public_html/forums/modcp/global.php on line 34

any help?

what file you getting that on?

AlexUK 09-02-2005 05:11 PM

in the admin panel when I click the rate applications link.

Fallback 09-02-2005 05:54 PM

This is a great hack. The only thing is missing is an indicator of which applications you have already rated on the main app listing screen. On large boards with many apps its hard to see which ones you have already rated.

djsydeburnz 09-03-2005 12:14 AM

ok, im gonna try to put more info in here in hopes that i am including all things necessary to understand what is wrong.

everyday in my email i get this:

/bin/sh: line 1: ./includes/cron/maf_cron.php: No such file or directory

if i run the report directly to make sure i got things set up right i get this error:

Shortlisting Email Sent To eclypz
Shortlisting Email Sent To Bucho

Fatal error: Call to undefined function: log_cron_action() in /home/httpd/vhosts/syde-sho.com/httpdocs/forums/includes/cron/maf_cron.php on line 163

this is what is on line 163:

log_cron_action($logmessage, $nextitem);

in my maf_cron.php i have this for line 10 (line 9 removed, even though it was commented out):

chdir("/home/httpd/vhosts/syde-sho.com/httpdocs/forums/");

in my cronjob i have:

./includes/cron/maf_cron.php

is everything here set up right for me?

thanks in advance!

adill420 09-30-2005 09:33 AM

great hack but i still haven't seen even one person post a solution to this error..

Quote:

Warning: main(./includes/cron/maf-cron.php): failed to open stream: No such file or directory in /admincp/cronadmin.php on line 56

Fatal error: main(): Failed opening required './includes/cron/maf-cron.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/gameown/public_html/forum/admincp/cronadmin.php on line 56

sabret00the 09-30-2005 09:41 AM

Quote:

Originally Posted by adill420
great hack but i still haven't seen even one person post a solution to this error..

yes you have you just didn't read the thread properly, you're maf_cron.php needs configuring, open it up in a php/text editor and you'll see the line that needs fixing.

sabret00the 09-30-2005 09:42 AM

Quote:

Originally Posted by Fallback
This is a great hack. The only thing is missing is an indicator of which applications you have already rated on the main app listing screen. On large boards with many apps its hard to see which ones you have already rated.

will bare that in mind.

sabret00the 09-30-2005 09:42 AM

Quote:

Originally Posted by AlexUK
in the admin panel when I click the rate applications link.

do you get that on any other file?

sabret00the 09-30-2005 09:43 AM

Quote:

Originally Posted by djsydeburnz
ok, im gonna try to put more info in here in hopes that i am including all things necessary to understand what is wrong.

everyday in my email i get this:

/bin/sh: line 1: ./includes/cron/maf_cron.php: No such file or directory

if i run the report directly to make sure i got things set up right i get this error:

Shortlisting Email Sent To eclypz
Shortlisting Email Sent To Bucho

Fatal error: Call to undefined function: log_cron_action() in /home/httpd/vhosts/syde-sho.com/httpdocs/forums/includes/cron/maf_cron.php on line 163

this is what is on line 163:

log_cron_action($logmessage, $nextitem);

in my maf_cron.php i have this for line 10 (line 9 removed, even though it was commented out):

chdir("/home/httpd/vhosts/syde-sho.com/httpdocs/forums/");

in my cronjob i have:

./includes/cron/maf_cron.php

is everything here set up right for me?

thanks in advance!

are you using vB3.5?

adill420 09-30-2005 10:09 AM

Quote:

Originally Posted by sabret00the
yes you have you just didn't read the thread properly, you're maf_cron.php needs configuring, open it up in a php/text editor and you'll see the line that needs fixing.

no i think i did fix unless i did something wrong..thanks for the help!

Quote:

<?php
// ## Error Reporting ( we use error reporting in php so we can control the display of error messages
// ## we will use this because all vBulletin files follow the same error reporting rules) ##
error_reporting(E_ALL & ~E_NOTICE);

// ## this action here cache's the templates so that everytime their needed a querry wont be needed to run
// ## the names in there are just the template names :), there must be a comma after everyone but the last ##

// ## Grabs global.php this grabs vbulletins global.php so we can use the most basic of vBulletins functions ##

chdir("/home/gameown/public_html/forum/"); //change to your vbulletin path

djjeffa 10-05-2005 11:24 AM

Quote:

Originally Posted by sabret00the
ok file changed, i'll make the next official update announcement at midnight, hopefully we find any other oversights before then :)

when the regular mods and super mods go in can they see who voted? or just the score?

djjeffa 10-07-2005 02:11 AM

also its not posting in the forum when new aplacants aply

osariase 10-10-2005 04:09 AM

Hi all,
is there a chance of this hack for vb 3.5?
thanks

djjeffa 10-18-2005 02:41 AM

Quote:

Originally Posted by djjeffa
also its not posting in the forum when new aplacants aply

bump could anybody help on this?

sabret00the 10-18-2005 08:12 AM

Quote:

Originally Posted by djjeffa
bump could anybody help on this?

have you filled out the variables in your admincp?

sabret00the 10-18-2005 08:16 AM

Quote:

Originally Posted by osariase
Hi all,
is there a chance of this hack for vb 3.5?
thanks

yup it will happen.

djjeffa 10-18-2005 08:20 PM

Quote:

Originally Posted by sabret00the
have you filled out the variables in your admincp?

yes i did.
it asked for a user name and the id of the forum.

VBUsers 10-19-2005 02:10 AM

Quote:

Originally Posted by djjeffa
yes i did.
it asked for a user name and the id of the forum.

having the same issue as jeffa please if anyone can help that be great

Chris Croft 10-19-2005 12:12 PM

Not to be impatient, but do you have an estimate as of when the update for v3.5 will be out? If not, thanks anyways :)

zzzxxzzz 10-25-2005 02:24 AM

how come the automatic thread doesn't show up in the forum i assigned? using v3.0.9

MojoNixon 10-25-2005 08:36 PM

Well i got several Problems with that.

First of all, the installation.
its works fine, when i choose NOT the Generate Files option.
If i choose it, i see the following and a nice sql error as a special benefit:
templates.php (Save This File)
and so on ..

But no problem ..i manually created the files and what now? its not mentioned in your "install readme file".. .first problem at this point. .now the sql error:

Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /home/htdocs/web1/html/board/includes/db_mysql.php on line 389

Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.') in /home/htdocs/web1/html/board/includes/db_mysql.php on line 389

and:

Datenbankfehler in vBulletin 3.0.7:

Ungueltige SQL-Abfrage: SELECT varname, text FROM phrase WHERE varname IN () ORDER BY languageid DESC
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY languageid DESC' at line 1

mysql error number: 1064

Datum: 25.10.2005 23:32:24
Skript: install/hack_install.php
Referer: install/hack_install.php
Benutzername: x
IP-Adresse: x

So what now? I can install it, i can fill in an application, just send it and a thread is created in my mod forum ...but if i want to see it / rate it there is no template in admincp / modcp neither is there any text when i ran the cron manually.
I have made the changes to the file in the cron folder.

VBUsers 10-26-2005 12:12 AM

none of my applications are being dropped into the forum i chose can some one please help me out?

Mastar 11-04-2005 07:40 PM

when I click on edit polls and View Poll Results it gives me a no permission message. Where can I edit the permissions for that?? Thanks in advance!

sabret00the 11-05-2005 08:30 AM

Quote:

Originally Posted by Chris Croft
Not to be impatient, but do you have an estimate as of when the update for v3.5 will be out? If not, thanks anyways :)

as soon as i squash the bugs for the other hacks i have out, it'll be my next port of call.

sabret00the 11-05-2005 08:30 AM

Quote:

Originally Posted by Mastar
when I click on edit polls and View Poll Results it gives me a no permission message. Where can I edit the permissions for that?? Thanks in advance!

what polls?

sabret00the 11-05-2005 08:31 AM

Quote:

Originally Posted by MojoNixon
Well i got several Problems with that.

First of all, the installation.
its works fine, when i choose NOT the Generate Files option.
If i choose it, i see the following and a nice sql error as a special benefit:
templates.php (Save This File)
and so on ..

But no problem ..i manually created the files and what now? its not mentioned in your "install readme file".. .first problem at this point. .now the sql error:

Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /home/htdocs/web1/html/board/includes/db_mysql.php on line 389

Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.') in /home/htdocs/web1/html/board/includes/db_mysql.php on line 389

and:

Datenbankfehler in vBulletin 3.0.7:

Ungueltige SQL-Abfrage: SELECT varname, text FROM phrase WHERE varname IN () ORDER BY languageid DESC
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY languageid DESC' at line 1

mysql error number: 1064

Datum: 25.10.2005 23:32:24
Skript: install/hack_install.php
Referer: install/hack_install.php
Benutzername: x
IP-Adresse: x


So what now? I can install it, i can fill in an application, just send it and a thread is created in my mod forum ...but if i want to see it / rate it there is no template in admincp / modcp neither is there any text when i ran the cron manually.
I have made the changes to the file in the cron folder.

you weren't meant to click generate files.

ok have you made the edit to admincp/index.php?

sabret00the 11-05-2005 08:33 AM

Quote:

Originally Posted by djjeffa
yes i did.
it asked for a user name and the id of the forum.

did you edit the cron.php?

sabret00the 11-05-2005 08:34 AM

Quote:

Originally Posted by zzzxxzzz
how come the automatic thread doesn't show up in the forum i assigned? using v3.0.9

i think theirs an issue regarding the cron system changes of vbulletin above 3.0.5 to be honest.


All times are GMT. The time now is 02:29 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.01874 seconds
  • Memory Usage 1,876KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (26)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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