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.
Options

Getting MeBox in-line (as it's done here on this forum)

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?

Comments

  • Options
    hgtonighthgtonight ∞ · New Moderator
    edited May 2013

    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.

  • Options
    MasterOneMasterOne ✭✭
    edited May 2013

    @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.

  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    @MasterOne

    If you get it figured, it would be a nice addition to the Vanilla Wiki.

  • Options

    @whu606 said:
    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.

  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP
    edited May 2013

    @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.)

  • Options
    hgtonighthgtonight ∞ · New Moderator

    @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. :D

    @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.

  • Options

    @MasterOne thanks you!

Sign In or Register to comment.