View Full Version : MAF: (Moderator Application Form & Application Rating Module)
sabret00the
03-01-2005, 10:00 PM
FAQ:
What Does It Do? it enables your members to apply to be a mod, cuts down on all the asking and stuff
That It? basically
What about the cool back end? ooh yeah, so anyway it will email on the 14th day to either let em know they've been shortlisted or to try again at a later date
How will it know? mod ratings innit, if their under 7 their outta there
Anything else? nah i guess it starts a thread in your mod forum to tell your mods to rate em
How does it know what forum and who's the threadster? you tell em via the admincp options (where the rest of the vboptions are) theirs a handy little group for the MAF and i don't mean 2+2
Ok so that's gotta be it now? nope
What else does it do? it logs it all in the admincp schedules tasks and sends you a copy of the email
Damn who taught you all that? various folks, special thanks to Dean, Marco, OBK and Zero Tolerance who helped me on this specific hack though.
Ok so what's the install like? swift the long thing is the upload
Ok rumour is it needs to run a cron, what's a cron? :squint: it's the automated do-dad in the admincp
How do i set it up? it's so straight forward you could close your eyes and do it, the file you're cronning is called "maf-cron.php" and i recommend running it at 12.30 (that means leave the rest as stars)
Ok so if their an installer? there is indeed thanks to Link and his magical HIS
Well now that's sorted can i install it? please do!
How can i help you become cooler? click install and let's see if i can become hack of the month innit ;)
Bye now? yes go :ermm:
So you heard their was an upgrade and you're wondering just what you have to do right? simply reupload all the files (not including your cron if you wanna be special and then just run the installer, if that gives you trouble just click overrite original settings, all it's gonna do it reinstall the phrases, reinstall the templates and tell you the two file mods to remake.
So you heard their was an upgrade this time around? simply reupload all the files (if you wanna pretend to be uber 1337 just upload the admincp file and the cron folder file) :)
latest zip: 10/05/05 16:59
nexialys
03-02-2005, 03:43 PM
funny how sabret00the can be entertaining in his descriptions, it change from the old ugly and bald HowTos ...
good luck with this great tool sabret00the!
* nexialys will take a look after some users complaints! ;)
Deaths
03-02-2005, 04:50 PM
Haha, indeed, funny :).
* Deaths installs
Am I cool now?
BarHopper
03-02-2005, 04:53 PM
screenys?
sabret00the
03-02-2005, 05:06 PM
oops forgot about them, added :)
Corriewf
03-02-2005, 05:09 PM
Can this be changed to banning?
sabret00the
03-02-2005, 05:09 PM
Can this be changed to banning?
you're gonna have to explain that one to me? people apply to be banned?
sabret00the
03-02-2005, 05:10 PM
Am I cool now?no, the coolness is all mine :p
good luck with this great tool sabret00the!thank you, btw you get the blame for not reminding me about the screenies :p
sabret00the
03-02-2005, 05:16 PM
if you've already installed this run this query to fix the a problem that may arrise
ALTER TABLE `maf_ratings` CHANGE `timestamp` `timestamp` INT( 10 ) NOT NULL
ALTER TABLE `maf_application` CHANGE `application_time` `application_time` INT( 10 ) DEFAULT '0' NOT NULL
else if not you're fine with the installer.
Oblivion Knight
03-02-2005, 05:21 PM
Sounds great.! I'll have a good look at this later tonight.. :)
Corriewf
03-02-2005, 05:46 PM
you're gonna have to explain that one to me? people apply to be banned?
No but take part of the code that automates the moderatorship and auto ban a member based on votes and once a member is banned an email is sent out to everyone.A board run by its members.
sabret00the
03-02-2005, 05:56 PM
No but take part of the code that automates the moderatorship and auto ban a member based on votes and once a member is banned an email is sent out to everyone.A board run by its members.
it doesn't auto moderate them, it just let's em know that they've been shortlisted.
Oblivion Knight
03-02-2005, 06:03 PM
Getting this error when clicking "Delete Applicants", bare in mind there are currently no applicants.
Parse error: parse error, unexpected T_STRING in /home/gamerseu/public_html/forum/admincp/maf_delapp.php on line 69
Also, I'm sure with the step for modcp/index.php, you don't mean replace..
sabret00the
03-02-2005, 06:06 PM
oops left some debug code in, and i'll update the instructions, thanks for the notification
sabret00the
03-02-2005, 06:09 PM
ok file changed, i'll make the next official update announcement at midnight, hopefully we find any other oversights before then :)
Oblivion Knight
03-02-2005, 06:21 PM
I'd also recommend making a note for people to update the options in the vBulletin Options page. If I didn't look at the code, I'd have posted and asked how the script knew which forum was your "mod" forum.. ;)
Hopefully I'll have some more feedback for you once a few of my members have applied.
Corriewf
03-02-2005, 06:22 PM
it doesn't auto moderate them, it just let's em know that they've been shortlisted.
And I thought you were cool........I used to look up to you. :mad:
I really like it. Anyway wondering if there is a way that this application can be see as thread in a special forum after it was filled up and sent away? And that other users can make a vote for it, too?
So forum users can decide if they want an applicant as a moderator or not.
sabret00the
03-02-2005, 07:05 PM
I'd also recommend making a note for people to update the options in the vBulletin Options page. If I didn't look at the code, I'd have posted and asked how the script knew which forum was your "mod" forum..
Hopefully I'll have some more feedback for you once a few of my members have applied.done and thank you
And I thought you were cool........I used to look up to you. it hurts to lose you from the thousands that look upto me, but i'll have to persevere.
I really like it. Anyway wondering if there is a way that this application can be see as thread in a special forum after it was filled up and sent away? And that other users can make a vote for it, too?
So forum users can decide if they want an applicant as a moderator or not.this could be done, but on the way it currently works it checks if theirs any mod apps and if their is it makes one thread to announce it, what you would want is a different thread of each, all in all it's just a matter of playing around with the cron script.
eva01_
03-02-2005, 07:08 PM
you know i find this hack to be sexy, may have a use for it in the future
Corriewf
03-02-2005, 07:25 PM
it hurts to lose you from the thousands that look upto me, but i'll have to persevere.
I know your not saying that with vb version 2.2.9 under your name......That is soooo like yesterday.....no really....the way they keep updating that is like yesterday. :tired:
sabret00the
03-02-2005, 07:39 PM
I know your not saying that with vb version 2.2.9 under your name......That is soooo like yesterday.....no really....the way they keep updating that is like yesterday. :tired:
ROFL although on a more serious note, wow i never even realised. nice one gotta update that.
Corriewf
03-02-2005, 07:49 PM
Oh I see you have installed tomorrows version. :banana:
01001110 01101001 01100011 01100101 00100000 01101000 01100001 01100011 01101011 00100000 01100010 01110101 01100100 00101110 01001001 00100000 01110111 01100001 01110011 00100000 01101010 01110101 01110011 01110100 00100000 01100111 01101001 01110110 01101001 01101110 01100111 00100000 01111001 01101111 01110101 00100000 01100001 00100000 01101000 01100001 01110010 01100100 00100000 01110100 01101001 01101101 01100101 00101110 01010100 01101000 01100001 01101110 01101011 01110011 00100000 01100110 01101111 01110010 00100000 01110100 01101000 01100101 00100000 01101000 01100001 01110010 01100100 00100000 01110111 01101111 01110010 01101011 00100000 01111001 01101111 01110101 00100000 01110000 01110101 01110100 00100000 01101001 01101110 00101110 01001001 00100000 01100011 01101100 01101001 01100011 01101011 01100101 01100100 00100000 01101001 01101110 01110011 01110100 01100001 01101100 01101100 00101110
Oh I see you have installed tomorrows version. :banana:
01001110 01101001 01100011 01100101 00100000 01101000 01100001 01100011 01101011 00100000 01100010 01110101 01100100 00101110 01001001 00100000 01110111 01100001 01110011 00100000 01101010 01110101 01110011 01110100 00100000 01100111 01101001 01110110 01101001 01101110 01100111 00100000 01111001 01101111 01110101 00100000 01100001 00100000 01101000 01100001 01110010 01100100 00100000 01110100 01101001 01101101 01100101 00101110 01010100 01101000 01100001 01101110 01101011 01110011 00100000 01100110 01101111 01110010 00100000 01110100 01101000 01100101 00100000 01101000 01100001 01110010 01100100 00100000 01110111 01101111 01110010 01101011 00100000 01111001 01101111 01110101 00100000 01110000 01110101 01110100 00100000 01101001 01101110 00101110 01001001 00100000 01100011 01101100 01101001 01100011 01101011 01100101 01100100 00100000 01101001 01101110 01110011 01110100 01100001 01101100 01101100 00101110
Just thought I should translate your binary code. ;)
Nice hack bud. I was just giving you a hard time. Thanks for the hard work you put in. I clicked install.
DeMiNe0
03-02-2005, 08:09 PM
Nice hack.
Can there be an option to not send emails out(or can i just not use the cron)
You might want to add an easy way add questions to the application. via admin cp
sabret00the
03-02-2005, 08:46 PM
Can there be an option to not send emails out(or can i just not use the cron)which email are you referring too?
You might want to add an easy way add questions to the application. via admin cpmaybe for a future version :)
Oblivion Knight
03-02-2005, 08:55 PM
Alright, after a few hours of testing; a few issues have arised.. :(
Numero Uno:
The forum id listed for the moderator application notifications to be posted is my Staff Forum, but no notifications are being posted.. Possibly to do with access masks, but more likely to be to do with issue 2.
Numero Dos:
The scheduled task is giving me the following error:
Warning: chdir(): No such file or directory (errno 2) in /includes/cron/maf_cron.php on line 11
Numero Tres:
The moderator application in the Mod CP - the Email Address and Full Name fields are the wrong way around. The email address is being printed in the full name field, and vice versa.
sabret00the
03-02-2005, 09:10 PM
Numero Uno:
The forum id listed for the moderator application notifications to be posted is my Staff Forum, but no notifications are being posted.. Possibly to do with access masks, but more likely to be to do with issue 2.
Numero Dos:
The scheduled task is giving me the following error:
Warning: chdir(): No such file or directory (errno 2) in /includes/cron/maf_cron.php on line 11
Numero Tres:
The moderator application in the Mod CP - the Email Address and Full Name fields are the wrong way around. The email address is being printed in the full name field, and vice versa.
all fixed and the file is now reuploaded.
sabret00the
03-02-2005, 09:13 PM
all fixed and the file is now reuploaded.
in order to upgrade just reinstall the files
Guest190829
03-02-2005, 09:48 PM
Very nice, I will test this out.
* Guest190829 clicks install ;)
Nice.. thanks for sharing :)
wwesn1
03-03-2005, 03:46 AM
I keep getting....
Invalid SQL:
SELECT maf_application.*, userid.username
FROM maf_application
LEFT JOIN vb3_user ON (vb3_user.userid = maf_application.userid)
mysql error: Unknown table 'userid' in field list
wwesn1
03-03-2005, 03:51 AM
and for the settings, like 'Please enter for the forum id of the forum you want the threads to appear in' where do you set them?
WreckRman2
03-03-2005, 04:01 AM
Well I found this to be not so great and just FYI the uninstall doesn't work...
maf: Removed Setting Group - Moderation Application Form
maf: Removed Setting - Forum ID
maf: Removed Setting - Username
maf: Removed Phrase - maf_mustagree
maf: Removed Phrase - maf_alreadyapplied
maf: Removed Phrase - maf_thanks
maf: Removed template - modapp_rules
maf: Removed template - MODAPP
Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /home/rcflying/public_html/forums/includes/db_mysql.php on line 388
Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rcflying/public_html/forums/includes/db_mysql.php on line 388
There seems to have been a slight problem with the RC Hangout 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.0:
Invalid SQL: DROP `maf_application`
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 'maf_application`' at line 1
mysql error number: 1064
Date: Thursday 03rd of March 2005 12:58:40 AM
Script: http://www.rchangout.com/forums/install/hack_install.php?do=uninstall&step=1&hacks=maf
Referer: http://www.rchangout.com/forums/install/hack_install.php?do=uninstall&hacks=maf
Username: WreckRman2
IP Address: 68.251.110.*
computer1
03-03-2005, 04:04 AM
I´m new about this but what shuld I put to the cron file????
and don't forget to set up a cron to run once daily (you will need to configure your cron on line 10, this requires a manual edit of the file before upload)
Slybone
03-03-2005, 04:21 AM
and don't forget to set up a cron to run once daily (you will need to configure your cron on line 10, this requires a manual edit of the file before upload) of which file?
^^ sorry for the noob question...
while trying to install on step "step=dodatabasequeries" i get this error
Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /var/www/html/includes/db_mysql.php on line 389
Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/includes/db_mysql.php on line 389
There seems to have been a slight problem with the Outwar Forums 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.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)
) TYPE=MyISAM;
mysql error: You have an error in your SQL syntax near ';
' at line 21
mysql error number: 1064
Date: Thursday 03rd of March 2005 12:30:30 AM
Script: http://my domain/install/hack_install.php?do=install&step=dodatabasequeries&hacks=MAF
Referer:
Username: www_Slybone
IP Address: my ip.0.0.0
Oblivion Knight
03-03-2005, 06:34 AM
When rating an applicant, there's apparantly a missing phrase..
Could not find phrase 'Applicant Rated Successfully Moderated'.
Deaths
03-03-2005, 06:53 AM
no, the coolness is all mine :p
Aw :(.
sabret00the
03-03-2005, 07:04 AM
Well I found this to be not so great and just FYI the uninstall doesn't work...just fixed that, i apologise, to uninstall the tables manually run these queries
DROP TABLE `maf_application`;
'DROP TABLE `maf_ratings`;
and for the settings, like 'Please enter for the forum id of the forum you want the threads to appear in' where do you set them?within your vBoptions, theirs a group, it should be the bottom one, you set it there.
When rating an applicant, there's apparantly a missing phrase..
Could not find phrase 'Applicant Rated Successfully Moderated'.thank you i'll get that added.
I?m new about this but what shuld I put to the cron file????
and don't forget to set up a cron to run once daily (you will need to configure your cron on line 10, this requires a manual edit of the file before upload)open the files ROOT/forums/includes/cron/maf_cron.php in a text editor and you should see the line that's in need of configuring.
Oblivion Knight
03-03-2005, 08:09 AM
Tried upgrading, but got an error.. :(
Warning: main(../upgrade_queries.php): failed to open stream: No such file or directory in /index.php on line 49
Fatal error: main(): Failed opening required '../upgrade_queries.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/gamerseu/public_html/forum/install/hacks/MAF/2/index.php on line 49
sabret00the
03-03-2005, 08:55 AM
doh, give me 45 minutes to fix it, i'll set another update when it's fixed :)
sorry about this OBK
Oblivion Knight
03-03-2005, 09:02 AM
Hey no worries Sabe.. I knew it would be kinda risky installing it straight on to my live board so early in development without me testing it on my test board first. Other than the occasional errors, it's a very nice mod indeed and I see a lot of potential..
Once the bugs have been ironed out, I'll look in to seeing if there's anything I can improve upon. I'm sure in some of the e-mail notifications I receive, there are usernames repeated (ie. in more than one notification) and it would be nice to have the applicant usernames printed in the thread notifications too.. :)
sabret00the
03-03-2005, 09:52 AM
there are usernames repeated (ie. in more than one notification) and it would be nice to have the applicant usernames printed in the thread notifications too.. the repeated usernames thing, i aint had that but as soon as i'm able to replicate that i'll iron it out, regarding the names in the thread, that's quite an easy one, so no doubt you'll see that soon, just need to make sure theirs no more bugs before i start adding more stuff.
Slybone
03-03-2005, 10:07 AM
hmmm on the 4th step I continue to get that SQL error (read up) any clue what thats about?
nexialys
03-03-2005, 10:08 AM
SUGG: can you put the cron texts in some text-files and load it depending on $vboptions[languageid] so we can have multiple lang ?! (/includes/cron/maf/lang/1.php) or something...
thanks (i'll do it for myself anyway, but...)
sabret00the
03-03-2005, 10:19 AM
hmmm on the 4th step I continue to get that SQL error (read up) any clue what thats about?
upgrade or fresh install?
SUGG: can you put the cron texts in some text-files and load it depending on $vboptions[languageid] so we can have multiple lang ?! (/includes/cron/maf/lang/1.php) or something...
thanks (i'll do it for myself anyway, but...)i knew someone was gonna ask for that sooner or later :(
but mainly it comes from an experiment, basically grabbing the email stuff from templates goes straight to inbox rather than junk mail, so i wanted to see how this behaved too.
nexialys
03-03-2005, 11:19 AM
i knew someone was gonna ask for that sooner or later :(
but mainly it comes from an experiment, basically grabbing the email stuff from templates goes straight to inbox rather than junk mail, so i wanted to see how this behaved too.
hum ?!.. i don't see the link with lang text... ;)
and yes, i'm the tricky guy that stuck everybody with stupid questions ya know!
sabret00the
03-03-2005, 11:21 AM
hum ?!.. i don't see the link with lang text... ;)
and yes, i'm the tricky guy that stuck everybody with stupid questions ya know!
i have no idea where the link is with the language text but if when dragging an email out of the templates rather than the phrases it's going to inbox, something has to be different right?
oh well just for you when i add the OBK request i flagged i'll move the email text over to the phrases :)
Oblivion Knight
03-03-2005, 11:36 AM
/install/hacks/MAF/2/index.php has a typo.. ;)
require_once('../upgrade_queries.php');Should be:
require_once('./upgrade_queries.php');Otherwise, the error that I mentioned earlier still appears.
nexialys
03-03-2005, 11:44 AM
i have no idea where the link is with the language text but if when dragging an email out of the templates rather than the phrases it's going to inbox, something has to be different right?
oh that... problem easily solved: trim($the_text) will correct the situation, as a non-trimmed text will send a EOL that bug off the emailers...
sabret00the
03-03-2005, 01:08 PM
/install/hacks/MAF/2/index.php has a typo.. ;)
require_once('../upgrade_queries.php');Should be:
require_once('./upgrade_queries.php');Otherwise, the error that I mentioned earlier still appears.
thanks, obk. fixed :)
oh that... problem easily solved: trim($the_text) will correct the situation, as a non-trimmed text will send a EOL that bug off the emailers...now that i like, thanks for the heads up :)
wwesn1
03-03-2005, 01:24 PM
within your vBoptions, theirs a group, it should be the bottom one, you set it there.
Well for some reason it is not there :(
sabret00the
03-03-2005, 01:32 PM
Well for some reason it is not there :(
i suggest a reinstall
just run the installer again and remake the admincp file edit that should make it easier to find what you're looking for
wwesn1
03-03-2005, 01:44 PM
everything is working now, thanks :)
wwesn1
03-03-2005, 01:47 PM
just one more thing. I did a test application and rated it. Now it says that
This Application Was Rated: 12846 days ago
Also, I tested the cron and ran it twice. Both times it posted in the forum that there was a new mod application however their is only 1. Is it gonna post that message everytime the cron runs?
wwesn1
03-03-2005, 01:54 PM
oh and sorry, another thing.
Now how can I delete the test application? I see an option called "Delete Applications" but when I click it there is nothing there.
Deviant++
03-03-2005, 01:56 PM
I'm gonna install this soon. :)
sabret00the
03-03-2005, 02:47 PM
oh and sorry, another thing.
Now how can I delete the test application? I see an option called "Delete Applications" but when I click it there is nothing there.
fixed that, please reupload the maf_delapp to your admincp
sabret00the
03-03-2005, 02:49 PM
just one more thing. I did a test application and rated it. Now it says that
This Application Was Rated: 12846 days ago
Also, I tested the cron and ran it twice. Both times it posted in the forum that there was a new mod application however their is only 1. Is it gonna post that message everytime the cron runs?
it checks based on if theirs any apps that were there that weren't yesterday, not based on appid's.
sabret00the
03-03-2005, 02:50 PM
This Application Was Rated: 12846 days ago
considering both "day's ago" occurances use the same formulee to work them out i'm baffled but i'll try and squash this one.
wwesn1
03-03-2005, 03:49 PM
nvm..........
wwesn1
03-03-2005, 04:19 PM
If anyone still has trouble with that file, such as I did - caused mysql errors and one of the table names was wrong - missing an 's', here is my edited file (which works for me and I can delete apps now)....
sabret00the
03-03-2005, 04:51 PM
If anyone still has trouble with that file, such as I did - caused mysql errors and one of the table names was wrong - missing an 's', here is my edited file (which works for me and I can delete apps now)....
your file is missing table prefixes so i don't even know what version you had. but thank you, i've now updated the files :)
wwesn1
03-03-2005, 04:55 PM
It should only have been missing one cause it was causing errors. This was the original...
$getuser = $DB_site->query_first("
SELECT *
FROM " . TABLE_PREFIX . "user
WHERE " . TABLE_PREFIX . "username = '" . $username . "'
");
but since that would make it vb3_username - that is wrong, at least for me anyhow.
and for some reason the
DELETE *
FROM maf_application
WHERE userid = $getuser[userid]
wouldn't work for me so I had to remove the '*' (also from the line after this)
But as long as it works, I'm happy :)
Lizard King
03-03-2005, 05:03 PM
how I can view who applied and where to discuss the application ?
I get the new thread working but there is no link for how I can view who applied and what they fulled in the forum ?
When I go to www.yoursite.com/forum/modcp/maf_rateapp.php it doesn't give me anything.
sabret00the
03-03-2005, 05:05 PM
how I can view who applied and where to discuss the application ?
I get the new thread working but there is no link for how I can view who applied and what they fulled in the forum ?
When I go to www.yoursite.com/forum/modcp/maf_rateapp.php it doesn't give me anything.
the moderator control panel to rate
and the thread to discuss it.
and i'll add a fix for that tonight, i just need to work out the table prefix problem first
Lizard King
03-03-2005, 05:09 PM
the moderator control panel to rate
and the thread to discuss it.
and i'll add a fix for that tonight, i just need to work out the table prefix problem first
One more thing. I made a test application once and the now I have like 10 threads in my choosed forum :) I don't know why but it still continues to open a new thread :)
sabret00the
03-03-2005, 05:13 PM
One more thing. I made a test application once and the now I have like 10 threads in my choosed forum :) I don't know why but it still continues to open a new thread :)
how often are you running this cron?
Lizard King
03-03-2005, 05:18 PM
how often are you running this cron?
I didn't choose to run he cron and now I choosed daily :)
sabret00the
03-03-2005, 05:55 PM
It should only have been missing one cause it was causing errors. This was the original...
$getuser = $DB_site->query_first("
SELECT *
FROM " . TABLE_PREFIX . "user
WHERE " . TABLE_PREFIX . "username = '" . $username . "'
");
but since that would make it vb3_username - that is wrong, at least for me anyhow.
and for some reason the
DELETE *
FROM maf_application
WHERE userid = $getuser[userid]
wouldn't work for me so I had to remove the '*' (also from the line after this)
But as long as it works, I'm happy :)
table prefix errors all removed.
Lionel
03-03-2005, 09:04 PM
Every time I use this f**king hack.install.php thing I get that error....
Warning: halt(./includes/functions_log_error.php) [function.halt]: failed to create stream: No such file or directory in /var/www/forums/includes/db_mysql.php on line 389
sabret00the
03-03-2005, 09:24 PM
Every time I use this f**king hack.install.php thing I get that error....
Warning: halt(./includes/functions_log_error.php) [function.halt]: failed to create stream: No such file or directory in /var/www/forums/includes/db_mysql.php on line 389
that just with this one or all the time?
Lionel
03-03-2005, 09:33 PM
every time. twice. And the file is there. And that is a fresh copy of 3.07
Lionel
03-03-2005, 09:40 PM
I also get:
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)
) TYPE=MyISAM;
mysql error: You have an error in your SQL syntax near ';
' at line 21
mysql error number: 1064
Slybone
03-03-2005, 09:49 PM
upgrade or fresh install?
fresh install
Lizard King
03-03-2005, 10:38 PM
table prefix errors all removed.
is the problem with modcp solved ?
Also a question with cron , as I explained before. I just tested application form once cause I had to make some translations over templates. And I ran the cron job and I didn't set a time to run. I have 10 topics now but what I can't understand is if a cron job run once and do his job why is he opening the same topic second time ?
I am not sure if the cron job will re open the thread ? I checked now and he again reopened the thread. Thats is something you must clear urgently cause it will be really disturbing that cron job will do the job again and again which he already did.
Check out the attached screenshot and check the last post time. There is something really wrong with the cron job.
neo|d3fx
03-03-2005, 11:42 PM
is the problem with modcp solved ?
Also a question with cron , as I explained before. I just tested application form once cause I had to make some translations over templates. And I ran the cron job and I didn't set a time to run. I have 10 topics now but what I can't understand is if a cron job run once and do his job why is he opening the same topic second time ?
I am not sure if the cron job will re open the thread ? I checked now and he again reopened the thread. Thats is something you must clear urgently cause it will be really disturbing that cron job will do the job again and again which he already did.
Check out the attached screenshot and check the last post time. There is something really wrong with the cron job.
I to have the same issue.
Lionel
03-04-2005, 01:20 AM
Every time I use this hack.install.php thing I get that error....
Warning: halt(./includes/functions_log_error.php) [function.halt]: failed to create stream: No such file or directory in /var/www/forums/includes/db_mysql.php on line 389
So is there a way around it? The shoutbox hack using the same system turned out to be a nightmare also for same error.
Lizard King
03-04-2005, 01:26 AM
So is there a way around it? The shoutbox hack using the same system turned out to be a nightmare also for same error.
I think the problem is with your board cause the installer is working perfect. Can you try to run this modifications installer https://vborg.vbsupport.ru/showthread.php?t=74183 They both run the same installer so maybe you shall check with the thread https://vborg.vbsupport.ru/showthread.php?t=71542
Lionel
03-04-2005, 01:41 AM
Big sigh! I have the same problem with the member choice hack. I have had that problem on 3 different boards.
Blootix
03-04-2005, 01:54 AM
Big sigh! I have the same problem with the member choice hack. I have had that problem on 3 different boards.
What is this? I got an error message when I installed this on 3.0.7. This occurs when I go to either ACP or MCP and click on Rate Applications:
Database error in vBulletin 3.0.7:
Invalid SQL:
SELECT maf_application.*, user.username
FROM maf_application
LEFT JOIN vb3_user ON (user.userid = maf_application.userid)
mysql error: Unknown table 'user' in field list
mysql error number: 1109
Anyone else getting this?
Lionel
03-04-2005, 02:04 AM
Looks like I am not the only one after all
https://vborg.vbsupport.ru/showthread.php?p=620190&highlight=389#post620190
Lionel
03-04-2005, 02:14 AM
sabreth00the, how did you get around the same error you reported at
https://vborg.vbsupport.ru/showthread.php?p=611628&highlight=389#post611628
Marco van Herwaarden
03-04-2005, 06:23 AM
@lionel
The
Warning: halt(./includes/functions_log_error.php) [function.halt]: failed to create stream: No such file or directory in /var/www/forums/includes/db_mysql.php on line 389
message is a bug in the HIS installer, where it can not display the normal error message if a SQL error occurs. You should find the SQL error however if you ever want to solve your problem.
@all getting errors during install table creations
What MySQL version you're running?
Did you upload the files in binary or ASCII mode?
Marco van Herwaarden
03-04-2005, 06:25 AM
@sabre
SELECT maf_application.*, user.username
FROM maf_application
LEFT JOIN vb3_user ON (user.userid = maf_application.userid)
2 problems as i see them:
1. "FROM maf_application" is not using TABLE_PREFIX, and missing a " AS .."
2. "LEFT JOIN vb3_user " should be: "LEFT JOIN vb3_user AS user"
Lionel
03-04-2005, 06:57 AM
My files were uploaded in ascii and myql version is 3.23
sabret00the
03-04-2005, 07:01 AM
every time. twice. And the file is there. And that is a fresh copy of 3.07
give me the greater part of the day and i'll make a text installer for you :)
Lionel
03-04-2005, 07:03 AM
and this the db error i got
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)
) TYPE=MyISAM;
mysql error: You have an error in your SQL syntax near ';
' at line 21
mysql error number: 1064
sabret00the
03-04-2005, 07:03 AM
@sabre
SELECT maf_application.*, user.username
FROM maf_application
LEFT JOIN vb3_user ON (user.userid = maf_application.userid)
2 problems as i see them:
1. "FROM maf_application" is not using TABLE_PREFIX, and missing a " AS .."
2. "LEFT JOIN vb3_user " should be: "LEFT JOIN vb3_user AS user"
thanks, i'll get that fixed :)
Lionel
03-04-2005, 07:05 AM
give me the greater part of the day and i'll make a text installer for you :)
thanks
sabret00the
03-04-2005, 07:06 AM
is the problem with modcp solved ?
Also a question with cron , as I explained before. I just tested application form once cause I had to make some translations over templates. And I ran the cron job and I didn't set a time to run. I have 10 topics now but what I can't understand is if a cron job run once and do his job why is he opening the same topic second time ?
I am not sure if the cron job will re open the thread ? I checked now and he again reopened the thread. Thats is something you must clear urgently cause it will be really disturbing that cron job will do the job again and again which he already did.
Check out the attached screenshot and check the last post time. There is something really wrong with the cron job.
ok for this quite sure what the error is, at the end of the cron script it checks if theirs any new applications, if that case is true then it makes the thread, this isn't in a loop or anything or the sort in order to generate this command more than once, however everytime the script is run it will make a new thread, i can only guess that somehow the script ran ten times.
Marco van Herwaarden
03-04-2005, 07:08 AM
I see more people are getting the same SQL error. If i however copy the SQL statement into a SQL-editor, it runs without any problems.
I am running MySQL 4.1.8 myself, you are still on version 3, so that might be the reason for your problems. Would be interesting to see if the other users reporting this error are also running older MySQL versions.
You maybe have access to a server running a higher MySQL version to test?
sabret00the
03-04-2005, 07:15 AM
i'm running 4.0.18 on my localhost so i think you're probably right marco
Lionel
03-04-2005, 07:16 AM
I've got my own server but I am not sure on how to upgrade to 4.18
sabret00the
03-04-2005, 07:23 AM
anyone with modcp/admincp problems can redownload the zip i've got it fixed finally :)
Marco van Herwaarden
03-04-2005, 07:31 AM
@lionel
Try to edit the 'queries.php' file in the hacks install directory.
Change the line:
) TYPE=MyISAM;
to
);
This should probably be done for every CREATE TABLE statement in that file.
Now please check if it runs and report back.
Oblivion Knight
03-04-2005, 07:59 AM
For the "This Application Was Rated: 12846 days ago" bug, open up /modcp/maf_rateapp.php and find:
SELECT maf_ratings.appid, maf_ratings.userid, user.username, maf_ratings.rating, maf_ratings.additional_commentsOn the same line, after it add:
, maf_ratings.timestampAll fixed.. :)
Lionel
03-04-2005, 08:40 AM
@lionel
Try to edit the 'queries.php' file in the hacks install directory.
Change the line:
) TYPE=MyISAM;
to
);
This should probably be done for every CREATE TABLE statement in that file.
Now please check if it runs and report back.
that did not help at all. Same results.
Lionel
03-04-2005, 08:45 AM
Hey, that helped after all. It was missing a single quote brfor the ; like ';
Lionel
03-04-2005, 08:56 AM
Thank you marco. Got it up and running
The Realist
03-04-2005, 09:34 AM
Changed path in cron,
Setup cron in admin and runs ok,
Made test application,
And nothing shows in my choosen forum ID?
Anyone?
The Realist
03-04-2005, 09:41 AM
They ae showing in my choosen forum but I cannot find any place inside the mod panel to moderate the applications.
Changed path in cron,
Setup cron in admin and runs ok,
Made test application,
And nothing shows in my choosen forum ID?
Anyone?
Marco van Herwaarden
03-04-2005, 09:47 AM
Thank you marco. Got it up and running
Nice to see you solved it.
My guess is that you will run into the same problem with loads of other hacks also. Solution would be the same for all.....remove the TYPE=MyISAM or change it to TYPE=ISAM.
I guess everybody still running MySQL 3 will have this problem, i would suggest you look into upgrading.
Lionel
03-04-2005, 10:22 AM
I was able to install the member choice hack too, using the same method.
sabret00the
03-04-2005, 10:25 AM
For the "This Application Was Rated: 12846 days ago" bug, open up /modcp/maf_rateapp.php and find:
SELECT maf_ratings.appid, maf_ratings.userid, user.username, maf_ratings.rating, maf_ratings.additional_comments
On the same line, after it add:
, maf_ratings.timestamp
All fixed..
added that fix, thanks :)
They ae showing in my choosen forum but I cannot find any place inside the mod panel to moderate the applications.moderate the applications? that's not part of this hack, rate em yes, delete em yes, moderate nope.
The Realist
03-04-2005, 10:53 AM
Yes but where is this done from?
Can see anything in the mod panel?
added that fix, thanks :)
moderate the applications? that's not part of this hack, rate em yes, delete em yes, moderate nope.
sabret00the
03-04-2005, 10:57 AM
Yes but where is this done from?
Can see anything in the mod panel?
did you make the edits to modcp/index.php as directed?
sabret00the
03-04-2005, 10:58 AM
I was able to install the member choice hack too, using the same method.
now you're a happy bunny i don't need to make the text installer do i? :happysad:
The Realist
03-04-2005, 10:58 AM
I did not see any instructions for that, blind you see :)
Will have another look.
did you make the edits to modcp/index.php as directed?
The Realist
03-04-2005, 11:01 AM
Just had another look at the install file and it says for Click here to view the file/template modifications ONLY -->
No readme files found.
So were are the edits to?
sabret00the
03-04-2005, 11:04 AM
Just had another look at the install file and it says for Click here to view the file/template modifications ONLY -->
No readme files found.
So were are the edits to?
click the "click here" bit.
yoyoyoyo
03-04-2005, 11:14 AM
thanks sabe!
The Realist
03-04-2005, 11:18 AM
Yes and it takes me back to the main front page.
click the "click here" bit.
Slybone
03-04-2005, 11:18 AM
you know...i recommend that you allow us to add/delete "Questions" in the modd app via admincp, because im sure everyone has different questions they want to ask and what not
aswell as changing the "terms to be a mod"
aswell as an error while testing
Database error in vBulletin 3.0.6:
Invalid SQL:
DELETE *
FROM maf_application
WHERE userid = 588024
mysql error: You have an error in your SQL syntax near '*
FROM maf_application
WHERE userid = 588024
' at line 2
mysql error number: 1064
Date: Friday 04th of March 2005 07:16:20 AM
Script: http://forums.outwar.com/admin/maf_delapp.php
Referer: http://forums.outwar.com/admin/maf_delapp.php
Username: www_Slybone
IP Address:
Oblivion Knight
03-04-2005, 11:29 AM
I have a feeling it may be to do with table prefixes (or lack of)..
Slybone, try the attached files and see if it helps.
sabret00the
03-04-2005, 11:45 AM
Yes and it takes me back to the main front page.
ok these are the file edits you need to make
in admincp/index.php find
$printhr = false;
if (can_administer('canadminstyles'))
{
$printhr = true;
construct_nav_option($vbphrase['style_manager'], 'template.php?do=modify', '<br />');
and add above that
// +++ 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
now in the modcp/index.php find
// *************************************************
if (can_moderate(0, 'canannounce'))
{
construct_nav_option($vbphrase['add_new_announcement'], 'announcement.php?do=add\');
and add above that
// +++ MAF
construct_nav_option("Rate Applications", '../' . $modcpdir . '/maf_rateapp.php?do=list', '<br />');
construct_nav_group("Moderator Applicants", '<hr />');
// --- MAF
that's it :)
The Realist
03-04-2005, 12:22 PM
Thanks for the below all done but when I remove the test applications it gives me a DB error:
Database error in vBulletin 3.0.6:
Invalid SQL:
DELETE *
FROM maf_application
WHERE userid = 1
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 '*
FROM maf_application
WHERE userid = 1' at line 1
mysql error number: 1064
Date: Friday 04th of March 2005 09:20:59 AM
Script: http://www.xxxxxxxx.com/forums/admincp/maf_delapp.php
Referer: http://www.xxxxxxxx.com/forums/admincp/maf_delapp.php
ok these are the file edits you need to make
in admincp/index.php find
$printhr = false;
if (can_administer('canadminstyles'))
{
$printhr = true;
construct_nav_option($vbphrase['style_manager'], 'template.php?do=modify', '<br />');
and add above that
// +++ 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
now in the modcp/index.php find
// *************************************************
if (can_moderate(0, 'canannounce'))
{
construct_nav_option($vbphrase['add_new_announcement'], 'announcement.php?do=add\');
and add above that
// +++ MAF
construct_nav_option("Rate Applications", '../' . $modcpdir . '/maf_rateapp.php?do=list', '<br />');
construct_nav_group("Moderator Applicants", '<hr />');
// --- MAF
that's it :)
Lizard King
03-04-2005, 12:43 PM
I get the same database error :)
also this one never worked for me ?
construct_nav_option("Rate Applications", '../' . $modcpdir . 'maf_rateapp.php?do=list', '<br />');
I think we have to change that to
construct_nav_option("Rate Applications", 'http://www.yoursite.com/forum/modcp/maf_rateapp.php?do=list', '<br />');
sabret00the
03-04-2005, 12:57 PM
I get the same database error :)
also this one never worked for me ?
construct_nav_option("Rate Applications", '../' . $modcpdir . 'maf_rateapp.php?do=list', '<br />');
I think we have to change that to
construct_nav_option("Rate Applications", 'http://www.yoursite.com/forum/modcp/maf_rateapp.php?do=list', '<br />');
depends on your set up the modcp variable is defined in your config.php
either way should work as long as you compensate for the directory.
sabret00the
03-04-2005, 01:03 PM
Thanks for the below all done but when I remove the test applications it gives me a DB error:
Database error in vBulletin 3.0.6:
Invalid SQL:
DELETE *
FROM maf_application
WHERE userid = 1
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 '*
FROM maf_application
WHERE userid = 1' at line 1
mysql error number: 1064
Date: Friday 04th of March 2005 09:20:59 AM
Script: http://www.xxxxxxxx.com/forums/admincp/maf_delapp.php
Referer: http://www.xxxxxxxx.com/forums/admincp/maf_delapp.php
replace the admincp file and this should be fixed now :)
Lizard King
03-04-2005, 01:04 PM
Sabre , I have a question ,
I modified the templates and I removed the timezone from modapp template and the input space for that. Now when I go to rate the application the last line I see is timezone and the other inormation is missing (checked the attached screenshot please) . Now I'm not sure if this is my mistake or not :) How can I figure this out ?
sabret00the
03-04-2005, 01:07 PM
i don't know what happened there but i would suggest modding the modcp file to remove this line
print_label_row('<b> Timezone </b>', (stripslashes($rateapp[timezone])));
let me know if that fixes it for ya :)
Lizard King
03-04-2005, 01:09 PM
replace the admincp file and this should be fixed now :)
I still got the same error
sabret00the
03-04-2005, 01:10 PM
Reply With Quotethat's gotta be a sql version error as it's working for me :(
nevermind, i updated one occurance and forgot the other oops :(
sometimes it's easier just to edit the live files instead of 2 edits per chance (localhost and release)
Lizard King
03-04-2005, 01:13 PM
i don't know what happened there but i would suggest modding the modcp file to remove this line
print_label_row('<b> Timezone </b>', (stripslashes($rateapp[timezone])));
let me know if that fixes it for ya :)
That worked out thank you :)
sabret00the
03-04-2005, 01:13 PM
I still got the same error
fixed redownload
:)
The Realist
03-04-2005, 01:14 PM
Re downloaded files and uploaded your new file to admin and still the error is there?
replace the admincp file and this should be fixed now :)
sabret00the
03-04-2005, 01:15 PM
Re downloaded files and uploaded your new file to admin and still the error is there?
when i just changed that file again two minutes ago
sorry about that.
The Realist
03-04-2005, 01:19 PM
Downloaded it again still getting the same error?
when i just changed that file again two minutes ago
sorry about that.
Lizard King
03-04-2005, 01:23 PM
when i just changed that file again two minutes ago
sorry about that.
Still not working
sabret00the
03-04-2005, 01:44 PM
ok can you two do me a favour and find (in admincp/maf_delapp.php)
$DB_site->query("
DELETE(*)
FROM maf_application
WHERE userid = $getuser[userid]
");
$DB_site->query("
DELETE(*)
FROM maf_ratings
WHERE userid = $getuser[userid]
");
and replace it with
$DB_site->query("
DELETE
FROM maf_application
WHERE userid = $getuser[userid]
");
$DB_site->query("
DELETE
FROM maf_ratings
WHERE userid = $getuser[userid]
");
and let me know if that works :(
Lizard King
03-04-2005, 01:53 PM
yes that worked out :)
thanks for the quick response sabre :)
The Realist
03-04-2005, 02:07 PM
Yes worked 100%
Thanks M8 :)
sabret00the
03-04-2005, 02:07 PM
glad i got you both sorted
what version's of php and mysql are you both running?
Lizard King
03-04-2005, 02:41 PM
glad i got you both sorted
what version's of php and mysql are you both running?
sabre , when the new thread will be open is it possible to have applicants name and a link to rate this application ?
If it is where do i have to edit ? cause i want to see who are the applicants inside the thread.
PHP version 4.3.10
MySQL version 4.0.23-standard
The Realist
03-04-2005, 04:32 PM
PHP 4.3.10
MySql 3.23.49
Laters
glad i got you both sorted
what version's of php and mysql are you both running?
The Realist
03-04-2005, 04:47 PM
So can you confirm this for me.
This hack allows members to apply as a mod on a forum. Once the application goes in its there for staff to rate and comment on for 14 days, if the applying member gets more that 7 as an average his application is approved.
So what happends to there application after 7 days if they get over the average of 7 and what happends to it if they dont get to the 7?
Laters
sabret00the
03-04-2005, 06:36 PM
This hack allows members to apply as a mod on a forum. Once the application goes in its there for staff to rate and comment on for 14 days, if the applying member gets more that 7 as an average his application
shortlisted, left where it is, nothing happens, it's upto you to deal with it, talk it over with your super mods and decide if you have time and space for them. this will not change their usergroup or anything near that.
if however they score less than an average of 7 the application is deleted.
The Realist
03-04-2005, 07:33 PM
Does the hack automatically inform the member thats applying there application has been deleted. Could there be an option for staff to stop a member that has already applied and failed for a set number of days, weeks etc otherwise once there application is removed they can just apply again.
Laters
shortlisted, left where it is, nothing happens, it's upto you to deal with it, talk it over with your super mods and decide if you have time and space for them. this will not change their usergroup or anything near that.
if however they score less than an average of 7 the application is deleted.
Blootix
03-04-2005, 10:51 PM
sabre , when the new thread will be open is it possible to have applicants name and a link to rate this application ?
If it is where do i have to edit ? cause i want to see who are the applicants inside the thread.
PHP version 4.3.10
MySQL version 4.0.23-standard
Okay, the ModCP thing is figured out. However, it doesn't automatically start threads in the specified forum.
wwesn1
03-05-2005, 02:04 AM
and why does it keep emailing me....
Moderation Application Auto Proccessing Complete;
Declination's: None.
Shortlistings: None.
New Applications: None.
Over and over?
Slybone
03-05-2005, 06:08 AM
Once again...
you know...i recommend that you allow us to add/delete "Questions" in the modd app via admincp, because im sure everyone has different questions they want to ask and what not
aswell as changing the "terms to be a mod"
sabret00the
03-05-2005, 06:15 AM
and why does it keep emailing me....
Over and over?
if it's doing that you've set the cron wrong.
Okay, the ModCP thing is figured out. However, it doesn't automatically start threads in the specified forum.
have you configured and set the cron?
Once again...my apologies thought i answered that the first time around, guess i got sidetracked making sure it'd work properly for everyone :(
regarding the word "mod" that's down to my limitation in regards to patience and getting the installer to work, as it is, it's a simple template change which is just as much effort as changing the phrase, so unfortunately i can't see this being changed till atleast the next release of the HIS and then i may fully phrase it.
regarding the ability to change question, this may see the light of day in future versions though it all depends on how busy i am and if i have the time to write the code changes and add the extra scripting. either way i can't see it being done by me for now.
again sorry it took me so long to reply to you, it wasn't intentional.
Neutral Singh
03-05-2005, 09:53 AM
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', 1110023060, 0, 1, 0, '', , '', 1110023060, 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 ' '', 1110023060, 1, 0)' at line 2
mysql error number: 1064
Date: Saturday 05th of March 2005 06:44:20 AM
Hi
I am getting the above error, whenever i try to run the crop job manually. Its once posted a thread informing me that there are some applications for moderation but i could find from where to look for that application ?
sabret00the
03-05-2005, 10:02 AM
Hi
I am getting the above error, whenever i try to run the crop job manually. Its once posted a thread informing me that there are some applications for moderation but i could find from where to look for that application ?
did you set your vbulletion options regarding MAF?
Oblivion Knight
03-05-2005, 10:03 AM
Yup, I was right.. Applicants are being repeated in the notifications.
3/03/2005 12:32:49 +0000 - New Applications: Rob , Walter Sullivan , Reno , AlienLX , MourningDove , kabniel .
3/04/2005 12:32:28 +0000 - New Applications: Rob , Walter Sullivan , Reno , AlienLX , MourningDove , kabniel .
Surely, this should only list applicants that have signed up since the previous notification? This same issue occurs with the new thread notifications in the staff forum.
sabret00the
03-05-2005, 10:27 AM
Yup, I was right.. Applicants are being repeated in the notifications.
3/03/2005 12:32:49 +0000 - New Applications: Rob , Walter Sullivan , Reno , AlienLX , MourningDove , kabniel .
3/04/2005 12:32:28 +0000 - New Applications: Rob , Walter Sullivan , Reno , AlienLX , MourningDove , kabniel .
Surely, this should only list applicants that have signed up since the previous notification? This same issue occurs with the new thread notifications in the staff forum.
in your maf_cron.php change this // Email users who have not activated after 8 days.
if ($day < 2)
{
$newapps .= "". $user[username]." ";
if ($newapps)
{
$newapps .= ", ";
}
}
to
// Email users who have not activated after 8 days.
if ($day == 1)
{
$newapps .= "". $user[username]." ";
if ($newapps)
{
$newapps .= ", ";
}
}
that should fix it.
Oblivion Knight
03-05-2005, 10:36 AM
While doing that, I noticed a typo in the cron..
Find:
Thank you for your application for the above post of moderator, congratulations you were unsuccessfully shortlisted for the role of moderator.Replace with:
Thank you for your application for the above post of moderator, congratulations you were successfully shortlisted for the role of moderator.Unsuccessfully shortlisted for the role of moderator.. That's a new one on me! ;)
Marco van Herwaarden
03-05-2005, 02:08 PM
Lol and even congratulate with being unsuccessfull :D
StevenIsProek
03-05-2005, 09:06 PM
I tested it with myself and I could not delete my application. It did not show it. Maybe it shows the application in the delete applications when it's someone else?
Also the hack maker said to set to 12:00. Where do we set that add?I added my forum path where do I set the cron time?
Oblivion Knight
03-05-2005, 09:09 PM
Also the hack maker said to set to 12:00. Where do we set that add?I added my forum path where do I set the cron time?That is set in the "Scheduled Tasks" part of the Admin CP.
StevenIsProek
03-05-2005, 09:45 PM
ok thanks^did that
but when I run it I only get the name of the schedule task that I named it 2
I dont get the: Done
This is what I added for the path directory /home/jthawast/public_html/forum/
is that corrent?
Oblivion Knight
03-05-2005, 10:56 PM
but when I run it I only get the name of the schedule task that I named it 2
I dont get the: DoneThat's all I get too.. I just assumed it was the design of this particular cron file.
It runs automatically on my forum ok anyway, so I'm not overly concerned.. :)
StevenIsProek
03-05-2005, 11:00 PM
yea true^nice hack btw
Dont really care about the rating system. I just like the application form and being abble to view it and the judge it, thanks!
*installs*
shadiguy1
03-07-2005, 09:41 PM
anyway you can add so this can be turned on and off via AdminCP so we can have a message like we are not taking applications at the current time Administration Will Reopen the application when moderators are needed.
sabret00the
03-14-2005, 08:14 AM
this got updated last night but i forgot to post
sabret00the
03-14-2005, 08:14 AM
anyway you can add so this can be turned on and off via AdminCP so we can have a message like we are not taking applications at the current time Administration Will Reopen the application when moderators are needed.
it could be, i'll add it next update :)
shadiguy1
03-14-2005, 10:39 AM
thanks man
Dragon_Z
03-15-2005, 11:56 PM
I am getting this Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in c:\hosting\webhost4life\member\rmr1154\zforum\incl udes\db_mysql.php on line 405
Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.;c:\php4\pear') in c:\hosting\webhost4life\member\rmr1154\zforum\incl udes\db_mysql.php on line 405
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)
) TYPE=MyISAM;
mysql error: Table 'maf_application' already exists
mysql error number: 1050
Date: Tuesday 15th of March 2005 05:56:46 PM
Script: http://www.micro-logix.com/zforum/install/hack_install.php?do=install&step=dodatabasequeries&hacks=MAF|||Members%20Choice
Referer: http://www.micro-logix.com/zforum/install/hack_install.php?do=install&step=dotemplates&hacks=MAF|||Members%20Choice
Username: Dragon_Z
IP Address: 69.92.177.171
sabret00the
03-16-2005, 07:07 AM
try uninstalling and then reinstalling dragon
SunShina
03-19-2005, 03:34 AM
I tested it with myself and I could not delete my application. It did not show it. Maybe it shows the application in the delete applications when it's someone else?
Also the hack maker said to set to 12:00. Where do we set that add?I added my forum path where do I set the cron time?
i have installing this hack and work greati make test to see if there is a thread is going ot be created in the MOD forums i have add the user name and the id of the forums and still not showing
i go to the Teskmanger
and i add the corn job
./includes/cron/maf_cron.php
and it give me this error
Warning: chdir(): No such file or directory (errno 2) in /includes/cron/maf_cron.php on line 10
any idea please
thankyou :)
sabret00the
03-19-2005, 08:52 AM
wow my first hack to get to five pages.
sunshina open the maf_cron.php in a text editor and on line 10 set the directory.
shadiguy1
03-19-2005, 11:26 AM
Sabre think you could add the ability to turn it off via Admincp as i state din my previous post i really really need it.. :) PLEASE!
sabret00the
03-19-2005, 03:14 PM
as soon as i the HIS is updated i'll do it shadi, it's just not worth the stress at the moment with certain data caching.
shadiguy1
03-19-2005, 03:27 PM
ok man thanks. just wanted to remind yah much appreciated i look forward to it. thanks
ShawnV
03-21-2005, 04:24 AM
Is this mod all sorted out and the bugs and install problems solved now? I want to install it on a design community forum but I will wait untill its done if needed.
Btw when is the next update planned?
sabret00the
03-21-2005, 07:51 AM
all bugs are squashed as far as i know.
the only thing that's not done is shadi's request "We are not accepting applications at present".
and that update is hinging on the next update of the HIS installer so i have no idea when it's coming.
ShawnV
03-21-2005, 04:31 PM
Ok installed the mod, have a few problems, its a brand new install of 3.0.7
I had no errors when I ran the installer, however;
Every time I run the cron I get this error emailed to me:
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
______________________________
And when it posts the notice to the forum after an app has been made, it doesnt register on the index that there is a new message in the selected forum, ergo nothing is showing up under the last posts or number of post columns on the index page even though there are New Mod Applications To Be Rated posts inside the forum.
_____________________________
And when you go to delete a app:
Database error in vBulletin 3.0.7:
Invalid SQL:
DELETE *
FROM maf_application
WHERE userid = 1
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 '*
FROM maf_application
WHERE userid = 1' at line 1
mysql error number: 1064
_____________________________
Server info:
MySQL version 4.0.22-standard
PHP version 4.3.10
Also I set the path in the cron to:
('/home/xxxxxx/public_html/forum/')
Is that correct, it doesnt seem to give a done notice?
Thanks in advance.
sabret00the
03-21-2005, 04:58 PM
that seems to be a phrase problems, edit any phrase to do with this hack and then resave it.
ShawnV
03-21-2005, 05:02 PM
Are you referring to the Moderation Application Form settings in VBoptions?
Username & forum ID?
Yes, as I said its posting the "New Mod Applications To Be Rated" in the forum.
sabret00the
03-21-2005, 05:04 PM
yup i noticed that and edited my post, sorry about that.
sabret00the
03-21-2005, 05:30 PM
why are you trying to generate files, you're installing the hack not writing the hack (thus generating the installer).
stay away from that bit :)
your issues regarding deleting a hack were covered in this post (https://vborg.vbsupport.ru/showpost.php?p=620870&postcount=131) :)
hope that helps.
sabret00the
03-22-2005, 07:17 AM
did you get it installed ok?
Mla7a6
03-27-2005, 06:18 PM
Hi..
I am still getting this error
Warning: halt(./includes/functions_log_error.php) [function.halt]: failed to create stream: No such file or directory in /www/customers/spta/www/vb/includes/db_mysql.php on line 389
Warning: halt() [function.halt]: Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/customers/spta/www/vb/includes/db_mysql.php on line 389
There seems to have been a slight problem with the forum 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
No matter how I try to repair the problem or apply the modifications form this thread..
please help ..
Desperately ..
Mla7a6 :disappointed:
sabret00the
03-27-2005, 06:23 PM
Hi..
I am still getting this error
Warning: halt(./includes/functions_log_error.php) [function.halt]: failed to create stream: No such file or directory in /www/customers/spta/www/vb/includes/db_mysql.php on line 389
Warning: halt() [function.halt]: Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/customers/spta/www/vb/includes/db_mysql.php on line 389
There seems to have been a slight problem with the forum 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
No matter how I try to repair the problem or apply the modifications form this thread..
please help ..
Desperately ..
Mla7a6 :disappointed:
what file are you getting that in, you shouldn't be getting that error unless you're trying to generate the installer :ermm:
The Realist
03-27-2005, 06:45 PM
Looks to me like a path is wrong: /www/customers/spta/www/vb/includes/db_mysql.php
Mla7a6
03-27-2005, 06:54 PM
what file are you getting that in, you shouldn't be getting that error unless you're trying to generate the installer :ermm:
I just installed it.. and got it during the 4th phase of installation..
the file that I used was "hack_install.php"
Looks to me like a path is wrong: /www/customers/spta/www/vb/includes/db_mysql.php
naah.. thats the path to my site.. I just copied & pasted the error message as it is..
sabret00the
03-27-2005, 07:03 PM
I just installed it.. and got it during the 4th phase of installation..
the file that I used was "hack_install.php"
naah.. thats the path to my site.. I just copied & pasted the error message as it is..
phase four, that's the queries right?
in "forums/install/hacks/maf/2/queries.php"
replace the contents of that file with <?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['new'][] = '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)
);
';
$query['new'][] = 'CREATE TABLE maf_ratings (
ratingid int(10) NOT NULL auto_increment,
appid int(10) NOT NULL default \'0\',
userid int(10) NOT NULL default \'0\',
rating tinyint(4) NOT NULL default \'0\',
additional_comments mediumtext NOT NULL,
timestamp int(10) NOT NULL default \'0\',
PRIMARY KEY (ratingid),
KEY appid (appid),
KEY appid_2 (appid)
);
';
?> and see if you still get the error
Mla7a6
03-27-2005, 07:40 PM
same thing, sabret00the..
Warning: halt(./includes/functions_log_error.php) [function.halt]: failed to create stream: No such file or directory in /www/customers/spta/www/vb/includes/db_mysql.php on line 389
Warning: halt() [function.halt]: Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/customers/spta/www/vb/includes/db_mysql.php on line 389
any suggestions?
sabret00the
03-27-2005, 08:24 PM
what's the location of the hack_install.php?
Marco van Herwaarden
03-27-2005, 08:32 PM
What version of MySQL are you running?
Could you try uninstalling and reinstalling.
Mla7a6
03-28-2005, 02:17 AM
what's the location of the hack_install.php?
its inside the install folder..
or did you mean the URL?
sabret00the
03-28-2005, 10:54 AM
just wanted to make sure it was at www.yoursite.com/forums/hack_install.php
also marco is a dev of the installer so play close attention to the questions he ask's you :)
Mla7a6
03-28-2005, 04:01 PM
What version of MySQL are you running?.
MySQL 3.23.56
Could you try uninstalling and reinstalling
tried it several times.. but didn't work also :ermm: :ermm:
just wanted to make sure it was at www.yoursite.com/forums/hack_install.php
nope.. the file is in www.mysite.com/vb/install/hack_install.php ;)
also marco is a dev of the installer so play close attention to the questions he ask's you
yeah.. I saw that.. I am just hoping that I am not bothering both of you much..
Marco van Herwaarden
03-28-2005, 09:35 PM
@sabre
For solving this problem i would focus on datatypes used that are new in MySQL 4, check www.mysql.com
Also i am not the coder of the installer, that is link. I promissed link that i will support the installer, and try to fix some (minor) bugs, and add some much requested functions. I haven't done much about it until now however, since i just didn't have the time.
Mechanical Mind
03-28-2005, 10:59 PM
I can't even get to the installer on this hack. The directions are fairly unclear...
I don't see or get any of this:
"right here's the quick and short of it, bung the files in the relevant folders
forums/modapp.php
forums/admincp/maf_delmodapp.php
forums/modcp/maf.. rahdy rar etc
run the installer at www.yoursite.com/forums/install/hack_install.php (http://www.yoursite.com/forums/install/hack_install.php)"
Help??? Not sure about "bung" or "rahdy rar etc"???
My admincp is not named "admincp". Is there anything I need to change for this hack to work?
red_baron2000
03-28-2005, 11:28 PM
excellent hack..installed ok works like a charm :)
thank you very much :)
Oblivion Knight
03-29-2005, 06:17 PM
Hmm.. It would appear that applicants aren't get shortlisted.
In every e-mail that I receive, it states that there are no shortlisted applicants, yet there are people with the required ratings that applied more beyond the time stated. The unsuccessful applications are functioning fine, it's just the successful ones that don't seem to be.
Dave-ahfb
03-29-2005, 08:28 PM
All I get is a blank page when accessing forum/includes/hack_install.php
Oblivion Knight
03-29-2005, 08:52 PM
All I get is a blank page when accessing forum/includes/hack_install.phpIt should be forum/install/hack_install.php ;)
Dave-ahfb
03-29-2005, 09:06 PM
oops, I meant to say /install/
red_baron2000
03-29-2005, 11:20 PM
2 things :
1) there is a small typo " their" should be"there" see attached picture.
2) i have set the cron as stated above and scheduled task to run 1 time per day however it still send the same applicant form to moderators forum non stop any idea how to fix this?
thank you.
Mla7a6
03-30-2005, 04:05 PM
I am not sure, but it seems to me the problem with the installation of HIS is associated with MySQL version 3.23 while it didn't affect version 4 and above.. ( I tested it on another site and it ran smoothly like a charm)..
Can you confirm it MarcoH64
sabret00the
03-30-2005, 04:06 PM
yup theirs a problem with HIS or atleast my implemation and pre-4.0.0
Marco van Herwaarden
03-30-2005, 05:32 PM
Try running the following queries, insert table prefix if needed:
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)
);
CREATE TABLE maf_ratings (
ratingid int(10) NOT NULL auto_increment,
appid int(10) NOT NULL default 0,
userid int(10) NOT NULL default 0,
rating tinyint(4) NOT NULL default 0,
additional_comments mediumtext NOT NULL,
timestamp int(10) NOT NULL default 0,
PRIMARY KEY (ratingid),
KEY appid (appid),
KEY appid_2 (appid)
);
@sabre
Why are you not using TABLE_PREFIX? and why the same KEY twice on the second table?
Marco van Herwaarden
03-30-2005, 05:33 PM
yup theirs a problem with HIS or atleast my implemation and pre-4.0.0The database errors are not caused by HIS, but by the SQL statements themself. The problem with the current HIS version is that it doesn't show the database error correct.
Mla7a6
03-30-2005, 09:24 PM
I ran the SQL query from "phpMyAdmin 2.4.0" as instructed, but there was an error after each query:
after the 1st query
Error
SQL-query :
CREATE TABLE maf_application(
appid int( 10 ) NOT NULL auto_increment,
userid int( 10 ) NOT NULL default0,
email varchar( 250 ) NOT NULL default '',
fullname varchar( 250 ) NOT NULL default '',
age tinyint( 4 ) NOT NULL default0,
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 default0,
auto_mailed tinyint( 4 ) default NULL ,
PRIMARY KEY ( appid )
)
MySQL said:
You have an error in your SQL syntax near 'default0, email varchar( 250 ) NOT NULL default '', fullname varchar( 250 )' at line 1
and then after the 2nd query:
Error
SQL-query :
CREATE TABLE maf_ratings(
ratingid int( 10 ) NOT NULL auto_increment,
appid int( 10 ) NOT NULL default0,
userid int( 10 ) NOT NULL default0,
rating tinyint( 4 ) NOT NULL default0,
additional_comments mediumtext NOT NULL ,
timestamp int( 10 ) NOT NULL default0,
PRIMARY KEY ( ratingid ) ,
KEY appid( appid ) ,
KEY appid_2( appid )
)
MySQL said:
You have an error in your SQL syntax near 'default0, userid int( 10 ) NOT NULL default0, rating tinyint
Any ideas MarchH64 ?
Marco van Herwaarden
03-31-2005, 12:46 PM
Well something went wrong with the copy&paste. If you look at the query i posted on the previous page you will see a space between every 'default 0', this turns into 'default0' at your post.
Try again, but insert a space in every 'default0'.
SaN-DeeP
03-31-2005, 12:58 PM
Nice Modification sabretooth.. I will give this a try :)
Regards,
Mla7a6
03-31-2005, 09:42 PM
Well something went wrong with the copy&paste. If you look at the query i posted on the previous page you will see a space between every 'default 0', this turns into 'default0' at your post.
Try again, but insert a space in every 'default0'.
I tried to copy&paster several times, and even added extra spaces, but phpMyAdmin didn't get it right.. so I tried something else..
I inserted the tables manually, and the script worked 80% except for the automatic thread creation.. I think the reason was that I didn't know how to run the following command manually: ( I am still novice @ MySQL quries :o :o )
KEY appid( appid ) ,
KEY appid_2( appid )
if thats the reason, can you help me.. I know that I bugged you very much.. but I liked the script and will do anything to install it..
Chris Croft
04-01-2005, 08:51 PM
Hi, I'm wondering how I can find and edit the "Moderator Policy" box, the thing that pops up when someone goes in to apply to be a moderator, because I'm wanting to make it so it's an agreement to be a moderator, or a DJ, or other things, etc... I've been looking for the template that has it, but I can't find it. :cry:
lwhite
04-03-2005, 03:45 AM
I get:
Database error in vBulletin 3.0.7:
Invalid SQL:
DELETE *
FROM maf_application
WHERE userid = 2
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 '*
FROM maf_application
WHERE userid = 2' at line 1
mysql error number: 1064
I think the problem is that my table prefixes are "1". How could I get this to work?
sabret00the
04-03-2005, 10:38 AM
Hi, I'm wondering how I can find and edit the "Moderator Policy" box, the thing that pops up when someone goes in to apply to be a moderator, because I'm wanting to make it so it's an agreement to be a moderator, or a DJ, or other things, etc... I've been looking for the template that has it, but I can't find it. :cry:
hi Chris, it's in the modapp_rules template :)
sabret00the
04-03-2005, 10:43 AM
I get:
I think the problem is that my table prefixes are "1". How could I get this to work?
check this post https://vborg.vbsupport.ru/showpost.php?p=620870&postcount=131 it will address your problems :)
tp214
04-03-2005, 05:14 PM
check this post https://vborg.vbsupport.ru/showpost.php?p=620870&postcount=131 it will address your problems :)
alright i did that to get the delete applicants thing working, but now i cant even access the page... lol
Chris, you do not have permission to access this page. This could be due to one of several reasons:
1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Log
tp214
04-03-2005, 05:26 PM
that is after i tried the form out, and then deleted my application... my partner was testing the rating and put me at a 1, is that a problem? i delted it though
Brandon Sheley
04-06-2005, 05:05 AM
and don't forget to set up a cron to run once daily (you will need to configure your cron on line 10, this requires a manual edit of the file before upload)
can you explain this for me ? i understand that " cron" deals with Scheduled Task Manager,,, thast about all i know about it.. i've installed the mod and it works great, but i can't delete app's and im guessing this is the reason.. please explain more for me,, thank you
-LM
Brandon Sheley
04-06-2005, 05:14 AM
nvm, post #204 helped me out,, ty for the mod
Dave-ahfb
04-07-2005, 03:50 PM
Just to note, my problem on the previous page (HIS gives blank page only) is not related to a previous version MySQL problem, I am using 4.3.1
Any ideas?
Dave
sabret00the
04-07-2005, 04:34 PM
Just to note, my problem on the previous page (HIS gives blank page only) is not related to a previous version MySQL problem, I am using 4.3.1
Any ideas?
Dave
none what so ever, hopefully marco will take a butchers at this thread.
Marco van Herwaarden
04-07-2005, 05:23 PM
All I get is a blank page when accessing forum/includes/hack_install.phpShould not be in 'includes' but in 'install'.
This is the problem you where addressing today?
* MarcoH64 slaps sabret00th around with a smelly trout for not being able to help with such a simple problem :D
Oblivion Knight
04-07-2005, 05:26 PM
Hmm.. It would appear that applicants aren't get shortlisted.
In every e-mail that I receive, it states that there are no shortlisted applicants, yet there are people with the required ratings that applied more beyond the time stated. The unsuccessful applications are functioning fine, it's just the successful ones that don't seem to be.^ Bump.
Just making sure that you're aware of this issue Sabe.. ;)
Dave-ahfb
04-07-2005, 08:31 PM
Marco, the includes/install confusion is not the problem. As I said a couple pages back, I made a mistake in the post saying includes. In fact it is and was install.
Dave
Marco van Herwaarden
04-08-2005, 04:07 AM
Well all i can say for now then is try to upload all files in install again, and make sure you are transfering them in ASCI mode.
What PHP version are you running?
1 more question, do you have your admincp directory renamed?
Dave-ahfb
04-08-2005, 11:08 AM
yes admincp and modcp are renamed
Marco van Herwaarden
04-08-2005, 11:52 AM
yes admincp and modcp are renamedrename the 'install/his_files/hack_config_default.php' to 'install/his_files/hack_config.php'.
Then edit it and set the name of your $admincpdir.
You can leave this file renamed and in place. All future hacks you install using HIS will only suply a new _default file and not overwrite the one you just edited. Only do this once, all future HIS installs will use the admincpdir setting from the edited file.
XrayHead
04-09-2005, 11:11 AM
Dam I am getting the same thing.............
Have uninstalled and reinstalled but same thing.
When I try to uninstall I aslo get this messege.
There is no record of being installed. It cannot be uninstalled.
Hacks Uninstalled!
Click here to view these hacks' modifications - you must do them backwards to finish the install. -->
------------------------------------------------------------
Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /home/lbarrell/public_html/vboard/includes/db_mysql.php on line 389 Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/share/pear') in /home/lbarrell/public_html/vboard/includes/db_mysql.php on line 389
------------------------------------------------------------
Database error in vBulletin 3.0.3:
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)
) TYPE=MyISAM;
mysql error: You have an error in your SQL syntax near ';
' at line 21
mysql error number: 1064
Date: Saturday 09th of April 2005 01:10:00 PM
Script: http://www.**Masked**.com/vboard/install/hack_install.php?do=install&step=dodatabasequeries&hacks=MAF
Referer:
Username: **Masked**
IP Address: **Masked**
My ISP
PHP Version: 4.3.10
VB 3.6
SQL ver: 3.23.58
Xrayhead
XrayHead
04-09-2005, 11:15 AM
Warning if the script crashes halfway through then you cannot use the uninstaller to remover the parts it has already completed!!
When I click the bellow
"Click here to view these hacks' modifications - you must do them backwards to finish the install. -->"
I get this messege.
------------------------------------------------------------------
has no hack information and cannot be installed.
No hacks to install!When finished editing the needed files/templates (if any are needed), click here to return to the main page. -->
No readme files found.
------------------------------------------------------------------
This dose not make sence as during the install I get these messeges:
------------------------------------------------------------------
MAF: Added Setting Group - Moderation Application Form
MAF: Added Setting - Forum ID
MAF: Added Setting - Username
MAF: Added/Updated Phrase - maf_mustagree
MAF: Added/Updated Phrase - maf_alreadyapplied
MAF: Added/Updated Phrase - maf_thanks
MAF: Added/Updated Phrase - maf_rated
MAF: Added/Updated Phrase - maf_deleted
MAF: Created/Updated Template - modapp_rules
MAF: Created/Updated Template - MODAPP
Rebuild Style Information
Updating style information for each style
vBulletin 3 ... (Templates) (StyleVars) (CSS) (Replacement Variables) (Controls) Done.
NewSat ... (Templates) (StyleVars) (CSS) (Replacement Variables) (Controls) Done.
------------------------------------------------------------------
Xrayhead....... :ermm: :ermm: :disappointed:
Please
Any chance we can have a list of the changes to uninstall and the tables to drop in SQL so I can remove this hack completly??? Thank you :rolleyes:
lebanon
04-12-2005, 02:27 PM
I downloaded this hack and it is very intresting to me
All running fine , application submited
Problem is : forum/modcp/maf_rateapp.php
& forum/admincp/maf_delapp.php
Both return empty files , not blank pages
Just the page with the header; MAF Moderator Application Rating Form
and the jellsoft footer ofcourse
But nothing within which am looking for to delete apps or rate them !
The thread posting is correct and everything else except that those two files doesnt not return what i supposed i should find .. right ?
briangumble
04-13-2005, 04:30 AM
I was thinking of using this hack as this seems to be exactly what I've been looking for but I've got a few questions.
1. How stable is it?
2. How customizable is it? Can you add/edit/remove form fields?
3. Are there any boards using this hack so I can take a look at it?
XrayHead
04-13-2005, 06:57 AM
I was thinking of using this hack as this seems to be exactly what I've been looking for but I've got a few questions.
1. How stable is it?
2. How customizable is it? Can you add/edit/remove form fields?
3. Are there any boards using this hack so I can take a look at it?
Well at present there is no support for it at all mate.
I am still waiting for some help to eather get it going or remove it!!!!!
Xrayhead
:ermm:
sabret00the
04-13-2005, 11:14 AM
^ Bump.
Just making sure that you're aware of this issue Sabe.. ;)
i do remember that one, it required a tad of testing i should be able to do today so hopefully i'll get the fix out this afternoon.
sabret00the
04-13-2005, 11:17 AM
Dam I am getting the same thing.............
Have uninstalled and reinstalled but same thing.
When I try to uninstall I aslo get this messege.
There is no record of being installed. It cannot be uninstalled.
Hacks Uninstalled!
Click here to view these hacks' modifications - you must do them backwards to finish the install. -->
------------------------------------------------------------
Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /home/lbarrell/public_html/vboard/includes/db_mysql.php on line 389 Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/share/pear') in /home/lbarrell/public_html/vboard/includes/db_mysql.php on line 389
------------------------------------------------------------
Database error in vBulletin 3.0.3:
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)
) TYPE=MyISAM;
mysql error: You have an error in your SQL syntax near ';
' at line 21
mysql error number: 1064
Date: Saturday 09th of April 2005 01:10:00 PM
Script: http://www.**Masked**.com/vboard/install/hack_install.php?do=install&step=dodatabasequeries&hacks=MAF
Referer:
Username: **Masked**
IP Address: **Masked**
My ISP
PHP Version: 4.3.10
VB 3.6
SQL ver: 3.23.58
Xrayhead
MySQL three doesn't like the MyISAM stuffy-majig. try these queries instead https://vborg.vbsupport.ru/showpost.php?p=633535&postcount=195
sabret00the
04-13-2005, 11:18 AM
I downloaded this hack and it is very intresting to me
All running fine , application submited
Problem is : forum/modcp/maf_rateapp.php
& forum/admincp/maf_delapp.php
Both return empty files , not blank pages
Just the page with the header; MAF Moderator Application Rating Form
and the jellsoft footer ofcourse
But nothing within which am looking for to delete apps or rate them !
The thread posting is correct and everything else except that those two files doesnt not return what i supposed i should find .. right ?
can you open up one of the two files in notepad and post the contents in php tags please.
sabret00the
04-13-2005, 11:21 AM
Warning if the script crashes halfway through then you cannot use the uninstaller to remover the parts it has already completed!!
When I click the bellow
"Click here to view these hacks' modifications - you must do them backwards to finish the install. -->"
I get this messege.
------------------------------------------------------------------
has no hack information and cannot be installed.
No hacks to install!When finished editing the needed files/templates (if any are needed), click here to return to the main page. -->
No readme files found.
------------------------------------------------------------------
This dose not make sence as during the install I get these messeges:
------------------------------------------------------------------
MAF: Added Setting Group - Moderation Application Form
MAF: Added Setting - Forum ID
MAF: Added Setting - Username
MAF: Added/Updated Phrase - maf_mustagree
MAF: Added/Updated Phrase - maf_alreadyapplied
MAF: Added/Updated Phrase - maf_thanks
MAF: Added/Updated Phrase - maf_rated
MAF: Added/Updated Phrase - maf_deleted
MAF: Created/Updated Template - modapp_rules
MAF: Created/Updated Template - MODAPP
Rebuild Style Information
Updating style information for each style
vBulletin 3 ... (Templates) (StyleVars) (CSS) (Replacement Variables) (Controls) Done.
NewSat ... (Templates) (StyleVars) (CSS) (Replacement Variables) (Controls) Done.
------------------------------------------------------------------
Xrayhead....... :ermm: :ermm: :disappointed:
Please
Any chance we can have a list of the changes to uninstall and the tables to drop in SQL so I can remove this hack completly??? Thank you :rolleyes:
really and truly all i'd be doing is copying and pasting the contents of uninstall.php so you can grab em from there, if you're incapable then let me know and i'll copy and paste into the thread.
sabret00the
04-13-2005, 11:23 AM
I was thinking of using this hack as this seems to be exactly what I've been looking for but I've got a few questions.
1. How stable is it?
2. How customizable is it? Can you add/edit/remove form fields?
3. Are there any boards using this hack so I can take a look at it?
1/ very stable, the biggest problem seems to be mysql compatibility and a bug in the email.
2/ not very customisable at all i'm afraid.
3/ many including mine, but please do not sign upto my site just to take a look at the hack.
sabret00the
04-13-2005, 11:25 AM
Well at present there is no support for it at all mate.
I am still waiting for some help to eather get it going or remove it!!!!!
Xrayhead
:ermm:
forgive me for getting a life for a week, sometimes it happens that i can't put no time into vBulletin as i have to dedicate time to keeping the women in my life happy including my mother and then theirs a small matter of paying bills, however having found a spare moment i do beleive i've caught upto all the problems and lived up to the pledge i made to provide support.
XrayHead
04-13-2005, 11:33 AM
Ok sabret00the
Sorry for that was getting a bit stressed. Thank you for the replys on page 15 I will give them a go.
Regards
Xrayhead
Oblivion Knight
04-13-2005, 11:36 AM
I've not tested this, but I think you can prevent "pointless" e-mails being sent if you do the following..
Open the includes/cron/maf_cron.php file, find:
$logmessage = "Moderation Application Auto Proccessing Complete; \n Declination's: " . $declinationemail . ".\n\n Shortlistings: " . $shorlistemail . ". \n\n New Applications: " . $newapps . ".";
vbmail($vboptions[webmasteremail],"Moderation Application Auto Proccessing (Proccessing Notification)",$logmessage,"From: \"$vboptions[bbtitle] Mailer\" <$vboptions[webmasteremail]>");
log_cron_action($logmessage, $nextitem);Replace it with:
if ($declinationemail != 'None' AND $shorlistemail != 'None' AND $newapps != 'None')
{
$logmessage = "Moderation Application Auto Proccessing Complete; \n Declination's: " . $declinationemail . ".\n\n Shortlistings: " . $shorlistemail . ". \n\n New Applications: " . $newapps . ".";
vbmail($vboptions[webmasteremail],"Moderation Application Auto Proccessing (Proccessing Notification)",$logmessage,"From: \"$vboptions[bbtitle] Mailer\" <$vboptions[webmasteremail]>");
log_cron_action($logmessage, $nextitem);
}
sabret00the
04-13-2005, 12:06 PM
I've not tested this, but I think you can prevent "pointless" e-mails being sent if you do the following..
Open the includes/cron/maf_cron.php file, find:
$logmessage = "Moderation Application Auto Proccessing Complete; \n Declination's: " . $declinationemail . ".\n\n Shortlistings: " . $shorlistemail . ". \n\n New Applications: " . $newapps . ".";
vbmail($vboptions[webmasteremail],"Moderation Application Auto Proccessing (Proccessing Notification)",$logmessage,"From: \"$vboptions[bbtitle] Mailer\" <$vboptions[webmasteremail]>");
log_cron_action($logmessage, $nextitem);Replace it with:
if ($declinationemail != 'None' AND $shorlistemail != 'None' AND $newapps != 'None')
{
$logmessage = "Moderation Application Auto Proccessing Complete; \n Declination's: " . $declinationemail . ".\n\n Shortlistings: " . $shorlistemail . ". \n\n New Applications: " . $newapps . ".";
vbmail($vboptions[webmasteremail],"Moderation Application Auto Proccessing (Proccessing Notification)",$logmessage,"From: \"$vboptions[bbtitle] Mailer\" <$vboptions[webmasteremail]>");
log_cron_action($logmessage, $nextitem);
}
nice one, i'll add it, though it should only go around the vBmail thing and not the whole thing :)
Oblivion Knight
04-13-2005, 12:36 PM
nice one, i'll add it, though it should only go around the vBmail thing and not the whole thing :)Really? I assumed that the surrounding code added a log of some kind (which wouldn't really be needed if no e-mail was being sent).. What does it do then? :)
sabret00the
04-13-2005, 12:40 PM
it adds the log to the schedule task logs, but it's best to keep that their even if empty, so if it don't work or stops working for some reason you can trace it back
lebanon
04-13-2005, 01:19 PM
<?php
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('CVS_REVISION', '$RCSfile: grps_delapp.php,v $ - $Revision: 1.0 $');
define('NO_REGISTER_GLOBALS', 1);
// #################### PRE-CACHE TEMPLATES AND DATA ######################
//$phrasegroups = array('thread', 'calendar', 'timezone', 'threadmanage');
$specialtemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once('./global.php');
require_once('./includes/functions_databuild.php');
// ############################# LOG ACTION ###############################
log_admin_action(iif(isset($_REQUEST['calendarid']), "calendar id = $_REQUEST[calendarid]", iif(isset($_REQUEST['forumid']), "forum id = $_REQUEST[forumid]")));
// ################################################## ######################
// ######################### START MAIN SCRIPT ############################
// ################################################## ######################
print_cp_header('GRPS Group Editor');
// ###################### Start app search form #######################
if ($_REQUEST['do'] == 'del')
{
print_form_header('maf_delapp', 'sure', 'sure');
print_table_header("Delete An Application");
print_input_row('Please Enter The Username Of The App You\'d Like To Edit: ', 'findusername');
print_submit_row('DELETE');
print_table_footer();
}
// ###################### Start app confirm form #######################
if ($_POST['do'] == 'sure')
{
print_form_header('maf_delapp', 'dodelapp', 'delapp');
print_table_header("Delete An Application");
print_label_row('Are You Sure You Want To Delete: ', '' . $_POST[findusername] . '\'s Application');
construct_hidden_code('findusername', $_POST[findusername]);
print_submit_row('DELETE APPLICATION');
print_table_footer();
}
// ###################### Start process group edit #######################
if ($_POST['do'] == 'dodelapp')
{
// globalize($_POST, array('grpsaction'));
$username = addslashes($_POST['findusername']);
$getuser = $DB_site->query_first("
SELECT *
FROM " . TABLE_PREFIX . "user AS user
WHERE username = '" . $username . "'
");
$DB_site->query("
DELETE *
FROM maf_application
WHERE userid = $getuser[userid]
");
$DB_site->query("
DELETE *
FROM maf_ratings
WHERE userid = $getuser[userid]
");
define('CP_REDIRECT', 'maf_delapp.php?do=find');
print_stop_message('maf_deleted');
}
print_cp_footer();
/*================================================= =====================*\
|| ################################################## ##################
|| # Created: 13:36, Sat December 11th 2004
|| # CVS: $RCSfile: maf_delapp.php,v $ - $Revision: 1.0 $
|| ################################################## ##################
\*================================================ ======================*/
?>
Sabe , here is the code of the file in admincp, as i said everything else is working, even this file is openning without a php error or mysql error , its just openning with header and footer, thats all
my vb is 3.0.5 btw , i just need to see whats making it not loading so i can check up MOD apps !
sabret00the
04-13-2005, 01:24 PM
you did make the changes specified for the admincp/index.php and modcp/index.php right? as the url to both files is page.php?do=action and unless yo enclude the action, they won't show up.
lebanon
04-13-2005, 01:34 PM
In the zip ive downloaded i dont see any changes asked to be made!
Since i know basics of php i knew there is more to be done but all what was in ur install file was
---------
right here's the quick and short of it, bung the files in the relevant folders
forums/modapp.php
forums/admincp/maf_delmodapp.php
forums/modcp/maf.. rahdy rar etc
run the installer at www.yoursite.com/forums/install/hack_install.php
and follow the instructions.
and don't forget to set up a cron to run once daily (you will need to configure your cron on line 10, this requires a manual edit of the file before upload)
------------------
I did that but no where is aw instructions, so excuse me if i missed it anywhere, and please tell me where to find them or paste them here
*i feel like dumb but i really searched!*
sabret00the
04-13-2005, 01:36 PM
in the hack installer under the file mods, it should say the changes you needed to make.
lebanon
04-13-2005, 01:55 PM
Hi again,
Okey i reopened installation and when finished installing again i saw :
When finished editing the needed files/templates (if any are needed), click here to return to the main page. -->
MAF Installation Edits
I now clicked on MAF edits and i can see the changes you told me about.
I knew there must be ones , on other hacks i usually saw em in seperate files or in install texts , thats why i missed them !
I think you should note it for other pple , maybe i wont endup the only one missing them !
Anyway, THANKS A LOTT i love this hack and yes i clicked install !
sabret00the
04-13-2005, 01:56 PM
Hi again,
Okey i reopened installation and when finished installing again i saw :
When finished editing the needed files/templates (if any are needed), click here to return to the main page. -->
MAF Installation Edits
I now clicked on MAF edits and i can see the changes you told me about.
I knew there must be ones , on other hacks i usually saw em in seperate files or in install texts , thats why i missed them !
I think you should note it for other pple , maybe i wont endup the only one missing them !
Anyway, THANKS A LOTT i love this hack and yes i clicked install !
glad you've got it working :)
sabret00the
04-17-2005, 04:30 PM
Now including special update
LEAD_WEIGHT
04-20-2005, 03:40 AM
Apply for Affiliation or Advertisement
It most likely be like sabret00the MAF https://vborg.vbsupport.ru/showthread.php?t=77340&page=16&pp=15&highlight=maf
something simular to this site as well http://gothtopic.com/forum/affiliate.php
Modular Request
https://vborg.vbsupport.ru/showthread.php?p=643281#post643281
brianstevz
04-24-2005, 12:04 AM
I reinstalled it repeatedly and keep getting the same error message
Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /home/proam2/public_html/forums/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/proam2/public_html/forums/includes/db_mysql.php on line 389
I've followed the instructions to the letter but it doesn't work. I've read through this entire thread and it seems that multiple people have the same issue that I do but no one addresses on how to fix it. Anyone?
sabret00the
04-24-2005, 12:07 AM
as far as i can remember all them issues were solved by marco and were to do with the ")MyIsiam; on the end of each query. :confused:
brianstevz
04-24-2005, 10:24 AM
as far as i can remember all them issues were solved by marco and were to do with the ")MyIsiam; on the end of each query. :confused:
Which query? Where do I put this? Is this in the php code or the template? Still very confused.
sabret00the
04-24-2005, 10:26 AM
<a href="https://vborg.vbsupport.ru/showpost.php?p=620684&postcount=96" target="_blank">https://vborg.vbsupport.ru/showp...4&postcount=96</a>
I am confused...
I installed it and went to admincp to add username and forum ID.
Then I do a mock application at:
modapp.php
RUn the cron, got a new post in the forum.
But there is nothing here when I visit:
maf_rateapp.php
Nor I can find entry in modcp to reach the above URL.
Someone help, thank you.
sabret00the
04-24-2005, 01:38 PM
I am confused...
I installed it and went to admincp to add username and forum ID.
Then I do a mock application at:
modapp.php
RUn the cron, got a new post in the forum.
But there is nothing here when I visit:
maf_rateapp.php
Nor I can find entry in modcp to reach the above URL.
Someone help, thank you.
you must not have doen the file edits :(
you must not have doen the file edits :(
I edited the cron file after the installation and upload it, I can Run NOw at admincp without a problem. What can I do now?
sabret00the
04-24-2005, 03:23 PM
I edited the cron file after the installation and upload it, I can Run NOw at admincp without a problem. What can I do now?
the file edits are stated within the installer.
brianstevz
04-24-2005, 03:27 PM
https://vborg.vbsupport.ru/showpost.php?p=620684&postcount=96
Still get same error. How do I delete this thing?
sabret00the
04-24-2005, 03:29 PM
Still get same error. How do I delete this thing?
run the installer, select uninstall.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.