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.

Mod Table Assistance

3 posters

Go down

Solved Mod Table Assistance

Post by Beyonder October 13th 2015, 12:05 am

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'); });
  });
});
Beyonder
Beyonder
Forumember

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

http://fictionalomniverse.forumotion.com/

Back to top Go down

Solved Re: Mod Table Assistance

Post by brandon_g October 13th 2015, 12:21 am

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
brandon_g
brandon_g
Manager
Manager

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

https://www.broadcastingduo.com

Back to top Go down

Solved Re: Mod Table Assistance

Post by Beyonder October 13th 2015, 12:23 am

I have no CSS for the mod tool.

Death Battles
Beyonder
Beyonder
Forumember

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

http://fictionalomniverse.forumotion.com/

Back to top Go down

Solved Re: Mod Table Assistance

Post by brandon_g October 13th 2015, 12:25 am

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
brandon_g
brandon_g
Manager
Manager

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

https://www.broadcastingduo.com

Back to top Go down

Solved Re: Mod Table Assistance

Post by Beyonder October 13th 2015, 12:29 am

I knew it and I'm not good at that lol.
Beyonder
Beyonder
Forumember

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

http://fictionalomniverse.forumotion.com/

Back to top Go down

Solved Re: Mod Table Assistance

Post by Ange Tuteur October 13th 2015, 10:24 am

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.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Mod Table Assistance

Post by Beyonder October 13th 2015, 6:58 pm

How do i get images?
Beyonder
Beyonder
Forumember

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

http://fictionalomniverse.forumotion.com/

Back to top Go down

Solved Re: Mod Table Assistance

Post by Ange Tuteur October 13th 2015, 7:05 pm

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/
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Mod Table Assistance

Post by brandon_g October 13th 2015, 8:02 pm

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
brandon_g
brandon_g
Manager
Manager

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

https://www.broadcastingduo.com

Back to top Go down

Solved Re: Mod Table Assistance

Post by Beyonder October 13th 2015, 8:55 pm

Lol I mean how do I add images to the codes.
Beyonder
Beyonder
Forumember

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

http://fictionalomniverse.forumotion.com/

Back to top Go down

Solved Re: Mod Table Assistance

Post by Ange Tuteur October 13th 2015, 11:51 pm

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.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Mod Table Assistance

Post by Beyonder October 13th 2015, 11:54 pm

Solved! Thanks again!
Beyonder
Beyonder
Forumember

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

http://fictionalomniverse.forumotion.com/

Back to top Go down

Solved Re: Mod Table Assistance

Post by Ange Tuteur October 14th 2015, 12:22 am

You're welcome. Smile

Topic archived
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum