Open Source Yii CMS - GXC CMS

Great job, mr80. Thank you very much and continue this project please…

Thanks.How to logon backend?

Hi all,

I have some news:

1/ I have deployed a small application for learning English vocabulary - Mywordbook.com (http://mywordbook.com).

2/ It has been built based on the gxccms.

3/ I want to use this app as a place where I can create more social features (message, news feed,…) for the cms, apply some optimization techniques (both frontend and backend) to improve the cms speed, and mobile versions.

Currently I have optimized a little Frontend (Mod_defalte, mod_expires), limit the requests by merging css,js files (thanks to minscript extension) . Going to optimize html and css.

4/ Going to install apc cache, and apply some cache strategy for page render and word definition.

If you have any ideas/suggestions about this project, please contact me.

Have a nice day.

thank you it save my life from my boss :D

but one think i use php 5.2 it have error when create post


syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM on Object.php line 604 in core/cms1.0/models

i tried fix by this




i change this

return $class_name::buildLink($this);


to

return $class_name->buildLink($this);



and it work!!

is that a good way to fix?

im the new for yii and kind of oop

can any one suggests me ;D

Upgrade your PHP to 5.3.10 ( btw, it has a security problem with php under php5.3.10)

it shared host i think i can’t do any thing about that but thank for your suggests i will pressure my hosting to upgrade it :P :P

i don’t know it a bug or i do something wrong in script

when i login with email at backend i can not user permission it said i don’t have permission

but if i login with username it work ok :rolleyes:

Hello mr80

Congratulations for your open source GXC

After installing the core and the sample project, i have some problems

  • in the frontend, I see the half of the page index

(see my screen 1

)

  • in the backend, i logged (ok).

now i try to create an article; the page become white

(http://localhost:82/Demo%20-%20Yii%20-%20GXC-CMS/demo/backend/beobject/create/type/article)

for infos,

  • Apache/2.2.17 (Win32) PHP/5.2.17

  • backend/frontend index.php, I defined the path define(‘CORE_FOLDER’,dirname(dirname(dirname(FILE))).DIRECTORY_SEPARATOR.‘core’);

thanks you for your responses

Cyphos

France

hay cyphos if you use php 5.2 you will get error same me see my post above it may solve your problem.

but the best way is like mr80 say should upgrade to php 5.3 but if you use on sharedhost i think nothing can do about that

now i install this on myvps and it work perfect hope this can help :D

hello unine

I changed of version PHP with Uwamp: now 5.3.5

and i see some errors

thanks you

Hello ‘world’,

;) I tried this CMS too and got an error that is also reported earlier:

I got this error:


Declaration of GxcUser::login() should be compatible with that of CWebUser::login()

On a XAMPP config with PHP 5.3.8

Can anyone help me solve this?

Try with this bros:

Changed php.ini setting from:

error_reporting = E_ALL * E_STRICT

to:

error_reporting = E_ALL ^ E_STRICT

Thank you! I have changed it somewhat different:

The login function of GxcUser needed a default value for the ‘duration’ param to be fully compatible with CUser. So I changed the function to:


        public function login($identity, $duration=0)

        {

                return parent::login($identity, $duration);

				

        }

[size="3"]Another question [/size]

How does it work to get pages with different translations? I got stuck in te ‘backend’ trying to set the ‘Number of Language Available’ to more than 2. But it gave an error:


Site currently supports only 2 Languages

So I changed that number to 1 and saved: no error. But right after that I tried to set it back to a value of ‘2’, now it gives me this error(!):


Site currently supports only 1 Languages

There is also a table gxc_language, filled with Vietnamese and English, but I cannot find an admin action in the code / CMS where the languages can be altered.

What do I have to do to get a multilanguage website? I hope you can help me out, help is appreciated!

@ametad:

Updated the core with your fix. Thank you.

For languages, I haven’t made CRUD for language table. I edit it manually in database. I added new language to db if neccesary.

I think you can implement it in the backend.

Thank you for your ideas. I have tried to add one more language: dutch (I am from Holland you see :) ) In the table gxc_language an extra row was added (3, nl_nl, Dutch, 0, 1, nl) but in the backend it still gave the error of:


Site currently supports only 2 Languages

The error came after I added the extra language. Why is this happening?

I have a silly bug at https://github.com/nganhtuan63/GXC-CMS/blob/master/core/cms1.0/models/Language.php - line 119.

Now I comment the limit line.

Nice :) Now it works!

Mr80,

Your CMS looks realy nice! I hope I can ask you questions about it some more, because I am exploring it right now. I also try to help you too by clearing out some faulty English grammar.

Question: what about the .ini files in some of the directories?

And right away another post:

How did you plan to implement User login functionality on the frontend? I see the following Blocks implying user login functionallity: singin, singup, reset_password, recover_password, profile, account, active_user. On a testpage with the Signup Block on it, an error is given:


Property "UserRegisterForm.display_name" is not defined. 

What I want is a way for frontend users to sign-up (before) so the can react on a product on the website, that way I have the information of someone stored and do I know who reacted.

I also want translation on the frontend, just the same as on the backend with a drop-down. Can you tell me your ideas get this working?

Thank you in advance.

Greetings from Holland.

Hi ametad,

1/ Ini files:

Ini files are used to define some information.

  • For example, ini file in a block in front_blocks folder is used to define the block id, block name and the class associated with the the Block.

  • The ini file in the front_layouts folder defines the regions of the layout…

2/ For user sign up, sign in:

I have commited the sample project with blocks like Sign up, Sign in, Reset password,…that I used for mywordbook.com project. You can check it. The mail won’t work cause I use Amazon SES, you can disable it.

3/ Multiple languages frontend:

  • Currently as you can see, the page can be translated into other language, these pages connect with other pages by the same guid.

  • To translate stuff related to t(‘message’),…I am thinking a solution for this.