Welcome to Geeklog Friday, August 07 2020 @ 11:43 pm EDT

Geeklog Forums

user list for anonymous


Status: offline

w2swr

Forum User
Newbie
Registered: 03/07/04
Posts: 3
I am currently using gl ver 1.6.1 . I am looking for a plugin to allow anonymous viewers to view a list of users on my site. Looking to only list; Name, User name, and photo. maybe have each user name link to the individual user profile in the user.php. Does this exist anywhere?
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/05
Posts: 1569
Location:la rochelle, France
Hi,

The forum plugin display a list you could hack to make your own list.

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

w2swr

Forum User
Newbie
Registered: 03/07/04
Posts: 3
Ok I will look into that, but I was hoping for something smaller. I don't have the forum added. A couple of years ago I remember an add on that displayed each member and their last login. I looked around for it, but can't find it anywhere. I was thinking of hacking that.

Thanks
 Quote

Status: offline

suprsidr

Forum User
Full Member
Registered: 29/12/04
Posts: 555
Location:Champaign, Illinois
A very old user search block:
PHP Formatted Code

function phpblock_usernameSearch()
{
    global $_CONF, $_TABLES;
    if (!empty($_GET['username'])){
        $username = COM_applyfilter($_GET['username']);
        //query db for matches
        $result = DB_query("SELECT uid, username FROM {$_TABLES['users']} WHERE username LIKE '%$username%'");
        if (DB_numRows($result) >= 1){
            $list = '<p>Results:</p>';
            $list = '<ul>';
            while ($A = DB_fetchArray($result)){
                $list .= '<li><a href="' . $_CONF['site_url'] . '/users.php?mode=profile&amp;uid=' . $A['uid'] . '">' . COM_stripslashes($A['username']) . '</a></li>';
            }
            $list .= '</ul>';
        $list .= '<p>Search Again?</p>';
        }
    }
    //display form
    $form = '<div id="username-search">';
    $form .= '<form action="' . $_PHPSELF . '" method="GET">';
    $form .= '<input type="text" size="12" name="username">';
    $form .= '<input type="submit" value="search">';
    $form .= '</form></div>';

    //return block
    return $list . LB . $form;
}
 


-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
 Quote

All times are EDT. The time is now 11:43 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content