Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: sayl3r - heinäkuu 10, 2014, 11:05:01 AP

Otsikko: help!!! add data to message
Kirjoitti: sayl3r - heinäkuu 10, 2014, 11:05:01 AP
I want to add karma datafrom sql to message but i dont know where exactly i must add my queries
any one ?
Otsikko: Re: help!!! add data to message
Kirjoitti: margarett - heinäkuu 10, 2014, 12:47:42 IP
I'm not sure what you want to do but, anyway, all the posting work is performed in Sources/Post.php (that uses some stuff from Subs-Post.php).

Specifically you should look into function Post2, that's where the post is actually written to the database. So you need to add your content somewhere before the message is submitted.

Do note, however, that your content will be submitted to the database, which means that it will show up when the post is created but also when it is quoted or edited.
Otsikko: Re: help!!! add data to message
Kirjoitti: sayl3r - heinäkuu 11, 2014, 08:56:05 AP
miss understanding :
i meant when smf is selecting post data i wanna add some data on it
Otsikko: Re: help!!! add data to message
Kirjoitti: margarett - heinäkuu 11, 2014, 10:04:44 AP
I can't understand you want to do, sorry :(

Do you want to add content to post display? If so, Display.php is the place to start.
Otsikko: Re: help!!! add data to message
Kirjoitti: sayl3r - heinäkuu 27, 2014, 11:57:40 AP
Lainaus käyttäjältä: margarett - heinäkuu 11, 2014, 10:04:44 AP
Display.php is the place to start.
yes.thank you.