MyBB Community Forums
Hardcoded styling in usercp php - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 Suggestions and Feedback (https://community.mybb.com/forum-7.html)
+------ Thread: Hardcoded styling in usercp php (/thread-152513.html)



Hardcoded styling in usercp php - Leefish - 2014-04-03

In usercp the draftcount has a hardcoded bracket around the number of drafts

$draftcount = "(".my_number_format($count['draftcount']).")";


If the brackets are not there then the variable can be used in a css selector to hide the manage drafts buttons when there are not any drafts.

The line should be

$draftcount = "".my_number_format($count['draftcount'])."";

Sorry if this post is in the wrong place.


RE: Hardcoded styling in usercp php - Jitendra M - 2014-04-03

Thanks, we'll look into this.


RE: Hardcoded styling in usercp php - JordanMussi - 2014-04-03

No need for the quotes, just $draftcount = my_number_format($count['draftcount']); would be fine.
But yes, this is a good suggestion.


RE: Hardcoded styling in usercp php - Omar G. - 2014-04-04

Hard-coded HTNL is suppose to disappear in 1.8. At least that was the plan from the time I remember.