Simple Machine Codes
March 28, 2024, 06:02:15 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Description Code V1

Pages: [1]   Go Down
  Print  
Author Topic: Description Code V1  (Read 1180 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: July 30, 2007, 09:53:57 am »

Footers
Code:
<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

Share on Facebook Share on Twitter

Frost
Members

Offline Offline

Posts: 30


View Profile
« Reply #1 on: August 01, 2007, 06:35:55 am »

How does it work actually..Preview please?
Report Spam   Logged
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« 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.
Report Spam   Logged

Frost
Members

Offline Offline

Posts: 30


View Profile
« Reply #3 on: August 02, 2007, 01:51:06 am »

That's cool.Adding now.
Report Spam   Logged
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #4 on: August 02, 2007, 10:42:27 am »

Glad you like it Smiley
Report Spam   Logged

LaundryLady
Geriatric Goddess
Global Moderator

Offline Offline

Gender: Female
Posts: 290


I'm watching, I have a sense of humor: Guess Who


View Profile
« Reply #5 on: August 02, 2007, 10:42:43 am »

Why does it show part of the code in the topic title?
Report Spam   Logged

Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #6 on: August 02, 2007, 10:45:22 am »

What?  Got a screen shot?
Report Spam   Logged

LaundryLady
Geriatric Goddess
Global Moderator

Offline Offline

Gender: Female
Posts: 290


I'm watching, I have a sense of humor: Guess Who


View Profile
« 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 Offline

Gender: Male
Posts: 2,672



View Profile WWW
« 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.
Report Spam   Logged

Celebrus
Artificially Conscious
Administrator

Offline Offline

Gender: Male
Posts: 1,337


aka Omikron


View Profile WWW
« 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.
Report Spam   Logged

LaundryLady
Geriatric Goddess
Global Moderator

Offline Offline

Gender: Female
Posts: 290


I'm watching, I have a sense of humor: Guess Who


View Profile
« Reply #10 on: August 04, 2007, 09:49:32 am »

yeah, that's kinda sloppy.
Report Spam   Logged

Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #11 on: August 04, 2007, 07:48:14 pm »

I will have it diffrent when I make V2
Report Spam   Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy