Guminukas wrote:I get problem..
Code: Select all
$sql = 'UPDATE ' . FORUMS_TABLE . "
SET forum_style = $new_id
WHERE forum_style = $style_id";
$db->sql_query($sql);
after this I add:
Code: Select all
// Start User Blog Mod ----------------------
global $phpEx;
include("{$phpbb_root_path}blog/includes/functions_admin.$phpEx");
blog_remove_style($style_id, $new_id);
// End User Blog Mod ------------------------
But then, when I'm going to ACP > Styles I get this:
Code: Select all
Parse error: syntax error, unexpected '{' in /home/laisvailaikis/public_html/includes/acp/acp_styles.php on line 1647
Your problem is right there. On line 1647 there is a { that shouldn't be there.
Replace this:
Code: Select all
// Start User Blog Mod ----------------------
global $phpEx;
include("{$phpbb_root_path}blog/includes/functions_admin.$phpEx");
blog_remove_style($style_id, $new_id);
// End User Blog Mod ------------------------
With this:
Code: Select all
// Start User Blog Mod ----------------------
global $phpEx;
include("$phpbb_root_path}blog/includes/functions_admin.$phpEx");
blog_remove_style($style_id, $new_id);
// End User Blog Mod ------------------------
The it should work. You just had to take the '{' out of "include("$phpbb_root_path}blog/includes/functions_admin.$phpEx");"...
And EXreaction; long time, no see... I just re-installed this MOD on my new forum it works great.