Help me to develope ban User Component.. i know this component already developed by ossn team and included in premium ossn toolkit. but i cant offored ossn pemium toolkit so i have desided to develope this but im not so expert developer... so please help me to develope this component. Thanks!
@Roman
Yes why not? I know you are better then me.. so please chack it out if it is possible for you then do it. thanks :D
Elliot Alderson
I will check it out. See if its doable for me.,
@ Roman
yes bro.. right
I might be dumb, what are you guys working on?
Something like this?
Why not you simply fork the OssnBlock? and use login calback to check if user is blocked and login make him stay away?
Those functions you used in code below are from wordpress and will not work in OSSN.
Your component may include following (this is not a full component code just example)
function user_baned_init(){
ossn_register_callback('user', 'before:login', 'check_user_banstatus');
}
function check_user_banstatus($callback, $type, $params){
if($params['user']->banned == true){
ossn_trigger_message("You are banned", 'error');
redirect(REF);
}
}
ossn_register_callback('ossn', 'init', 'user_baned_init');
.
What i have developed i have posted here in the form of imgs. please Help. Thanks!
Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)