vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   MAF: (Moderator Application Form & Application Rating Module) (https://vborg.vbsupport.ru/showthread.php?t=77340)

Oblivion Knight 04-13-2005 12:36 PM

Quote:

Originally Posted by sabret00the
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 Code:

<?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

Quote:

Originally Posted by lebanon
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
Code:

https://vborg.vbsupport.ru/showthread.php?t=77340&page=16&pp=15&highlight=maf
something simular to this site as well
Code:

http://gothtopic.com/forum/affiliate.php
Modular Request
Code:

https://vborg.vbsupport.ru/showthread.php?p=643281#post643281


All times are GMT. The time now is 10:49 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01416 seconds
  • Memory Usage 1,773KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete