Simple Machine Codes
April 19, 2024, 09:35:21 am
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  

Auto-Link

Pages: [1]   Go Down
  Print  
Author Topic: Auto-Link  (Read 837 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: April 20, 2008, 12:38:03 pm »

Footers:
Code:
<script>
function AutoLink(Text,Link){
//Created by Agent Moose (smcodes.smfforfree3.com)
$("div.post").each(function(){
this.innerHTML = this.innerHTML.replace(Text,"<a href='" + Link + "'>" + Text + "</a>");
});};
AutoLink("TEXT","LINK");
</script>
This code will automaticly make a certain text in a post into a link.  You get to set where it goes too.

TEXT = The Text taht will change to a link.
LINK = The URL for where it will go.

Enjoy Smiley
Report Spam   Logged

Share on Facebook Share on Twitter

legend 1234
100 Club Member

Offline Offline

Gender: Male
Posts: 461


Legend 1234


View Profile WWW
« Reply #1 on: April 20, 2008, 10:06:54 pm »

ooo nice man Smiley

thanks alot

legend 1234
Report Spam   Logged

tonypker13
Ummmm Did I just Pwn myself?
Members

Offline Offline

Posts: 86

I think i just owned myself?


View Profile
« Reply #2 on: June 17, 2008, 01:09:15 am »

Actually, the easier way to do it is like this. very easy, and you can type it within seconds.

Code:
[url=YourURLhere]Your text here![/url]

EX or Preview

Click here to get back to the main page!!!
Report Spam   Logged


Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #3 on: June 17, 2008, 08:24:07 am »

Accually, this will make links out of text automaticly.  Say you typed in Google.  the Code Would make that into a link instead of you having to put in:
Code:
[url=http://google.com]Google[/url]
Report Spam   Logged

legend 1234
100 Club Member

Offline Offline

Gender: Male
Posts: 461


Legend 1234


View Profile WWW
« Reply #4 on: June 18, 2008, 01:56:23 am »

yea i reckon this is way easier

good job mate

legend 1234
Report Spam   Logged

tonypker13
Ummmm Did I just Pwn myself?
Members

Offline Offline

Posts: 86

I think i just owned myself?


View Profile
« Reply #5 on: June 18, 2008, 11:02:31 am »

Well atleast I had a way. It was almost right  Grin
Ill find an easier way to do your codes sum day moosey!
Report Spam   Logged


sweet_candygirl23
Members

Offline Offline

Posts: 41


View Profile
« Reply #6 on: June 20, 2008, 06:03:53 am »

Well, Thanks Moose. Google Yahoo

Haha...
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