Bug Post Preview Character Limit doesn't work when set to 0

Status
Not open for further replies.

curse

Customer
Setting the Post Preview Character Limit to 0 doesn't actually disable the display of the post preview. You still get (username length) amount of preview text.

The logic in class_profileblock doesn't take into account the extra characters added by this line when calculating $end below.

PHP:
$remaining = substr($message, ($origstart + strlen($userinfo['username'] . ':')));

Something like this would fix the message length:

PHP:
$end = $this->registry->options['dbtech_usertag_postpreview_charlimit'] - strlen($remaining) - strlen($userinfo['username'] . ':');

This still leaves the prefix and suffix to fix. I fixed it in a different way, as this will always be set to 0 for us.
 

DragonByte Technologies

Company Information
Staff member
Company Info
Hello @curse,

We hope your ticket regarding Advanced User Tagging has been addressed to your satisfaction. This ticket has now been scheduled to be closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 

DragonByte Technologies

Company Information
Staff member
Company Info
Hello @curse,

As we have not heard back from you, your ticket regarding Advanced User Tagging has now been closed.

If your ticket has not been resolved, please feel free to start a new support ticket and link back to this ticket.

Thank you.


- DragonByte Technologies, Ltd.
 
Status
Not open for further replies.

Advanced User Tagging

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
2,469
Customer rating
0.00 star(s) 0 ratings
Top