Display IMG as ban-message

Started by SMiFFER, May 09, 2018, 03:34:17 PM

Previous topic - Next topic

SMiFFER

How can I display an image (.png) as ban-message?
Quote of the day: A troll is an obstinate bloke who only hungers for your attention. If you feed him, he will puke all over you!

br360

I am guessing you are talking about an image the person banned would see?

If so, this piece of code still works well for 2.0.15- https://www.simplemachines.org/community/index.php?topic=37005.msg271996#msg271996

Where this line is-
redirectexit('http://www.google.com/search?q=learning+not+to+troll', false);

You can upload an image to your server that you want banned members to see and try something like
redirectexit('http://yoursite.com/Themes/whatever theme you are using/your .png image you uploaded', false);


SMiFFER

You are correct there.

But what I would like to have is
- forward INDIVIDUALLY (=per user/ban entry) to INDIVIDUAL images

Is that feasible, too, somehow?

I can display an individual text to a banned user, but so far I have not found how to display an individual image (.png).
Quote of the day: A troll is an obstinate bloke who only hungers for your attention. If you feed him, he will puke all over you!

SMiFFER

Maybe it becomes clearer when I rephrase this:

I can have an INDIVIDUAL message displayed to a banned user.
What I would like to include an image (.png) in that very message.

So far and all I tried... no luck.

Quote of the day: A troll is an obstinate bloke who only hungers for your attention. If you feed him, he will puke all over you!

Kindred

correct.

You owuld have to modify the ban message code
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SMiFFER

Yes, that's what I am trying to do, but the picture is not displayed.

This is what I have tried:
[img]picture.png[/img]
<img>picture.png</img>

Both does not work. What am I doing wrong?
Quote of the day: A troll is an obstinate bloke who only hungers for your attention. If you feed him, he will puke all over you!

Illori

the internal code most likely does not parse either html or bbc so it would have to be changed to do what you want. no idea where it is.

SMiFFER

Quote from: Kindred on May 11, 2018, 10:00:27 AM
correct.

You owuld have to modify the ban message code

Ah! Now I understand you. The ban message PROGRAM code?
Well that part of the code would have to parse BBCode then.

Is that a big sub routine call to add there?
Quote of the day: A troll is an obstinate bloke who only hungers for your attention. If you feed him, he will puke all over you!

Kindred

it could become so...     bans should be using the minimum resources, so they don't load any of the parsing
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: