Current Version of Codefight CMS Available for Download:

« Version 1.7.0 »

NOTE: The code available is same as the code used for newer than this site at the time of release. Check cmsigniter.com for latest demo.

Codefight CMS is based on CodeIgniter - Open source PHP web application 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 | Wed, 08 Sep 10 00:44:25 -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»