Current Version of Codefight CMS Available for Download:

            « Version 1.5.0 »

            NOTE: The code available is same as the code used for this site at the time of release.

            Codefight CMS is based on Codeigniter PHP Framework which is very easy to learn.

            It would be nice to hear back some feedback. Also you can contribute with code and helping translating language files in your language.

            You can use this CMS in anyway you want. You can modify as you like and use commercially for free.

 

 

Select Language.[TESTING For Next Release.]

English | नेपाली | French | German | Korean

Login | Select Language | Thu, 29 Jul 10 17:15:49 -0600

How does TAG cloud works in Codefight CMS?

2009-04-05 04:38:26Damodar Bashyal

 

How does TAG cloud works in Codefight CMS?

Admin/Modules/Pages/Controllers/Pages.php:

In admin when creating page, if tags are set split tags separated with commas. Then clean up every tag for tag-key as $tag. Then insert the tags into tag clouds table.

CODE:

1-
2-<?php
3-if(isset($pages_tags))
4-{
5-$pages_tags = split(',',$pages_tags);
6-if(is_array($pages_tags) && count($pages_tags) > 0) foreach($pages_tags as $v)
7- {
8-//clean tag
9-$tag = $this->data_model->link_clean($v);
10-
11-//add|increment tag count
12-$this->data_model->tag_cloud_add($tag, 'page', $v);
13-
14-//insert tags to tags table
15-$this->db->insert('pages_tags', array('pages_id' => $page_id, 'tags' => $tag));
16- }
17-}
18-?>
19-
Admin/Models/Data_model.php

More»

 

Asset Manager Extended To Combine Different CSS Files

2009-03-17 16:24:30Damodar Bashyal

 

Today I extended my Asset Manager to combine several css into one. As i understand, YSLOW Says there should be as less http requests as possible. So i decided to add this optional feature. For now this is controlled through MY_config file located at config folder.

This is how addition config setting looks:

More»

 

Multilevel menu library for codefight cms

2009-05-25 21:11:35Damodar Bashyal

 

Codefight cms is built with the help of codeigniter cms. Last weekend i wrote a multi-level menu library. You can use it for codefight cms or wherever you want.

This may not be perfect but it works. If you have a better idea i would like to know. This is how it looks like.

More»