Customizing SMF > SMF Coding Discussion
How do I change the ICQ input to allow letters?
(1/1)
Liam_michael:
I went into the database to change it to tinytext, but it's still not allowing users to use letters in the input? What gives?
What do I want this? Converting the ICQ column into a Facebook entry.
Arantor:
You will need to change the code as well; the code validates that it is a number.
Or you could just use http://custom.simplemachines.org/mods/index.php?mod=3304 (and yes, I even checked, this one works on 1.1.x)
Liam_michael:
--- Quote ---Or you could just use http://custom.simplemachines.org/mods/index.php?mod=3304 (and yes, I even checked, this one works on 1.1.x)
--- End quote ---
I don't want this one because it doesn't add columns into the database for each one. So it ends up throwing errors if I call out the function anywhere other than profile.template.php.
--- Quote ---You will need to change the code as well; the code validates that it is a number.
--- End quote ---
Could you show me where to look. I looked in profile.php and load.php, but nothing unusual.
Arantor:
So how about only installing the bits of the mod you actually want, seeing how it gives you ALL the changes you'll need...?
Liam_michael:
--- Quote from: Arantor on July 30, 2012, 11:18:42 PM ---So how about only installing the bits of the mod you actually want, seeing how it gives you ALL the changes you'll need...?
--- End quote ---
Thanks for the response, Arantor. I figured it out though.
Find:
--- Code: ---'pm_email_notify',
'notifyTypes',
'ICQ',
'gender',
'ID_THEME',
--- End code ---
And remove the ICQ from there and include into:
--- Code: ---$profile_strings = array(
'websiteUrl', 'websiteTitle',
'AIM', 'YIM', 'MSN', 'ICQ',
--- End code ---
That's what did it.
--- Quote ---So how about only installing the bits of the mod you actually want, seeing how it gives you ALL the changes you'll need...?
--- End quote ---
Not sure how that mod if coded, but as far as I'm concerned, it doesn't install any tables or rows into the database. Not too sure how to work it.
Navigation
[0] Message Index
Go to full version