Welcome to Geeklog, Anonymous Tuesday, June 18 2024 @ 01:06 am EDT

Geeklog Forums

User directory


Marissa

Anonymous
cheerful
I am interested in a user directory like the one for administrators, but instead I'd like to be able to permit access by group. I also want to be able to sort fields by column, include user photo, and print the directory based on a few templates. Is this difficult to do, and does anyone here do this work for hire in case I can't do it?
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
It is not difficult to do if you code php but for someone who doesn't you could check our our Paid Support page.
One of the Geeklog Core Developers.
 Quote

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
Quick and dirty user-directory.
Honestly only took me five minutes, but maybe a starting point.
requests/suggestions?

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

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
suprsidr I dowloaded your file but the only output I get is:

Text Formatted Code
$LANG28[37], 'field' => $_TABLES['users'] . '.uid', 'sort' => true), array('text' => $LANG28[3], 'field' => 'username', 'sort' => true), array('text' => $LANG28[4], 'field' => 'fullname', 'sort' => true), array('text' => 'Member Since', 'field' => 'regdate', 'sort' => true), array('text' => 'Location', 'field' => 'location', 'sort' => true), array('text' => 'About', 'field' => 'about', 'sort' => false) ); $defsort_arr = array('field' => $_TABLES['users'] . '.uid', 'direction' => 'ASC'); $menu_arr = array (); if ($_CONF['user_login_method']['openid'] || $_CONF['user_login_method']['3rdparty']) { $header_arr[] = array('text' => $LANG04[121], 'field' => 'remoteservice', 'sort' => true); } $retval .= COM_startBlock('User Directory', '', COM_getBlockTemplate('_admin_block', 'header')); $retval .= ADMIN_createMenu( $menu_arr, 'Click on the username to view the the user\'s full profile.', $_CONF['layout_url'] . '/images/icons/user.' . $_IMAGE_TYPE ); $text_arr = array( 'has_extras' => true, 'form_url' => $_CONF['site_url'] . '/user-directory.php', 'help_url' => '' ); $join_userinfo = ''; $select_userinfo = ''; if ($_CONF['lastlogin']) { $join_userinfo .= "LEFT JOIN {$_TABLES['userinfo']} ON {$_TABLES['users']}.uid={$_TABLES['userinfo']}.uid "; $select_userinfo .= ",lastlogin, about, location"; } if ($_CONF['user_login_method']['openid'] || $_CONF['user_login_method']['3rdparty']) { $select_userinfo .= ',remoteservice'; } $sql = "SELECT {$_TABLES['users']}.uid,username,fullname,email,photo,status,regdate$select_userinfo " . "FROM {$_TABLES['users']} $join_userinfo WHERE 1=1"; $query_arr = array('table' => 'users', 'sql' => $sql, 'query_fields' => array('username', 'email', 'fullname', 'regdate'), 'default_filter' => "AND {$_TABLES['users']}.uid > 1"); $retval .= ADMIN_list('user', 'ADMIN_getListField_users', $header_arr, $text_arr, $query_arr, $defsort_arr); $retval .= COM_endBlock(COM_getBlockTemplate('_admin_block', 'footer')); return $retval; } }


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

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
Ben, does your php configuration support short_open_tag?
if not change:
Text Formatted Code
<?

to:
Text Formatted Code
<?php


also I did not include the closing php tag in case your server requires it.

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

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
Also registered users of mysite can see the example here.

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

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Oops! I was too tired to see the missing tag.

Thanks,

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

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
I get used to my Brand new updated super awesome server.
And I forget others don't have access to their php.ini
So I should prolly make my scripts more backwards compatible.

-s

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

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
Amazingly after 50+ downloads there are no comments/opinions/requests about this script.
Neither the original poster nor the user that emailed me directly have commented.

Same w/ my html5 gl 1.8.x theme. 180+ downloads and not a single piece of input.
Very hard to stay motivated.

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

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
Downloads are good right :wink:

The only reason I didn't reply was that I didn't see any need for changes or improvements. The script displays the user data, uses page navigation and has search. I do not think it needs to do much more than that.

The only other thing I could see happening is having a patch created so it could be integrated into Geeklog. If this happens then of course some more work would need to be done on it (ie a config option to enable/disable it, where would the link go for the directory, templates (if it doesn't use them) etc..

Tom
One of the Geeklog Core Developers.
 Quote

All times are EDT. The time is now 01:06 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