RTL problem RTL problem
 

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]

Main Menu

RTL problem

Started by mbhpotter, July 08, 2007, 10:23:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mbhpotter

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.

Sami

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

<td class="tableh1" width="80%" align="left"><b>{CATEGORY}</b></td>

should be

<td class="tableh1" width="80%" align="right"><b>{CATEGORY}</b></td>


And this

<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

<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

<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

<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>
‍I don't answer to PM with support question
Please post your issue to related board

mbhpotter

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

Joachim Müller

Quote from: mbhpotter on July 09, 2007, 08:26:18 AM
it appears that who programmed that template was somewhat lazy, the theme.php file was only 4KB.
That's fine and expected.

Quote from: mbhpotter on July 09, 2007, 08:26:18 AMi 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:
QuoteDon'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.

mbhpotter

Quote from: GauGau on July 09, 2007, 08:37:59 AM
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:-)