forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: abietto on March 21, 2005, 09:06:06 am

Title: Random/LastAddition Layout Problem
Post by: abietto on March 21, 2005, 09:06:06 am
Hi! First of all let me say this script is really cool. I installed it on my website, read the docs and some of the threads in this forum and started customize the theme (starting from the WaterDrop standard theme I found in the zip file).
I would like to ask *tons* of questions regarding the layout, but I'll start with just one, since this seems to be the policy in this forum!

As you can see, if you want to take a look at my page (http://www.abietto.net/gallery/), my theme is under construction and the main page, for now, fits almost perfectly with the rest of my website. Unfortunately, no matter how hard I tried looking for the right place in *all* the files (not just the template or the theme.php), I couldn't find a way to change the look of the "Random files" and "Last additions" titles. Can anyone help me find where they are defined in the script and/or the theme I'm working on?

Thanx in advance and congratulations for this cool work!
Title: Re: Random/LastAddition Layout Problem
Post by: Tranz on March 21, 2005, 09:14:34 am
edit 'h2' attributes in style.css
Title: Re: Random/LastAddition Layout Problem
Post by: Joachim Müller on March 21, 2005, 09:15:28 am
If you mean the words "Random files" and "Last additions": change them in your language file (lang/yourlanguage.php, e.g. lang/english.php). Find
Code: [Select]
$lang_meta_album_names = array(
  'random' => 'Random files', //cpg1.3.0
  'lastup' => 'Last additions',
  'lastalb'=> 'Last updated albums',
  'lastcom' => 'Last comments',
  'topn' => 'Most viewed',
  'toprated' => 'Top rated',
  'lasthits' => 'Last viewed',
  'search' => 'Search results',
  'favpics'=> 'Favourite Files', //cpg1.3.0
);
and change accordingly.

Joachim
Title: Re: Random/LastAddition Layout Problem
Post by: abietto on March 21, 2005, 09:58:40 am
Hi, and thanks for your prompt reply.
No, I'm not referring to the words but to the look of the titles in the layout. I'm pointing to my main style.css, not to the theme style, and I've eliminated all the "h2" I could find related to titles, so editing that voice won't work. Can anyone tell me in which part of the theme.php or any other file in the script is this section defined? I had difficulties not only changing the titles but also the rows of the thumbnails in the "random" and "last additions" sections.
The other parts of the layout seem to be fairly simple to find and to change, but I really can't find these... :(
Title: Re: Random/LastAddition Layout Problem
Post by: Joachim Müller on March 21, 2005, 10:26:40 am
should be failry easy to find out: using the search function of your OS, search your local coppermine folder for all files that contain the text "<h2" (without the quotes). You'll get a large list though. Why exactly do you want to remove all <hX> tags? Those heading tags are used by search engines as well to identify important sections of your site. The definitions for album names can be found in themes/yourtheme/theme.php, but you'll find that all albums (meta albums as well as "regular" albums are treated the same way.

Joachim

Title: Re: Random/LastAddition Layout Problem
Post by: Tranz on March 21, 2005, 04:12:13 pm
Instead of trying to remove the h2 tags, it would be a lot easier to change their attributes.
Title: Re: Random/LastAddition Layout Problem
Post by: abietto on March 21, 2005, 07:53:12 pm
Hi! I found the part of the code I needed to customize, and now everything looks better. Thanx very much for your help.
May I ask you another thing? The line at the bottom of each page where it says "Powered by Coppermine Photo Gallery" with a link to this website: I checked all the files in the script but I can't find it anywhere. Not in the "lang" files, not in the theme files or in other parts of the php scripts. Can you help me with this one? I just would like to change the look of that line, not to eliminate it or anything.
Title: Re: Random/LastAddition Layout Problem
Post by: kegobeer on March 21, 2005, 07:55:05 pm
Sorry, we don't show people where the tag line is.  You can search for powered by coppermine to read why.
Title: Re: Random/LastAddition Layout Problem
Post by: Tranz on March 21, 2005, 07:56:43 pm
@abietto: One question per thread, please.
Title: Re: Random/LastAddition Layout Problem
Post by: abietto on March 21, 2005, 08:23:17 pm
Hi,
sorry if I asked before checking the other threads. I just would like to say that the link would remain there and perfectly visible, I just wanted to change the look of it to integrate it with my website's layout. If any of you is willing to send a private email with some hints at my address I would be grateful and I assure you I'm not going to delete it or to tell anyone else.
Thanx for your help, I won't bother you again about this =)

Update:
I found out how to change that link, you can check how it looks now at http://www.abietto.net/gallery/
very clever... =)