Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 05:41 am EDT

Geeklog Forums

Allow html in profile?


Status: offline

casper

Forum User
Full Member
Registered: 02/11/04
Posts: 142
Location:Skien, Norway
Where to look to disable stripping of html in the textareas in profile, ie texarea "about" and "pgpkey".
Wanting to put in HTMLarea there, and let members create more graphical profiles.
 Quote

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 Smile
 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 Mr. Green
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...
 Quote

All times are EDT. The time is now 05:41 am.

  • 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