Mod Table Assistance Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
3 posters

    Mod Table Assistance

    Beyonder
    Beyonder
    Forumember


    Male Posts : 723
    Reputation : 29
    Language : English
    Location : Beyond Realm

    Solved Mod Table Assistance

    Post by Beyonder Tue 13 Oct - 0:05

    I have installed a Mod Table for threads and i wanted to know how do i get to look like this......
    Mod Table Assistance 0000210

    Here is the code......
    Code:
    jQuery(function(){
      _userdata.user_level && jQuery(function() {
        /* mod tables */
        jQuery('body').append('<div id="fa_modtable" class="select" style="visibility:hidden;width:auto;text-align:left;"><div class="modOption" id="MTable1">Locked</div><div class="modOption" id="MTable2">Archived</div><div class="modOption" id="MTable3">Information</div>');
        jQuery('.sceditor-group:last-child').after('<div class="sceditor-group" id="fa_modtools"><a class="sceditor-button" title="Mod Tables" onclick="selectWysiwyg(this, \'fa_modtable\');"><div style="background:url(http://i56.servimg.com/u/f56/18/45/41/65/modera10.png) no-repeat center;"></div></a></div>');
        /* mtable functions */
        jQuery('#MTable1').click(function() { /* Solved */
          jQuery('#text_editor_textarea').sceditor('instance').insertText('[table class="notice-locked"][tr][td]Thread Lock:','[/td][/tr][/table]');
        });
        jQuery('#MTable2').click(function() { /* Denied */
          jQuery('#text_editor_textarea').sceditor('instance').insertText('[table class="notice-archived"][tr][td]Thread Archived:','[/td][/tr][/table]');
        });
        jQuery('#MTable3').click(function() { /* Information */
          jQuery('#text_editor_textarea').sceditor('instance').insertText('[table class="notice-info"][tr][td]Text for Information here','[/td][/tr][/table]');
        });
        /* hide list onclick */
        jQuery('.modOption').click(function() { jQuery('#fa_modtable').css('visibility','hidden'); });
      });
    });
    brandon_g
    brandon_g
    Manager
    Manager


    Male Posts : 10113
    Reputation : 923
    Language : English
    Location : USA

    Solved Re: Mod Table Assistance

    Post by brandon_g Tue 13 Oct - 0:21

    Hello,
    Is there any css installed for it? If so, may you post it up? What is the url to your forum?

    -Brandon



    Mod Table Assistance Brando10
    Remember to mark your topic Mod Table Assistance Solved15 when a solution is found.
    General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

    Mod Table Assistance Scre1476
    Team Leader
    Review Section Rules | Request A Review | Sticker Points
    Beyonder
    Beyonder
    Forumember


    Male Posts : 723
    Reputation : 29
    Language : English
    Location : Beyond Realm

    Solved Re: Mod Table Assistance

    Post by Beyonder Tue 13 Oct - 0:23

    I have no CSS for the mod tool.

    Death Battles
    brandon_g
    brandon_g
    Manager
    Manager


    Male Posts : 10113
    Reputation : 923
    Language : English
    Location : USA

    Solved Re: Mod Table Assistance

    Post by brandon_g Tue 13 Oct - 0:25

    Interesting, it would be css that would probably be needed to style it.

    -Brandon



    Mod Table Assistance Brando10
    Remember to mark your topic Mod Table Assistance Solved15 when a solution is found.
    General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

    Mod Table Assistance Scre1476
    Team Leader
    Review Section Rules | Request A Review | Sticker Points
    Beyonder
    Beyonder
    Forumember


    Male Posts : 723
    Reputation : 29
    Language : English
    Location : Beyond Realm

    Solved Re: Mod Table Assistance

    Post by Beyonder Tue 13 Oct - 0:29

    I knew it and I'm not good at that lol.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Mod Table Assistance

    Post by Ange Tuteur Tue 13 Oct - 10:24

    Indeed, you'll need CSS to style each table class. For example, add the following to your stylesheet :
    Code:
    .notice-locked {
      color:#FFF;
      font-weight:bold;
      background:#FF5858;
      border-radius:3px;
      margin:3px;
      padding:3px;
    }

    .notice-archived {
      color:#FFF;
      font-weight:bold;
      background:#FF5858;
      border-radius:3px;
      margin:3px;
      padding:3px;
    }

    .notice-info {
      color:#FFF;
      font-weight:bold;
      background:#07A0DD;
      border-radius:3px;
      margin:3px;
      padding:3px;
    }

    After that, you just need to change the background color and add an image for each table.
    Beyonder
    Beyonder
    Forumember


    Male Posts : 723
    Reputation : 29
    Language : English
    Location : Beyond Realm

    Solved Re: Mod Table Assistance

    Post by Beyonder Tue 13 Oct - 18:58

    How do i get images?
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Mod Table Assistance

    Post by Ange Tuteur Tue 13 Oct - 19:05

    You can make them, request them, or find them on the web. Here's such a site which offers various images : http://www.iconarchive.com/
    brandon_g
    brandon_g
    Manager
    Manager


    Male Posts : 10113
    Reputation : 923
    Language : English
    Location : USA

    Solved Re: Mod Table Assistance

    Post by brandon_g Tue 13 Oct - 20:02

    Ange Tuteur wrote:You can make them, request them, or find them on the web. Here's such a site which offers various images : http://www.iconarchive.com/

    Ah yes Ange, Icon archive, great site! That is where I get all the images for the sections on my forum. Great stuff there Very Happy.



    Mod Table Assistance Brando10
    Remember to mark your topic Mod Table Assistance Solved15 when a solution is found.
    General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

    Mod Table Assistance Scre1476
    Team Leader
    Review Section Rules | Request A Review | Sticker Points
    Beyonder
    Beyonder
    Forumember


    Male Posts : 723
    Reputation : 29
    Language : English
    Location : Beyond Realm

    Solved Re: Mod Table Assistance

    Post by Beyonder Tue 13 Oct - 20:55

    Lol I mean how do I add images to the codes.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Mod Table Assistance

    Post by Ange Tuteur Tue 13 Oct - 23:51

    In the script where you see these two tags :
    Code:
    [tr][td]

    add another cell between them, like this :
    Code:
    [td][/td]

    and then insert the image tags + image URL so you get this :
    Code:
    [td][img]URL[/img][/td]

    or it would look like the following in the script for a better example.
    Code:
    insertText('[table class="notice-locked"][tr][td][img]URL[/img][/td][td]Thread Lock:','[/td][/tr][/table]');
    URL being the URL of your image.
    Beyonder
    Beyonder
    Forumember


    Male Posts : 723
    Reputation : 29
    Language : English
    Location : Beyond Realm

    Solved Re: Mod Table Assistance

    Post by Beyonder Tue 13 Oct - 23:54

    Solved! Thanks again!
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Mod Table Assistance

    Post by Ange Tuteur Wed 14 Oct - 0:22

    You're welcome. Smile

    Topic archived