Quote from
Asgaros on December 11, 2017, 10:35 am
Hello again,
for example when you want to show an ad after the first post inside a topic, you can use the following code which you have to add to your themes functions.php file:
function my_ads() {
echo 'your ads code';
}
add_action('asgarosforum_after_first_post', 'my_ads');
For implementing social sharing buttons for every post, you can use the following hook:
add_action('asgarosforum_after_post_message', 'my_function_share', 10, 2);
function my_function_share($author_id, $post_id) {
echo 'Your code';
}
You have to add the corresponing code of the extension you want to use. If you not sure about how it looks, feel free to ask the developer of the social sharing extension. 🙂
Hello again,
for example when you want to show an ad after the first post inside a topic, you can use the following code which you have to add to your themes functions.php file:
function my_ads() {
echo 'your ads code';
}
add_action('asgarosforum_after_first_post', 'my_ads');
For implementing social sharing buttons for every post, you can use the following hook:
add_action('asgarosforum_after_post_message', 'my_function_share', 10, 2);
function my_function_share($author_id, $post_id) {
echo 'Your code';
}
You have to add the corresponing code of the extension you want to use. If you not sure about how it looks, feel free to ask the developer of the social sharing extension. 🙂