codefight cms could not get admin page

This Forum Is To Discuss About Installation Problems And Solutions
chaleswa
Member Neptune
Member Neptune
Posts: 9
Joined: Thu Apr 01, 2010 5:57 pm
antispam: NO

Re: codefight cms could not get admin page

Post by chaleswa » Wed Apr 21, 2010 4:51 am

Thanks a lot for taking time and effort to make such a wonderful CMS with unique features. Thank you very much for the update to the CodeFight CMS.

dbashyal
Site Admin
Posts: 30
Joined: Mon May 21, 2007 10:35 pm
antispam: NO
Contact:

Re: codefight cms could not get admin page

Post by dbashyal » Wed Apr 28, 2010 9:14 pm

chaleswa wrote:New version of CMS:
please check the admin panel pagination. In the users section when click pagination link (2nd page). It didn't bring the 2nd page. I had similar problems with previous version not sure it happened after changing "admin.php" or before.
Thanks for pointing out the bug. Yes the issue came after above change.

You can fix this by changing:
FILE: app/admin/modules/users/controllers/users.php

Code: Select all

$config['base_url'] = base_url()."users/index/";
to:

Code: Select all

$index_page = $this->config->item('index_page');
if($index_page) $index_page .= '/';

$config['base_url'] = base_url().$index_page."users/index/";
FILE: app/admin/modules/comments/controllers/comments.php

Code: Select all

$index_page = $this->config->item('index_page');
if($index_page) $index_page .= '/';
		
$config['base_url'] = base_url().$index_page."comments/".$this->uri->segment(2, 'approved-comments')."/";
same applies for groups, pages

Locked