Please or Register to create posts and topics.

Need help in integrating Asgaros with Ad-Inserter and myCRED

So I was trying to build an online community (Books related) with Asgaros Forum. I found it far better when compared to bbPress.

 

My community will be mainly funded by banner ads. So I have to insert ads using the Ad-inserter

  • header section
  • after the topic
  • after 2 replies
  • footer

 

Moreover, there will be a point scheme. I’ll be using myCRED plugin for point and badge purposes

I need help in integrating myCRED with this forum. Points will be added/decreased for the following purposes.

  • Point Added for a new Topic +1
  • Point for new reply +1
  • Whenever the topic is upvoted +1 for the one who started the topic/reply
  • Whenever the topic is deleted -1
  • Reply deleted -1
  • A badge to be assigned whenever a user completes a certain number of tasks (eg: If he created 50+ topic- A badge called xyz).

 

I am very new to php, so I’ll be glad if someone can help me with integrating these.

Ad inserter Hooks

myCRED Hooks

 

Thanks in advance.

Hello @alanjacobmathew

to add banner to your forum you can use one of the available hooks. Here are some examples – you have to add the code to your themes functions.php file:

/*
Views: overview, topic, forum, etc ... See view-parameter in url.
*/
add_action('asgarosforum_overview_custom_content_bottom', 'footer_banner');
function footer_banner() {
  echo 'My banner code ...';
}
add_action('asgarosforum_overview_custom_content_top', 'top_banner');
function top_banner() {
  echo 'My banner code ...';
}
add_action('asgarosforum_after_first_post', 'first_post_banner');
function first_post_banner() {
  echo 'My banner code ...';
}

myCred integration would require a custom implementation because it cannot be done with a simple line of code. I also plan an addon for this but cannot tell you yet when it will be available.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!