Bootstrapped Yii blog demo with facebook and persona login

That is great…

But now it gives me Undefined variable: facebookid…in layout/main.php…

that is however very weird.

Are you logged into facebook when u get the error? which row?

no. I get this error after I filled in my Facebook app id and secret key.

hmm, row 47+48:




if ( Yii::app()->facebook->getUser() == 0){

				$facebookid=false;

			}



change into




$facebookid = true;

if ( Yii::app()->facebook->getUser() == 0){

				$facebookid=false;

			}



More improvements done, I had missed some stuff.

Thank you so much.

Would you please help me with your rating post ?

Thanks you sooooooooooooo much!!!

Your post is always amazing!

http://www.yiiframework.com/forum/index.php/topic/29851-complete-guide-for-multiple-cstarratings-on-same-page/

I have 2 questions in your post…

1: about my codes… it’s not working…almost same as yours …always give me some strange errors.

2.About your comment "Note: this is not optimized for performance." why…?

Thanks so much!

Which file …?

Best,

"But now it gives me Undefined variable: facebookid…in layout/main.php… "

Your quote, so its in that file.

Thanks…That fixed my problem.

.would you please also look at the post about your rating tutorial…?

http://www.yiiframework.com/forum/index.php/topic/29851-complete-guide-for-multiple-cstarratings-on-same-page/

I know you are really busy…

I really appreciate it if you can help me out.

Hi Sampa

i get a 500 internal server exception when i try to run this code …

can u help me out why??

A newbie… Rathan Kalluri

Thanks for the blog example, it really help me to learn more about yii(especially the ajax crud and xupload). I have installed it, but i have some issues. Some of the features don’t work. Here are some of my problems,

[list=1]

[*]I try to access actions create from PostController, but it brings me into error page that said The system is unable to find the requested action “create”. I look into PostController, and found actionAjax_Create action instead. Does this action has something to do with ajax crud ? But what the problem so that my installation doesn’t work?

[*]I also try to access FileController, but it doesn’t have index view. Is there some things wrong with my installation ?

[/list]

I’ll really appreciate your help, and thanks Sampa for the yii blog example

The ajax crud means ajax create read update delete, means they are all on the same page.

you reach it by going to /post/admin

FileController is not suppossed to have a index view:) or, rather, I haven’t made one.

Since I only use that controller for file uploads, and in my own projects functions related to file handling :)

I still can’t access the ajax crud. I click the ‘create post’ button in /post/admin, but it doesn’t work. Tried update,delete, and view, it brings me into 404 error page that said The system is unable to find the requested action “12”.

Hai, I’m new in Yii. I want to ask how to disable facebook and persona temporary. I found it annoying that every page request it needs to search for facebook, persona, and other online service, that would make page my development become slow on my local machine. Thank you before…

Look in protected/components/controller.php.

I can disable facebook lookup by commenting the line 26


//$this->facebookCheck();



but I can’t find a way to disable for browserid.org. Can you help me to disable browserid.org too? Thank you.

I can disable facebook lookup by commenting the line 26


//$this->facebookCheck();



but I can’t find a way to disable for browserid.org. Can you help me to disable browserid.org too? Thank you.

protected/views/layouts/main.php

comment out:

<!-- for browserID login aka Mozilla Persona -->


<script src="https://browserid.org/include.js" type="text/javascript"></script>  

and remove the link/logo

HEllo mates,

I’ve gotta problem importing the db from http://pastebin.com/3Ub9xAG3#

Error: #1005 - Can’t create table ‘testdrive.tbl_comment’ (errno: 150)

Any clue?

Thanks in advance!

EDIT: Easy fix, just cut tbl_commentreate query and insert data and move after tbl_post creation and insertion.

So poor aproximation, it doesn’t worth the time sorry.