Yii Framework Forum: Open Source Yii CMS - GXC CMS - Yii Framework Forum

Jump to content

  • (13 Pages)
  • +
  • « First
  • 9
  • 10
  • 11
  • 12
  • 13
  • You cannot start a new topic
  • You cannot reply to this topic

Open Source Yii CMS - GXC CMS Rate Topic: ***** 14 Votes

#201 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 04 January 2013 - 10:52 AM

May I suggest that you use the extension "Yii Password Strategies" ? -> http://www.yiiframew...ord-strategies/

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

#202 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 525
  • Joined: 10-October 08
  • Location:European Union

Posted 05 January 2013 - 07:55 AM

View Postjacmoe, on 04 January 2013 - 10:52 AM, said:

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.
Yii user #37
1

#203 User is offline   JamesBarnsley 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 418
  • Joined: 18-November 10
  • Location:UK

Posted 06 January 2013 - 09:33 AM

Nice work
0

#204 User is offline   Madzar 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 11-February 11

Posted 06 January 2013 - 11:17 AM

I'm unable to install GXC-CMS-2.
When enter localhost/test/backend/install, it returns 404 error.
Any suggestion?

Regards,
M
0

#205 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 525
  • Joined: 10-October 08
  • Location:European Union

Posted 19 January 2013 - 11:00 AM

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
Yii user #37
0

#206 User is offline   Steve kein 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 16-January 13

Posted 01 February 2013 - 04:05 AM

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
0

#207 User is offline   Ehsan Bahrami 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 01-January 13

Posted 18 February 2013 - 03:02 PM

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
0

#208 User is offline   Ehsan Bahrami 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 01-January 13

Posted 18 February 2013 - 04:03 PM

I find it,in item_render.php.
0

#209 User is offline   Ehsan Bahrami 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 01-January 13

Posted 19 February 2013 - 11:35 AM

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
0

#210 User is offline   Ehsan Bahrami 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 01-January 13

Posted 20 February 2013 - 03:09 AM

change it to:

public function getFilePath($file){
$file = str_replace("\\", "/", $file);
return self::RESOURCE_URL.'/'.$file;
}

in LocalStorage.php
0

#211 User is offline   riza_nurhadi 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 23-December 10

Posted 20 February 2013 - 09:21 PM

View PostSteve kein, on 01 February 2013 - 04:05 AM, said:

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


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

#212 User is offline   vahid-afshari 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 22-November 12

Posted 06 March 2013 - 09:07 AM

Good job. I hope that GXC must be very successful
0

#213 User is offline   HenryJ 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 08-March 13

Posted 09 March 2013 - 01:52 PM

Looks good.

What license are you releasing it under?

Please put a license file in the code.
0

#214 User is offline   Ehsan Bahrami 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 01-January 13

Posted 17 March 2013 - 01:38 AM

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?
0

#215 User is offline   Szigya 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 24-February 12

Posted 23 March 2013 - 03:24 AM

View PostSteve kein, on 01 February 2013 - 04:05 AM, said:

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


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.
0

#216 User is offline   Szigya 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 24-February 12

Posted 24 March 2013 - 09:05 AM

View PostEhsan Bahrami, on 17 March 2013 - 01:38 AM, said:

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?

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.
0

#217 User is offline   Hoang sa 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 26-March 13

Posted 26 March 2013 - 11:01 PM

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);
0

#218 User is offline   mr80 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 70
  • Joined: 21-December 10

Posted 26 March 2013 - 11:12 PM

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!
- Yii developer
- My Freelance Service
- My Blog
- Gxccms - Open source Yii cms
0

#219 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 525
  • Joined: 10-October 08
  • Location:European Union

Posted 27 March 2013 - 05:43 AM

View Postmr80, on 26 March 2013 - 11:12 PM, said:

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?


Responsive design is better than separated desktop and mobile versions.
Yii user #37
0

#220 User is offline   Szigya 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 24-February 12

Posted 02 April 2013 - 07:21 AM

View Postmr80, on 26 March 2013 - 11:12 PM, said:

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?

I agree with ekerazha, no need for separated mobile.

View Postmr80, on 26 March 2013 - 11:12 PM, said:

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

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

View Postmr80, on 26 March 2013 - 11:12 PM, said:

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

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!
0

Share this topic:


  • (13 Pages)
  • +
  • « First
  • 9
  • 10
  • 11
  • 12
  • 13
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users