1
Arowana
How to make the amember xoops plugin config.inc.php file
  • 2005/2/10 14:57

  • Arowana

  • Friend of XOOPS

  • Posts: 323

  • Since: 2004/8/6 2


The code below will require some editing by you but it is simple enough.

This post is from databasedeals.com so please dont ask me how to get it to work if it does not work for you. Also you still have to find the xoops.inc.php file for this plugin to work.

The quote from databasedeals.com states "This is how to make the config.inc.php for amember by simplely changing the all the CODECHANGE entries to the NAME OF YOUR CMS (I am guessing XOOPS goes here) and all the codechange entries to name of your cms (Again guessing XOOPS goes here) Case SeNsItIvE, and save it as config.inc.php

<
?php 
$notebook_page 
'CODECHANGE';
config_set_notebook_comment($notebook_page'CODECHANGE Integration');
    
add_config_field('protect.codechange.db''CODECHANGE Board Db and Prefix',
    
'text'"database name (if other database) plus codechange

    tables prefix, like nuke.nuke_

    here codechange in database nuke and tables prefix is nuke_"
,
    
$notebook_page
    
'validate_codechange_db');


function 
validate_codechange_db($field,$vars){
    global 
$db;
    
$v $vars[$field['name']];
    
$v $db->escape($v);
    
mysql_query("SELECT groupid, group_type FROM {$v}groups LIMIT 1");    
    if (
mysql_errno()) 
        return 
"$field[title] - incorrect value. Error: " mysql_error();
}


?>


Before saving remove [code] from "<[code]?php"

Login

Who's Online

507 user(s) are online (63 user(s) are browsing Support Forums)


Members: 0


Guests: 507


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits