Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hardcoded styling in usercp php
#1
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.
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


#2
Thanks, we'll look into this.
[Image: darkmew.png]

Feel free to PM me if you have any issues with the community. Big Grin
#3
No need for the quotes, just $draftcount = my_number_format($count['draftcount']); would be fine.
But yes, this is a good suggestion.
#4
Hard-coded HTNL is suppose to disappear in 1.8. At least that was the plan from the time I remember.


Forum Jump:


Users browsing this thread: 1 Guest(s)