News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

New Style Message Icon

Started by M-DVD, October 07, 2008, 07:31:41 PM

Previous topic - Next topic

M-DVD

Quote from: mraza on June 19, 2009, 12:57:10 PM
hi thanks for this code...well i tried this and in my first 2 rows i have default icons from smf themes, these rows divided by 6 and they left too much space in the box until the end because the next two rows of my icons are a little bigger then the normal one. is it possible to make first rows to take space until the end of the message icon box: thanks

Can you give me an image as it's now and how you want it?

Tridrac

#61
Quote from: M-DVD on April 21, 2009, 10:26:03 PM
Ok, you can try.

   foreach ($context['icons'] as $x => $icon)
      echo '
                              <input type="radio" name="icon" value="', $icon['value'], '"', $icon['value'] == $context['icon'] ? ' checked="checked"' : '', ' /><img src="', $icon['url'], '" alt="', $icon['name'], '" title="', $icon['name'], '" />', (($x+1) % 6) ? '' : '<br />';


And tell me :)

Note: I haven't tested this.

Hi,

Here is an other option to break the icons in two rows:

   foreach ($context['icons'] as $x => $icon)
      echo '
                              <input type="radio" name="icon" value="', $icon['value'], '"', $icon['value'] == $context['icon'] ? ' checked="checked"' : '', ' /><img src="', $icon['url'], '" alt="', $icon['name'], '" title="', $icon['name'], '" />', ($icon['name'] == 'solved') ? '' : '<br />';


This option allows for greater accuracy.
¡Qué bella es la vida!

Mis mini Mods: , ,


M-DVD

Quote from: Tridrac on June 22, 2009, 09:58:30 PM
Hi,

Here is an other option to break the icons in two rows:

   foreach ($context['icons'] as $x => $icon)
      echo '
                              <input type="radio" name="icon" value="', $icon['value'], '"', $icon['value'] == $context['icon'] ? ' checked="checked"' : '', ' /><img src="', $icon['url'], '" alt="', $icon['name'], '" title="', $icon['name'], '" />', ($icon['name'] == 'solved') ? '' : '<br />';


This option allows for greater accuracy.


Thanks for the trick :D

Blinker

Hi mate

I love this mod, thank you.

Would it be possible to post the code changes for the request you handled in this post - http://www.simplemachines.org/community/index.php?topic=266723.msg1973337#msg1973337

I would also like to turn the icons off for replies and only have them visible for new topic compositions.

Thanks in advance.

Shark-Time

it is very great mod and it is working perfectly fine on post.template.php but it is making problem in privatemessage.template.php..

as icons are not supposed appear in PMs and well they are not appearing but the border around icons are appearing in personalmessage...


look its working great in post reply..


but when sending private message it should not appear.. but it is appearing i mean the border..


please really need help to remove this from private message..or if it cant remove then tell me how to enable message icons in private message...




Providing Cheapest Offshore Hosting as low as 5$/year.
MoneyBookers | AlertPay
Pm Me

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

EroticJudge

Hi there im trying to see if there is a way to change my message icons into letters (eg YES or NO) instead of image icons.

If you know where and how i can change it please reply and let me know.  Thank you.

linette97

Watch Documentaries Online!


Yesterday is history,
Tomorrow is a mystery,
Today is a gift,
That's why it's called the Present.

Sabre™

#68
I repackaged this for my own RC2 site, here is that package if you'd like to try it.
I'll remove it when M-DVD or a staff member requests me to :)

update located here
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


andris11

I uploaded but nothing changed.. Should i allow something?




Sabre™

No, there is nothing to allow, it should have worked instantly.
Are you using the default SMF theme?
Which version of SMF?
Although you shouldn't have to, have you cleared your cache?
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Joker™

Quote from: Sabre™ on January 28, 2010, 03:07:15 PM
I repackaged this for my own RC2 site, here is that package if you'd like to try it.
I'll remove it when M-DVD or a staff member requests me to :)

worked perfectly :D thanx alot ;)
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

kicky

Thanks
Great mod, and it work in my SMF 1.1.11
:)

steve51184


TheListener

Quote from: zx71 on March 09, 2010, 07:39:12 PM
rc3 update?

Use the emulate function.

I am currently unable to install the mod due to an install error on the post template file.

Attachment included.

aw06

Need official update for rc3 8)
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Kimmie

Quote from: Sabre™ on January 28, 2010, 03:07:15 PM
I repackaged this for my own RC2 site, here is that package if you'd like to try it.
I'll remove it when M-DVD or a staff member requests me to :)

I tried using this one on RC3 but it said the files were corrupt when I tried to install it. I noticed that the one on the mod page says its only compatible with ".1.6, 1.1.7, 1.1.8, 2.0 Beta 4, 2.0 RC1" however it parses for RC3. Has anyone tried that one yet?

Arantor

Just because it parses doesn't mean it works. The mod may not have a version number set in it.

Kimmie

Quote from: Arantor on May 01, 2010, 05:46:11 AM
Just because it parses doesn't mean it works. The mod may not have a version number set in it.


yes I know, thats why I asked if anyone has tried it yet :). An official update would be better, but It was already asked for back on March 31st and hasnt been done so I figured the mod auth either doesnt have the time to do it, or they have stopped support on it all together.

Sabre™

You could try the attached for RC3.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Advertisement: