MyBB Community Forums

Full Version: How to edit forum thread list 'subject' text font ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Have been using info from http://community.mybb.com/thread-33809.html to edit text (with classes) and has helped tremendously.

Currently trying to edit subject text in forum thread list (please see attached screen shot)

33809 indicates class as .trow1 and .trow2.

But havent been able to make subject text larger by editing class info.

Found (hopefully) ACP template, below, but not sure if can do anything from there, re editing 'subject' text font etc...

Quote:<tr>
<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" /></td>
<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>
<td class="{$bgcolor}{$thread_type_class}">
{$attachment_count}
<div>
<span>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
<div class="author smalltext">{$thread['profilelink']}</div>
</div>
</td>
<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
{$rating}
<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
</td>
{$modbit}</tr>


Where/how else might edit the 'subject' text size ?
you have this :
<span>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>

add a div class to {$thread['subject']} like below
<div class="mysubject">{$thread['subject']}</div>

now you should be able to change style of the subject by using class .mysubject
(2011-11-16, 08:55 PM)ranjani Wrote: [ -> ]you have this :
<span>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
add a div class to {$thread['subject']} like below
<div class="mysubject">{$thread['subject']}</div>
now you should be able to change style of the subject by using class .mysubject

Worked fine, thanks very much !
Added .mysubject in /global.css, /global2.css, and /global3.css.
Assume that is all needed ?
Ps: Have often wondered why there are (3) /theme* directories and files. Where could I find that info ?
Thanks again !
^ in general, global.css is the main stylesheet. it appears that other files are backups ..
(may be automatic backups OR some other person made them just as a precaution)

AND not sure why you are seeing 3 themes directories ... cache folder consists of themes subfolder

However , one should edit the theme files from admin panel .
admin panel --> themes --> click on your theme --> click on required css file -->
click on Edit Stylesheet: Advanced Mode tab
(2011-11-17, 06:53 AM)ranjani Wrote: [ -> ]^ in general, global.css is the main stylesheet. it appears that other files are backups ..
(may be automatic backups OR some other person made them just as a precaution)
AND not sure why you are seeing 3 themes directories ... cache folder consists of themes subfolder
However , one should edit the theme files from admin panel .
admin panel --> themes --> click on your theme --> click on required css file -->
click on Edit Stylesheet: Advanced Mode tab

Thanks for the ACP ref, much better way to edit when know the navigation !
Your suggestions have helped tremendously.
Also am going to do some 'tutorial' work at http://us.php.net/.
Not trying to become an expert, just some diy work on a small startup website.
Maybe will need expert help later, if site shows promise.
Ps: Btw, am looking for 'best answer' click on this forum. Did MyBB take that option away ?
Quote:Ps: Btw, am looking for 'best answer' click on this forum. Did MyBB take that option away ?
Seems so.
(2011-11-17, 03:24 PM)crazy4cs Wrote: [ -> ]
Quote:Ps: Btw, am looking for 'best answer' click on this forum. Did MyBB take that option away ?
Seems so.

Might be interesting to know the reason, but at least now know am not trying to find something that is not there.
Thanks for the confirmation.