forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: younk on March 08, 2006, 07:42:44 pm

Title: Teaser/Error
Post by: younk on March 08, 2006, 07:42:44 pm
Hi, my galleri is almost ready to open....

I want to make a teaser....

http://babez.dk/galleri/index.php (click on "uploade fil" botton).
then it says"Du har ikke tilladelse til at udføre denne handling."/"you dont have the premissions to do this.."

Can i chance that error, so when not registreted people click on it, go to that site, and says"You need to be a member of the site to upload files, click here to be a member"

I hope you understand my question.

Thanks in advance!
Title: Re: Teaser/Error
Post by: Stramm on March 08, 2006, 07:53:47 pm
not a biggie... just open your language file and find the phrase you want to replace and do so
in your case I'd say open lang/danish.php (???? is that lang file availabale now)

array $lang_errors -> perm_denied
Title: Re: Teaser/Error
Post by: younk on March 08, 2006, 07:56:51 pm
But then, if you go on a site, where the ""you dont have the premissions to do this.." need to be, becauce you dont have premissions, then it says something, that not is right!
Title: Re: Teaser/Error
Post by: Joachim Müller on March 08, 2006, 07:58:13 pm
if an anonymous visitor (guest) doesn't have the privilege to upload, then the upload file button shouldn't even be showing up, so I guess it's a particular issue with your site. Actually, there's no Danish language file for cpg1.4.x available yet afaik, so it must be some particular issue you have. Instead of changing the error message (that is being handled in lang/yourlanguage.php btw) I recommend fixing the issue of the upload button showing although it shouldn't, just because the error message you get is being used in other situations as well - changing it the way you propose would be just plainly wrong on those other occasions.
Title: Re: Teaser/Error
Post by: younk on March 08, 2006, 08:01:07 pm
I have added the botton.  and i have made my own danish file (not total correct and tested.)

But can i chance the error message on http://babez.dk/galleri/upload.php
Title: Re: Teaser/Error
Post by: Stramm on March 08, 2006, 08:07:28 pm
find
Code: [Select]
perm_deniedand replace with
Code: [Select]
please_register
in your lang file
find
Code: [Select]
$lang_errors = array(and below add
Code: [Select]
  'please_register' => 'The message you want to show up when an unregistered user or someone who is not allowed to upload clicks the upload button',
Title: Re: Teaser/Error
Post by: younk on March 08, 2006, 08:59:01 pm
Thanks, i test it when i have updated my gallery. (1.4.4)