Drupal How to print variable profile in block -> Its my roack and roack ways.. ahahaha

webadmin's picture
Drupal

This my explanation how to print variable $profile user on my block.. free override snippet variable $$$$$ ehhehhehe,
Add new block then Snipp this sample code on your block kokokok..

<?php
global $user;
$account = profile_load_profile($user); //-> load profile API D6
print dsm($account); //-> use Devel Module for inspect $$

//print dpr($variable); -> use Devel Module for inspect $$

print "";
//print_r ($form); -> not work
print "";

//user_edit($account, $category = 'account'); -> from D6 API
print user_edit($user, $category = 'your_profile_field_category');
//print user_edit($account, 'SEO'); -> just example i have SEO cat field

print 'VARDUMP USER';
print '';
var_dump($user); //-> ayesss
print '';

print 'VARDUMP PROFILE';
print '';
//var_dump($profile); -> not work
print '';

print 'VARDUMP ACCOUNT';
print '';
//var_dump($account); -> not work
print '';
?>

good adayyy

PS : replace "/< pree >/" to "/< pre >/" i ve got error parsing with syntaxhighligter ..eergh

Baca Juga