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)

sabret00the 03-04-2005 11:04 AM

Quote:

Originally Posted by The Realist
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.

Quote:

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

Code:

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

Quote:

Originally Posted by The Realist
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
PHP Code:

    $printhr false;
    if (
can_administer('canadminstyles'))
    {
        
$printhr true;
        
construct_nav_option($vbphrase['style_manager'], 'template.php?do=modify''<br />'); 

and add above that
PHP Code:

    // +++ 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
PHP Code:

    // *************************************************
    
if (can_moderate(0'canannounce'))
    {
        
construct_nav_option($vbphrase['add_new_announcement'], 'announcement.php?do=add\'); 

and add above that
PHP Code:

    // +++ 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


Quote:

Originally Posted by sabret00the
ok these are the file edits you need to make

in admincp/index.php find
PHP Code:

    $printhr false;
    if (
can_administer('canadminstyles'))
    {
        
$printhr true;
        
construct_nav_option($vbphrase['style_manager'], 'template.php?do=modify''<br />'); 

and add above that
PHP Code:

    // +++ 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
PHP Code:

    // *************************************************
    
if (can_moderate(0'canannounce'))
    {
        
construct_nav_option($vbphrase['add_new_announcement'], 'announcement.php?do=add\'); 

and add above that
PHP Code:

    // +++ 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 ?
PHP Code:

construct_nav_option("Rate Applications"'../' $modcpdir 'maf_rateapp.php?do=list''<br />'); 

I think we have to change that to
PHP Code:

construct_nav_option("Rate Applications",  'http://www.yoursite.com/forum/modcp/maf_rateapp.php?do=list''<br />'); 


sabret00the 03-04-2005 12:57 PM

Quote:

Originally Posted by Lizard King
I get the same database error :)

also this one never worked for me ?
PHP Code:

construct_nav_option("Rate Applications"'../' $modcpdir 'maf_rateapp.php?do=list''<br />'); 

I think we have to change that to
PHP Code:

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

Quote:

Originally Posted by The Realist
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 :)


All times are GMT. The time now is 09:54 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.01545 seconds
  • Memory Usage 1,781KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (12)bbcode_php_printable
  • (6)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