1
Mestophales
Adding a custom column to the XOOPS Memebers Mod

I have added the following to the main.php & index.php for the members mod
It doesn't seem to bring back any results...YES...I have added it to the DB.

Can anyone tell me why?

//This is from the main.php of the xoopmembers module
    define("_MM_EXTENSION","Extension");
//*****************************************************************************************************
//This is in the index.php of the xoopmembers module
//Line 85
    $Extension = new XoopsFormText(_MM_EXTENSION, "Extension", 10, 5);
//Line 289-291
        if ( !empty($HTTP_POST_VARS['Extension']) ) {
        $criteria->add(new Criteria('user_extension', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['Extension'])).'%', 'LIKE'));
    }
//Line 312-315
    $criteria->add(new Criteria('level', 0, '>'));
    $validsort = array("uname", "email", "last_login", "Extension", "posts");
    $sort = (!in_array($HTTP_POST_VARS['user_sort'], $validsort)) ? "uname" : $HTTP_POST_VARS['user_sort'];
    $order = "ASC";
//Line 338
    $xoopsTpl->assign('lang_Extension', _MM_EXTENSION);
//Line 373
    $userdata['Extension'] = "Ext. " .$foundusers[$j]->getVar("user_extension");
//*******************************************************************************************************
//This is from the db%Axoopsmembers_searchresults.htm located in the xoopshtmtemplates_c directory
//Line 15
    echo $this->_tpl_vars['lang_Extension']; ?>
//Line 56
    echo $this->_tpl_vars['users'][$this->_sections['i']['index']]['extension']; ?>

2
brash
Re: Adding a custom column to the XOOPS Memebers Mod
  • 2004/11/22 22:09

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


I won't be able to help you with your code, but one thing that often trips me up is that I don't clear my template files.

Login

Who's Online

489 user(s) are online (55 user(s) are browsing Support Forums)


Members: 0


Guests: 489


more...

Donat-O-Meter

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

Latest GitHub Commits