Skip to Content Skip to Menu

[SOLVED] Simpleboard and signatures

  • tdk1nc
  • tdk1nc
  • OFFLINE
  • Posts: 11
  • Thanks: 0
  • Karma: 0
14 years 1 month ago #129803 by tdk1nc
[SOLVED] Simpleboard and signatures was created by tdk1nc
I'm running CB 1.2.2 with Kunena 1.5.11. I'm having a problem with profile signatures.

Signatures correctly display in forum, but in profiles (browsing or editing), escape backslashes appear before special characters (like punctuation). I don't think the text is being correctly processed by the simpleboard plugin before being displayed.

Example, my signature is a piece of dialog from Dr. Horrible.

"Billy?"
"Yeah?"
"You're driving a spork in your leg"
"....so I am. Hilarious!"


If I type it and save it as my signature, no problem.

Going back to edit my profile later, the signature appears as

EDIT: The forum software is editing out my backslashes (unlike the signature box :) ). See my next post for a picture of the bugged signature.

If I then save this without changes, the backslashes start to stack, since each backslash is a special character that needs escaped. The resulting signature has twice as many backslashes as before (and they grow exponentially with each profile save).

Recommendations?

Post edited by: tdk1nc, at: 2010/04/10 07:33

Post edited by: krileon, at: 2010/04/26 21:46

Please Log in or Create an account to join the conversation.

  • tdk1nc
  • tdk1nc
  • OFFLINE
  • Posts: 11
  • Thanks: 0
  • Karma: 0
14 years 1 month ago #129809 by tdk1nc
Replied by tdk1nc on topic Re:Simpleboard and signatures
I just realized that, unlike the forum signature function, CB seems to be filtering out the backslashes in my previous post. :)

I've attached a picture of the malfunctioning signature box. It should illustrate my point.

Post edited by: tdk1nc, at: 2010/04/10 07:30
Attachments:

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 68609
  • Thanks: 9109
  • Karma: 1434
14 years 1 month ago #129956 by krileon
Replied by krileon on topic Re:Simpleboard and signatures
Was able to confirm and resolve for next release. Is a minor issue of missing stripslashes. Please perform the following edits for a "quick fix".

IN: components/com_comprofiler/plugin/user/plug_cbsimpleboardtab/cb.simpleboardtab.php
ON: Line 75
FROM:
[code:1]
$return = $this->_fieldEditToHtml( $field, $user, $reason, 'input', 'textarea', $value, 'class="inputbox cbforumsignature" cols="60" rows="4"' );
[/code:1]
TO:
[code:1]
$return = $this->_fieldEditToHtml( $field, $user, $reason, 'input', 'textarea', stripslashes( $value ), 'class="inputbox cbforumsignature" cols="60" rows="4"' );
[/code:1]

ON: Line 121
FROM:
[code:1]
$new = cbGetParam( $postdata, 'forumsignature', null );
[/code:1]
TO:
[code:1]
$new = stripslashes( cbGetParam( $postdata, 'forumsignature', null ) );
[/code:1]


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • tdk1nc
  • tdk1nc
  • OFFLINE
  • Posts: 11
  • Thanks: 0
  • Karma: 0
14 years 3 weeks ago #131231 by tdk1nc
Replied by tdk1nc on topic Re:Simpleboard and signatures
This is a couple of weeks old, but I wanted to say that it fixed the problem on my end. Thanks! :)

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum

Facebook Twitter LinkedIn