The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    How to customize a administrator's post?

    avatar
    Dark Exorcist Official
    New Member


    Male Posts : 3
    Reputation : 1
    Language : English
    Location : I live in Tennessee, USA

    How to customize a administrator's post? Empty How to customize a administrator's post?

    Post by Dark Exorcist Official 19/6/2015, 10:00

    I was wanting to change the appearance of an admin post, pretty much make it look different from a regular member post. like for example. i got these screenshots from somebody else's post.


    Just a regular member post...
    How to customize a administrator's post? 111

    than here's an administrator's post....
    How to customize a administrator's post? 210

    So like how do I customize the post background i guess?
    Sir. Mayo
    Sir. Mayo
    Forumember


    Male Posts : 978
    Reputation : 90
    Language : English, Some french.
    Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

    How to customize a administrator's post? Empty Re: How to customize a administrator's post?

    Post by Sir. Mayo 20/6/2015, 00:18

    avatar
    Dark Exorcist Official
    New Member


    Male Posts : 3
    Reputation : 1
    Language : English
    Location : I live in Tennessee, USA

    How to customize a administrator's post? Empty Re: How to customize a administrator's post?

    Post by Dark Exorcist Official 20/6/2015, 08:14

    Kinda but when i tried to do what it says and go to see if the post like it is. and it hasn't changed.
    Mati
    Mati
    Active Poster


    Posts : 1928
    Reputation : 331
    Language : HTML, CSS & JavaScript
    Location : Forum Services

    How to customize a administrator's post? Empty Re: How to customize a administrator's post?

    Post by Mati 20/6/2015, 19:04

    Hi, @Dark Exorcist Official

    what is your forum version?
    avatar
    Dark Exorcist Official
    New Member


    Male Posts : 3
    Reputation : 1
    Language : English
    Location : I live in Tennessee, USA

    How to customize a administrator's post? Empty Re: How to customize a administrator's post?

    Post by Dark Exorcist Official 22/6/2015, 05:07

    Mati wrote:Hi, @Dark Exorcist Official

    what is your forum version?
    PunBB
    Mati
    Mati
    Active Poster


    Posts : 1928
    Reputation : 331
    Language : HTML, CSS & JavaScript
    Location : Forum Services

    How to customize a administrator's post? Empty Re: How to customize a administrator's post?

    Post by Mati 22/6/2015, 16:31

    Administration Panel > Modules > Javascript codes management > Create a new script

    Title : what you wish
    Placement : in all the pages
    Code:
    $(function() {
    $('.admin').closest('.post').addClass('st-answer');
    });

    Then CSS :
    Display > Pictures and colors > Colors > CSS stylesheet
    Code:
    .pun .post.st-answer {
        background-image: url("http://i19.servimg.com/u/f19/18/21/41/30/modo12.png");
        background-position: 0 100%;
        background-repeat: no-repeat;
        background-size: 100% auto;
    }

    Then wrap your administration rank around like this:
    Code:
    <span class="admin">Administrator</span>

    Then your done!

      Current date/time is 23/9/2024, 02:15