Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: wire post at the home page…


Brajesh Singh
Participant

@sbrajesh

hi

well I got your idea better now.You want something like twitter where a person writes to his her own wall.

In that case ,there are a few things you can do.

1.add filter to change the wp_wire_action

something like this

function my_bp_wire($wire)

{

global $bp;

if(is_home())

return get_bloginfo('wpurl');

else

return $wire;

}

add_filter("bp_get_wire_get_action","my_bp_wire");

2.Create your own handler for handling the wire post action.here your item of interest will be functions

bp_wire_new_post

also, you may like to take a look at bp-xprofile.php and the function xprofile_action_new_wire_post

to see how the wire posts at handled at profile page.You jaust have to digg a little deep and create a hacked version of the xprofile_action_new_wire_post,as your own function ,so if someone posts at the site’s home page,It is correctly saved as wire post.

Let me know ,How it goes with you.

Skip to toolbar