SMF For Free Support Forum
Signup For Free Forum
July 04, 2009, 11:34:09 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [Code] Add Text after Certain Catagory  (Read 818 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Offline Offline

Posts: 776


Do not PM me for Code Support or Request


View Profile
« on: July 23, 2007, 01:24:14 pm »

Add this to your headers if you don't have it:
Code:
<script src="jquery.js"></script>

Code:
<script>
function text_after_forum(forum,text) {
$(function() {
$("div.tborder:contains("+forum+")").after(text);
});};
text_after_forum("CATAGORY","TEXT");
</script>

Footers

This is just a random code I wanted to make, I doin't know why, just felt like it

CARAGORY = Put the catagory name you would like the text after
TEXT = The text that goes after the catagory, If you would like, you can use HTML.
« Last Edit: January 06, 2008, 02:06:16 pm by Agent Moose » Logged

Want to know how good your board is?  Why not get it reviewed at Revolution X!
atlantic reefer
SMF For Free Full Member
*
Offline Offline

Posts: 187



View Profile WWW
« Reply #1 on: January 06, 2008, 10:34:55 am »

Got a question.  I put this in but it didn't change it.  Url - reefrefuge.smfforfree4.com

heres the code
</script>
<script>
function text_after_forum(forum,text) {
$(function() {
$("div.tborder").contains(forum).after(text)
});};
text_after_forum("Current Events","Our forum to discuss New Events occurring in the Reefing Hobby.");
</script>

did i mess up the code some how?
Logged

Shane
My Forums (still under construction) - , http://tropiccentral.smfforfree4.com/ <--- maintenance mode
Agent Moose
Moderator
*****
Offline Offline

Posts: 776


Do not PM me for Code Support or Request


View Profile
« Reply #2 on: January 06, 2008, 02:05:19 pm »

I need to update it.  Try useing this:

Code:
</script>
<script>
function text_after_forum(forum,text) {
$(function() {
$("div.tborder:contains("+forum+")").after(text);
});};
text_after_forum("Current Events","Our forum to discuss New Events occurring in the Reefing Hobby.");
</script>
Logged

Want to know how good your board is?  Why not get it reviewed at Revolution X!
atlantic reefer
SMF For Free Full Member
*
Offline Offline

Posts: 187



View Profile WWW
« Reply #3 on: January 07, 2008, 02:16:17 pm »

Ok, thanks Agent Moose.   That one worked.
Logged

Shane
My Forums (still under construction) - , http://tropiccentral.smfforfree4.com/ <--- maintenance mode


Pages: [1]
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
ServerBeach Coupon
Page created in 0.174 seconds with 17 queries.