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: RTL problem  (Read 3009 times)

0 Members and 1 Guest are viewing this topic.

mbhpotter

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
RTL problem
« on: July 08, 2007, 10:23:30 pm »

ok, this is my galleries:
http://www.hapoelj.net/Galleries/index.php
it's all good, but only one thing left - where categories appear i just cant change the align from left to right!
how do i do that? i suspect this is not in the theme files, but where?

thank you all in advance,
Moshe.
« Last Edit: July 09, 2007, 10:17:06 pm by Sami »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: RTL problem
« Reply #1 on: July 09, 2007, 05:45:02 am »

Find $template_cat_list variable from themes/sample/theme.php and paste it to themes/your theme/theme.php if you don't have it already
and then change the align properties to right

This
Code: [Select]
<td class="tableh1" width="80%" align="left"><b>{CATEGORY}</b></td>
should be
Code: [Select]
<td class="tableh1" width="80%" align="right"><b>{CATEGORY}</b></td>

And this
Code: [Select]
<td class="catrow_noalb" colspan="3"><table border="0"><tr><td align="left">{CAT_THUMB}</td><td align="left"><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
should be this
Code: [Select]
<td class="catrow_noalb" colspan="3"><table border="0"><tr><td align="right">{CAT_THUMB}</td><td align="right"><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>

And this
Code: [Select]
<td class="catrow" align="left"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
should be this
Code: [Select]
<td class="catrow" align="right"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
Logged
‍I don't answer to PM with support question
Please post your issue to related board

mbhpotter

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: RTL problem
« Reply #2 on: July 09, 2007, 08:26:18 am »

thanks!
it appears that who programmed that template was somewhat lazy, the theme.php file was only 4KB. i just copied the whole sample theme.php file and changed the lines in there.

thanks again, it was really helpful.:-)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: RTL problem
« Reply #3 on: July 09, 2007, 08:37:59 am »

it appears that who programmed that template was somewhat lazy, the theme.php file was only 4KB.
That's fine and expected.

i just copied the whole sample theme.php file and changed the lines in there.
Undo that - you're not suppossed to copy the entire content of the sample theme into your custom theme. Only the stuff that you actually change should be copied to your custom theme, overriding the default behaviour.

From the preliminary documentation for cpg1.5.x that applies to cpg1.4.x as well in this aspect:
Quote
Don't copy the whole content from themes/sample/theme.php into your custom theme, as this will only clutter your custom theme and will make upgrading very hard in the future. Instead, copy the sections you want to modify.
Logged

mbhpotter

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: RTL problem
« Reply #4 on: July 09, 2007, 07:37:34 pm »

That's fine and expected.
Undo that - you're not suppossed to copy the entire content of the sample theme into your custom theme. Only the stuff that you actually change should be copied to your custom theme, overriding the default behaviour.

From the preliminary documentation for cpg1.5.x that applies to cpg1.4.x as well in this aspect:
ok, got the point.. that's what i'll do.

thanks:-)
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.