Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 06-18-2005, 11:28 PM IVPB Mod help
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
okay i am creating a mod for IVPB that will limit users. i want it set at 2,500 for now. possiblity of changing.

current section
PHP Code:
   require 'db1.php';
   
$sql mysql_query("SELECT * FROM ibf_members ");
$user_num mysql_num_rows($sql);

if (
$user_num ) {
   
    function 
show_reg_form($errors "")
    {
        global 
$ibforums$DB$std;
        
        if ( 
$ibforums->vars['no_reg'] == )
        {
            
$std->Error( array( 'LEVEL' => 1'MSG' => 'reg_off' ) );
        }
        
        
$coppa = ($ibforums->input['coppa_user'] == 1) ? 0;
        }
        else {
        
        
$std->Error( array( 'LEVEL' => 1'MSG' => 'limit_execced') );
        } 
i have 2 for know for testing purposes. once working i will change it to my desired #
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
 
Register now for full access!
Old 06-19-2005, 09:21 AM
SpottyDog's Avatar
Skilled Talker

Posts: 82
Trades: 0
ok, is there a question for this?
SpottyDog is offline
Reply With Quote
View Public Profile
 
Old 06-19-2005, 10:55 AM
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
uh i am trying to limit users.... so if the limit execceds right now 2 they will get a message saying limit execced. and the page to show registraion form will not load.
EDIT: and its not working......
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1

Last edited by amw_drizz; 06-19-2005 at 11:56 AM..
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Old 06-19-2005, 02:52 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
How is it not working? Is it letting in more than 2? Is it giving you an error message?
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 06-19-2005, 06:42 PM
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
Section of code
PHP Code:
     /*-------------------------------------------------------------------------*/
    // show_reg_form
    // ------------------
    // Simply shows the registration form, no - really! Thats
    // all it does. It doesn't make the tea or anything.
    // Just the registration form, no more - no less.
    // Unless your server went down, then it's just useless.
    /*-------------------------------------------------------------------------*/   
   /*
   Check Userlimits    
   */ 

    
function show_reg_form($errors "")
    {
        global 
$ibforums$DB$std;
        
        if ( 
$ibforums->vars['no_reg'] == )
        {
            
$std->Error( array( 'LEVEL' => 1'MSG' => 'reg_off' ) );
        }
        if ( 
$ibforums->vars['usrlimit'] == TRUE 
        {
            if (
$user_num $limit) {
                
$std->Error( array( 'LEVEL' => 1'MSG' => 'limit_execced') );
        }
        }
        
$coppa = ($ibforums->input['coppa_user'] == 1) ? 0;
        }
        
//-----------------------------------------
        // Read T&Cs yet?
        //-----------------------------------------
        
  
-->line 584      if ( ! $ibforums->input['termsread'] )
        {
            
//-----------------------------------------
            // Temp Fix to HiveMail..
            // If we have a logged in member, and a mailsign up call,
            // we don't want to show the terms. Boink.
            //-----------------------------------------
            
            
if ( $ibforums->member['id'] && $ibforums->input['mailsignup'])
            {
                
$std->boink_it$ibforums->base_url.'act=Reg&mailsignup=1&coppa_pass=1&termsread=1&agree_to_terms=1' );
            }

            
$cache $DB->simple_exec_query( array( 'select' => '*''from' => 'conf_settings''where' => "conf_key='reg_rules'" ) );
            
            
$text  $cache['conf_value'] ? $cache['conf_value'] : $cache['conf_default'];
            
            
$this->page_title $ibforums->lang['registration_form'];
            
$this->nav        = array( $ibforums->lang['registration_form'] );
        
            
$this->output .= $this->html->show_terms$std->my_nl2br($text), $coppa );
            return;
        }
        else
        { 
Error:
Code:
Parse error: parse error, unexpected T_IF, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/uazozqli/public_html/amwbt/forums/sources/register.php on line 584
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Reply     « Reply to IVPB Mod help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21872 seconds with 12 queries