Welcome to Geeklog, Anonymous Thursday, April 18 2024 @ 06:53 am EDT

Geeklog Forums

user list for anonymous


Status: offline

w2swr

Forum User
Newbie
Registered: 07/03/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: 01/14/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: 07/03/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: 12/29/04
Posts: 555
Location:Champaign, Illinois
A very old user search block:
Text 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 06:53 am.

  • 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