Xenforo Snow Images in Sideblocks.

Discussion in 'Guides, Tips & Tricks' started by Shelley, Dec 6, 2011.

    Shelley Designer

    Gender:
    Female
    Score:
    +454 / 11 / -3
    This tip will allow you to display a snow or any other effect you desire to appear in your sidebar blocks. In this example were are decorating the sidebar for the festive season.

    sidebar-xmas-decor.png [IMG]

    First, upload the image found in the attachment into your /overlay folder then paste the following css into your EXTRA.CSS template and your done.

    Code:
    .sidebar .section:before {
        content: "";
        display: block;
        height: 25px;
        margin-top: 5px;
        background: url("@imagePath/xenforo/overlay/sidebar_xmas.png") no-repeat scroll left transparent;
    }
    

    Attached Files:

    merk51 New Member

    Score:
    +4 / 0 / -0
    Although this doesn't quite sit right on the Social theme it still looks awesome. Thanks for the great work.

    Shelley Designer

    Gender:
    Female
    Score:
    +454 / 11 / -3
    If you provide a link merk i can take a look for you.

    merk51 New Member

    Score:
    +4 / 0 / -0
    I did attempt to reply to this and it came up with a database error.

    I think it didn't look right because I have had an early start to my christmas party that starts tomorrow. The link is http://community.sports-force.net.au - I am pretty sure it looks right and that I was just being an idiot. :D

    Shelley Designer

    Gender:
    Female
    Score:
    +454 / 11 / -3
    That is odd. I noticed your using the xfrocks framework add-on? Somehow it's conflicting or atleast it's not sitting before your .section. That said, it's working perfectly fine on Azhria's sideblocks at adminExtra who's using the same framework add-on.

    merk51 New Member

    Score:
    +4 / 0 / -0
    So what your saying is your pictures are discriminating against me because I am Australian? LOL no worries I will look into it and play around a little bit :) I am glad that someone else is seeing the issue though haha.

    Forsaken Administrator

    Gender:
    Male
    Score:
    +1 / 0 / -0
    Everyone should discriminating against Australians (excluding Kim) :cool: .

    Qwk86gn New Member

    Gender:
    Male
    Score:
    +2 / 0 / -0
    The way I added padding to the sidebar in the Social theme is making the snow display weird.

    Simple fix really.

    Add this to the EXTRA.css near the top after "/* Custom Properties */":

    Code:
    /* Custom Properties */
    .sidebar .secondaryContent
    {
        padding: 0 5px 5px 5px;
    }
    Add to Shelleys sidebar_xmas CSS class:
    Code:
    margin-left: 5px;
    That will get you this..

    sidebar.png

    merk51 New Member

    Score:
    +4 / 0 / -0
    Seems to work perfectly now - thank you to everyone. Now it looks a lot better :D

    Shelley Designer

    Gender:
    Female
    Score:
    +454 / 11 / -3
    I did originally tinker around (through firebug) and do what you posted when I visited merks site but I assumed he wanted it above outside the container block. But nice of you posting this. ;)

    *needs to add the rest of the smilies*

    Hav0c New Member

    Gender:
    Male
    Score:
    +0 / 0 / -0
    How can i add it so it can only show it for the visitor panel, members online , share this page, and recent threads or topics. :cool:

    Shelley Designer

    Gender:
    Female
    Score:
    +454 / 11 / -3
    I wouldn't know how to add it specifically to your latest threads sidebar because I don't know the class names I'm using a custom latest-x add-on . You could follow the example below and find out what class they are and add them in and insert the css into your Extra.css.

    Code:
    .sidebar .membersOnline:before, .sidebar .sharePage:before, .sidebar .visitorPanel:before {
        background: url("styles/test/xenforo/overlay/sidebar_xmas.png") no-repeat scroll left center transparent;
        content: "";
        display: block;
        height: 25px;
        margin-top: 5px;
    }
    

    Hav0c New Member

    Gender:
    Male
    Score:
    +0 / 0 / -0
    Thank you it worked, would be nice if i had an idea what the class name for the recent thread was, you wouldn't know ? im using the bd widget framework.

    Shelley Designer

    Gender:
    Female
    Score:
    +454 / 11 / -3
    Can you link me to your board I might be able to get what class it uses but knowing the framework it's a bit of a bitch doing anything to it which is why I had custom latest add-ons made here at bbsmiley.

    vanessa. New Member

    Gender:
    Female
    Score:
    +0 / 0 / -0
    Worked perfectly to me! Thanks for this ;)

Share This Page