News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

RHTAMI - Remove Hot Topic And Message Icons (Fully Hook!)

Started by Hj Ahmad Rasyid Hj Ismail, August 20, 2010, 04:03:47 AM

Previous topic - Next topic

Hj Ahmad Rasyid Hj Ismail

I will see to it later as it will require some times and testings. RC4 has shown a lot of changes which is quite surprising since it is supposed to be a security release only.

sharks

Another thing that you missed. After installing your mod, when viewing unread posts, as well as unread replies, the hot post icons and message icons are still visible. They should be removed completely from the entire forum. I hope you will fix that also in your next release. :)


Hj Ahmad Rasyid Hj Ismail

Quote from: ahrasis on August 20, 2010, 04:03:47 AM
This mod do as it says and remove hot topic and first message icon places,

i.e. before topic and in the legend box under messsage index.
It does not remove any or both icons at any other places.

Hj Ahmad Rasyid Hj Ismail

Updated. Now it covers removal at all places for both hot topic icon and message icon. To remove any of them individually, please use respective file as stated in the OP.

Hj Ahmad Rasyid Hj Ismail


Ihmeliö

Still doesn't seem to remove the icons from the "unread posts" page...

Hj Ahmad Rasyid Hj Ismail

Quote from: Ihmeliö on November 12, 2010, 06:45:01 PM
Still doesn't seem to remove the icons from the "unread posts" page...
It does remove it from unread posts and replies page. Have you try it?

Ihmeliö

Quote from: ahrasis on November 12, 2010, 06:47:30 PM
It does remove it from unread posts and replies page. Have you try it?
Yes, I uninstalled the old one and then installed the new one. As the previous one, it did remove the icons from the boards directly, but not from the "unread topics" listing or the "your posts" listing.

I also tried to uninstall it, just to make sure that the code from the previous version was reset back to normal. And then I re-installed it. Still the same thing. The icons stay in the unread and your posts pages.

Hj Ahmad Rasyid Hj Ismail

I have just tested it again on SMF2.0 RC3 and SMF2.0 RC4, and the mod works fine. The message icons cannot be seen anywhere in message index, post, recent (unread posts and replies) and display.

Just in case you were confused, there are three of them at the download page. You will need to use only this one i.e. to only remove message icon: RemoveMessageIcon111.zip.

Please ensure that you uninstalled the previous one and delete it when you have uninstalled.

Ihmeliö

Quote from: ahrasis on November 12, 2010, 07:21:24 PM
Just in case you were confused, there are three of them at the download page. You will need to use only this one i.e. to only remove message icon: RemoveMessageIcon111.zip.

Please ensure that you uninstalled the previous one and delete it when you have uninstalled.
I did. It doesn't work in the view unread posts page. And I used the RemoveHotTopic&MessageIcon version, since I wanted to get rid of both. You did update that one too, didn't you?

Hj Ahmad Rasyid Hj Ismail

Yes. I updated that too. The mod file is named as RemoveHotTopic&MessageIcon111.zip.

I just downloaded it again from the mod site and tested it again minutes ago on SMF2.0 RC3 and SMF2.0 RC4. The mod is working fine. All hot topic icons and message icons and their columns are totally removed in all message index, unread posts, unread replies, post, and display page.

I am not sure why you are still facing that as I face no such problem at all. Are you using default theme or other custom theme?

BellGab.com

thanks for this mod.  i always HATED those icons.  nobody knows what they mean, they take up space, and they clutter the UI.  furthermore, the icons themselves don't look very good at all.  for a look at how this mod makes a forum look, click here.

Hj Ahmad Rasyid Hj Ismail

Thanks for using and liking it. With number of replies and views columns, one would agree that there is no necessity for hot topic icons especially when it has its own dedicated (unnecessary) column.

And that is a nice forum. I think I will put a list of forums that are using this mod in the OP / first post so that anyone asking can refer to them as live samples. Yours will be the first one then.  ;D

Ihmeliö

Yeah, of course I didn't doubt it working for you, but for some reason it didn't for us. Today, we also decided to try just the RemoveMessageIcon mod, so we uninstalled RemoveHotTopic&MessageIcon111, but for some reason weren't able to install the RemoveMessageIcon any more - it fails the test in ./Themes/default/Post.template.php   

If this helps, here's our current Post.template.php
http://mysql.paste-bin.com/view/08dea1b5

Hj Ahmad Rasyid Hj Ismail

You might have changed this lines before that is why it cannot be modified using package manager. A single blank space or line add up or deletion could caused that error. Anyway, find it from 186-208:
echo '
                                                <dt>
                                                        <span', isset($context['post_error']['no_subject']) ? ' class="error"' : '', ' id="caption_subject">', $txt['subject'], ':</span>
                                                </dt>
                                                <dd>
                                                                <input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="160" class="input_text" />
                                                </dd>
                                                <dt>
                                                        ', $txt['message_icon'], ':
                                                </dt>
                                                <dd>
                                                        <select name="icon" id="icon" onchange="showimage()">';

        // Loop through each message icon allowed, adding it to the drop down list.
        foreach ($context['icons'] as $icon)
                echo '
                                                                <option value="', $icon['value'], '"', $icon['value'] == $context['icon'] ? ' selected="selected"' : '', '>', $icon['name'], '</option>';

        echo '
                                                        </select>
                                                        <img src="', $context['icon_url'], '" name="icons" hspace="15" alt="" />
                                                </dd>
                                        </dl>';

Change to:echo '
                                                <dt>
                                                        <span', isset($context['post_error']['no_subject']) ? ' class="error"' : '', ' id="caption_subject">', $txt['subject'], ':</span>
                                                </dt>
                                                <dd>
                                                                <input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="160" class="input_text" />
                                                </dd>
                                        </dl>';

I hope this help.

And a little advise, try learning how to parse at the download page so that you will know how to troubleshoot installation of any mod should you face problems in the future. The button is just below the mod. Just choose your mod, version and press the parse button. It will lead you to parse page and guide you with manual installation.

Good luck!

BellGab.com

Quote from: ahrasis on November 13, 2010, 11:27:07 PM
And that is a nice forum. I think I will put a list of forums that are using this mod in the OP / first post so that anyone asking can refer to them as live samples. Yours will be the first one then.  ;D
thanks, brother!

Ihmeliö

Quote from: ahrasis on November 15, 2010, 08:23:23 PM
I hope this help.
I did the replacement, but it still doesn't install. The new post.template.php: http://mysql.paste-bin.com/view/b6dbaa5b

I'll try to acquaint myself with parsing...

Hj Ahmad Rasyid Hj Ismail

It should be straight forward but I'm not sure why it doesn't work for you (both using package manager or manually). PM me with admin access if you want me to manually help you with it. Or attach all the relevant files here. Display.template.php, Post.template.php and Recent.template.php. I'll do it manually for you (I take it that you want to remove both hot topic & message icons).

Ihmeliö

Quote from: ahrasis on November 17, 2010, 06:42:23 AM
It should be straight forward but I'm not sure why it doesn't work for you (both using package manager or manually). PM me with admin access if you want me to manually help you with it. Or attach all the relevant files here. Display.template.php, Post.template.php and Recent.template.php. I'll do it manually for you (I take it that you want to remove both hot topic & message icons).
I can't grant admin access, but here are the mentioned files:


Advertisement: