Elxis CMS Forum

Extensions => Components => Topic started by: wbread on September 01, 2011, 23:16:03

Title: com_user RANDOMUSERS
Post by: wbread on September 01, 2011, 23:16:03
hi all
disables the Random users but the title still remains visible.
Where i can turn it off?
Title: Re: com_user RANDOMUSERS
Post by: speck on September 03, 2011, 23:24:41
open components/com_users/user.html.php
and disable line 859 //echo '<h2>'._E_RANDOMUSERS.'</h2>'._LEND;

open modules/mod_random_profile.php
after the line 33 $_Itemid = intval($database->loadResult());
insert this line
echo '<h2>'._E_RANDOMUSERS.'</h2>'._LEND;

the block of line from 30 to 35 will become like this

Code: [Select]
if ($mainframe->getCfg('sef') != '2') {
            $query2 = "SELECT id FROM #__menu WHERE link='index.php?option=com_user&task=list' AND published='1'";
            $database->setQuery($query2, '#__', 1, 0);
            $_Itemid = intval($database->loadResult());
            if (!$_Itemid) { $_Itemid = $Itemid; }
            echo '<h2>'._E_RANDOMUSERS.'</h2>'._LEND; //added from com_user - user.html.php
        }
 

in ths way if in a future you want publish random user, the title appear  ;)
Title: Re: com_user RANDOMUSERS
Post by: wbread on September 04, 2011, 00:13:37
thanks)
but
line echo '<h2>'._E_RANDOMUSERS.'</h2>'._LEND; insert in 19 line
Code: [Select]
        global $my, $database, $mainframe, $Itemid;
echo '<h2>'._E_RANDOMUSERS.'</h2>'._LEND;
        $query = "SELECT id, name, username, usertype, preflang, avatar, gender, birthdate, registerdate"
in 30 to 35 line does not work