Editing the CB login button

18 years 3 weeks ago #7621 by penguinhead
Editing the CB login button was created by penguinhead
Can someone please advise me what code I need to edit to change the login button to an image button?

Also I want to change the Username and Password Labels to other words or remove them completely. Where do I find the file to edit these parameters?

Any assistance would be most appreciated!

Please Log in to join the conversation.

18 years 2 weeks ago #8016 by penguinhead
Replied by penguinhead on topic Re:Editing the CB login button
Hi All

Can anyone at least tell me what file I can edit the code for the CB Login module?

Please Log in to join the conversation.

18 years 2 weeks ago #8053 by nant
Replied by nant on topic Re:Editing the CB login button
penguinhead wrote:

Can someone please advise me what code I need to edit to change the login button to an image button?

Also I want to change the Username and Password Labels to other words or remove them completely. Where do I find the file to edit these parameters?

Any assistance would be most appreciated!


In your modules folder there is the mod_cblogin.php file. This contains the login code.
All language strings can be changed in the components/com_comprofiler/plugin/language area (based on your installed languages).

Please Log in to join the conversation.

17 years 5 months ago #22357 by sanjiovani
Replied by sanjiovani on topic Re:Editing the CB login button
1. how do i make the login button larger
2. to change to an image button where would i put the following code <input type="image" src="button.gif" alt="Login">

thanks

sanjiv

Please Log in to join the conversation.

17 years 5 months ago #22358 by mikko
Replied by mikko on topic Re:Editing the CB login button
In the same place where the submit button is created. To find the place, use any program which can search accross multiple files and then serach for example for 'type="submit"' and pick the right place to edit (by trial and error if you cannot figure which file to edit)

mikko

Please Log in to join the conversation.

17 years 5 months ago #22366 by sanjiovani
Replied by sanjiovani on topic Re:Editing the CB login button
i found the code in mod_cblogin.php


echo '<input type="submit" name="Submit" class="button'.$class_sfx.'" value="'._BUTTON_LOGIN.'" />';
if ($horizontal) echo "&nbsp;&nbsp;\n"; else echo "</td></tr>\n<tr><td>";

what code do I change for an image login button ?

Thanks

Sanjiv

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.243 seconds

Facebook Twitter LinkedIn