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

Discussion in 'XenForo Questions and Support' started by Mutt, Feb 27, 2011.

  1. Mutt

    Mutt Well-Known Member

    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
     
  2. Mike

    Mike XenForo Developer Staff Member

    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.
     
    Robert F Schmitz likes this.
  3. xmlxp

    xmlxp Active Member

    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-bottom1px solid @primaryLightish;
        
    font-size11px;
    }

    /*#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
    {
        
    padding2px 0;
    }

    #moderatorBar a
    {
        
    displayinline-block;
        
    padding2px 10px;
        
    border-radius3px;
    }

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

        
    #moderatorBar a:hover
        
    {
            
    text-decorationnone;
            
    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
    {
        
    displayinline-block;
        
    height16px;
        
    line-height16px;
    }

    #moderatorBar .itemCount
    {
        
    background: @primaryDark;
        
    padding-left6px;
        
    padding-right6px;

        
    text-aligncenter;

        
    font-weightbold;

        
    border-radius2px;
        
    text-shadownone;
    }

        
    #moderatorBar .itemCount.alert
        
    {
            
    background#e03030;
            
    colorwhite;
            
    box-shadow2px 2px 5px rgba(0,0,00.25);
        }

    #moderatorBar .adminLink
    {
        
    floatright;
    }

    #moderatorBar .permissionTest,
    #moderatorBar .permissionTest:hover
    {
        
    background#e03030;
        
    colorwhite;
        
    box-shadow2px 2px 5px rgba(0,0,00.25);
        
    font-weightbold;
    }
     
  4. xmlxp

    xmlxp Active Member

    that option would reset all tamplates including the customized one's ?
     
  5. Mutt

    Mutt Well-Known Member

    big thanks to both of you
     
  6. Mutt

    Mutt Well-Known Member

    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
     

Share This Page