Welcome to Geeklog, Anonymous Friday, November 08 2024 @ 08:54 pm EST
Geeklog Forums
Allow html in profile?
Status: offline
casper
Forum User
Full Member
Registered: 02/11/04
Posts: 142
Location:Skien, Norway
Found it :p
Comented this line in usersettings.php
$A['about'] = strip_tags (COM_stripslashes ($A['about']));
and that worked. But..
When saving, it automatically adds backslash with every quotes ("/'), and after saving two times it gets filled..
And, it should be nice to incorporate alloved html-tags in this one so I could have som restrictions.
Any help? Fel free to post
Comented this line in usersettings.php
$A['about'] = strip_tags (COM_stripslashes ($A['about']));
and that worked. But..
When saving, it automatically adds backslash with every quotes ("/'), and after saving two times it gets filled..
And, it should be nice to incorporate alloved html-tags in this one so I could have som restrictions.
Any help? Fel free to post
12
11
Quote
Status: offline
casper
Forum User
Full Member
Registered: 02/11/04
Posts: 142
Location:Skien, Norway
Think I found a solution...
added this instead of the line I commented out
$A['about'] = addslashes(COM_checkHTML(COM_checkWords($A['about'])));
Seems to work as intended, anyone have something to notice?
Start on integrating htmlarea now.
EDIT: It works perfect, and now my GL is yet better
With Upage, journals, gallery, myChat, forum, a members list ++ it is now a full blown community.
Should have showed it, but unfortionatly it is all in norwegian with no plans of translate all customisations...
added this instead of the line I commented out
$A['about'] = addslashes(COM_checkHTML(COM_checkWords($A['about'])));
Seems to work as intended, anyone have something to notice?
Start on integrating htmlarea now.
EDIT: It works perfect, and now my GL is yet better
With Upage, journals, gallery, myChat, forum, a members list ++ it is now a full blown community.
Should have showed it, but unfortionatly it is all in norwegian with no plans of translate all customisations...
15
12
Quote
All times are EST. The time is now 08:54 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content