[Include] Mailing.inc
#1

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
    Code:
    Added bbcode [img]
    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.
Reply
#2

It looks very nice :P
Reply
#3

DANKE.
Reply
#4

Nice

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

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

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.
Reply
#7

Any suggestion for bbcodes?
Reply
#8

exemple for use?
Reply
#9

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;
}
Reply
#10

New version.
Reply
#11

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

[ code][/code]

[CALL=Number][/CALL]

Reply
#12

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">
Reply
#13

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>
Reply
#14

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

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
Reply
#16

http://pastebin.com/aULDqmUU

For the ******* bbcode use this bbcode.php
Reply
#17

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

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/>'
Reply
#19

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

By the way, what was your previous forum name?
Reply
#20

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)