4images Modifications / Modifikationen > Mods & Plugins (Releases & Support)

[MOD] Autologin CheckBox state changing

(1/3) > >>

martrix:
Author of modification: V@no

Always when a checkbox appears on the internet I tend to click on the description text next to the checkbox... but it doesn't change the state of the CBox 

This tiny mod allows the user to change the „auto_login“-checkbox state by clicking the text next to it… and not only by clicking the "small" CheckBox itself.

open {your_template}/user_loginform.html

find:


--- Code: ---<td><span class="smalltext">{lang_auto_login}</span></td>
--- End code ---

change to:


--- Code: ---<td><span class="smalltext" onClick="if(auto_login.checked) auto_login.checked=false; else auto_login.checked=true;" style="cursor:default;">{lang_auto_login}</span></td>
--- End code ---

supastoked:
Hey Guys,
Thanks for this - was just what i was looking for  :D  One thing i added though, was
--- Code: ---style="cursor: pointer"
--- End code ---
, just so users can see that they can click on the text.. Otherwise it is perfect!!!
Cheers
Chris

mawenzi:
hi martrix,

also ... thanks for this nice tiny mod ...  :D
@supastoked ... correct : style="cursor: pointer" ...  :!:

mawenzi

BartAfterDark:
it should be autologin instead of auto_login.
At least on my site

V@no:

--- Quote from: BartAfterDark on November 26, 2005, 02:00:40 PM ---it should be autologin instead of auto_login.
At least on my site

--- End quote ---
Not in fresh 4images installation...

Navigation

[0] Message Index

[#] Next page

Go to full version