coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: vesodimov on May 22, 2013, 02:53:41 PM

Title: How change position of Title on MiniCMS ?
Post by: vesodimov on May 22, 2013, 02:53:41 PM
Hi.
I use MiniCMS. How change position of Title on MiniCMS ?
Regards
Title: Re: How change position of Title on MiniCMS ?
Post by: Αndré on May 22, 2013, 03:18:42 PM
Please explain more detailed how it should be changed.
Title: Re: How change position of Title on MiniCMS ?
Post by: vesodimov on May 22, 2013, 10:37:31 PM
See attachment.
Title: Re: How change position of Title on MiniCMS ?
Post by: Αndré on May 23, 2013, 10:20:47 AM
Open plugins/minicms/include/themes.inc.php, find
$title_bar = $cms['title'];
and replace with
$title_bar = '<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="center">'.$cms['title'].'</td></tr></table>';

find
<td width="100%">
and replace with
<td width="100%" align="center">
at both places.
Title: Re: How change position of Title on MiniCMS ?
Post by: vesodimov on May 28, 2013, 10:10:59 AM
All work perfect !
Thank you, Andre.
Title: Re: How change position of Title on MiniCMS ?
Post by: vesodimov on May 28, 2013, 11:03:33 AM
Any way to make title "bold" and change font ?
Title: Re: How change position of Title on MiniCMS ?
Post by: Αndré on May 28, 2013, 11:06:04 AM
Sure. Just add your desired code between
<td align="center">
and
</td>
to the affected code parts of the above mod.
Title: Re: How change position of Title on MiniCMS ?
Post by: vesodimov on May 28, 2013, 12:39:18 PM
My code is:
$title_bar = '<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="center"><b>SOME TEXT HERE.</b>'.$cms['title'].'</td></tr></table>';
This code add "SOME TEXT HERE" in front of page but when I'm login I can't see that. When I'm logout I see the text.
Somewere I make a mistake. Andre, please tell me right code to make title "bold".
Regards
Title: Re: How change position of Title on MiniCMS ?
Post by: Αndré on May 28, 2013, 01:16:25 PM
Of course you need to add it to both affected code parts of the above mod, not just to the first one.
Title: Re: How change position of Title on MiniCMS ?
Post by: vesodimov on May 28, 2013, 02:14:29 PM
I add this everywhere but not work for me. Any way ...
Maybe author of MiniCMS will make update with this ...