Welcome to Geeklog, Anonymous Thursday, November 14 2024 @ 04:58 pm EST

Geeklog Forums

HTML formatting in signature


Anonymous

Anonymous
I have successfully installed the geeklog forums on geeklog 1.3.7 and am using my standard geeklog signature with it, I am trying to configure it so I can add pictures to my signature. Any ideas? Also has anyone managed to configure static ranks, so instead of gain the rank of junior @ 15 posts for example you could just assign a single rank for that user as Muppet for example. Any help would be appreciated! Cheers guys
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Geeklog simply strips all HTML out of signatures. If you really want to allow HTML in signatures (not sure if this is a good idea ...) you would need to change that in usersettings.php. I would suggest to at least filter for the HTML tags that are allowed in user postings, i.e. in usersettings.php, change line 443 from $A['sig'] = strip_tags (COM_stripslashes ($A['sig'])); to $A['sig'] = strip_tags (COM_stripslashes ($A['sig']), $_CONF['allowablehtml']); (untested - you may need to change something in comments.php too, where it appends the signature to comments) bye, Dirk
 Quote

Anonymous

Anonymous
Cheers Dirk, worked fine
 Quote

Status: offline

xspace

Forum User
Regular Poster
Registered: 03/04/03
Posts: 100
I have done this .. it allows HTML like bold letters, etc .. but I dun seem to be able to attach a picture ... anyone has any idea ???
Die young, stay Pretty
 Quote

Status: offline

xspace

Forum User
Regular Poster
Registered: 03/04/03
Posts: 100
Quote by xspace: I have done this .. it allows HTML like bold letters, etc .. but I dun seem to be able to attach a picture ... anyone has any idea ???
I found it ... it\'s @ the GL\'s config.php where there\'s a line ... $_CONF[\'allowablehtml\'] = ... ... juz add the tag in .. Smile
Die young, stay Pretty
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by xspace:... juz add the tag in .. Smile
And open a can of worms (i.e. security issues like XSS). Your decision, of course. bye, Dirk
 Quote

All times are EST. The time is now 04:58 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