• Facebook
  • Twitter
  • Yahoo
  • Linkedin
  • Google
  • Live

Please follow guidance below to auto fix of missing the setting "Can add a new blog?" , I believe you can follow easily

- Step 1

Open this file PF.Site/Apps/ync-blogs/Install.php/install.php

protected function setUserGroupSettings()
    {
        $this->user_group_settings = [
          'yn_advblog_add_blog' => [
                'var_name' => 'yn_advblog_add_blog',
                'info'     => 'Can add a new blog?',
                'type'     => Setting\Groups::TYPE_RADIO,
                'value'    => 1,
                'options'  => Setting\Groups::$OPTION_YES_NO
            ],

            'ynblog.points_ynblog' => [
                'var_name' => 'ynblog.points_ynblog',
                'info'     => 'Points received when adding a blog',
                'type'     => Setting\Groups::TYPE_TEXT,
                'value'    => 0,
            ],

....

The bold messages are for implementation.

- Step 2

Enable Techie Mode with this article https://docs.phpfox.com/display/FOX4DEVDOC/Enabling+Techie+Mode

- Step 3

Click Re-validation on Advanced Blog at AdminCP >> Apps

- Step 4

Run Maintenance >> Rebuild Core Theme and Cache Manager to fix for layout after re-validation

- Step 5

Update some codes on Add page

/PF.Site/Apps/ync-blogs/Controller/AddController.php. Find code:

if (($iEditId = $this->request()->getInt('id'))) {
      .....
      .....

under "}", add below code:

else {
    user('yn_advblog_add_blog',null,null,true);
}

#### Congratulations! You have resolved it. ####

Please contact us on ticket system if you meet any difficulty

9
  • March 1, 2018
  • 0 Comment(s)
Category: Advanced Blog