Random/LastAddition Layout Problem Random/LastAddition Layout Problem
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Random/LastAddition Layout Problem

Started by abietto, March 21, 2005, 09:06:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

abietto

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, 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!

Tranz


Joachim Müller

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$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

abietto

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... :(

Joachim Müller

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


Tranz

Instead of trying to remove the h2 tags, it would be a lot easier to change their attributes.

abietto

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.

kegobeer

Sorry, we don't show people where the tag line is.  You can search for powered by coppermine to read why.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Tranz

@abietto: One question per thread, please.

abietto

#9
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... =)