Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« on: July 30, 2007, 09:53:57 am » |
|
Footers <script> function description() { //Created by Agent Moose (smcodes.smfforfree3.com) $(function() { text = "BEFORE THE DESCRIPTION" $("a").each(function() { if(this.innerHTML.match(/\[des=.*\]/i)) { this.innerHTML = this.innerHTML.replace(/\[des=(.+?)\]/i, "<br /><span class='smalltext'>"+text+"$1</span>"); };});});}; description(); </script> This adds a description to your topic, that you choose All you have to do is put [des=YOUR TEXT HERE] in the topic title, and the text you put will be your description! That easy. The part that says BEFORE THE DESCRIPTION, change that to your own text, that text will show up before the description. I hope you all love the code!
|
|
« Last Edit: August 09, 2007, 11:46:20 am by Agent Moose »
|
Report Spam
Logged
|
|
|
|
|
Frost
Members
Offline
Posts: 30
|
|
« Reply #1 on: August 01, 2007, 06:35:55 am » |
|
How does it work actually..Preview please?
|
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #2 on: August 01, 2007, 10:24:46 am » |
|
I will use it on this forum. When your looking at all the topics, you will see somthing like Description: Yes I made one under this topic url.
|
|
|
|
Frost
Members
Offline
Posts: 30
|
|
« Reply #3 on: August 02, 2007, 01:51:06 am » |
|
That's cool.Adding now.
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #4 on: August 02, 2007, 10:42:27 am » |
|
Glad you like it
|
|
|
|
LaundryLady
Geriatric Goddess
Global Moderator
Offline
Gender:
Posts: 290
I'm watching, I have a sense of humor: Guess Who
|
|
« Reply #5 on: August 02, 2007, 10:42:43 am » |
|
Why does it show part of the code in the topic title?
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #6 on: August 02, 2007, 10:45:22 am » |
|
What? Got a screen shot?
|
|
|
|
LaundryLady
Geriatric Goddess
Global Moderator
Offline
Gender:
Posts: 290
I'm watching, I have a sense of humor: Guess Who
|
|
« Reply #7 on: August 02, 2007, 06:00:19 pm » |
|
|
|
« Last Edit: August 02, 2007, 06:09:40 pm by LaundryLady »
|
Report Spam
Logged
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #8 on: August 02, 2007, 06:41:39 pm » |
|
Ok, your not looking on the topic page, where it showes all the topics. If you look at that page, you will see something under the name of this topic that says "Description: Yes I made one". That would be the description.
|
|
|
|
Celebrus
Artificially Conscious
Administrator
Offline
Gender:
Posts: 1,337
aka Omikron
|
|
« Reply #9 on: August 04, 2007, 06:37:11 am » |
|
But in the big H1 heading on top while viewing a topic, it shows [des=soandsohere-whateveryourdescriptionwas] after the actual topic.
|
|
|
|
LaundryLady
Geriatric Goddess
Global Moderator
Offline
Gender:
Posts: 290
I'm watching, I have a sense of humor: Guess Who
|
|
« Reply #10 on: August 04, 2007, 09:49:32 am » |
|
yeah, that's kinda sloppy.
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #11 on: August 04, 2007, 07:48:14 pm » |
|
I will have it diffrent when I make V2
|
|
|
|
|
|