HI,

I know, that I can call in the facebook status function manually on my user-profile-page by <?php print $profile[facebook_status]; ?>

But can I also get the elements in this variable one by one, and how has the php look for that? (I guess, that I need just one example).

Can I jsut extend my "print..."-line with some information? I don´t really know the syntax of PHP, so im just tried blindly something like <?php print $profile[facebook_status]->facebook_status_slider; ?> with no result, because I guess, what am I trying is totally wrong. But I hope this example shows you, what I´m trying to do.

One reason is, that I want to get rid of the "Status"-Title in h3, the second is that I dont want a link on the name in the profile.. because it´s just linking to itself.

thanks for any help,
Marc

Comments

icecreamyou’s picture

Status: Active » Fixed

You should not be using RC2, which is not supported. Please upgrade to 2.0.

What you really want is to modify the form, for which you should use a module. Take a look at the facebook_status_box() function in facebook_status.module and then read up on hook_form_alter(), hook_form_FORM_ID_alter(), and examples of using them. (Technically you can also override forms from within a theme but it is not recommended unless you are building a generic theme for public distribution.)

The reason for this approach is that what you want to modify is part of a form. If you want to modify things that aren't forms, you should override FBSS's theme functions in your theme's template.php file. (FBSS actually wraps the status update form in a theme function, but the theme function isn't really relevant to what you want to do.)

...

Having said all that, the "Status" in H3 tags is something separate. The word "Status" is suggested by FBSS, but the formatting (i.e. wrapping it in H3 tags) is part of the core User module, and I'm not sure what theme function generates that.

karc2008’s picture

ok thanks,

already the update helped. The Html-Code changed a lot it seems. Perhaps now, I don´t even need altering the form anymore. Normally I see DEV as a warning and I always use the last "green"-version.

thanks again,
Marc

icecreamyou’s picture

Happy to help.

The last stable ("green") version is 2.0, not RC2, but the dev builds are newer (and almost always stable) so if you've switched to that you can stick with it.

Status: Fixed » Closed (fixed)
Issue tags: -title, -profile, -h3, -getting rid of, -one by one

Automatically closed -- issue fixed for 2 weeks with no activity.