Remove topic icon and the topic title in posts

Started by CMDCMD, June 19, 2010, 07:00:17 AM

Previous topic - Next topic

CMDCMD

I want to remove the topic icon everywhere in the forum and the topic title in posts, this is what I want to remove. Is there any mod for removing this or do I have to do it manually?




rjckE

Manually....
From:
1. MessageIndex.template.php
2. Display.template.php

CMDCMD

Can you please show me where the files are, and more exactly what lines I should delete from the files. Thanks in anvance! :)

Kill Em All

#3
For the individual posts themselves, in your Display.template.php, remove this line:

<div class="messageicon">
<img src="', $message['icon_url'] . '" alt="" border="0"', $message['can_modify'] ? ' id="msg_icon_' . $message['id'] . '"' : '', ' />
</div>


I'm working on the other file, for some reason it has me confused.

Edit:

In your Messageindex.template.php, remove this line:

<img src="', $topic['first_post']['icon_url'], '" alt="" />


That doesn't get rid of the row, but getting rid of the table makes it look a mess, I can't figure it out. Sorry. But getting rid of that code removes the image.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

CMDCMD

Thanks for the help! :) Now I just need to get the empty are away, and I still want to remove this header in every post:


rjckE

Search and delete this on Themes/default/Display.template.php


<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>


Regards

CMDCMD

Thanks! :) Now I just need to know how to get this away:


rjckE

In Themes/default/MessageIndex.template.php

search and delete


<td class="icon2 ', $color_class, '">
<img src="', $topic['first_post']['icon_url'], '" alt="" />
</td>


If you can't find that try to find


icon2


and delete all you see between those "td" and "/td" labels

CMDCMD

Should it look like this:

                     <td class="icon2 ', $color_class, '">
                     </td>


Or like this:

                     <td>
                     </td>

rjckE

Like none of those... remove it all or just comment both lines using // at the start of each of those lines ;)

Kill Em All

/*

*/

will work to, just put the first on at the line you want to stop and the last one at the ending line. Might be a little easier.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

rjckE

Quote from: Kill Em All on June 23, 2010, 01:06:11 PM
/*

*/

will work to, just put the first on at the line you want to stop and the last one at the ending line. Might be a little easier.

there are just 2 lines to comment! and /* */ is used for documentation, not for comments :p

Kill Em All

Quote from: rjckE on June 23, 2010, 01:25:45 PM
there are just 2 lines to comment!
True haha.

Quote from: rjckE on June 23, 2010, 01:25:45 PM
and /* */ is used for documentation, not for comments :p
And no, you can still use those with no problems.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

rjckE

I know you can use those with no problems but comments between /* and */ were made for Documentation (not comments inside the code) and thats a fact

Advertisement: