Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: member list  (Read 3924 times)

0 Members and 1 Guest are viewing this topic.

Dr Preacox

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 122
  • Is the Matrix...
    • Dynamic Creations
member list
« on: May 27, 2006, 09:34:47 am »

Heres an easy one I hope, trying to make the Memberlist public so all can view, because on my website DC-6.com i have an artists page which is essentially a list of my artists, and its becoming a pain, it would be easier if I could like directly to http://www.dc-6.com/gallery/usermgr.php and make it so anyone can view it
« Last Edit: May 27, 2006, 01:28:00 pm by Stramm »
Logged
My Mods:
Making Memberlist Public - VIEW
Different Way of Displaying Categories - VIEW
Coming Soon - Automated Sub Domains -MOD

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: member list
« Reply #1 on: May 27, 2006, 09:37:14 am »

Logged

Dr Preacox

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 122
  • Is the Matrix...
    • Dynamic Creations
Re: member list
« Reply #2 on: May 27, 2006, 10:40:41 am »

yes but i want non users ie guests to be able to view it,
Logged
My Mods:
Making Memberlist Public - VIEW
Different Way of Displaying Categories - VIEW
Coming Soon - Automated Sub Domains -MOD

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: member list
« Reply #3 on: May 27, 2006, 11:00:26 am »

copy over function theme_main_menu ftom themes/sample/theme.php to the theme.php you're actually using.
In that function you just copied find
Code: [Select]
    if (!USER_ID || !$CONFIG['allow_memberlist']) {
        template_extract_block($template_sys_menu, 'allow_memberlist');
    }
and replace with
Code: [Select]
    if (!$CONFIG['allow_memberlist']) {
        template_extract_block($template_sys_menu, 'allow_memberlist');
    }

now open usermgr.php and find
Code: [Select]
else {
 $lim_user = 3;
 cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
and replace with
Code: [Select]
elseif ($CONFIG['allow_memberlist']) {
  $lim_user = 1;
  $number_of_columns = 7;
  show_memberlist;
 }
 else {
  $lim_user = 2;
  cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
 }

should work but I haven't tried. You should be able to turn on/ off displaying the memberlist with the entry in config

Dr Preacox

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 122
  • Is the Matrix...
    • Dynamic Creations
Re: member list
« Reply #4 on: May 27, 2006, 12:43:10 pm »

Damn your good, how you can remember this amount of stuff is beyond me, anyway worked first time, thanxs heaps
Logged
My Mods:
Making Memberlist Public - VIEW
Different Way of Displaying Categories - VIEW
Coming Soon - Automated Sub Domains -MOD
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.