• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Messed up a couple master templates & now I can't revert.

Mutt

Well-known member
#1
I've started playing around w/ the templates & after making some changes I didn't like I figured I'd revert them & start over. unfortunately there's no revert button because I've been editing the master style instead of the default one. oops

so now that I realize I shouldn't be doing that, what's the best way to get the factory templates back? right now I'm looking for moderator_bar.css & moderator_bar. if there's no built in way, can someone just post those 2 templates for me?

thanks
 

xmlxp

Active member
#3
here you go

moderator_bar.css
PHP:
<xen:require css="moderator_bar.css" />

<fieldset id="moderatorBar">
    <div class="pageWidth">
        <div class="pageContent">
            <xen:if is="{$visitor.is_admin}">
                <a href="admin.php" class="acp adminLink"><span class="itemLabel">{xen:phrase admin_control_panel}</span></a>

                <xen:if is="{$session.permissionTest}">
                    <a href="{xen:link misc/reset-permissions}" class="permissionTest adminLink OverlayTrigger">
                        <span class="itemLabel">{xen:phrase permissions_from_x, 'name={$session.permissionTest.username}'}</span>
                    </a>
                </xen:if>
            </xen:if>

            <xen:if is="{$visitor.is_moderator}">
                <a href="{xen:link moderation-queue}" class="moderationQueue modLink">
                    <span class="itemLabel">{xen:phrase moderation_queue}:</span>
                    <span class="itemCount {xen:if {$session.moderationCounts.total}, 'alert'}">{$session.moderationCounts.total}</span>
                </a>

                <a href="{xen:link reports}" class="reportedItems modLink">
                    <span class="itemLabel">{xen:phrase reported_items}:</span>
                    <span class="itemCount {xen:if {$session.reportCounts.total}, 'alert'}">{$session.reportCounts.total}</span>
                </a>
            </xen:if>

            <xen:hook name="moderator_bar" />

            <span class="helper"></span>
        </div>
    </div>
</fieldset>
moderator_bar
PHP:
#moderatorBar
{
    background-color: @primaryDarker;
    border-bottom: 1px solid @primaryLightish;
    font-size: 11px;
}

/*#moderatorBar
{
    box-shadow: 0 0 5px @primaryMedium;
    width: 100%;
    position: fixed;
    top: 0px;
    z-index: 100;
}

body
{
    padding-top: 25px;
}*/

{xen:helper clearfix, '#moderatorBar'}

#moderatorBar .pageContent
{
    padding: 2px 0;
}

#moderatorBar a
{
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
}

#moderatorBar a,
#moderatorBar .itemCount
{
    color: @primaryLighter;
}

    #moderatorBar a:hover
    {
        text-decoration: none;
        background-color: @primaryDark;
        color: @primaryLighterStill;
    }

/* TODO: maybe sort out the vertical alignment of the counters so they they are properly centered */

#moderatorBar .itemLabel,
#moderatorBar .itemCount
{
    display: inline-block;
    height: 16px;
    line-height: 16px;
}

#moderatorBar .itemCount
{
    background: @primaryDark;
    padding-left: 6px;
    padding-right: 6px;

    text-align: center;

    font-weight: bold;

    border-radius: 2px;
    text-shadow: none;
}

    #moderatorBar .itemCount.alert
    {
        background: #e03030;
        color: white;
        box-shadow: 2px 2px 5px rgba(0,0,0, 0.25);
    }

#moderatorBar .adminLink
{
    float: right;
}

#moderatorBar .permissionTest,
#moderatorBar .permissionTest:hover
{
    background: #e03030;
    color: white;
    box-shadow: 2px 2px 5px rgba(0,0,0, 0.25);
    font-weight: bold;
}
 

Mutt

Well-known member
#6
Go to <URL to your XF>/install/, log in, and choose to reimport the master data. That will restore the data without overwriting anything else.
that appears to have fixed it. it also rebuilt phrases so I lost custom phrases & it affected some of my style changes. not sure why it's just some. I must have done the same thing & accidentally edited the master set. still, it's just a test board so I'm glad to have it straightened out.

thanks