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: Additional "info" text for anon picture uploaders.  (Read 3851 times)

0 Members and 1 Guest are viewing this topic.

linuxhata

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Additional "info" text for anon picture uploaders.
« on: November 01, 2005, 08:57:11 pm »

Hello. I need such thing. I've searched hacks page, but have no luck. Is such thing possible?  I want anon users to recieve such text when they click UPLOAD.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Additional "info" text for anon picture uploaders.
« Reply #1 on: November 02, 2005, 06:46:19 pm »

What exactly are you looking for? Give an example please

linuxhata

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: Additional "info" text for anon picture uploaders.
« Reply #2 on: November 04, 2005, 08:50:14 am »

for example, anon user clicked at "upload picture" link.

when he gets to upload page, here's an text which I can specify, and checkbox "I agree"
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Additional "info" text for anon picture uploaders.
« Reply #3 on: November 04, 2005, 08:55:52 am »

edit upload.php, find
Code: [Select]
//################################# MAIN CODE BLOCK ##################################################and add after it (in a new line):
Code: [Select]
if (USER_ID) {
    // user is logged in
} else {
    // user is not logged in
    echo 'I agree to whatever there is to agree to';
}
(not tested).
Logged

linuxhata

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: Additional "info" text for anon picture uploaders.
« Reply #4 on: November 04, 2005, 11:01:40 am »

Thanks, will try it in a minutes
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.