Advertisement:

Help Needed: SMF smiley set integration to custom mod

Aloittaja virsa punjabi, joulukuu 28, 2013, 12:19:00 AP

« edellinen - seuraava »

virsa punjabi

Hello everyone,
Can anyone please tell me how can i integrate SMF smiley set to my custom project? Thank you!

Kindred

You will have to be a lot more specific about what you want to do and how if you want any useful help....
Сл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."

virsa punjabi

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.

Kindred

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
Сл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."

virsa punjabi


Kindred

well, I assume that you want to allow other BBC type styling as well as smilies...
Сл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."

virsa punjabi

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. :)

Arantor

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...
Holder of controversial views, all of which my own.


Colin

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?
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

virsa punjabi

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?

Colin

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
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Advertisement: