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: Some questions about template system  (Read 4362 times)

0 Members and 1 Guest are viewing this topic.

kamikaze cow

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 12
Some questions about template system
« on: January 23, 2011, 01:40:13 am »

I am about to make a new template for cpg1.5 and there are some questions about the system after I have spent a few days on it.
( http://salsafuerte.hu/gallery0/index.php )

Is it possible
- to format the breadcrumb line (image instead of ">")?
- to format the shortorder_options class?
- to remove the icons from in front of "last updated" and "random" titles if I use icons on any other places?
- to put the caption under the images on the front page?
- to edit the captions?

Thank you for your reactions.





Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Some questions about template system
« Reply #1 on: January 24, 2011, 12:06:45 pm »

format the breadcrumb line (image instead of ">")?
Edit function theme_breadcrumb.


format the shortorder_options class?
Just edit it in your style.css file.


remove the icons from in front of "last updated" and "random" titles if I use icons on any other places?
That's a little bit harder to accomplish (if it's possible at all). The icon is added in the function get_pic_data in include/functions.inc.php. You cannot modify that function in your theme.php file, but it should be possible by modify the function theme_display_thumbnails (I haven't checked that).


put the caption under the images on the front page?
Under which images? A link to your gallery would help a lot.


edit the captions?
Please elaborate.
Logged

kamikaze cow

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 12
Re: Some questions about template system
« Reply #2 on: January 24, 2011, 10:22:54 pm »

Edit function theme_breadcrumb.
I would like to make something like this (Kezdőlap>Zene>Pupy y los que Son Son: La Borrachera). I found this token in theme_breadcrumbs: {BREADCRUMB}. If I insert an arrow after or before it, it doesn't work.
Just edit it in your style.css file.
I have tried it, so maybe it is my mistake, I will try to clear css.
That's a little bit harder to accomplish (if it's possible at all). The icon is added in the function get_pic_data in include/functions.inc.php. You cannot modify that function in your theme.php file, but it should be possible by modify the function theme_display_thumbnails (I haven't checked that).
I would not really like to modify core files. I had used the Coppermine Gallery 1.4.x with a lot of modifications until it was hacked...
I'd rather help the developers to implement this feature if it is possible.:)
Under which images? A link to your gallery would help a lot.

Please elaborate.
I would like to modify and to reposition the album thumbnails, titles, descriptions, date formats and so on in the middle of the main page above the random line.

And a new problem: the film strip line doesn't work in all browsers and  the quick page chooser (select) doesn't work in IE.

Here is the link to the gallery: http://www.salsafuerte.hu/gallery/index.php (It was launched yesterday in half ready current state after the pressure of the dance school dancers:) )

Thank you for your help!
Logged

kamikaze cow

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 12
Re: Some questions about template system
« Reply #3 on: January 25, 2011, 12:13:12 am »

And the slideshow doesn't work, either. Unfortunately, I am of average skills in html/css, but not in JavaScript, so any ideas are welcome.
Logged

germs

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Some questions about template system
« Reply #4 on: January 25, 2011, 12:14:36 am »

anyway i can contact you kamikaze?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Some questions about template system
« Reply #5 on: January 25, 2011, 10:00:45 am »

I think now is the time to follow our board rules, as it's almost impossible to track all your issues in this single thread:
10. One question per thread
We have a strict "One question/issue per thread rule", which helps both supporters/moderators to keep track of open/closed issues as well as users who search the board or browse it, looking for answers to their question.


Let's address your first question:
format the breadcrumb line (image instead of ">")?
I found this token in theme_breadcrumbs: {BREADCRUMB}
You shouldn't edit function theme_display_breadcrumb, but function theme_breadcrumb.
Logged

kamikaze cow

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 12
Re: Some questions about template system
« Reply #6 on: January 25, 2011, 05:41:13 pm »

anyway i can contact you kamikaze?

Yes, as you wish.:)


10. One question per thread

Accepted, I will be back in a new topic, thank you for your help!
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.