Needing a return variable for the group forum topic !
-
Hello everyone.
I am doing a filter for forums topics and posts wich denies a user of posting a content with badwords that were previously registered with the WP Content Plugin.
I set the error message when a bad word is found, but i cant send the user back cause BP Forums dont have an identifier for the location !So in my filter-function in file bp-forums/bp-forums-filters.php , whe a badword is found :
bp_core_add_message(utf8_encode(“The word $word is forbidden in this site. “),”error”);
bp_core_redirect( $bp->root_domain . ‘/’ . $bp->groups->slug . ‘/’ . $bp->groups->current_group->slug . ‘/’ . ‘forum/topic’ . ???? ; );What to use in ” ???? ” ?
And other question is:
Is there an automatted way to recover the content entered by the user in these posts, so he doesnt have to type it all over again ?
- The topic ‘Needing a return variable for the group forum topic !’ is closed to new replies.