[buddypress-dev] modifications to bp-xprofile-templatetags.php

Bryan Phelps bryanphelps at gmail.com
Tue May 27 19:42:38 GMT 2008


The template tags are new to me.  Can someone explain the purpose and how
they are used or point me to some documentation?

On Tue, May 27, 2008 at 1:18 PM, Andy Peatling <andypeatling at automattic.com>
wrote:

> On 27-May-08, at 10:15 AM, David J. Bisset wrote:
>
>> Want some feedback on this. I needed to do some logic via php on my
>> homepage/profile page of each blog/account. The functions in
>> bp-xprofile-templatetags simply didn't give an option to return a value,
>> only output it. So i made the following changes: [...]
>>
>
> I'm just wondering what situation you would need to return and not echo?
> The template tags are designed to function within 'the loop' and just spit
> out the right information. Usually you'd structure your HTML around this,
> and then call the template tags in the places where you want to render the
> profile data.
>
> You might want to directly access the profile data object if you want to
> get hold of data instead of rendering it straight to the page. What do
> others think?
>
> Andy
>
> ---------
> Andy Peatling | Social Engineer | Automattic
> http://andyinlife.com
>
>
>
>
> _______________________________________________
> buddypress-dev mailing list
> buddypress-dev at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/buddypress-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://comox.textdrive.com/pipermail/buddypress-dev/attachments/20080527/f94886e9/attachment.htm


More information about the buddypress-dev mailing list