We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Post filter ONLY inside the tabs
Topic Started: Dec 16 2011, 04:22 PM (241 Views)
hao77
Member Avatar
Member
[ * ]
Board Address:
Board Software: ZetaBoards.
Description: A code that works like Viral's Post Filter, but that filters only the content inside the tabs of Quozzo's Tabs Code.

Basically I'd like to request a code that filters the content only inside the .tabdiv of the Tabs BBCode.

This should be very simple to do but I understand nothing about (tried to make it alone but.. no) x)

Can someone help me please? (:
Edited by hao77, Dec 16 2011, 05:52 PM.
Offline Profile Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
Place it below the tabs mod code, or it wont find a .tabdiv for it to filter.
Code:
 
<script>
var toChange=[];tC=0;

toChange[tC++]=["[viral]","<span style='color:red'>Viral</span>"];
toChange[tC++]=["[other]","<span style='color:black'><b>other</b></span>"];

$(".tabdiv").each(function(i){$(toChange).each(function(e){$(".tabdiv").eq(i).html($(".tabdiv").eq(i).html().split(toChange[e][0]).join(toChange[e][1]));});});
</script>
Offline Profile Goto Top
 
hao77
Member Avatar
Member
[ * ]
Thank you so much Quozzo!! :D
Offline Profile Goto Top
 
Brendan
Member Avatar


Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic