Open Source Yii CMS - GXC CMS

May I suggest that you use the extension "Yii Password Strategies" ? -> http://www.yiiframework.com/extension/yii-password-strategies/

It will handle password upgrades and much more. I noticed that Clevertech uses it for their YiiBoilerplate code, so it must be good.

That implementation has some issues, example:




		if (function_exists("openssl_random_pseudo_bytes") && strtoupper(substr(PHP_OS,0,3)) !== "WIN") {

			$bytes = openssl_random_pseudo_bytes($count);

		}



You should also check for PHP >= 5.3.4 on Windows, because PHP < 5.3.4 has serious issues with openssl_random_pseudo_bytes() on the Windows platform.

However it looks like a decent implementation, it’s better than the current one and I think you could use it for GXC CMS.

Nice work

I’m unable to install GXC-CMS-2.

When enter localhost/test/backend/install, it returns 404 error.

Any suggestion?

Regards,

M

Yii 1.1.14 includes CPasswordHelper for passwords hashing (however, it actually uses mt_rand() for salt generation, it doesn’t use openssl_random_pseudo_bytes()).

See https://github.com/y...83e9588f055dbec

HI All.

I have add below line to ‘install/controller/RunController.php’

$connection=new CDbConnection($string_connection,$model->db_username,$model->db_password);

$connection->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);

$connection->setAttribute(PDO::ATTR_PERSISTENT, false);

But this error still appear:

CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute… The SQL statement executed was: UPDATE gxc_settings SET value = :v where category = :c and key = :k

Can someone help me?

Thanks so much

How can I change to show whole of content instead of summary of it in home page?

if I want to ask my question in another way I want to know in which part I can change the content of home page to for example show tag or… in the home page?

thanks

I find it,in item_render.php.

when i uplaod an image to showed in content,it doesn’t display and when i see source code of page i know that the path of image isn’t correct,how can i correct it?

thanks

change it to:

public function getFilePath($file){

  		&#036;file = str_replace(&quot;&#092;&#092;&quot;, &quot;/&quot;, &#036;file);


  		return self::RESOURCE_URL.'/'.&#036;file;


  }

in LocalStorage.php

i got the same error… i guess the /install still need a lot of work

Good job. I hope that GXC must be very successful

Looks good.

What license are you releasing it under?

Please put a license file in the code.

When I upload it on shared server and go to create a page I get this error:

500

Error parsing (my site directory)/common/layouts/default/info.ini on line 8

and another error is in object.php in line 608:

return $class_name::buildLink($this);

that is a syntax error

can u help me with these two problem?

Hi! I had the same problem, but allowing the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute haven’t solved it. I’ve imported the database from _DATABASE manually and purged from the code $sql="…_DATABASE…"; parts and others related to it.

Now It runs flowlessly.

Your php version must be above 5.3 if you want to call a “variable’s” static function, that’s why you get error for line 608.

Hi Tuan, im just checked out your cms(GXC-CMS-2)

I tried to create new user after logged in as admin

but there was a error exist at row 184 in core/cms/models/user/User.php

$this->password = VieHashing::hash($this->password);

I can’t see the class named VieHashing, but PassHash. Therefore, i edited that line as

$this->password = PassHash::hash($this->password);

Dear all,

I have been quite busy these days. :( I am sorry for some silly bugs in this version. Until the end of March then I will be able to fix bugs and enhance it. Just want to notify.

Besides, I have some questions that I want to ask:

1/ I want to implement the Cache for the Frontend. Current solution is that I create Fragment Caches for each regions in the layout. Further more, I will do cache in block_output if needed. Do you have any advice regarding this?

2/ The Mobile layout. As you can see, I changed the frontend folder from old version to ‘web’, so that I can create another frontend for ‘mobile’ later. Current only page supports to create page for a specific apps: ‘web’ or ‘mobile’. What do you think about this?

3/ What do you think about multi-sites idea for this cms?

4/ Is there any advice for gxc’s next development?

Thank you and Happy Coding!

Responsive design is better than separated desktop and mobile versions.

I agree with ekerazha, no need for separated mobile.

I think that would be nice, and as I realised, this folder structure is suitable for this aim.

I think Taxonomy and Term part can be a bit different. Maybe I do something wrong, but if I have an Article and an Event with the same topic (e.g. cinema) and I want to search for it in archive, I have to add two separated term to my query instead of the same one.

It would be nice if existing Terms could be added to Taxonomies.

For me was an other problem that block defined with queue didn’t worked on the web side, but I still had no time to figure it out.

That’s it, have a nice work and thanks in advance!