News:

Create A Forum Installed

Author Topic: [Code] Color Topic Tags  (Read 804 times)

0 Members and 1 Guest are viewing this topic.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
[Code] Color Topic Tags
« on: November 04, 2012, 11:33:01 pm »
Description: When viewing a board, topics with any tags of your choice will be colored. When writing topics, tags must be in brackets [TAG] AND is case-sensitive in order to be colored.


This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/

Footers:
Code: [Select]

<script>function xboi209_topictags(tag,color) {$("table.table_grid > tbody > tr > td.subject.windowbg2:contains('["+tag+"]')").closest("tr").children().css("background-color",color);}
xboi209_topictags("TAG","COLOR");
</script>

Editing instructions: Add more of these lines to the end of the code, xboi209_topictags("TAG","COLOR");
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Share on Facebook Share on Twitter


 

Related Topics

  Subject / Started by Replies Last post
18 Replies
3603 Views
Last post September 18, 2010, 09:01:07 pm
by simply sibyl
6 Replies
1502 Views
Last post April 14, 2012, 06:32:00 pm
by conductor
9 Replies
2767 Views
Last post March 13, 2013, 10:51:19 pm
by aIURbliS
0 Replies
793 Views
Last post November 06, 2012, 02:26:43 am
by aIURbliS
1 Replies
2743 Views
Last post March 04, 2015, 02:13:43 pm
by CreateAForum