Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
MAF: (Moderator Application Form & Application Rating Module) Details »»
MAF: (Moderator Application Form & Application Rating Module)
Version: 1.06, by sabret00the sabret00the is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 03-01-2005 Last Update: 05-09-2005 Installs: 124
DB Changes
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #322  
Old 06-11-2005, 01:47 AM
Gio Takahashi's Avatar
Gio Takahashi Gio Takahashi is offline
 
Join Date: Jul 2003
Location: Cape Coral
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erm. All the applications just...disappeared. I have no log entries indicating any of my staffers ever deleting them.
Reply With Quote
  #323  
Old 06-15-2005, 04:33 AM
osariase osariase is offline
 
Join Date: Mar 2005
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have all the posts concerning this hack I don't seem to know where to find answers so here is my problem.

I have installed it didnt get any error messages

did the cron job i see the options in admincp. But whenever i click on rate application in admincp, I get a white page saying page cannot be found

so what i'm i doing wrong can someone who have installed this please show me the way thanks
Reply With Quote
  #324  
Old 06-17-2005, 09:03 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gio Takahashi
Erm. All the applications just...disappeared. I have no log entries indicating any of my staffers ever deleting them.
i have no clue how that happened? what does the cron log show exactly?
Reply With Quote
  #325  
Old 06-17-2005, 09:03 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by osariase
I have all the posts concerning this hack I don't seem to know where to find answers so here is my problem.

I have installed it didnt get any error messages

did the cron job i see the options in admincp. But whenever i click on rate application in admincp, I get a white page saying page cannot be found

so what i'm i doing wrong can someone who have installed this please show me the way thanks
the last of the file edits are contained in the installer you have to finish that.
Reply With Quote
  #326  
Old 07-10-2005, 08:29 AM
sketch42's Avatar
sketch42 sketch42 is offline
 
Join Date: May 2004
Location: Brooklyn, NY
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do i run this cron thing.. i followed the instructions edited all the files... including the maf_cron.php and admin and modcp index.php fixed all the settings in the vboptions but i still cant figure out where to go to run this cron daily.. i dont see any options for it

***Edit*** forget that i figured it out its in schedueled tasks

ok but i have another problem i made one app and i got 2 threads after i ran the cron
also theres no information in the thread as wgere to go to rate the applicants

***Edit2*** lol. forget that too i found it...

but is it possible for the thread to be created as the applicants name in the description or something like that??
and i still have that 2 thread problem
Reply With Quote
  #327  
Old 07-10-2005, 08:38 AM
XrayHead's Avatar
XrayHead XrayHead is offline
 
Join Date: Oct 2002
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please can someone give me the steps to remove this hack and the tables ETC I need to remove from my SQL database?

Thanks

Xray
Reply With Quote
  #328  
Old 07-10-2005, 11:12 AM
sketch42's Avatar
sketch42 sketch42 is offline
 
Join Date: May 2004
Location: Brooklyn, NY
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by XrayHead
Please can someone give me the steps to remove this hack and the tables ETC I need to remove from my SQL database?

Thanks

Xray
well these are the queries i could find that are in the databse

Code:
<?php

// The query should probably be enclosed by '
// Be sure you include TABLE_PREFIX
// Replace 'build' with either 'new', 'uninstall', or the build number the query is meant to upgrade FROM.

$query['uninstall'][] = 'DROP TABLE `maf_application`;';
$query['uninstall'][] = 'DROP TABLE `maf_ratings`;';
?>
there may be more but its late so i didnt finish looking

also if you want this is the contents of the uninstaller
PHP Code:
<?php

// ###################### Uninstall ###########################
if ($_REQUEST['do'] == 'uninstall') {
        if (
$step == '0') {
                
// Put the hacks in an array and print some text.
                
$hacks explode("|||"$_REQUEST['hacks']);
                echo 
"These are the hacks you have selected to uninstall: <ul>";
                foreach (
$hacks as $key => $hack) {
                        
// Put the hack name in an array.
                        
$hackd $hack;
                        unset(
$hack);
                        
$hack['name'] = $hackd;
                        
$hack['displayname'] = str_replace("_"" "$hack['name']);
                        
// Check for installed varsions and set some variables.
                        // Some sanity checking as well.
                        
if (isset($installedhack[$hack[displayname]])) {
                                
// There is a record of the hack being installed.
                                
$hack['installed_build'] = $installedhack[$hack[displayname]]['build'];
                                
$hack['installed_version'] = $installedhack[$hack[displayname]]['version'];
                                
$hack['path'] = $path_to_install "hacks/$hack[name]/";
                                
$hack['build'] = $hack['installed_build'];
                        } elseif (!isset(
$override)) {
                                
// We can't find a record of the hack being installed and override is not enabled.
                                
echo "There is no record of $hack[displayname] being installed. It cannot be uninstalled.";
                                unset(
$hacks[$key]);
                                
$ohnoes true;
                        } else {
                                
// The hack hasn't been found to be installed, but we have override on.
                                // Path to the hack directory.
                                
$hack['path'] = $path_to_install "hacks/$hack[name]/";
                                
$hack_dir opendir($hack['path']);
                                
// Find all the builds.
                                
while (($file readdir($hack_dir)) !== false) {
                                        if (
is_numeric($file) && $file != "." && $file != "..") {
                                                
$hack['builds'][$file] = $file;
                                        }
                                }
                                
// Find the latest build.
                                
if (!empty($hack['builds'])) {
                                        
arsort($hack['builds']);
                                        foreach (
$hack['builds'] as $build) {
                                                
$hack['build'] = $build;
                                                break;
                                        }
                                }
                        }
                        
// Sanity checking and require the file.
                        
if (file_exists("./hacks/$hack[name]/$hack[build]/index.php")) {
                                
chdir("./hacks/$hack[name]/$hack[build]");
                                require_once(
"./index.php");
                                
chdir('./../../../');
                        } else {
                                if (!isset(
$ohnoes)) {
                                        echo 
$hack['displayname'] . " build #" $hack['build'] . " contains no index.php containing hack information and cannot be uninstalled.<br /><br />";
                                        unset(
$hacks[$key]);
                                        
$ohnoes true;
                                }
                        }
                        
// If we are still sane, print out the hack name.
                        
if (!isset($ohnoes)) {
                                echo 
"<li>$hack[displayname]</li>";
                        } else {
                                unset(
$ohnoes);
                        }
                }
                
// Print some text and some links and continue.
                
$hacks implode("|||"$hacks);
                echo 
"</ul><p>We're sorry you didn't like these hacks. Running this script will remove all settings and templates created.</p>";
                echo 
"<p><a href="hack_install.php?do=uninstall&amp;step=1&hacks=$hacks$fileurl$override">Click here to uninstall --&gt;</b></a></p>\n";
        }

        if (
$step == '1') {
                
// Put the hacks in an array.
                
$hacks explode("|||"$_REQUEST['hacks']);
                foreach (
$hacks as $key => $hack) {
                        
// Put the hack name in an array.
                        
$hackd $hack;
                        unset(
$hack);
                        
$hack['name'] = $hackd;
                        
$hack['displayname'] = str_replace("_"" "$hack['name']);
                        
// Check for installed versions.
                        
if (isset($installedhack[$hack[displayname]])) {
                                
// There is a record of the hack being installed.
                                
$hack['installed_build'] = $installedhack[$hack[displayname]]['build'];
                                
$hack['installed_version'] = $installedhack[$hack[displayname]]['version'];
                                
$hack['path'] = $path_to_install "hacks/$hack[name]/";
                                
$hack['build'] = $hack['installed_build'];
                        } elseif (!isset(
$override)) {
                                
// There is no record of the hack being installed and override is not enabled.
                                
echo "There is no record of $hack[displayname] being installed. It cannot be uninstalled.";
                                unset(
$hacks[$key]);
                                
$ohnoes true;
                        } else {
                                
// There is no record of the hack being installed, but we have override.
                                // Path to the hack folder.
                                
$hack['path'] = $path_to_install "hacks/$hack[name]/";
                                
$hack_dir opendir($hack['path']);
                                
// Find all the builds.
                                
while (($file readdir($hack_dir)) !== false) {
                                        if (
is_numeric($file) && $file != "." && $file != "..") {
                                                
$hack['builds'][$file] = $file;
                                        }
                                }
                                
// Find the latest build.
                                
if (!empty($hack['builds'])) {
                                        
arsort($hack['builds']);
                                        foreach (
$hack['builds'] as $build) {
                                                
$hack['build'] = $build;
                                                break;
                                        }
                                }
                        }
                        
// Some sanity and require the file.
                        
if (file_exists("./hacks/$hack[name]/$hack[build]/index.php")) {
                                
chdir("./hacks/$hack[name]/$hack[build]");
                                require_once(
"./index.php");
                                
chdir('./../../../');
                        } else {
                                if (!isset(
$ohnoes)) {
                                        echo 
$hack['displayname'] . " build #" $hack['build'] . " contains no index.php containing hack information and cannot be uninstalled.<br /><br />";
                                        unset(
$hacks[$key]);
                                        
$ohnoes true;
                                }
                        }
                        
// If we are still sane, uninstall the hack.
                        
if (!isset($ohnoes)) {
                                
// Kill the settinggroups.s
                                
if (isset($settinggroup)) {
                                        foreach (
$settinggroup as $group => $sg) {
                                                
settinggroup_kill_list($group$sg['phrase']);
                                        }
                                }
                                
// Kill the settings.
                                
if (isset($setting)) {
                                        foreach (
$setting as $varname => $set) {
                                                
setting_kill_list($varname$set['titlephrase']);
                                        }
                                }
                                
kill_settings();
                                
// Kill the phrases.
                                
if (isset($phrase)) {
                                        foreach (
$phrase as $varname => $text) {
                                                
phrase_kill_list($varname);
                                        }
                                        
kill_phrases();
                                }
                                
// Kill the adminhelp.
                                
if (isset($adminhelp)) {
                                        foreach (
$adminhelp as $ah) {
                                                
adminhelp_kill_list($ah['script'], $ah['action'], $ah['optionname'], $ah['title']);
                                        }
                                        
kill_adminhelp();
                                }
                                
// Kill the templates.
                                
if (isset($templates)) {
                                        foreach (
$templates as $name => $content) {
                                                
template_kill_list($name);
                                        }
                                        
kill_templates();
                                }
                                
// Run uninstallation queries.
                                
if (isset($query)) {
                                        foreach (
$query as $build => $querie) {
                                                if (
$build == "uninstall") {
                                                        foreach (
$querie as $i => $querieie) {
                                                                
$DB_site->query($querieie);
                                                        }
                                                }
                                        }
                                        echo 
"<font size="1">$hack[displayname]: Ran removal queries.</font><br />";
                                }
                                
// Remove the hack from the installation log, print some text, and unset a lot of crap.
                                
$DB_site->query("DELETE FROM ".TABLE_PREFIX."his_installed WHERE hack='".addslashes($hack['displayname'])."'");
                                echo 
"<font size="1">$hack[displayname]: Removed from installation log.</font><br /><br /><br />";
                                unset(
$hack);
                                unset(
$templates);
                                unset(
$adminhelp);
                                unset(
$settinggroup);
                                unset(
$setting);
                                unset(
$phrase);
                                unset(
$query);
                        } else {
                                unset(
$ohnoes);
                        }
                }
                
$hacks implode("|||"$hacks);
                
// Print the ending text and some links. We are done.
                
echo "<br /><b>Hacks Uninstalled!</b><br /><br />";
                echo 
"<a href="hack_install.php?do=install&step=doedits&noinstall=1&hacks=$hacks$fileurl&override=1"><b>Click here to view these hacks' modifications - you must do them backwards to finish the install. --&gt;</b></a><br />\n";
                echo 
"<a href="$vboptions[bburl]/$admincpdir/index.php"><b>Click here to log into your Admin CP. --&gt;</b></a><br />\n";
                echo 
"<a href="hack_install.php"><b>Click here to go back to the hack selection page. --&gt;</b></a><br />\n";
        }
}

// Finish up the page with the footer.
$DB_site->free_result($installedhacks);
if (!isset(
$_REQUEST['no_cp_footer']) && ($_REQUEST['do'] != "genreadme" && $_REQUEST['do'] != "nothing" && $_REQUEST['text'] != 1)) {
        
print_cp_footer();
}

$DB_site->free_result($installedhacks);

?>
you should be able to copy and paste that into a new file and call it uninstall.php and run it. although i dont see how it would make a difference since i just copied it and it crashed on you before but hey worth a try
Reply With Quote
  #329  
Old 07-13-2005, 10:17 AM
Neal-UK's Avatar
Neal-UK Neal-UK is offline
 
Join Date: Feb 2004
Location: Lancashire, England
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Going through the hack installation and I get this at around the 3rd or 4th step:

Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /******/www/*****/forum/includes/db_mysql.php on line 389

Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/share/pear') in /***/www/****/forum/includes/db_mysql.php on line 389



*** = I've hidden my server info
Reply With Quote
  #330  
Old 07-14-2005, 12:18 AM
Caveman2k2 Caveman2k2 is offline
 
Join Date: Mar 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hack installed smooth as silk! Thanks for sharing your work on this.

/me clicks Install!
Reply With Quote
  #331  
Old 07-21-2005, 05:08 AM
Toky0's Avatar
Toky0 Toky0 is offline
 
Join Date: Aug 2003
Location: USA
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Fatal error: main(): Failed opening required './includes/cron/maf-cron.php' (include_path='.:/usr/local/php4/lib/php') in /www/d/darkmasta/htdocs/forum/admincp/cronadmin.php on line 56
I get these errors when I try to run the cron manually.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:56 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05275 seconds
  • Memory Usage 2,471KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete