forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: linuxhata on November 01, 2005, 08:57:11 pm

Title: Additional "info" text for anon picture uploaders.
Post by: linuxhata 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.
Title: Re: Additional "info" text for anon picture uploaders.
Post by: Stramm on November 02, 2005, 06:46:19 pm
What exactly are you looking for? Give an example please
Title: Re: Additional "info" text for anon picture uploaders.
Post by: linuxhata 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"
Title: Re: Additional "info" text for anon picture uploaders.
Post by: Joachim Müller 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).
Title: Re: Additional "info" text for anon picture uploaders.
Post by: linuxhata on November 04, 2005, 11:01:40 am
Thanks, will try it in a minutes