drupalfun.com
empty text php code 2nd edtion book
Submitted by executrex on Sun, 05/16/2010 - 00:49
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
Related Questions
Responses
3. Yes!
Submitted by SirDrupalot on Wed, 06/02/2010 - 09:59.
I also bumped into this problem. Good to see Dorien's support!
5. Oeps.
Submitted by SirDrupalot on Fri, 06/04/2010 - 08:54.
I see, somehow I got confused... Thanx ozish!


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