MyBB Community Forums

Full Version: plugin post SQL error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, im trying to install a recent posts plugin and when i put the recentposts.php in my 'plugins' folder and the languages.php file in 'admin' in the languages file it wont let me install and activate the plugin. It shows the attached error:

[Image: Screen_Shot_2016_09_25_at_15_48_08.png]
Is there anyway of fixing this?
Im on an shared hosting provider and i cannot modify the SQL is there an alternative?

Thanks
What plugin are you using? Also moved this to plugin support.
Replace:
    $new_setting_group = array(
    "name" => "latestposts",
    "title" => $db->escape_string($lang->settings_name),
    "disporder" => $rows+1,
    "isdefault" => 0
    );
with:
    $new_setting_group = array(
    "name" => "latestposts",
    "title" => $db->escape_string($lang->settings_name),
    "disporder" => $rows+1,
    "isdefault" => 0,
    "description" => "Latest posts"
    );
(2016-09-25, 05:40 PM)nth Wrote: [ -> ]Replace:
    $new_setting_group = array(
    "name" => "latestposts",
    "title" => $db->escape_string($lang->settings_name),
    "disporder" => $rows+1,
    "isdefault" => 0
    );
with:
    $new_setting_group = array(
    "name" => "latestposts",
    "title" => $db->escape_string($lang->settings_name),
    "disporder" => $rows+1,
    "isdefault" => 0,
    "description" => "Latest posts"
    );

Hello,

Ive changed the code in the latestposts.php file and still no luckSad

(2016-09-25, 06:01 PM)fishhy29 Wrote: [ -> ]
(2016-09-25, 05:40 PM)nth Wrote: [ -> ]Replace:
    $new_setting_group = array(
    "name" => "latestposts",
    "title" => $db->escape_string($lang->settings_name),
    "disporder" => $rows+1,
    "isdefault" => 0
    );
with:
    $new_setting_group = array(
    "name" => "latestposts",
    "title" => $db->escape_string($lang->settings_name),
    "disporder" => $rows+1,
    "isdefault" => 0,
    "description" => "Latest posts"
    );

Hello,

Ive changed the code in the latestposts.php file and still no luckSad

Hang on... ive just refreshed the page and it seems to be activated. Thankyou so much! Really appreciate your help. I will rate you highlySmile

(2016-09-25, 06:01 PM)fishhy29 Wrote: [ -> ]
(2016-09-25, 05:40 PM)nth Wrote: [ -> ]Replace:
    $new_setting_group = array(
    "name" => "latestposts",
    "title" => $db->escape_string($lang->settings_name),
    "disporder" => $rows+1,
    "isdefault" => 0
    );
with:
    $new_setting_group = array(
    "name" => "latestposts",
    "title" => $db->escape_string($lang->settings_name),
    "disporder" => $rows+1,
    "isdefault" => 0,
    "description" => "Latest posts"
    );

Hello,

Ive changed the code in the latestposts.php file and still no luckSad

(2016-09-25, 06:01 PM)fishhy29 Wrote: [ -> ]
(2016-09-25, 05:40 PM)nth Wrote: [ -> ]Replace:
    $new_setting_group = array(
    "name" => "latestposts",
    "title" => $db->escape_string($lang->settings_name),
    "disporder" => $rows+1,
    "isdefault" => 0
    );
with:
    $new_setting_group = array(
    "name" => "latestposts",
    "title" => $db->escape_string($lang->settings_name),
    "disporder" => $rows+1,
    "isdefault" => 0,
    "description" => "Latest posts"
    );

Hello,

Ive changed the code in the latestposts.php file and still no luckSad

Hang on... ive just refreshed the page and it seems to be activated. Thankyou so much! Really appreciate your help. I will rate you highlySmile
However, ive just noticed that there is 0 setting available for this plugin...
Have i missed installed something?

CheersSmile