drupalfun.com
Profile Block parse error
Submitted by charos on Wed, 02/18/2009 - 05:31
Status:
Solved Question:
Just like in default avatar , I get a parse error: syntax error, unexpected T_STRING in /drupal/includes/common.inc(1648) : eval()'d code on line 7
PHP code:
<?php
global $user;
$myuid= $user->uid;
$node= content_profile_load(profile, $myuid);
//profile above=the name of our content type
$profileid= $node->nid;
print l(’My profile’,’node/’.$profileid);
//l() is a function provided by Drupal that creates a link.
//l(link display text, path after main path)
?>
Any ideas?


1. Try to type the ' again. If
Try to type the ' again. If your pdf reader displays them as "curly", they will produce errors.