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: Thumbnails only for un-registered users? (question!)  (Read 5281 times)

0 Members and 1 Guest are viewing this topic.

thelynnied

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
Thumbnails only for un-registered users? (question!)
« on: March 18, 2006, 03:34:35 pm »

I checked the FAQ and got the code, but where do I put it?I  know it says before displayimage.php but where is that? Sorry if this is a dumb question, I'm lucky to have even gotten my gallery customized! lol I just dont want to mess anything up!
Thanks in advance!  :) ;D
« Last Edit: March 20, 2006, 05:25:17 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Thumbnails only for un-registered users? (question!)
« Reply #1 on: March 19, 2006, 02:11:30 pm »

http://coppermine-gallery.net/demo/cpg13x/docs/faq.htm#viewThumbnailsOnly doesn't say that, read the section more carefully. It says
Quote
Edit displayimage.php and add
Code: [Select]
if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);just before

Code: [Select]
/**************************************************************************
* Local functions definition
**************************************************************************/
, so you're suppossed to edit the file displayimage.php with a plain text editor (notepad.exe is fine), find
Code: [Select]
/**************************************************************************
* Local functions definition
**************************************************************************/
and insert
Code: [Select]
if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);into a new line right before the code you searched for.
Logged

thelynnied

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
Re: Thumbnails only for un-registered users? (question!)
« Reply #2 on: March 20, 2006, 12:39:20 am »

thank you! that worked perfectly  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.