Teaser/Error Teaser/Error
 

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]

Main Menu

Teaser/Error

Started by younk, March 08, 2006, 07:42:44 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

younk

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!

Stramm

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

younk

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!

Joachim Müller

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.

younk

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

Stramm

find
perm_denied
and replace with
please_register

in your lang file
find
$lang_errors = array(
and below add
  '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',

younk

Thanks, i test it when i have updated my gallery. (1.4.4)