Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Pimp My Site! > How to replace a forum post direct link with an icon
Mottie (MVP) 11/7/2008 6:46 AM EST : How to replace a forum post direct link with an icon
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

How to replace a forum post direct link with an icon

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

Here is the icon I'm using:

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)
  • Check out any forum post on my test-site to see this code in action
Edit (1/12/2010): Updated code because direct link now has it's own class!
TopBottom

Avandius (New Admin) 11/7/2008 7:38 AM EST : RE: How to replace a forum post direct link with an i...
Avandius
Posts: 337
Fingers of Fury!

I added it and it looks nice.

But what exactly does this icon do.. i cant figure it out. Granted i didnt look to long.. busy at work for once.
TopBottom

Mottie (MVP) 11/7/2008 9:08 AM EST : RE: How to replace a forum post direct link with an i...
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

The icon just replaces the text link, so all it  does is it makes the forums PURDY!

If you hover over the link it has a popup that tells you what it's for... I use the link all the time to direct people to posts:


I just never liked seeing those link numbers on each forum post.
TopBottom

Kaysi (Guild Admin) 11/7/2008 11:47 PM EST : RE: How to replace a forum post direct link with an i...

Kaysi
Posts: 445
Fingers of Fury!

You are the greatest! Thank you Mottie!
Miria Signature
"I can heal any flashpoint, quest, or player, but I can't heal stupidity."
TopBottom

Mottie (MVP) 1/12/2010 3:58 PM EST : RE: How to replace a forum post direct link with an i...
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

Updated!
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%