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: Teaser/Error  (Read 2677 times)

0 Members and 1 Guest are viewing this topic.

younk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Teaser/Error
« 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!
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Teaser/Error
« Reply #1 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

younk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Teaser/Error
« Reply #2 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!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Teaser/Error
« Reply #3 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.
Logged

younk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Teaser/Error
« Reply #4 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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Teaser/Error
« Reply #5 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',

younk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Teaser/Error
« Reply #6 on: March 08, 2006, 08:59:01 pm »

Thanks, i test it when i have updated my gallery. (1.4.4)
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.