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: Random/LastAddition Layout Problem  (Read 4447 times)

0 Members and 1 Guest are viewing this topic.

abietto

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Random/LastAddition Layout Problem
« 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, 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!
« Last Edit: March 21, 2005, 07:57:35 pm by TranzNDance »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Random/LastAddition Layout Problem
« Reply #1 on: March 21, 2005, 09:14:34 am »

edit 'h2' attributes in style.css
Logged

Joachim Müller

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

abietto

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Random/LastAddition Layout Problem
« Reply #3 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... :(
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Random/LastAddition Layout Problem
« Reply #4 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

Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Random/LastAddition Layout Problem
« Reply #5 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.
Logged

abietto

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Random/LastAddition Layout Problem
« Reply #6 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.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Random/LastAddition Layout Problem
« Reply #7 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.
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Random/LastAddition Layout Problem
« Reply #8 on: March 21, 2005, 07:56:43 pm »

@abietto: One question per thread, please.
Logged

abietto

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Random/LastAddition Layout Problem
« Reply #9 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... =)
« Last Edit: March 21, 2005, 09:42:44 pm by abietto »
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 21 queries.