• Welcome to Simple Machines Community Forum. Please login or sign up.
December 08, 2021, 04:20:31 AM

News:

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


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

420Connect.co.uk

Hey ahrasis,

I'm testing out how the mods I currently use, work with the new theme I am planning to use and think I've stumbled upon something that hopefully is just a quick fix!

Basically using the mod with the theme "Redsy" causes the body / icons to display strangely, with huge spacing issues.

.. it seems to work fine on locked and stickied posts but not for "normal" ones.

Much appreciated if you're able to take a look!

http://custom.simplemachines.org/themes/index.php?lemma=2833 - Theme


Many thanks!
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

Hj Ahmad Rasyid Hj Ismail

The mod especially hook version is designed for default template. I believe that theme is new. I suggest you tried out old version 111. Highlight any error(s) during installation in here.

420Connect.co.uk

Hey,

Thanks for the reply and pointers!

I tried out the previous version and indeed helped highlight what part was going wrong.

echo '
<tr>
<td class="icon1 ', $color_class, '">
<img src="', $settings['images_url'], '/topic/', $topic['class'], '.gif" alt="" />
</td>
<td class="icon2 ', $color_class, '">
<img src="', $topic['first_post']['icon_url'], '" alt="" />
</td>
<td class="subject ', $alternate_class, '">
<div ', (!empty($topic['quick_mod']['modify']) ? 'id="topic_' . $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' . $topic['id'] . '\', \'' . $topic['first_post']['id'] . '\');"' : ''), '>
', $topic['is_sticky'] ? '<strong>' : '', '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], (!$context['can_approve_posts'] && !$topic['approved'] ? '&nbsp;<em>(' . $txt['awaiting_approval'] . ')</em>' : ''), '</span>', $topic['is_sticky'] ? '</strong>' : '';


looks like this for me:

echo '
<tr>
<td class="icon1 ', $color_class, '">
<img src="', $settings['images_url'], '/topic/', $topic['class'], '.gif" alt="" />
</td>
<td class="icon2 ', $color_class, '">
<img src="', $topic['first_post']['icon_url'], '" alt="" />
</td>
<td class="subject ', $alternate_class, '">
<div ', (!empty($topic['quick_mod']['modify']) ? 'id="topic_' . $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' . $topic['id'] . '\', \'' . $topic['first_post']['id'] . '\');"' : ''), '>
', $topic['is_sticky'] ? '' : '', '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], (!$context['can_approve_posts'] && !$topic['approved'] ? '&nbsp;<em>(' . $txt['awaiting_approval'] . ')</em>' : ''), '</span>', $topic['is_sticky'] ? '' : '';


I tried manually making the edits but that caused another sort of weird issue with how it was displayed, but with further playing around, I've found the the theme seems to sort of rely on the "<td></td>" line before the "<td class="icon2 ', $color_class, '">" to display correctly..

for now I have:

echo '
<tr>
<td class="icon1 ', $color_class, '">

</td>
<td class="icon2 ', $color_class, '">
<img src="', $topic['first_post']['icon_url'], '" alt="" />
</td>
<td class="subject ', $alternate_class, '">
<div ', (!empty($topic['quick_mod']['modify']) ? 'id="topic_' . $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' . $topic['id'] . '\', \'' . $topic['first_post']['id'] . '\');"' : ''), '>
', $topic['is_sticky'] ? '' : '', '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], (!$context['can_approve_posts'] && !$topic['approved'] ? '&nbsp;<em>(' . $txt['awaiting_approval'] . ')</em>' : ''), '</span>', $topic['is_sticky'] ? '' : '';


This at least removes the actual icons but their column remains..  it kinda does the job I guess, but if I could drop that column without messing up the display for the rest that would be preferred!  O:)
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

Hj Ahmad Rasyid Hj Ismail

If you are using only Redsy theme for your site and want to remove the hot topic / message icon using hook version of this mod, then open RHTAMI.subs.php. Change $color_class = 'windowbg' to $color_class = 'windowbg4'.

DrGecko

Hi - the mod doesn't seem to work with the New Look theme. Any advice?

Hj Ahmad Rasyid Hj Ismail

All mods are made for default theme and never meant for others. If they work, it is a bonus. If they do not, you have to make adjustments to that mods.


Hj Ahmad Rasyid Hj Ismail

No problem. As an extra note to help you, you should try to use the old, non-hook version. There you can see error(s) during installation. Fix that error(s) or report them here so you should be able to get the right help to remove Hot Topic and Message Icons manually.

Dwev

I have RHTAMI 1.1.6 installed in SMF 2.0.15, and the "Remove message icons" option is on, while the option for " Remove hot topic icons" is off.

But somehow both Message icons AND Hot Topic icons are gone.

Is this a bug in this mod?

Dwev

Since my question above never got an answer I'm wondering if this one will:

Our forum generates at the moment a very high number of errors linked to RHTAMI with the following text:

Quote2: Parameter 1 to RHTAMI_Displays() expected to be a reference, value given

Does anyone know what causes this, and more important, how to get rid of it?

BellGab.com

Quote from: Dwev on March 20, 2018, 08:01:44 PM
Since my question above never got an answer I'm wondering if this one will:

Our forum generates at the moment a very high number of errors linked to RHTAMI with the following text:

Quote2: Parameter 1 to RHTAMI_Displays() expected to be a reference, value given

Does anyone know what causes this, and more important, how to get rid of it?

This mod generated a lot of error log entries for me until I downgraded to 1.1.1.

Dwev

Quote from: BellGab.com on April 29, 2018, 06:47:09 AM
This mod generated a lot of error log entries for me until I downgraded to 1.1.1.

Thanks, at least I know I'm not the only one that got all of these errors.

In the meantime I removed this mod entirely, and getting actually quite used to all of these funny icons everywhere... ;)

BellGab.com

Quote from: Dwev on April 29, 2018, 08:38:59 AM
...getting actually quite used to all of these funny icons everywhere... ;)

I could never get used to that.  On my forum, nobody knows what the icons mean and I can guarantee you nobody missed them after they were removed.  I think they just make the forum look awful and cluttered.  I'm pretty minimalist on these things, though.  I don't even allow signatures, colored text or the usual doodads that show up under avatars on 99% of the forums out there.  Keeps things looking clean.

Cheers.

Dwev

I agree, I liked the forum much better with the clutter of all of these icons.

But the Hook version throws lots of errors, and the 1.1.1 throw errors when I want to install them.

So I will have to invest some time in them, time I don't have right now...   :(

Mike66


Sesquipedalian

I promise you nothing.
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Mike66

Yes Sesquipedalian, that works thanks  :)

The only difference that I can see, is that it leaves the empty column in place.

Cheers
Mike

Advertisement: