WPF 1.7.4 -> 2.4.13...
 
Notifications
Clear all

WPF 1.7.4 -> 2.4.13 upgrade has signatures stripped br tags of making them appear only on a single line

4 Posts
2 Users
0 Reactions
90 Views
Posts: 119
Topic starter
(@nando4)
Estimable Member
Joined: 9 years ago

Did some testing finding WPF 1.7.4 user signatures with br html tags that under WPF 1.7.4 make them appear on separate lines would appear on WPF 2.4.13 on  a consecutive line, even though they appear correctly in the wpforo_profiles db table. 

ie:

WPF 1.7.4 signature

line1
line2
line3

WPF 2.4.13 signature

line1 line2 line3

When you have 1000s of users, this change in appearance completely mucks up my forum post views. I wasn't able to locate the code responsible for this during a limited testing time window, so aborted the WPF 2.4.13 upgrade due to it being a deal-breaker.

May I please request some way of signatures maintaining br html tags so appear like they do in WPF 1.7.4 in the upcoming WPF 3 release?

Thank you


3 Replies
Sofy
Posts: 5716
 Sofy
Admin
(@sofy)
Support Team
Joined: 8 years ago

Dear @nando4,

We’ve already discussed this question in the following support topic:
https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-add-empty-line-in-signature-of-latest-wpforo/

Please review it once more. If you’re still experiencing any issues, kindly record a video so we can better understand the problem.


Reply
Posts: 119
Topic starter
(@nando4)
Estimable Member
Joined: 9 years ago

My bad, a customization was causing this. Pls close/delete the bug.


Reply
Posts: 119
Topic starter
(@nando4)
Estimable Member
Joined: 9 years ago

Only issue was finding that spaces and <br> html tags were being stripped in signatures, which commenting out the following line fixed:

functions.php

function wpforo_text( $text, $length = 0, $echo = true, $strip_tags = true, $strip_urls = true, 
...
    // nando4>> comment out following line to allow for spaces and <br> entered into signature editor to show in post signature area
    // $text = trim( str_replace( "\xc2\xa0", ' ', (string) $text ) );
...
}

Reply