coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: Hirsch on June 24, 2012, 04:25:33 PM

Title: Modify Text Used in Register.php and Upload.php?
Post by: Hirsch on June 24, 2012, 04:25:33 PM
Greetings --

Having searched the documentation and the forums, I cannot see a way to do this (it is completely possible my search parameters were wrong when searching the forum, but I did try):

I cannot find how to modify the text displayed on the Register or Upload pages (I did a quick look at the .php, but only see code, not the actual text). I would like to include a paragraph or two on each of these, basic "In addition, you agree to ...". I saw some very complex things for someone who was using DIFF to merge Coppermine with his site, but I'm not doing anything as complex as that.

Thanks in advance --

Ken
Title: Re: Modify Text Used in Register.php and Upload.php?
Post by: ΑndrĂ© on June 25, 2012, 10:55:57 AM
You can find all text in the language files (have a look at the lang/ directory).
Title: Re: Modify Text Used in Register.php and Upload.php?
Post by: Hirsch on July 04, 2012, 08:32:17 PM
I think I found those files, but it is hard to know what is displayed on which pages, and I do not see a way to add my own text anywhere.
Title: Re: Modify Text Used in Register.php and Upload.php?
Post by: ΑndrĂ© on July 05, 2012, 08:31:40 AM
There are 2 possibilities:
1.) Either adjust the language strings in the language files
2.) Add hard-coded text to those files (and possibly overwrite existing language strings, depending on what exactly you try to achieve)


Quote from: Hirsch on July 04, 2012, 08:32:17 PM
it is hard to know what is displayed on which pages
Just use your text editor's search feature to find the language strings. Usually they appear at just one place.


If you need a more detailed answer, post more details.