Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Getting MeBox in-line (as it's done here on this forum)
MasterOne
✭✭
I want to reproduce the MeBox behavior as it's done here, so having the breadcrumb and MeBox in a row, and I think it should be possible just by some CSS magic, although it looks tricky to me (not having the insight).
In me.php there is the following part I don't understand:
if ($this->CssClass) $CssClass .= ' '.$this->CssClass;
It's appended later at echo '<div class="MeBox'.$CssClass.'">';
, which seems to be the key. So where is this CssClass coming from?
In my setup the resulting div class comes only as "MeBox", however here on this forum setup it comes as "MeBox Inline FlyoutRight", which means the "Inline FlyoutRight" is appended by $CssClass.
Any idea?
0
Comments
In this case it is set in the default.master.tpl file; something like
{module name="MeModule" CssClass="Inline FlyoutRight"}
.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight
I just wanted to reply that I have found out the solution myself by trying, but you beat me to that
This is so exciting, looks like I'm really getting there. You have been a great help so far, thanks a lot.
@MasterOne
If you get it figured, it would be a nice addition to the Vanilla Wiki.
I am not familiar with writing to a Wiki (I know, I really should start participating at one point), and it really is as simple as just changing
{module name="MeModule"}
to
{module name="MeModule" CssClass="Inline FlyoutRight"}
I guess this does not qualify for an own Wiki article, but you may want to add that info to your Custom Themes guide.
@MasterOne
No one is, until they start!
I'd never cotnributed to a Wiki before the Vanilla Wiki.
Take the plunge, and add your code to the Custom Theme pages! (I'll do it if you don't get around to it, but the more people who add bits into the WIki, the faster it will grow, and the more use it will be.)
@MasterOne Don't worry about format or "the right place" to put it. We need more content up on the wiki. I am happy to format it to fit.
@why606 Thanks for evangelizing the wiki.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@MasterOne thanks you!