help!!! add data to message

Started by sayl3r, July 10, 2014, 11:05:01 AM

Previous topic - Next topic

sayl3r

I want to add karma datafrom sql to message but i dont know where exactly i must add my queries
any one ?
:|

margarett

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.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

sayl3r

miss understanding :
i meant when smf is selecting post data i wanna add some data on it
:|

margarett

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.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

sayl3r

:|

Advertisement: