By Drake on
Hi guys
I've got a problem.
I try to theme my user profile page and I cannot figure out how to output the category title and value.
I have used this code:
foreach ($profile as $value => $data) {
if ($value == 'summary') {
echo $data;
}
if ($value == 'content_profile') {
echo $data;
}
}
This functions properly and I get the content displayed but I would like to get access to the $title and $value or each category.
for example in Summary you can find the entry "Guestbook", "Member" "Blog", etc...
I would like to output the Guestbook Member or Blog separately...
I've used this:
foreach ($profile as $value => $data) {
if ($value == 'summary') {
echo $data['title'];
echo $data['value'];
}
and tried also this:
foreach ($profile as $value => $data) {
foreach ($data as $item) {
echo $item['title'];
echo $item['value'];
}
}
But this does not work!!!
I get always an error!!!
Have someone a idea???
Comments
user-profile-category.tpl.php
“user-profile-category.tpl.php” presents profile category, so you can use it for theming the category name.
“user-profile-item.tpl.php" - Each profile item is rendered in this file.
In this template file you will find $title and $value for each profile Item, so you can change its look and feel from from here.
You can find both of these files in user module, copy them to your theme’s folder and customize it accordingly.
this was not I'm looking for....
user-profile-category.tpl.php is known to me but I don't want to style the default profile page but I want to theme my own user profile page.
Therefore i need to get access to the single titles and values...
As I wrote above the Guestbook entry is a part of Summary.
I would like to have guestbook as an "extended" area... and therefore I need to get access to title "guestbook" & gestbook value.
This both variables are stored in array but the array is multi dimensional adn it's a little bit difficult to output these both variables...
So I tried the code above (in my first message) but it does not work...
If someone have an idea please share it with me/us...
anyone?
has anyone an idea?