empty text php code 2nd edtion book

Status: 
Open
Question: 

I can't get the php code to work in views photogallery (or avatar). I use the code from the book and I get this back:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/herus/public_html/storymyne.com/includes/common.inc(1685) : eval()'d code on line 10

I've messed around quite a bit. Have tried enabling clean url's, doesn't help. In avatar view I forced it to show the avatar by using html code instead of the php from the book.

Thanks in advance

Responses

1. You need to change the single quotes

The single quotes in the book copy wrong if you copy/paste from PDF. You need to change them from ’ TO '

Took me awhile to figure that one out too - should have been less lazy and typed it! ;-)

2. That did it

Thanks a lot

3. Yes!

I also bumped into this problem. Good to see Dorien's support!

4. Hey!

I answered that question, not Doren! ;-p

5. Oeps.

I see, somehow I got confused... Thanx ozish!