MyBB Community Forums

Full Version: Unique Page Indentifiers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I don't know I'm using the correct terminology, but I'm suggesting that MyBB 2 support page identifiers throughout. I'll try to explain.

If you go to my forum, you will notice that the main index page  has no vertical lines on the trows separating the columns titled forum, threads, posts, and lastposts. This is also true of the ForumDisplay view. But the rest of the forum retained vertical lines. So, for example the calendar would still have boxes, the user control panel would still retain its vertical separators etc.

In other word, I did not have to make a universal trow change, which would have resulted in unwanted line removal, nor did I have to modify the templates. I was able to do this by using selectors tbody[id^=cat_] .trow1:nth-child(x) for the main index page and .trow1[class*=forumdisplay_]:nth-child(x) for the thread list page. Eric J showed me how to do this. In fact, he gave me the example code because I could not spot the unique identifiers in the template.

But when tried to do this in a third area, which is the page that shows only one category, there was no identifier to use. Eric J. was nice enough to explain this to me too. Here's the view I'm talking about http://community.mybb.com/forum-161.html

If feasible, it would be nice if there were unique identifiers for all significant views of the forum. For easier customization. It would also be nice if they were done in a way that nonexperts can spot them.
My plan is to have classes on the main <body> element, much like WordPress do. For instance, the class for viewing a topic will be ".topic", for a forum ".forum" for a user profile ".user", etc. Additionally, 2.0 is using the BEM syntax for CSS selectors, as summarised here: http://csswizardry.com/2013/01/mindbemdi...bem-syntax