View Full Version : MAF: (Moderator Application Form & Application Rating Module)
brianstevz
04-24-2005, 03:36 PM
run the installer, select uninstall.
There is no uninstall selection. I just went back manually and deleted all the files and dropped the SQL files.
the file edits are stated within the installer.
what should I do with Generate Files
Generate template/setting/phrase/adminhelp files.??
When I click on (Save This File), it goes back to first step of installer.
And it has this error:
Database error in vBulletin 3.0.7:
Invalid SQL: 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
Date: Sunday 24th of April 2005 11:40:56 AM
Script: http://www.sss.com/forums/install/hack_install.php
Referer: http://www.sss.com/forums/install/hack_install.php
sabret00the
04-24-2005, 03:59 PM
nope, ignore that, that's not what you need, what you need is when you follow the installer normally the last step before you go back to the admincp shows a huge blue square, just above that click "show file/template mods".
xellos16
04-25-2005, 02:21 PM
OK, I'm confused. There are manual edits that I have to do with this hack?
sabret00the
04-25-2005, 02:26 PM
OK, I'm confused. There are manual edits that I have to do with this hack?
yup theirs two (i think) to add the relevant links to the admin and modcp's
Gio Takahashi
04-25-2005, 02:53 PM
Database error in vBulletin 3.0.7:
Invalid SQL:
INSERT INTO thread(title, lastpost, forumid, open, replycount, postusername, postuserid, lastposter, dateline, visible, sticky)
VALUES ('New Mod Applications To Be Rated', 1114444062, 56, 1, 0, '', , '', 1114444062, 1, 0)
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 ' '', 1114444062, 1, 0)' at line 2
mysql error number: 1064
....
I get this when I try to run the cron to test it..
sabret00the
04-25-2005, 03:00 PM
did you set the vboptions/
Gio Takahashi
04-25-2005, 03:00 PM
I believe I did o.O
sabret00the
04-25-2005, 03:08 PM
you did set the username and not the userid didn't ya?
Gio Takahashi
04-25-2005, 03:12 PM
>__> for some reason I assumed userid...
Gio Takahashi
04-25-2005, 03:13 PM
Okay now, here's the next problem.
it seems that the thread is created everytime the cron runs...
Gio Takahashi
04-25-2005, 03:22 PM
Here's a suggestion, See if its possible this way:
When the cron runs the first time, have it to post the thread, and then update the thread whenever someone new made a new application.
Also...see if you can get the script to post WHO has posted the application?
sabret00the
04-25-2005, 03:24 PM
it seems that the thread is created everytime the cron runs...
shouldn't do.
Here's a suggestion, See if its possible this way:
When the cron runs the first time, have it to post the thread, and then update the thread whenever someone new made a new application.
you are aware the cron's suppose to run once a day right? anyway good suggestion though i doubt i'll be the coder of it. this was just something i wanted for myself then decided to share.
Gio Takahashi
04-25-2005, 03:32 PM
It is indeed a great thing, and I know that it will be incredibly useful for my forums. That's for sure.
nope, ignore that, that's not what you need, what you need is when you follow the installer normally the last step before you go back to the admincp shows a huge blue square, just above that click "show file/template mods".
I can't reach there, I got this error:
Invalid SQL: 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
while generating the template
sabret00the
04-25-2005, 04:33 PM
I can't reach there, I got this error:
Invalid SQL: 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
while generating the template
you do not need to generate any files, you clicked the wrong thing
goto www.yourforums.com/forums/install/hack_install.php and then click MAF then make sure nothing ticked and then click next.
xellos16
04-25-2005, 11:12 PM
I have another question. I know someone posted this already but I don't think that you answered it. Maybe you did and I just don't understand what to do. But here are the errors that I am getting.
Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /home/rpg-game/public_html/vpratice/includes/db_mysql.php on line 389
Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/rpg-game/public_html/vpratice/includes/db_mysql.php on line 389
Database error in vBulletin 3.0.7:
Invalid SQL: 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
Date: Monday 25th of April 2005 05:02:21 PM
Script: http://rpg-gamers.net/vpratice/install/hack_install.php
Referer: http://rpg-gamers.net/vpratice/install/hack_install.php
Username: xellos16
IP Address: 207.246.163.43
also, did I do this edit correctly?
// ## Grabs global.php this grabs vbulletins global.php so we can use the most basic of vBulletins functions ##
chdir('www.rpg-gamers.net/vpratice'); //change to your vbulletin path
chdir("www.rpg-gamers.net/vpratice/"); //change to your vbulletin path
Gio Takahashi
04-27-2005, 12:46 PM
You did not, and I believe I told you how to edit it the right way in AIM.
sabret00the
04-27-2005, 01:00 PM
nope you never xellos, it should look something like this.
chdir('/home/rpg-gamers/public_html/vpratice'); //change to your vbulletin path
Oblivion Knight
04-27-2005, 02:25 PM
Has the new version fixed the non-functional Shortlisted Applicants in the e-mails? :)
sabret00the
04-27-2005, 02:32 PM
Has the new version fixed the non-functional Shortlisted Applicants in the e-mails? :)
fixed what?
Oblivion Knight
04-27-2005, 02:37 PM
https://vborg.vbsupport.ru/showpost.php?p=637317&postcount=212
^ This.. ;)
I probably used the wrong words, sorry.!
sabret00the
04-27-2005, 03:54 PM
^ Bump.
Just making sure that you're aware of this issue Sabe.. ;)
new applicants: working 100%
shortlisted: not working for me, thought it was just me though.
rejects: working 100%
i'll get the shortlisted thing working asap i honestly thought it was just me with the issue.
Oblivion Knight
04-27-2005, 07:10 PM
new applicants: working 100%
shortlisted: not working for me, thought it was just me though.
rejects: working 100%
i'll get the shortlisted thing working asap i honestly thought it was just me with the issue.Nope, it isn't just you.. I have the exact same issue. :)
aloha
04-28-2005, 03:39 AM
Just for those who can't seem to find out their path to their forums... uhm... you can telnet to it and just type 'pwd'... and it should give you it...
Seems like people are having probs with that bit. :-p
Sean S
04-28-2005, 03:44 AM
wow this is a cool hack, would this work well with vb 3.0.3?
kobescoresagain
04-28-2005, 05:33 PM
could you add an addon to this where people could become points in the ucash system on challanges? I think alot of people would like that.
sabret00the
04-28-2005, 05:53 PM
wow this is a cool hack, would this work well with vb 3.0.3?yup :)
could you add an addon to this where people could become points in the ucash system on challanges? I think alot of people would like that.me do it? nope. challenges? have no idea what you're talking about :(
could you add an addon to this where people could become points in the ucash system on challanges? I think alot of people would like that.
when I read your message I was like what? what are you talking about...? maybe you would like to elaborate alittle bit more ;)
kobescoresagain
04-29-2005, 01:04 AM
I had up two vb pages. Posted in wrong one. Sorry
uae-style
04-29-2005, 04:46 AM
i keep on getting this email :ermm:
Database error in vBulletin 3.0.6:
Invalid SQL:
INSERT INTO thread(title, lastpost, forumid, open, replycount, postusername, postuserid, lastposter, dateline, visible, sticky)
VALUES ('New Mod Applications To Be Rated', 1114753170, 0, 1, 0, '', , '', 1114753170, 1, 0)
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 ' '', 1114753170, 1, 0)' at line 2
mysql error number: 1064
Date: Friday 29th of April 2005 12:39:30 AM
Script: http://www.xxxxxxxxxx.com/forums/cron.php?&rand=121584
Referer:
Username: xxxxxxxxxx
IP Address: xxxxxxxxx
drumforum
04-30-2005, 05:57 PM
hey dude.. I'm a bit confused...
I installed the mod, which was sooooooooooooooooooooooooo easy to install, and i thank you for making it so easy!, and went to my cp and changed the MAF settings, But what i would like to know is where is the application form?? Is it in a foum or is it somewhere else??
Thanks
ADam :D
sabret00the
04-30-2005, 05:59 PM
yup it's in your forum, i think it set the instructions to put the link in your quick links menu
www.yourdomain.com/forums/modapp.php
drumforum
04-30-2005, 06:50 PM
right gotchya! Ok, next question now- I can't seem to see the submitted application in the forum i have selected. I have tried twice but still no avil.
I must have done something wrong, but what??
Oh and by the way, i must say: what a great mod! well done! :up:
sabret00the
04-30-2005, 06:55 PM
the application definately exists? and you've set the username and password?
drumforum
04-30-2005, 06:59 PM
the application definately exists?
Yes, Definetly. I got the message at the end.
and you've set the username and password?
huh? :surprised:
sabret00the
04-30-2005, 07:18 PM
Yes, Definetly. I got the message at the end.
huh? :surprised:
in your admincp i need you tow check two thigns for me
the first being the "Automated Thread Settings" and the second being the "Rate Applications" screen.
drumforum
04-30-2005, 07:39 PM
in your admincp i need you tow check two thigns for me
the first being the "Automated Thread Settings" and the second being the "Rate Applications" screen.
I must be a gigantic dumbass....... i cannie see either of em :disappointed:
sabret00the
04-30-2005, 07:46 PM
you missed the file edits it seems.
drumforum
04-30-2005, 08:13 PM
scratches head
Erm can u point me in the right direction?
drumforum
05-01-2005, 01:00 AM
hey man, Its alright i see what i have done wrong... I never saw the expanding code edits on the install. I have got it now though!
asianboi
05-01-2005, 03:32 AM
I someone received an these messages when I do CRON job
Moderator Application
Warning: chdir(): No such file or directory (errno 2) in /includes/cron/maf_cron.php on line 10
Warning: chdir(): No such file or directory (errno 2) in /includes/cron/maf_cron.php on line 11
what is a good example for this? LINE 10 and 11 are below
I dont quite understand what that means
chdir('FULL FORUMS PATH HERE'); //change to your vbulletin path
chdir("K:/Network/xampp/htdocs/forums/"); //change to your vbulletin path
sabret00the
05-01-2005, 08:28 AM
delete line 11 and replace is with your sites path
i.e. /home/asainboi/public_html/forums/
asianboi
05-01-2005, 01:04 PM
thanks!
shadiguy1
05-01-2005, 06:28 PM
think you can make it be able to be turned of Via Admincp when no new mods are needed. i asked a while ago but you were busy at the time just rebringing it up .
MB Dreamz
05-04-2005, 05:47 PM
Thanks for the great hack. I just one question. I had run a bunch of test users during the installation & troubleshooting of this hack. Those users were then deleted after all the bugs were worked out. Now I can't delete those applicants because the usernames don't exist. Is there a way to remove all applicants?
Watson
05-05-2005, 09:39 AM
Just to let anyone know, this hack doesn't work if your modcp and admincp folders are named differently, change them back to default, then change them again when your done
Watson
{edit}
Actually got too many errors, and the read me and file edits weren't there, had a good look through the thread but too many things didnt work for me :( so uninstalled
sabret00the
05-05-2005, 07:00 PM
Thanks for the great hack. I just one question. I had run a bunch of test users during the installation & troubleshooting of this hack. Those users were then deleted after all the bugs were worked out. Now I can't delete those applicants because the usernames don't exist. Is there a way to remove all applicants?
the normal method via the admincp didn't work? hmmm strange, you can do it via phpmyadmin.
sabret00the
05-05-2005, 07:01 PM
think you can make it be able to be turned of Via Admincp when no new mods are needed. i asked a while ago but you were busy at the time just rebringing it up .
i'll try and make sure it's in the next build, i'm trying to squash a bug so it shouldn't be too long :)
sabret00the
05-10-2005, 03:00 PM
think you can make it be able to be turned of Via Admincp when no new mods are needed. i asked a while ago but you were busy at the time just rebringing it up .
still not in yet, it was a bug fix update.
heynurse
05-10-2005, 11:58 PM
I get the following error after clicking the "done" button on the last step of the insall script:
Database error in vBulletin 3.0.6:
Invalid SQL: CREATE TABLE maf_application (
appid int(10) NOT NULL auto_increment,
userid int(10) NOT NULL default '0',
email varchar(250) NOT NULL default '',
fullname varchar(250) NOT NULL default '',
age tinyint(4) NOT NULL default '0',
location varchar(250) NOT NULL default '',
timezone varchar(25) NOT NULL default '',
position varchar(250) NOT NULL default '',
why_them mediumtext NOT NULL,
what_they_bring mediumtext NOT NULL,
pactivity mediumtext NOT NULL,
globally_pactivity mediumtext NOT NULL,
plus_site mediumtext NOT NULL,
neg_site mediumtext NOT NULL,
better_than_rest mediumtext NOT NULL,
more mediumtext NOT NULL,
application_time int(10) NOT NULL default '0',
auto_mailed tinyint(4) default NULL,
PRIMARY KEY (appid)
);
mysql error: You have an error in your SQL syntax near ';
' at line 21
mysql error number: 1064
Date: Tuesday 10th of May 2005 07:53:15 PM
This is the error on the webpage as well:
I changed the real path to the forums to: "/path to forums/"
Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /path to forums/forums/includes/db_mysql.php on line 387
Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/share/pear') in /path to forums/forums/includes/db_mysql.php on line 387
My server details:
Web Server: Apache v1.3.27
PHP 4.3.4
MySQL: 3.23.58-log
any ideas or suggestions? Thanks
Aceman
05-14-2005, 06:56 PM
Will this hack work with PHP 4.3.11??
I'm getting this error:
Database error in vBulletin 3.0.7:
Invalid SQL:
INSERT INTO thread(title, lastpost, forumid, open, replycount, postusername, postuserid, lastposter, dateline, visible, sticky)
VALUES ('New Mod Applications To Be Rated', 1116100501, 113, 1, 0, '', , '', 1116100501, 1, 0)
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 ' '', 1116100501, 1, 0)' at line 2
mysql error number: 1064
Date: Saturday 14th of May 2005 07:55:02 PM
Aceman
05-14-2005, 07:01 PM
I figured out what it was.. the person or member you specify as your poster for the mod forum MUST EXIST.. I made up a user and it wasn't working.. I put my own username in and now it's humming along nicely.
Aceman
sabret00the
05-14-2005, 07:02 PM
I figured out what it was.. the person or member you specify as your poster for the mod forum MUST EXIST.. I made up a user and it wasn't working.. I put my own username in and now it's humming along nicely.
Aceman
glad you got it working :)
sabret00the
05-14-2005, 07:03 PM
I get the following error after clicking the "done" button on the last step of the insall script:
This is the error on the webpage as well:
I changed the real path to the forums to: "/path to forums/"
My server details:
Web Server: Apache v1.3.27
PHP 4.3.4
MySQL: 3.23.58-log
any ideas or suggestions? Thanks
sorry only just saw this, what line was 21?
blueuniverse
05-17-2005, 07:21 PM
Am I missing something. I ran the installer file and I got this.
MAF
templates.php (Save This File)
<?php
// Templates
Warning: Invalid argument supplied for foreach() in /his_files/hack_creator_b2.php.bak on line 160
?>
phrases.php (Save This File)
<?php
// Phrases
Warning: Invalid argument supplied for foreach() in /his_files/hack_creator_b2.php.bak on line 202
?>
Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /home/blueuniv/public_html/rousehousev4/includes/db_mysql.php on line 389
Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/blueuniv/public_html/rousehousev4/includes/db_mysql.php on line 389
this was followed by a database error
Database error in vBulletin 3.0.7:
Invalid SQL: 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
Anybody know what might be causing this?
Marco van Herwaarden
05-17-2005, 07:35 PM
Don't tick the "Generate Files" in the installer screen.
Watson
05-18-2005, 01:41 PM
Getting this error
Moderator Application
Warning: chdir(): No such file or directory (errno 2) in /includes/cron/maf_cron.php on line 10
But I put in the proper path, my forums are in a sub domain, will this effect it? Cause I really would like the cron job to work, as my posts aint going in a forum :(
edit* This was when I manually ran it, but it seems to create the thread for some reason
sabret00the
05-18-2005, 01:58 PM
Getting this error
Moderator Application
Warning: chdir(): No such file or directory (errno 2) in /includes/cron/maf_cron.php on line 10
But I put in the proper path, my forums are in a sub domain, will this effect it? Cause I really would like the cron job to work, as my posts aint going in a forum :(
edit* This was when I manually ran it, but it seems to create the thread for some reason
if you put your path in, it really shouldn't matter
"/home/watson/public_html/subdomains/forums/"
Watson
05-19-2005, 08:37 AM
yeah seems to work fine anyway, just get that when I manually run the cron :)
Meant to ask, is there anyway to let my mods see the comments that are posted also? and mabye even add more comments, or is there some way if the application is short listed to transfer it onto the forums, to be discussed more?
for the New Version mabye?
Watson
05-19-2005, 09:33 AM
Oh and to add
When you finish rating applications it says "Applicantion" Rated Successfully.
I know this isn't big or important, but it's the little things that count
richier
05-22-2005, 03:32 PM
Database error in vBulletin 3.0.7:
Invalid SQL: CREATE TABLE maf_application (
appid int(10) NOT NULL auto_increment,
userid int(10) NOT NULL default '0',
email varchar(250) NOT NULL default '',
fullname varchar(250) NOT NULL default '',
age tinyint(4) NOT NULL default '0',
location varchar(250) NOT NULL default '',
timezone varchar(25) NOT NULL default '',
position varchar(250) NOT NULL default '',
why_them mediumtext NOT NULL,
what_they_bring mediumtext NOT NULL,
pactivity mediumtext NOT NULL,
globally_pactivity mediumtext NOT NULL,
plus_site mediumtext NOT NULL,
neg_site mediumtext NOT NULL,
better_than_rest mediumtext NOT NULL,
more mediumtext NOT NULL,
application_time int(10) NOT NULL default '0',
auto_mailed tinyint(4) default NULL,
PRIMARY KEY (appid)
);
mysql error: You have an error in your SQL syntax near ';
' at line 21
mysql error number: 1064
Date: Sunday 22nd of May 2005 11:28:12 AM
Script: http://www.**************.com/forums/install/hack_install.php?do=install&step=dodatabasequeries&hacks=MAF
Referer:
evan.townsend
06-04-2005, 01:56 AM
Installed, thanks.
David_R
06-05-2005, 01:19 AM
first error on running the install file.
Warning: chdir(): No such file or directory (errno 2) in /home/office/public_html/install/his_files/hack_install_b3.php on line 30
Warning: main(./global.php): failed to open stream: No such file or directory in /home/office/public_html/install/his_files/hack_install_b3.php on line 31
Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/office/public_html/install/his_files/hack_install_b3.php on line 31
I got another error related to admincp dir (since i have changed my admin dir.)
but fixed admincp problem editing line 30 of hack_install_b3.php
David_R
06-05-2005, 01:24 AM
Now getting this another error:
Warning: chdir(): No such file or directory (errno 2) in /home/office/public_html/install/his_files/hack_creator_b2.php.bak on line 35
Warning: main(./global.php): failed to open stream: No such file or directory in /home/office/public_html/install/his_files/hack_creator_b2.php.bak on line 36
Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/office/public_html/install/his_files/hack_creator_b2.php.bak on line 36
David_R
06-05-2005, 01:29 AM
Now this many errors again :(.
Hack Installer System
MAF
templates.php (Save This File)
<?php
// Templates
Warning: Invalid argument supplied for foreach() in /his_files/hack_creator_b2.php.bak on line 160
?>
phrases.php (Save This File)
<?php
// Phrases
Warning: Invalid argument supplied for foreach() in /his_files/hack_creator_b2.php.bak on line 202
?>
Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /home/office/public_html/includes/db_mysql.php on line 389
Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/office/public_html/includes/db_mysql.php on line 389
There seems to have been a slight problem with the Microsoft Office Software database.
Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
Database error in vBulletin 3.0.7:
Invalid SQL: SELECT varname, text FROM O_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
Date: Sunday 05th of June 2005 07:56:55 AM
Script: http://www.mydomain.co.uk/install/hack_install.php
Referer: http://www.mydomain.co.uk/install/hack_install.php
Username: Administrator
IP Address: XXX.XXX.XXX.XXX
I need to install this lovely hack, please support.
Thanks in Advance.
sabret00the
06-05-2005, 08:27 AM
Now this many errors again :(.
I need to install this lovely hack, please support.
Thanks in Advance.
you shouldn't have been clicking generate files.
rezovor
06-05-2005, 08:45 PM
Aye i'm having same trouble as most of you.
Database error in vBulletin 3.0.7:
Invalid SQL:
INSERT INTO thread(title, lastpost, forumid, open, replycount, postusername, postuserid, lastposter, dateline, visible, sticky)
VALUES ('New Mod Applications To Be Rated', 1118007126, 76, 1, 0, '', , '', 1118007126, 1, 0)
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 ' '', 1118007126, 1, 0)' at line 2
mysql error number: 1064
Date: Sunday 05th of June 2005 04:32:06 PM
Script: http://www.-----------.com/------/Forums/admincp/cronadmin.php?do=runcron&cronid=16
Referer: http://www.-----.com/------/Forums/admincp/cronadmin.php?do=modify
Trying to figure out how to fix it, but at the minute I cannot fix it at all.
sabret00the
06-05-2005, 08:59 PM
Aye i'm having same trouble as most of you.
Trying to figure out how to fix it, but at the minute I cannot fix it at all.
did you set the post username in your admincp vboptions?
rezovor
06-05-2005, 09:04 PM
Was going to edit my reply but i guess not now :P, I kept thinking it was User ID. Once I put in my name, it worked... I read a reply that said to do that also, but kept thinking user id.
Gio Takahashi
06-11-2005, 01:47 AM
Erm. All the applications just...disappeared. I have no log entries indicating any of my staffers ever deleting them.
osariase
06-15-2005, 04:33 AM
I have all the posts concerning this hack I don't seem to know where to find answers so here is my problem.
I have installed it didnt get any error messages
did the cron job i see the options in admincp. But whenever i click on rate application in admincp, I get a white page saying page cannot be found
so what i'm i doing wrong can someone who have installed this please show me the way thanks
sabret00the
06-17-2005, 09:03 AM
Erm. All the applications just...disappeared. I have no log entries indicating any of my staffers ever deleting them.
i have no clue how that happened? what does the cron log show exactly?
sabret00the
06-17-2005, 09:03 AM
I have all the posts concerning this hack I don't seem to know where to find answers so here is my problem.
I have installed it didnt get any error messages
did the cron job i see the options in admincp. But whenever i click on rate application in admincp, I get a white page saying page cannot be found
so what i'm i doing wrong can someone who have installed this please show me the way thanks
the last of the file edits are contained in the installer you have to finish that.
sketch42
07-10-2005, 08:29 AM
how do i run this cron thing.. i followed the instructions edited all the files... including the maf_cron.php and admin and modcp index.php fixed all the settings in the vboptions but i still cant figure out where to go to run this cron daily.. i dont see any options for it
***Edit*** forget that i figured it out its in schedueled tasks
ok but i have another problem i made one app and i got 2 threads after i ran the cron
also theres no information in the thread as wgere to go to rate the applicants
***Edit2*** lol. forget that too i found it...
but is it possible for the thread to be created as the applicants name in the description or something like that??
and i still have that 2 thread problem
XrayHead
07-10-2005, 08:38 AM
Please can someone give me the steps to remove this hack and the tables ETC I need to remove from my SQL database?
Thanks
Xray
sketch42
07-10-2005, 11:12 AM
Please can someone give me the steps to remove this hack and the tables ETC I need to remove from my SQL database?
Thanks
Xray
well these are the queries i could find that are in the databse
<?php
// The query should probably be enclosed by '
// Be sure you include TABLE_PREFIX
// Replace 'build' with either 'new', 'uninstall', or the build number the query is meant to upgrade FROM.
$query['uninstall'][] = 'DROP TABLE `maf_application`;';
$query['uninstall'][] = 'DROP TABLE `maf_ratings`;';
?>
there may be more but its late so i didnt finish looking
also if you want this is the contents of the uninstaller
<?php
// ###################### Uninstall ###########################
if ($_REQUEST['do'] == 'uninstall') {
if ($step == '0') {
// Put the hacks in an array and print some text.
$hacks = explode("|||", $_REQUEST['hacks']);
echo "These are the hacks you have selected to uninstall: <ul>";
foreach ($hacks as $key => $hack) {
// Put the hack name in an array.
$hackd = $hack;
unset($hack);
$hack['name'] = $hackd;
$hack['displayname'] = str_replace("_", " ", $hack['name']);
// Check for installed varsions and set some variables.
// Some sanity checking as well.
if (isset($installedhack[$hack[displayname]])) {
// There is a record of the hack being installed.
$hack['installed_build'] = $installedhack[$hack[displayname]]['build'];
$hack['installed_version'] = $installedhack[$hack[displayname]]['version'];
$hack['path'] = $path_to_install . "hacks/$hack[name]/";
$hack['build'] = $hack['installed_build'];
} elseif (!isset($override)) {
// We can't find a record of the hack being installed and override is not enabled.
echo "There is no record of $hack[displayname] being installed. It cannot be uninstalled.";
unset($hacks[$key]);
$ohnoes = true;
} else {
// The hack hasn't been found to be installed, but we have override on.
// Path to the hack directory.
$hack['path'] = $path_to_install . "hacks/$hack[name]/";
$hack_dir = opendir($hack['path']);
// Find all the builds.
while (($file = readdir($hack_dir)) !== false) {
if (is_numeric($file) && $file != "." && $file != "..") {
$hack['builds'][$file] = $file;
}
}
// Find the latest build.
if (!empty($hack['builds'])) {
arsort($hack['builds']);
foreach ($hack['builds'] as $build) {
$hack['build'] = $build;
break;
}
}
}
// Sanity checking and require the file.
if (file_exists("./hacks/$hack[name]/$hack[build]/index.php")) {
chdir("./hacks/$hack[name]/$hack[build]");
require_once("./index.php");
chdir('./../../../');
} else {
if (!isset($ohnoes)) {
echo $hack['displayname'] . " build #" . $hack['build'] . " contains no index.php containing hack information and cannot be uninstalled.<br /><br />";
unset($hacks[$key]);
$ohnoes = true;
}
}
// If we are still sane, print out the hack name.
if (!isset($ohnoes)) {
echo "<li>$hack[displayname]</li>";
} else {
unset($ohnoes);
}
}
// Print some text and some links and continue.
$hacks = implode("|||", $hacks);
echo "</ul><p>We're sorry you didn't like these hacks. Running this script will remove all settings and templates created.</p>";
echo "<p><a href=\"hack_install.php?do=uninstall&step=1&hacks=$hacks$fileurl$override\">Click here to uninstall --></b></a></p>\n";
}
if ($step == '1') {
// Put the hacks in an array.
$hacks = explode("|||", $_REQUEST['hacks']);
foreach ($hacks as $key => $hack) {
// Put the hack name in an array.
$hackd = $hack;
unset($hack);
$hack['name'] = $hackd;
$hack['displayname'] = str_replace("_", " ", $hack['name']);
// Check for installed versions.
if (isset($installedhack[$hack[displayname]])) {
// There is a record of the hack being installed.
$hack['installed_build'] = $installedhack[$hack[displayname]]['build'];
$hack['installed_version'] = $installedhack[$hack[displayname]]['version'];
$hack['path'] = $path_to_install . "hacks/$hack[name]/";
$hack['build'] = $hack['installed_build'];
} elseif (!isset($override)) {
// There is no record of the hack being installed and override is not enabled.
echo "There is no record of $hack[displayname] being installed. It cannot be uninstalled.";
unset($hacks[$key]);
$ohnoes = true;
} else {
// There is no record of the hack being installed, but we have override.
// Path to the hack folder.
$hack['path'] = $path_to_install . "hacks/$hack[name]/";
$hack_dir = opendir($hack['path']);
// Find all the builds.
while (($file = readdir($hack_dir)) !== false) {
if (is_numeric($file) && $file != "." && $file != "..") {
$hack['builds'][$file] = $file;
}
}
// Find the latest build.
if (!empty($hack['builds'])) {
arsort($hack['builds']);
foreach ($hack['builds'] as $build) {
$hack['build'] = $build;
break;
}
}
}
// Some sanity and require the file.
if (file_exists("./hacks/$hack[name]/$hack[build]/index.php")) {
chdir("./hacks/$hack[name]/$hack[build]");
require_once("./index.php");
chdir('./../../../');
} else {
if (!isset($ohnoes)) {
echo $hack['displayname'] . " build #" . $hack['build'] . " contains no index.php containing hack information and cannot be uninstalled.<br /><br />";
unset($hacks[$key]);
$ohnoes = true;
}
}
// If we are still sane, uninstall the hack.
if (!isset($ohnoes)) {
// Kill the settinggroups.s
if (isset($settinggroup)) {
foreach ($settinggroup as $group => $sg) {
settinggroup_kill_list($group, $sg['phrase']);
}
}
// Kill the settings.
if (isset($setting)) {
foreach ($setting as $varname => $set) {
setting_kill_list($varname, $set['titlephrase']);
}
}
kill_settings();
// Kill the phrases.
if (isset($phrase)) {
foreach ($phrase as $varname => $text) {
phrase_kill_list($varname);
}
kill_phrases();
}
// Kill the adminhelp.
if (isset($adminhelp)) {
foreach ($adminhelp as $ah) {
adminhelp_kill_list($ah['script'], $ah['action'], $ah['optionname'], $ah['title']);
}
kill_adminhelp();
}
// Kill the templates.
if (isset($templates)) {
foreach ($templates as $name => $content) {
template_kill_list($name);
}
kill_templates();
}
// Run uninstallation queries.
if (isset($query)) {
foreach ($query as $build => $querie) {
if ($build == "uninstall") {
foreach ($querie as $i => $querieie) {
$DB_site->query($querieie);
}
}
}
echo "<font size=\"1\">$hack[displayname]: Ran removal queries.</font><br />";
}
// Remove the hack from the installation log, print some text, and unset a lot of crap.
$DB_site->query("DELETE FROM ".TABLE_PREFIX."his_installed WHERE hack='".addslashes($hack['displayname'])."'");
echo "<font size=\"1\">$hack[displayname]: Removed from installation log.</font><br /><br /><br />";
unset($hack);
unset($templates);
unset($adminhelp);
unset($settinggroup);
unset($setting);
unset($phrase);
unset($query);
} else {
unset($ohnoes);
}
}
$hacks = implode("|||", $hacks);
// Print the ending text and some links. We are done.
echo "<br /><b>Hacks Uninstalled!</b><br /><br />";
echo "<a href=\"hack_install.php?do=install&step=doedits&noinstall=1&hacks=$hacks$fileurl&override=1\"><b>Click here to view these hacks' modifications - you must do them backwards to finish the install. --></b></a><br />\n";
echo "<a href=\"$vboptions[bburl]/$admincpdir/index.php\"><b>Click here to log into your Admin CP. --></b></a><br />\n";
echo "<a href=\"hack_install.php\"><b>Click here to go back to the hack selection page. --></b></a><br />\n";
}
}
// Finish up the page with the footer.
$DB_site->free_result($installedhacks);
if (!isset($_REQUEST['no_cp_footer']) && ($_REQUEST['do'] != "genreadme" && $_REQUEST['do'] != "nothing" && $_REQUEST['text'] != 1)) {
print_cp_footer();
}
$DB_site->free_result($installedhacks);
?>
you should be able to copy and paste that into a new file and call it uninstall.php and run it. although i dont see how it would make a difference since i just copied it and it crashed on you before but hey worth a try
Neal-UK
07-13-2005, 10:17 AM
Going through the hack installation and I get this at around the 3rd or 4th step:
Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /******/www/*****/forum/includes/db_mysql.php on line 389
Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/share/pear') in /***/www/****/forum/includes/db_mysql.php on line 389
*** = I've hidden my server info
Caveman2k2
07-14-2005, 12:18 AM
Hack installed smooth as silk! Thanks for sharing your work on this.
/me clicks Install!
Toky0
07-21-2005, 05:08 AM
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/local/php4/lib/php') in /www/d/darkmasta/htdocs/forum/admincp/cronadmin.php on line 56
I get these errors when I try to run the cron manually.
Marco van Herwaarden
07-21-2005, 05:41 AM
Please define 'Manual'.
Do you mean by clicking the 'Run Now' button, or by starting the script by going to the direct url in your browser?
Toky0
07-21-2005, 06:33 AM
Please define 'Manual'.
Do you mean by clicking the 'Run Now' button, or by starting the script by going to the direct url in your browser?
By hitting the "Run Now" button.
Marco van Herwaarden
07-21-2005, 06:41 AM
Hmm sounds almost like you didn't upload the file to your includes/cron directory, or file permissions are set incorrect.
sabret00the
07-21-2005, 09:21 AM
I get these errors when I try to run the cron manually.
you didn't edit the file before you uploaded it.
lefteris
07-23-2005, 01:00 PM
i have installed that script but i dont see anything.
i put manually the address www.gsmforum.gr/forum/modapp.php and i send it. but i log in in to my AdminCp /modcp and i dont see anything.
what can i have do wrong?
sabret00the
07-23-2005, 01:16 PM
not sure what you mean when you go to modapp.php what do you see?
ipodi
07-24-2005, 08:17 AM
ok file changed, i'll make the next official update announcement at midnight, hopefully we find any other oversights before then :)
ok mine has been all installed but how do i get the form to appear on my forum? :s
Yukino_AE
07-29-2005, 06:56 PM
alright. i did the install. everything went good until i got to the last file edits and the page was blank.
could someone please tell me what files i have to edit?
Yukino_AE
08-08-2005, 02:58 AM
i got a problem. i installed i did everything. everything appeared to be working... now my only trouble is when i go to the admincp and i click on Rate applications all it does is load a Page Cannot Be Found
anyone help me out on why this is happening?
Yukino_AE
08-09-2005, 06:09 AM
K i really need help with this. why hasn't anyone responded to me?
sabret00the
08-09-2005, 07:31 AM
do the file edits you made in the admin cp match these
find:
$printhr = false;
if (can_administer('canadminstyles'))
{
$printhr = true;
construct_nav_option($vbphrase['style_manager'], 'template.php?do=modify', '<br />');
construct_nav_option($vbphrase['search_in_templates'], 'template.php?do=search', '<br />');
construct_nav_option($vbphrase['replacement_variable_manager'], 'replacement.php?do=modify', '<br />');
construct_nav_option($vbphrase['download_upload_styles'], 'template.php?do=files', '<br />');
construct_nav_option($vbphrase['find_updated_templates'], 'template.php?do=findupdates', '<br />');
construct_nav_group("$vbphrase[styles] & $vbphrase[templates]", '<hr />');
}
and above insert
// +++ MAF
construct_nav_option("Automated Thread Settings", 'options.php?dogroup=maf', '<br />');
construct_nav_option("Rate Applications", '../' . $modcpdir . '/maf_rateapp.php?do=list', '<br />');
construct_nav_option("Delete Applications", 'maf_delapp.php?do=find', '<br />');
construct_nav_group("Moderator Applicants", '<hr />');
// --- MAF?
Yukino_AE
08-09-2005, 05:48 PM
do the file edits you made in the admin cp match these
find:
$printhr = false;
if (can_administer('canadminstyles'))
{
$printhr = true;
construct_nav_option($vbphrase['style_manager'], 'template.php?do=modify', '<br />');
construct_nav_option($vbphrase['search_in_templates'], 'template.php?do=search', '<br />');
construct_nav_option($vbphrase['replacement_variable_manager'], 'replacement.php?do=modify', '<br />');
construct_nav_option($vbphrase['download_upload_styles'], 'template.php?do=files', '<br />');
construct_nav_option($vbphrase['find_updated_templates'], 'template.php?do=findupdates', '<br />');
construct_nav_group("$vbphrase[styles] & $vbphrase[templates]", '<hr />');
}
and above insert
// +++ MAF
construct_nav_option("Automated Thread Settings", 'options.php?dogroup=maf', '<br />');
construct_nav_option("Rate Applications", '../' . $modcpdir . '/maf_rateapp.php?do=list', '<br />');
construct_nav_option("Delete Applications", 'maf_delapp.php?do=find', '<br />');
construct_nav_group("Moderator Applicants", '<hr />');
// --- MAF?
alright after the edits i have the following.... and in case you were wondering i had the petz installed before i installed this mod.....
// +++ MAF
construct_nav_option("Automated Thread Settings", 'options.php?dogroup=maf', '<br />');
construct_nav_option("Rate Applications", '../' . $modcpdir . 'maf_rateapp.php?do=list', '<br />');
construct_nav_option("Delete Applications", 'maf_delapp.php?do=del', '<br />');
construct_nav_group("Moderator Applicants", '<hr />');
// --- MAF
$printhr = false;
construct_nav_option("Main Settings", 'petzadmin.php?do=main', '<br />');
construct_nav_option("Shops", 'petzadmin.php?do=shops', '<br />');
construct_nav_option("Items", 'petzadmin.php?do=items', '<br />');
construct_nav_option("Arena", 'petzadmin.php?do=arena', '<br />');
construct_nav_option("Bank", 'petzadmin.php?do=bank', '<br />');
construct_nav_option("Adoption Center", 'petzadmin.php?do=adopt', '<br />');
construct_nav_option("Store Options", 'petzadmin.php?do=store', '<br />');
construct_nav_option("Logs", 'petzadmin.php?do=logs', '<br />');
construct_nav_group("Petz", '<hr />');
if (can_administer('canadminstyles'))
{
$printhr = true;
construct_nav_option($vbphrase['style_manager'], 'template.php?do=modify', '<br />');
construct_nav_option($vbphrase['search_in_templates'], 'template.php?do=search', '<br />');
construct_nav_option($vbphrase['replacement_variable_manager'], 'replacement.php?do=modify', '<br />');
construct_nav_option($vbphrase['download_upload_styles'], 'template.php?do=files', '<br />');
construct_nav_option($vbphrase['find_updated_templates'], 'template.php?do=findupdates', '<br />');
construct_nav_group("$vbphrase[styles] & $vbphrase[templates]", '<hr />');
}
sabret00the
08-09-2005, 05:58 PM
so with that, clicking on any of the links to do with the MAF produces a blank page?
Yukino_AE
08-09-2005, 06:18 PM
so with that, clicking on any of the links to do with the MAF produces a blank page?
nope. just the rate applications. the other links in the admincp regarding the MAF mod work.
sabret00the
08-09-2005, 06:30 PM
for some reason you're modcpdir variable ain't working, what you'll need to do it replace it manually
find:
construct_nav_option("Rate Applications", '../' . $modcpdir . 'maf_rateapp.php?do=list', '<br />');
replace with
construct_nav_option("Rate Applications", '../_____YOUR_MOD_CP_DIRECTORY_NAME_____/maf_rateapp.php?do=list', '<br />');
Yukino_AE
08-09-2005, 06:35 PM
in the admincp index right?
sabret00the
08-09-2005, 06:39 PM
yup, you're editing the previous edit.
Yukino_AE
08-09-2005, 07:49 PM
k i did that and it fixed it thanx!!
just as a note before i fixed it when i was in my admin cp and viewing the properties of the maf_rateapp.php
the link showed as forum/modcpmaf_rateapp.php?do=list
i think it should have been showing as forum/modcp/maf_rateapp.php?do=list
shouldn't there be a / between modcp and the maf part? is that something that might be mixed up in your code? i dunno. just thought that might be helpful info.
unkemone
08-11-2005, 07:21 AM
install went fine and all but it doesnt start the new thread anywhere. i set it to start in forum id 80 and it doesnt do it.
Yukino_AE
08-11-2005, 06:52 PM
when i set that for mine (the start a new thread thing) everytime a user view the forum where that was set for it created a new thread. even though there were only 2 applications waiting to be read i ended up with like 172 threads saying that there were applications waiting to be read. -__-;;
so i took that off and viola it's no long a problem.
just curious if you know what might cause that.
alkatraz
08-13-2005, 05:06 PM
used some of your application questiosn and "terms" on my custom mod app
just wanted to say thx
Yukino_AE
08-16-2005, 05:11 PM
ok last night i had someone use the mod app to submit their application. this morning i had received the following error like over 100 times to my email:
Database error in vBulletin 3.0.7:
Invalid SQL:
INSERT INTO vb3_thread(title, lastpost, forumid, open, replycount,
postusername, postuserid, lastposter, dateline, visible, sticky)
VALUES ('New Mod Applications To Be Rated', 1124215271, 0, 1, 0, '',
, '', 1124215271, 1, 0)
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 ' '', 1124215271, 1, 0)' at line 2
mysql error number: 1064
Date: Tuesday 16th of August 2005 10:27:22 AM (the times are different for each email error)
Script: http://anime-extreme.net/forum/cron.php?&rand=246654
Referer: http://anime-extreme.net/forum/
Username: ShinobiXX (the usernames are different for each email error)
is this because i didn't specify variables for the automated thread settings?
because when i set those variables it posts the automated threads like 100 times.
csidlernet
08-19-2005, 09:58 AM
Nice work thanks man
Yukino_AE
08-19-2005, 07:43 PM
any answers on this?
sabret00the
08-19-2005, 07:49 PM
is this because i didn't specify variables for the automated thread settings?
yup it is i'm afraid
djsydeburnz
08-22-2005, 11:02 PM
I have a couple of questions. Would there be a way to send a PM to all moderators rather than having it post to a forum?
Also, once the 14 days is past and the applicant retained a 7 or better rating, are they supposed to be automatically added to the mod usergroup? And, is there a way to shorten the timeframe?
Or better yet, what are all the ways the site takes care of the applicant?
Also, my cron ran fine for a couple days, now im getting an error emailed to me:
/bin/sh: line 1: ./includes/cron/maf_cron.php: No such file or directory
Yukino_AE
08-23-2005, 04:07 AM
well after i specify the variables for the automated thread setting and then the cron runs right after that everytime someone views the forum where the automated thread goes it creates a new thread so i end up with like 182 threads about mod reqeusts to rate.
sabret00the
08-25-2005, 06:26 PM
well after i specify the variables for the automated thread setting and then the cron runs right after that everytime someone views the forum where the automated thread goes it creates a new thread so i end up with like 182 threads about mod reqeusts to rate.
do you intend to use the thread creation aspect of the script?
sabret00the
08-25-2005, 06:33 PM
Would there be a way to send a PM to all moderators rather than having it post to a forum? yes there would but it requires hacking the hack.
once the 14 days is past and the applicant retained a 7 or better rating, are they supposed to be automatically added to the mod usergroup? And, is there a way to shorten the timeframe?nope, once the times up, they're officially shortlisted, it needs human power to make them mods
what are all the ways the site takes care of the applicant?it tells them if they got shortlisted or not.
/bin/sh: line 1: ./includes/cron/maf_cron.php: No such file or directory
you forgot to edit the maf_cron.php
Yukino_AE
08-25-2005, 10:27 PM
do you intend to use the thread creation aspect of the script?
no i don't really need that. i'm frequently in the admin cp so i'm always checking.
Yukino_AE
08-25-2005, 10:33 PM
Would there be a way to send a PM to all moderators rather than having it post to a forum?
[QUOTE=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
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
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
i'm sorry do what exactly?
in maf_cron.php find // 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
/*
// 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
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:
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:
// ## 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
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
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
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..
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
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
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
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
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
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!
<?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
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
also its not posting in the forum when new aplacants aply
bump could anybody help on this?
sabret00the
10-18-2005, 08:12 AM
bump could anybody help on this?
have you filled out the variables in your admincp?
sabret00the
10-18-2005, 08:16 AM
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
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
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
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
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
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
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
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.
Mastar
11-20-2005, 02:10 PM
I've upgraded from 3.09 to 3.51 and I would like to know how to remove this hack from the vbulleting options?
notsonormal
11-20-2005, 10:24 PM
Fatal error: Call to undefined function: query() in /home/getpa2/public_html/forum/install/his_files/hack_install_b3.php on line 48
This is what I get when I try to run the installer...
3.51 boards, i see now that it doesnt work on them, i wont even try :)
murrtex
11-28-2005, 04:24 PM
for 3.5.1 is possible??
sabret00the
12-04-2005, 03:15 PM
i'm still around so don't fret, 3.5.x is coming soon, work on it will start in the week as well as incorporating a few suggestions :)
redspider
12-04-2005, 04:33 PM
i'm still around so don't fret, 3.5.x is coming soon, work on it will start in the week as well as incorporating a few suggestions :)
cool I need something like this thank you
Stephen3
12-05-2005, 02:06 PM
me too :D
sabret00the
12-08-2005, 04:38 PM
it's done: https://vborg.vbsupport.ru/showthread.php?t=102506
PS i stopped supporting this version.
oberheimhaven
06-30-2006, 10:29 PM
Works great thanks for the hack just looking for a place to put her its messing up the nav bar any code to add this to Vbplaza drop down?
\
Also anywhere i can get drop down menu for my nav bar and sub forum rooms Om over loadin lOL
Thxs
Mark
oberheimhaven
06-30-2006, 10:46 PM
Thxs for the great hack I installed footer looks perfect~
Thxs again for the great work!!!
Mark
oberheimhaven
06-30-2006, 11:50 PM
Howo do we get this to actually send us mail? Is that the part I probably missed on install!! Hey Im new nay help would be greatly appreciated!
thxs Mates
Mark
precharge
08-16-2006, 09:12 PM
is there a way to archive apps?
daddygrim
03-15-2007, 04:17 PM
does this work for .3.6.5?
brookelyn
03-19-2007, 11:41 PM
I would like this too but I seem to be having problems
ro_manuel
03-25-2007, 08:05 PM
wow, too many errors. its really stupid. database errors and other stuff. its wierd but would have been cool if it worked
ro_manuel
03-25-2007, 08:06 PM
Also, very little to no support on this "Moderator Application"
djjeffa
03-27-2007, 01:23 AM
works fine for me on Version 3.6.4
just wondering if there is a way to enable a group that dont have a modcp to rat the apps?
Mrdby
09-18-2007, 09:32 PM
anybody willing to update this for 3.6.8?
EnIgMa1234
09-18-2007, 09:43 PM
Why whats wrong with it?
sabret00the
09-18-2007, 09:44 PM
What's the issue with 3.6.8 compatibility?
Lolliedollie
09-20-2007, 07:33 PM
It totally isn't working for me on 3.6.8
Would someone be willing to install this for me, if I offered money in return?
Thanks.
EnIgMa1234
09-20-2007, 11:39 PM
I'll install it for you for free, pm me
Mrdby
09-20-2007, 11:45 PM
What's the issue with 3.6.8 compatibility?
so there is no issue?
EnIgMa1234
09-20-2007, 11:46 PM
I have this up and running on my 3.6.8 board. It was install on 3.6.8 too
Mrdby
09-20-2007, 11:49 PM
Fatal error: Call to undefined function: query() in /hsphere/local/home/%%%%/*****net/forum/install/his_files/hack_install_b3.php on line 48
Mrdby
09-21-2007, 12:05 AM
Warning: opendir(./his_files/): failed to open dir: No such file or directory in /****/local/home/****/****.net/forum/install/hack_install.php on line 46 Warning: readdir(): supplied argument is not a valid Directory resource in /****/local/home/****/****.net/forum/install/hack_install.php on line 47 Warning: asort() expects parameter 1 to be arrayin /hsphere/local/home/traggy/dbyonline.net/forum/install/hack_install.php on line 59
rgvtruck
11-13-2007, 12:39 AM
Ived got this error while installing the mod..
Fatal error: Call to undefined function: query() in /******/local/home/%%%%/*****net/forum/install/his_files/hack_install_b3.php on line 48
sabret00the
11-13-2007, 08:34 AM
You lot are trying to install the vBulletin 3.0 version.
The 3.5.x and 3.6.x versions are available via my profile.
indie2industry
12-23-2008, 09:48 AM
will this work on a 3.7.x board??
indie2industry
12-23-2008, 09:54 AM
You lot are trying to install the vBulletin 3.0 version.
The 3.5.x and 3.6.x versions are available via my profile.do you have a 3.7.x or 3.8.x version??
Movahed
12-27-2008, 01:15 PM
Fatal error: Call to undefined method stdClass::query() in /home/townweba/public_html/forum/install/his_files/hack_install_b3.php on line 48
give to me that I have VB vBulletin® Version 3.7.4 can you help me bro what I must make?
Movahed
12-27-2008, 02:24 PM
I fixed my problem :D
Derek Chai
01-02-2009, 04:55 AM
Fatal error: Call to undefined method stdClass::query() in /home/townweba/public_html/forum/install/his_files/hack_install_b3.php on line 48
give to me that I have VB vBulletin? Version 3.7.4 can you help me bro what I must make?
How did you fix it.
RobbieZ
01-14-2009, 05:42 PM
what do i change here so it is my path?
chdir("K:/Network/xampp/htdocs/forums/"); //change to your vbulletin path
and any news on version 3.8?
usagraph
01-19-2009, 04:49 PM
Ived got this error while installing the mod..
Fatal error: Call to undefined function: query() in /******/local/home/%%%%/*****net/forum/install/his_files/hack_install_b3.php on line 48
i GET the Same Problem How do i fix it
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.