MyBB Community Forums

Full Version: ACP problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi friends,

In admin cp, forum management, i use edit feature of any forum and when i click save forum button it just shows or redirect to that forum's sub forums instead of showing forum management main index.
like in the following image, i edit the forum: The WJ Marketplace (Buy,Sell or Trade) and when i clicked save forum button it shows its sub forums like in this image:

[Image: igz0hd.jpg]

What will be the problem, plz help.
^ it is coded like that !!
How is the redirection to the main page a problem?
./admin/modules/forum/management.php
{ $Id: management.php 5162 2010-08-01 }

around line 1410

// Log admin action
			log_admin_action($fid, $mybb->input['title']);
			
			flash_message($lang->success_forum_updated, 'success');
			admin_redirect("index.php?module=forum-management&fid={$fid}");

may be changed to
// Log admin action
			log_admin_action($fid, $mybb->input['title']);
			
			flash_message($lang->success_forum_updated, 'success');
			admin_redirect("index.php?module=forum-management");

i.e. removing &fid={$fid} from the redirect code ..
(2011-09-13, 06:45 AM)pdtrx Wrote: [ -> ]How is the redirection to the main page a problem?

Read my 1st post carefuly, i have written that when i click save forum button it shows me the sub forum section of that forum and i think its an error as in my 2nd forum it is not happening like in this forum.....
(2011-09-13, 01:04 PM)ranjani Wrote: [ -> ]./admin/modules/forum/management.php
{ $Id: management.php 5162 2010-08-01 }

around line 1410

// Log admin action
			log_admin_action($fid, $mybb->input['title']);
			
			flash_message($lang->success_forum_updated, 'success');
			admin_redirect("index.php?module=forum-management&fid={$fid}");

may be changed to
// Log admin action
			log_admin_action($fid, $mybb->input['title']);
			
			flash_message($lang->success_forum_updated, 'success');
			admin_redirect("index.php?module=forum-management");

i.e. removing &fid={$fid} from the redirect code ..

here is the code there ranjani:
// Log admin action
			log_admin_action($fid, $forum['name'], $mid, $mod[$fieldname]);

			flash_message($lang->success_moderator_updated, 'success');
			admin_redirect("index.php?module=forum-management&fid=".intval($mybb->input['fid'])."#tab_moderators");

what to edit in it...?
^ there are more than 10 occurrences of // Log admin action in the file !!
please look around line 1410 for the exact given code to modify it ...