Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: markvc - kesäkuu 03, 2011, 04:16:26 IP

Otsikko: Portion of Header + Message Icons
Kirjoitti: markvc - kesäkuu 03, 2011, 04:16:26 IP
I am looking to remove the circled portion of the header on my theme, as well as the message icons.  I know there is a message icon removal mod out there, however it doesn't currently work with SMF2 RC 5.  I am fine with just killing the visible column itself and leaving the message icon option still available in the posting form.

I am currently running SMF2 RC 5 w/ Blackrain V2 Theme and the forums link is http://forums.paradoxhorde.net if you want to view the forums themselves.

Any help in this would be greatly appreciated as I'm a total noob when it comes to this forum modifying stuff.

Thanks in advance!

EDIT - Forgot to attach my index.template.php so attaching it now.

2nd EDIT - Attaching MessageIndex.template.php

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2F66.51.173.101%2Fmarkv%2Fgeneral.jpg&hash=70e1a784605e3b4798387c252f143b9cbe81907a)

Otsikko: Re: Portion of Header + Message Icons
Kirjoitti: mashby - kesäkuu 03, 2011, 04:59:25 IP
This will get rid of the top bar. I think the other file will be MessageIndex.template.php file. Does that theme have one? If so, attach that, if not, it will be in Themes/default/
Otsikko: Re: Portion of Header + Message Icons
Kirjoitti: markvc - kesäkuu 03, 2011, 05:13:37 IP
I added in the messageindex.template.php to the main post.

The change you provide did kill the top header, but broke the rest of the layout partially.  Attaching a screenshot so you can see.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2F66.51.173.101%2Fmarkv%2Fnewgeneral.jpg&hash=77866c3550e8858cb977e0c5890bd09141917b9e)
Otsikko: Re: Portion of Header + Message Icons
Kirjoitti: mashby - kesäkuu 03, 2011, 05:25:30 IP
Yup...sorry about that. Deleted one line too many. Try this one on for size.
:)
Otsikko: Re: Portion of Header + Message Icons
Kirjoitti: mashby - kesäkuu 03, 2011, 05:28:43 IP
Oh, and I think this will remove the message icon column.
:)
Otsikko: Re: Portion of Header + Message Icons
Kirjoitti: markvc - kesäkuu 03, 2011, 05:38:50 IP
Looks like the index.template.php worked like a charm, thanks for that!  However if you look at the messageindex.template.php changes you can see it's just a biiiiiit off  :laugh:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2F66.51.173.101%2Fmarkv%2Ftopicgeneral.jpg&hash=0e601962240a6ed8c4d40ef283b6e85bb2e3bd55)
Otsikko: Re: Portion of Header + Message Icons
Kirjoitti: mashby - kesäkuu 03, 2011, 05:40:07 IP
I should quit my day job! Sorry again.
Otsikko: Re: Portion of Header + Message Icons
Kirjoitti: markvc - kesäkuu 03, 2011, 06:07:07 IP
New one works good!  Thanks!   Just curious, if I wanted to change the width of the column circled where in the code would I go for that?  I will probably want to tweak a couple of things to make it look a little more uniform in width.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2F66.51.173.101%2Fmarkv%2Fgeneral1.jpg&hash=03f2dc15513c65063e5f46099e19934a1c4857d3)
Otsikko: Re: Portion of Header + Message Icons
Kirjoitti: mashby - kesäkuu 03, 2011, 08:24:11 IP
That column is line 159:
<th width="9%" class="catbg3 headerpadding">&nbsp;</th>
I yanked out colspan="2" from that and based on that, you can certainly increase that. The next few lines control the rest of the widths, too.
Otsikko: Re: Portion of Header + Message Icons
Kirjoitti: markvc - kesäkuu 03, 2011, 08:34:43 IP
Thanks a lot for all your help on this.  Getting the site to look the way I want it.  Cheers!