MDN

Go Back   Mambo - Forums Closed for posting > Mambo 3rd Party Addons > Templates

Reply
 
Thread Tools Search this Thread Display Modes
Old May 4th, 2005, 06:16   #1
argie01
 
Join Date: Nov 2003
Posts: 68
argie01 is on a distinguished road
Question image on login button

Hello,

how can I use a image instead the button login ?? I mean, I'd like to replace the traditional login button with an image doing the same function.
What is the class I have to modify, and how (using background-image ?) ??

Thank you.
argie01 is offline   Reply With Quote
Old May 4th, 2005, 06:21   #2
pixelsoul
 
pixelsoul's Avatar
 
Join Date: Nov 2003
Location: Netherlands
Posts: 1,551
pixelsoul is on a distinguished road
Default

the class is .button you can also modify it to use a seperate class or use input type='īmage' instead of submit.
__________________
Go visit my site, you know you want to ;-)
www.mech7.net
pixelsoul is offline   Reply With Quote
Old May 4th, 2005, 08:07   #3
argie01
 
Join Date: Nov 2003
Posts: 68
argie01 is on a distinguished road
Default

What are you meaning with "a separate class" ?? Should I change the core code ??
Because I'm not sure, but I think .button change all the buttons of mambo....

Thank you.
argie01 is offline   Reply With Quote
Old May 4th, 2005, 09:08   #4
pixelsoul
 
pixelsoul's Avatar
 
Join Date: Nov 2003
Location: Netherlands
Posts: 1,551
pixelsoul is on a distinguished road
Default

Yup it changes all the buttons that i why i said to change the class...

module/mod_login.php

line 76:
Code:
<input type="submit" name="Submit" class="loginbutton" value="<?php echo _BUTTON_LOGIN; ?>" />
Or

Code:
<input type="image" src="../images/button.gif" name="Submit" class="button" value="<?php echo _BUTTON_LOGIN; ?>" />

Quote:
Originally Posted by argie01
What are you meaning with "a separate class" ?? Should I change the core code ??
Because I'm not sure, but I think .button change all the buttons of mambo....

Thank you.
__________________
Go visit my site, you know you want to ;-)
www.mech7.net
pixelsoul is offline   Reply With Quote
Old October 19th, 2005, 22:03   #5
priti
 
Join Date: Sep 2005
Posts: 168
priti is on a distinguished road
Default What is wrong with this code??

Quote:
Originally Posted by pixelsoul
Yup it changes all the buttons that i why i said to change the class...

module/mod_login.php

line 76:
Code:
<input type="submit" name="Submit" class="loginbutton" value="<?php echo _BUTTON_LOGIN; ?>" />
Or

Code:
<input type="image" src="../images/button.gif" name="Submit" class="button" value="<?php echo _BUTTON_LOGIN; ?>" />
Hi pixelsoul,

can you guess what is wrong with this following code???
original::

<input type="button" value="<?php echo _MODSUBSCRIBE; ?> " class="button" onclick="submitmammlmod();" />

Replaced by:
<input type="image" src="../images/bnt-submit.gif" value="<?php echo _modsubscribe; ?>" onclick="submitmammlmod();"/>

Image is in mambo i had uploaded it via media manager.But still it doesn't show the image properly????
priti is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Admin Login Problem is What Ruins Mambo's image endie Wishlist & Feature Requests 0 March 19th, 2005 11:18
Insert Image Button Error ColisaSota WYSIWYG Editors 7 January 24th, 2005 01:16
MOS Image Editor Button thomas.dahl Administration Questions 3 January 5th, 2005 15:01
login button displayed as system button. jifor General Questions 4 December 2nd, 2004 20:09
help needed on image button voxthemes Templates 2 September 27th, 2004 16:05


All times are GMT -7. The time now is 07:22.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.