Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: virsa punjabi - joulukuu 28, 2013, 12:19:00 AP

Otsikko: Help Needed: SMF smiley set integration to custom mod
Kirjoitti: virsa punjabi - joulukuu 28, 2013, 12:19:00 AP
Hello everyone,
Can anyone please tell me how can i integrate SMF smiley set to my custom project? Thank you!
Otsikko: Re: Help Needed: SMF smiley set integration to custom mod
Kirjoitti: Kindred - joulukuu 28, 2013, 01:59:44 AP
You will have to be a lot more specific about what you want to do and how if you want any useful help....
Otsikko: Re: Help Needed: SMF smiley set integration to custom mod
Kirjoitti: virsa punjabi - joulukuu 28, 2013, 02:05:58 AP
I am creating a facebook style wall system for smf and i want to integrate SMF smileys in it so like if i post a code like : D this on wall it should convert to smiley.
Otsikko: Re: Help Needed: SMF smiley set integration to custom mod
Kirjoitti: Kindred - joulukuu 28, 2013, 08:26:37 AP
ah...  see...  much clearer now.

I think you would want to use the parse_bbc() and parseSmileys() functions from Subs.php....


http://support.simplemachines.org/function_db/index.php?action=main
Otsikko: Re: Help Needed: SMF smiley set integration to custom mod
Kirjoitti: virsa punjabi - joulukuu 28, 2013, 11:26:13 AP
Thank you so much :) but why parse bbc ?
Otsikko: Re: Help Needed: SMF smiley set integration to custom mod
Kirjoitti: Kindred - joulukuu 28, 2013, 11:58:00 AP
well, I assume that you want to allow other BBC type styling as well as smilies...
Otsikko: Re: Help Needed: SMF smiley set integration to custom mod
Kirjoitti: virsa punjabi - joulukuu 28, 2013, 12:07:08 IP
I am not good at coding as i am new to it could you please put tell me any example or code for smiley parse. :)
Otsikko: Re: Help Needed: SMF smiley set integration to custom mod
Kirjoitti: Arantor - joulukuu 28, 2013, 12:49:26 IP
Not being funny but if you can't look up the parsesmileys function, you're going to run into a great many more problems with this...
Otsikko: Re: Help Needed: SMF smiley set integration to custom mod
Kirjoitti: Colin - joulukuu 29, 2013, 02:10:49 AP
Kindred linked you to the function library. If you look under Subs.php you will see the parseSmileys() function documentation. Have you had a look at that? Was there some question you had in terms of using the function?
Otsikko: Re: Help Needed: SMF smiley set integration to custom mod
Kirjoitti: virsa punjabi - joulukuu 29, 2013, 03:20:30 AP
Lainaus käyttäjältä: Colin - joulukuu 29, 2013, 02:10:49 AP
Kindred linked you to the function library. If you look under Subs.php you will see the parseSmileys() function documentation. Have you had a look at that? Was there some question you had in terms of using the function?
Yes as being new to website developing and code writing, i dont how this function would work? Also Do i have to make any changes to db as well?
Otsikko: Re: Help Needed: SMF smiley set integration to custom mod
Kirjoitti: Colin - joulukuu 29, 2013, 06:24:33 IP
I'm not sure exactly what you aren't sure about.

The parameters of the function are given at: http://support.simplemachines.org/function_db/index.php?action=view_function;id=220

No, you don't need to make changes to the DB. If your question is about how exactly functions work and that sort, you will have to have basic PHP knowledge in order to use them. If you are looking for help with that: http://www.codecademy.com/tracks/php