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)
- list items [ /list]- creates the <ul> parts of the list
[li] content [ /li] - creates a list item inside the given list
[size=number] content [ /size] - makes the font size the given number
More bbcodes might be added in the future
How to use?
There is one function which is:
Code:
SendMail(to[], to_email[], from[], from_email[], subject[], message[], playerid = -1)
you then need to upload two php files to a webhost and then define them before including the include with #define PHP_LOC "location.com/send.php"
And yes, there are two files but only define one ! (send.php)
Download
v1 - http://www.4shared.com/zip/ZNDSoUrV/Mailing_2.html?
v2:
You only need to replace the bbcode.php, http://pastebin.com/hiui7bQt
v3:
only need to replace the bbcode.php http://pastebin.com/jG22NY2q
Code:
added [email]
added [background]
added [font]
added [s]
Please read the README.txt if you are stuck.
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
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
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