SA-MP Forums Archive
[Include] Mailing.inc - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Mailing.inc (/showthread.php?tid=429512)



Mailing.inc - thefatshizms - 09.04.2013

While looking at a mailing include I had an idea to make my own one.. with a twist.

What is this?
This is a simple include to send mail from ingame with a twist.. you can also send bbcodes!

BBcodes? wat.
Yes, you can now send bbcodes (as well as other html) such as [b] and [i].

BBcodes available:

[b] content [ /b] - Makes then content bold

[i] content [ /i] - Makes the content italic

[link=http://link.com] link name [/link] - creates a link (<a></a> in html)




Re: Mailing.inc - TofuMike - 09.04.2013

It looks very nice :P


Re: Mailing.inc - thefatshizms - 09.04.2013

DANKE.


Re: Mailing.inc - Frede - 10.04.2013

Nice

Quote:
Originally Posted by thefatshizms
View Post
DANKE.
I thought you was English not German


Re: Mailing.inc - thefatshizms - 10.04.2013

I am english, doesn't mean I don't know some german and thanks


Re: Mailing.inc - Frede - 10.04.2013

Quote:
Originally Posted by thefatshizms
View Post
I am english, doesn't mean I don't know some german and thanks
well in from Denmark so im in the mittle. I can both English and German. However English is more contfontable.


Re: Mailing.inc - thefatshizms - 10.04.2013

Any suggestion for bbcodes?


Re: Mailing.inc - Delete_ - 10.04.2013

exemple for use?


Re: Mailing.inc - thefatshizms - 10.04.2013

Code:
SendMail("thefatshizms", "thefatshizms@hisemail.com", "me", "myemail@email.com", "hi", "hello this is a message<br/>[b ]BOLD[ /b] [ i]italic[ /i]");
without spaces in the bbcodes

pawn Code:
CMD:emailme(playerid, params[])
{
    new email[100];
    if(sscanf(params,"s[100]",email)) return SendClientMessage(playerid, -1, "Usage:  /emailme <your email>");
    SendMail("thefatshizms", email, "me", "myemail@email.com", "hi", "hello this is a message<br/>[b ]BOLD[ /b] [ i]italic[ /i]");
    return 1;
}



Re: Mailing.inc - thefatshizms - 10.04.2013

New version.


Re: Mailing.inc - iJumbo - 10.04.2013

[IMGwidth=x height=x]IMGlink[/IMG]

[ code][/code]

[CALL=Number][/CALL]




Re: Mailing.inc - thefatshizms - 10.04.2013

Quote:
Originally Posted by iJumbo
Посмотреть сообщение
[IMGwidth=x height=x]IMGlink[/IMG]

[ code][/code]

[CALL=Number][/CALL]

[email=someone@email.wtf ][ /email]
What does the call and email do?

Is the email like <a href="mailto:email@email.com">


Re: Mailing.inc - iJumbo - 10.04.2013

yes and call call a number <a href= "tel:999999999"/>


Also
Код:
[align=left,right,center]Text[/align]


<div style="text-align: left,right,center;">Text</div>
Also
Код:
[background=#color]Text[/background]


<span style="background-color: #color;">Text</span>
Also
Код:
[ font=Text1]Text2[/font]


<span style="font-family: Text1;">Text2</span>
Also
Код:
[ s]Text[/s]


<strike>Text</strike>
Also
Код:
[sub]Text[/sub]


<sub>Text</sub>



Re: Mailing.inc - thefatshizms - 10.04.2013

Most of them have been added, I will do the rest tomorrow.


Re: Mailing.inc - iJumbo - 10.04.2013

Good! you can add [color][/color] too for the color text
and mmh maybe

Код:
[*******]*******VIDEO ID[/*******]



<object type="application/x-shockwave-flash" data="http://www.*******.com/v/*******VIDEO ID" width="425" height="350">
<param name="movie" value="http://www.*******.com/v/*******VIDEO ID" />
<param name="wmode" value="transparent" />
</object>
you can add params width height if you want


Re: Mailing.inc - thefatshizms - 10.04.2013

http://pastebin.com/aULDqmUU

For the ******* bbcode use this bbcode.php


Re: Mailing.inc - iJumbo - 10.04.2013

Oh right, you can add everything you want on BBcodes just immagination


Re: Mailing.inc - thefatshizms - 10.04.2013

Yep.

If anyone wants to know how to make their own bbcode, add this to the first array
PHP код:
'/\[TAGNAME\](.*?)\[\/TAGNAME\]/is' 
And on the second add what ever it does so for example if it would make a line you would add '<hr/>'


Re: Mailing.inc - Scenario - 10.04.2013

So, basically Slice's include with some small BBcode enhancements? Nice job nonetheless!

By the way, what was your previous forum name?


Re: Mailing.inc - thefatshizms - 10.04.2013

What do you mean my previous forum name? I've always been thefatshizms and always will be

And yeah basically Slice's but.. with bbcodes