Hello there, I hope one of your users can help me!
I’m running a website with Joomla and I have the Community Builder extension (that is much like Facebook) along with 3rd party integrations that enable certain tabs to display in the user’s profile.
The problem I’m having with one of the 3rd party plugins in that the layout is changing between users that are logged in and of whom the profile belongs to, and those who are viewing the page that are just viewing the other person’s profile. I have located the problem to be within the “if( $this->isOwner( $user ) )” function that is towards the beginning of the php code. Please take a look at the image examples below to understand what I mean in terms of the effect it is having on the layout for unregistered and registered/logged in users:
User owned profile layout: http://www.ergogen.com/user-owned-profile.jpg
Viewing someone elses profile layout: http://www.ergogen.com/viewing-another-users-profile.jpg
This is the code that enables the extra content for the ‘owner’ of the profile
[php]ob_start();
if( $this->isOwner( $user ) )
{
?>
(the dashboard part gives options for the owner to write blogs and edit settings when they are viewing their own profile).
All I require is this first div
to be part of the content that is viewable to ‘non-owners’ AS WELL AS OWNER’S in order for everyone to see the same correct layout.However, when I place this further down in the code that is viewable by everyone instead of where it currently is, this interrupts all of the content that is for ‘owner viewing only’ on the profile.
So the question is, where do I place the
so that it works for both ‘owner’ and ‘non-owner’? Or how else do I alter the code so that the div is viewable by everyone…Thank you very much for your help, sorry if I haven’t explained it so well…