SOLVED | login picture

About the template and stylesheet - and changing the menu
Post Reply
twc
Posts: 233
Joined: Fri Jun 18, 2010 12:25 am
Location: Netherlands

SOLVED | login picture

Post by twc » Fri Dec 28, 2012 9:07 pm

now you have txt inlogin but how to make login picture ?
Last edited by twc on Sat Dec 29, 2012 12:00 pm, edited 1 time in total.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: login picture

Post by cmb » Fri Dec 28, 2012 10:04 pm

Hi twc,

do you mean the login link? You can do it in the template. Replace <?php echo loginlink();?> with the following:

Code: Select all

<?php if (!$adm) echo a($s > -1 ? $s : 0, '&login') . tag("img src=\"{$pth['folder']['images']}login.png\" alt=\"{$tx['menu']['login']}\"") . '</a>';?>
login.png has to be stored directly in the image folder (images/).

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: login picture

Post by Tata » Fri Dec 28, 2012 11:22 pm

cmb wrote:Hi twc,

do you mean the login link? You can do it in the template. Replace <?php echo loginlink();?> with the following:

Code: Select all

<?php if (!$adm) echo a($s > -1 ? $s : 0, '&login') . tag("img src=\"{$pth['folder']['images']}login.png\" alt=\"{$tx['menu']['login']}\"") . '</a>';?>
login.png has to be stored directly in the image folder (images/).

Christoph
Or maybe better

Code: Select all

<?php if (!$adm) echo a($s > -1 ? $s : 0, '&login') . tag("img src=\"{$pth['folder']['templateimages']}login-'.$sl.'.png\" alt=\"{$tx['menu']['login']}\"") . '</a>';?>
with e.g. login-en.png, login-de.png etc. saved in template/images?
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

twc
Posts: 233
Joined: Fri Jun 18, 2010 12:25 am
Location: Netherlands

Re: login picture

Post by twc » Sat Dec 29, 2012 11:39 am

cmb wrote:Hi twc,

do you mean the login link? You can do it in the template. Replace <?php echo loginlink();?> with the following:

Code: Select all

<?php if (!$adm) echo a($s > -1 ? $s : 0, '&login') . tag("img src=\"{$pth['folder']['images']}login.png\" alt=\"{$tx['menu']['login']}\"") . '</a>';?>
login.png has to be stored directly in the image folder (images/).

Christoph
thanks maby in the next version build in ?

Post Reply