Tag: Simple:Press Forum

Integrate Simple:Press Forum into the BuddyPress Activity Stream!

This will post new topics/replies from your Simple:Press Forum into the BuddyPress Activity stream and you can even filter it under “Show Forum Replies”. The view button will take you right to the permalink as well!

So let’s get started shall we. First off go to this file:

wp-content/plugins/simple-forum/forum/hooks/sf-hook-template.txt

Then rename that file or made a copy and name it sf-hook-template.php

(continue reading…)


[Update: Cubepoints 3] Integrate CubePoints into Simple:Press Forum | WordPress

Note: This is for CubePoints 3.0 and above

I’ve made this a little easier, no need to edit core files anymore. First do the following:

Find the file sf-hook-template.txt (simple-forum/forum/hooks/sf-hook-template.txt) and rename it to sf-hook-template.php. Save it in the same directory that sf-hook-template.txt was located in.

Search for this:

	  function sf_hook_post_save($newpost, $action)
	  {

Add this code right after that. The 25 is for how many points a new forum topic is worth and 5 is for a new reply in a existing topic.

	    global $current_user;
 
	     if ($action=="topic") {
	     	     cp_points('cp_spf_new_topic', cp_currentUser(), get_option('cp_spf_new_topic'), "");
	     }
	     if ($action=="post") {
	     	     cp_points('cp_spf_new_reply', cp_currentUser(), get_option('cp_spf_new_reply'), "");
	     }

Last step is saving extendcb.txt and renaming it as extendcb.php and placing it in this folder.

/wp-content/plugins/cubepoints/modules/

Then activate the module from the CubePoints Modules Page.

(continue reading…)


  • RSS SlySpyder Reviews

  • Categories

  • Copyright © 1996-2010 SlySpyder Blog. All rights reserved.
    iDream theme by Templates Next | Powered by WordPress