Sign Up! Login: Password: New User? Forgot? Support
Code 
 
 
Forums 
Forums : Forums > Forum Post Direct Link Icon
Mottie (SuperAdmin) 11/7/2008 6:27 AM EST : How to replace a forum post direct link with an icon
ACK!
Mottie
Posts: 3884

0
Like

0
Dislike

How to replace a forum post direct link with an icon

GuildPortal admin site link to original post

This is a nice short javascript that will replace the "#3453635" from the top row of every forum post with an icon of your choosing.

Here is the icon I'm using: (see it in the above bar on the right?)

The Code

<script type="text/javascript">
$(document).ready(function() {
 var forumLink = "http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/forum_link.gif";
 var imgLink = "<img src='" + forumLink + "' align='right'>";
 $(".DirectLink").find("a").each(function() {
  $(this).html(imgLink);
 })
})
</script>

Customizing

  • Add this code to your forum's page (in a free form text/Html box) or into the header or footer.
  • All you need to change is the URL to your icon (in orange)
Edit (1/12/2010): Updated code because direct link now has it's own class!
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

Guppy Queen (Applicant) 4/7/2009 1:45 PM EST : RE: How to replace a forum post direct link with an i...
Guppy Queen
Posts: 41034

0
Like

0
Dislike

Cool feature. Thanks Mottie! wave
TopBottom

Guppy Queen (Applicant) 1/12/2010 2:58 PM EST : RE: How to replace a forum post direct link with an i...
Guppy Queen
Posts: 41034

0
Like

0
Dislike

Mottie, we have lost this ability. Is there a code that can bypass this new change?
TopBottom

Mottie (SuperAdmin) 1/12/2010 4:00 PM EST : RE: How to replace a forum post direct link with an i...
ACK!
Mottie
Posts: 3884

0
Like

0
Dislike

Thanks for keeping a watchful eye out Guppy! After your Heart... the post has been updated 
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

 
 
Key 
New posts No new posts
New posts ( popular ) No new posts ( popular )
New posts ( sticky ) No new posts ( sticky )
New posts ( locked ) No new posts ( locked )
 
 
Who's Online 
There are   members online.
 
 
So-and-so has logged on!
%title%
%message%