Osclass Support Forums

Osclass plugin support => Blog and News Plugin => Topic started by: ishan on April 11, 2022, 12:05:52 PM

Title: Everyone can write articles
Post by: ishan on April 11, 2022, 12:05:52 PM
I want every registered users can write articles in blog.. because users dont know how they apply for write articles. so if possible to activate for everyone.. I also tried to that .. but its showing No author in every post..

I change code

if($author) {
    osc_add_flash_error_message(__('Error - you are not allowed to create new article', 'blog'));
    header('Location:' . osc_route_url('blg-home'));
  }

 from

 if(!$author) {
    osc_add_flash_error_message(__('Error - you are not allowed to create new article', 'blog'));
    header('Location:' . osc_route_url('blg-home'));
  }


but now everyone can post but No author is showing.. so please tell me
Title: Re: Everyone can write articles
Post by: MB Themes on April 11, 2022, 04:33:56 PM
Plugin use custom profile for articles authors.
Maybe it would require update in plugin, in case author profile does not exists, feed everything possible from osclass profile  :-\