1
xfranc
Modifing a system block
  • 2006/1/30 13:58

  • xfranc

  • Just popping in

  • Posts: 22

  • Since: 2005/8/4 1


Hi all,

Just a relatively simple (I think) query.

I want to change the Login and Register links in the Login block to an image - where can I modify that block ?

Ive found this :

global $xoopsUser$xoopsConfig;
    if (!
$xoopsUser) {
        
$block = array();
        
$block['lang_username'] = _USERNAME;
        
$block['unamevalue'] = "";
        if (isset(
$_COOKIE[$xoopsConfig['usercookie']])) {
            
$block['unamevalue'] = $_COOKIE[$xoopsConfig['usercookie']];
        }
        
$block['lang_password'] = _PASSWORD;
        
$block['lang_login'] = _LOGIN;
        
$block['lang_lostpass'] = _MB_SYSTEM_LPASS;
        
$block['lang_registernow'] = _MB_SYSTEM_RNOW;
        
//$block['lang_rememberme'] = _MB_SYSTEM_REMEMBERME;
        
if ($xoopsConfig['use_ssl'] == && $xoopsConfig['sslloginlink'] != '') {
            
$block['sslloginlink'] = "<a href="javascript:openWithSelfMain('".$xoopsConfig['sslloginlink']."''ssllogin'300200);">"._MB_SYSTEM_SECURE."</a>";


Now I guess I need to change the define string for _MB_SYSTEM_LPASS to a img url ???

But where is this defined ?

Any help appreciated.

2
MadFish
Re: Modifing a system block
  • 2006/1/30 14:12

  • MadFish

  • Friend of XOOPS

  • Posts: 1056

  • Since: 2003/9/27


I think you could probably make that change on the *template* for that block (admin => system => templates => system => whatever template set you are using => system_block_login.html).

I think what you are looking for is in the last 2 or three lines of the template code.

3
xfranc
Re: Modifing a system block
  • 2006/1/30 14:44

  • xfranc

  • Just popping in

  • Posts: 22

  • Since: 2005/8/4 1


Thanks for the quick response mate,

However, I'm a little stumped with it, I added the code under

<form style="margin-top: 0px;" action="<{$xoops_url}>/user.php" method="post">
    <{
$block.lang_username}><br />
    <
input type="text" name="uname" size="12" value="<{$block.unamevalue}>" maxlength="25" /><br />
    <{
$block.lang_password}><br />
    <
input type="password" name="pass" size="12" maxlength="32" /><br />
    <!-- <
input type="checkbox" name="rememberme" value="On" class ="formButton" /><{$block.lang_rememberme}><br /> //-->
    
<input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" />
    <
input type="hidden" name="op" value="login" />
    <
input class="formbutton" type="submit" value="<{$block.lang_login}>" /><br />
    <{
$block.sslloginlink}>
</
form>


However, even after reloading the System Module, my register button is not being shown, however as I left the links in below that, they were showing correctly ?

Any Ideas ?

4
xfranc
Re: Modifing a system block
  • 2006/1/31 9:36

  • xfranc

  • Just popping in

  • Posts: 22

  • Since: 2005/8/4 1


I got this one working :) Just cant change the form button to an image with it having a nasty border :(

Thanks all

Login

Who's Online

180 user(s) are online (99 user(s) are browsing Support Forums)


Members: 0


Guests: 180


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits