Yiiframework.co.il Code is now open sourced!
#21
Posted 14 May 2011 - 07:52 AM
If anyone is interested in doing a website for it and continue developing it then go ahead, As long as you retain and acknowledge the license.
@tronga, The editor i use is not WYSIWYG, But something really close, I use the markitup editor, The markdown version. But integrating CKeditor will be super simple, And i am not sure but i think the files are already there. I just used markitup to avoid any XSS attacks through the editor.
#22
Posted 14 May 2011 - 07:52 AM
#24
Posted 16 May 2011 - 10:40 AM
P.S I've just updated the license, It's now released under the New BSD license. I received a lot of requests to use this as a commercial application, So i changed the license.
#25
Posted 23 May 2011 - 03:06 AM
#26
Posted 26 May 2011 - 09:00 AM
Looks like this CMS can offer a lot, however, I am not even able to log into the backend admin system. Where do you do so on the demo site?
I have installed the whole thing successfully on a local server, but navigating to /admin just gives me the message:
"Sorry, You are not allowed to enter this section."
PLease advise.
Thanks
#27
Posted 26 May 2011 - 09:08 AM
iamdash, on 26 May 2011 - 09:00 AM, said:
Looks like this CMS can offer a lot, however, I am not even able to log into the backend admin system. Where do you do so on the demo site?
I have installed the whole thing successfully on a local server, but navigating to /admin just gives me the message:
"Sorry, You are not allowed to enter this section."
PLease advise.
Thanks
I had the same problem.Just register as a new user,and then go to your database ,in members table,and change the role to 'admin'.
#29
Posted 26 May 2011 - 02:06 PM
#30
Posted 30 May 2011 - 08:42 AM
Just in case anyone is having a problem with viewing the custom pages (clicking on the magnifying glass) that he creates on admin/custompages .It's probably because the custom URL rule for custom pages ,
[$_more[ "http://<lang:({$rule['language']})>.{$domain}/<alias:({$rule['alias']})>" ] = array('site/custompages/index');[/color][/size]
[size="2"][color="#1c2837"]is supposed to work only if the config params setting 'subdomain_languages' => true.
If you have set it to false,then you need another URL rule.So in protected/components/CustomUrlManager,just add below this line
$urlrules = array_merge( $_more, $this->rules );
one more line:
$urlrules = array_merge( $urlrules, array( "<alias:\w+>/*"=>'site/custompages/index') );[/size][/color][/size][/size][/color][/color][/size] [size="2"][color="#1c2837"][color="#000000"][size="3"][size="2"][color="#1c2837"][size="2"]
.I am not sure if this is the best solution,but made the view links on the management page work.
I think a nice feature missing would be for the end user to manage a menu,and add these custom pages on the menu.
But let's not get greedy,this application is packed with tons of features.
PS in code blocks there is some garbage printing ,all those size color etc-sorry that's not from me,its from the editor.Ignore it,
#31
Posted 31 May 2011 - 10:44 AM
#32
Posted 02 June 2011 - 02:24 AM
@mjmitche There is no download link, Google Code allows you to checkout the code using an SVN client.
#33
Posted 03 June 2011 - 12:36 AM
I have a question. How to configure the csrf protection in localhost? I can't register any member.
I got this error.
Quote
The CSRF token could not be verified.
#34
Posted 03 June 2011 - 01:19 AM
Sonny Lazuardi, on 03 June 2011 - 12:36 AM, said:
I have a question. How to configure the csrf protection in localhost? I can't register any member.
I got this error.
In protected/config/main.php, Cross-site Request Forgery Prevention is enabled:
'request' => array(
'class' => 'CHttpRequest',
'enableCookieValidation' => true,
[b][size="4"] 'enableCsrfValidation' => !isset($_POST['dontvalidate']) ? true : false,[/size][/b]
'csrfTokenName' => 'SECTOKEN',
'csrfCookie' => array( 'domain' => '.' . $current_domain )
),
Yii should take care of including the CSRF token var in form submissions .If it does not,like in registration,it's maybe because the form is not CActiveForm.
For custom ajax POSTs you have to go through every ajax link and make sure this POST var is included in data.
"SECTOKEN"=>Yii::app()->request->csrfToken
#35
Posted 04 June 2011 - 04:45 AM
Vince., on 26 May 2011 - 02:06 PM, said:
you got it wrong.
it's not a matter of putting in correct data previously imported from inserts.sql, it's a matter of getting through to login form.
i can not access page, it goves me error, when i try going to admin page.
the error reads: CException - Sorry, You are not allowed to enter this section.
and blank page further on.
nowhere to type in admin info.
also, i tried advise of creating new user and giving that user admin privileges.
no luck.
it gives me and error in hebrew when i try to register:
CSRF token can not be identified.
no luck so far: front-end is ok, but no access to admin.
i will keep trying...
===
ok. here few minutes later.
replacing developer's url in htaccess helped registering new user.
then changing new user to admin in the database produced "admin" link in the bottom of front-end, which actually brought me into the admin interface.
the whole story looks like a bug, but for me it's ok for now to look around inside.
thank you for sharing your code and good luck!
#36
Posted 04 June 2011 - 06:24 AM
Sonny Lazuardi, on 03 June 2011 - 12:36 AM, said:
I have a question. How to configure the csrf protection in localhost? I can't register any member.
I got this error.
You are probably testing on Chrome or IE.These browsers wont accept cookies from localhost,and the CSRF Token is set as a cookie.You should set up a local virtual host,for example I have setup a local domain yii.gr,so that cookies are set for Chrome and IE.
Cheers
#37
Posted 04 June 2011 - 10:02 AM
1. Why is the captcha always failed to be validated?
Is it related to the cache?
2. And how to disable cache for this CMS?
#38
Posted 05 June 2011 - 06:28 PM
To get wordpress, I do
svn checkout http://core.svn.wordpress.org/trunk/
but what would I do to get this Yii application?
#39
Posted 05 June 2011 - 06:41 PM
Quote
svn checkout http://yiiframework-co-il-cms.googlecode.com/svn/trunk/ yiiframework-co-il-cms-read-only
#40
Posted 07 June 2011 - 06:20 AM
Edit: Ok, so I got past (or just ran away from) that error by disabling CsrfValidation in the main.php configuration file. However, now the CAPTCHA work keeps on saying that it's wrong. Please help! oh, and one more thing. When I do the Yii Requirements test, it says "warning" for Memcache extension and APC extension. Could that be the cause of this frustration?

Help


















