Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How do I control the order/CSS of profile page add-ons?
I'm trying to put together a nice layout for my users profile pages and it feels like I'm hitting my head against a brick wall because I just don't understand how the page is being generated.
I'm running the profile page addon, delicious, latest blog entries, flickr and the Wall. When I activate them, they show up in the AccountHistory div on the right.
1. Why do they show up there? Can I have one of them show up under the Account Profile? Where's the setting that tells it to show up in AccountHistory?
2. What controls the order they're displayed in? I can't find this anywhere.
3. Finally, I'm having a major CSS headache. All 4 of the components are set to display:block at the moment. They stack nicely. However the first element on the right side, Flickr, steals its height from the account profiles div to its left. Why? How do I stop this? It's driving me insane! Why does it copy the height of the element to the left of it?
I'm hoping figuring out the first two things will lead to info that will solve the third. If anyone can answer my question on #3 though, that'd be great too!
You can see what I'm up against at: http://www.methodsreporter.com/talk/account.php?u=1
I look forward to some pointers...
0
This discussion has been closed.
Comments
take that out and then add height:160px to #flickrstream
how do they show up there.
well the extension developers tell it so.
open up account_profile.php in themes folder.
in that file where ever u see $this->CallDelegate() thats where u can add stuff.
one of the calldelegates is $this->CallDelegate('PostProfileRender');
the Flickr stream extension attaches itself to this delegate by using
$Context->AddToDelegate('Account', 'PostProfileRender', 'Account_RenderFlickrPhotostream');
The order is controlled based on which extension u enable first simple as that.
U want the flickr stream to be last, then enable it last
why are they always on the right side of account profile
well thats how the css is,
html > body #AccountHistory margin-left:300px !important;
this css puts a 300px left margin to account history. thats why its always on the right
change css to make it appear under account profile
any more questions?
Posted: Saturday, 24 March 2007 at 2:46PM (AEDT)