Sign Up! Login: Password: New User? Forgot? Support
Code 
 
 
Forums 
Forums : Archive > Replacing the View Next Unread link with an Image
Mottie (SuperAdmin) 7/27/2009 11:25 PM EST : Replacing the View Next Unread link with an Image
ACK!
Mottie
Posts: 3884

0
Like

0
Dislike

Replacing the [View Next Unread] link with an Image

GuildPortal admin site link to the original post

Before   After
 


This script will replace the [View Next Unread] text seen in the forum topic view with an image of your choosing. Simply add the following script (while in HTML mode) to any free form text/HTML box on the forums page of your site (or your Banner or Footer HTML).
<script type="text/javascript">
$(document).ready(function(){
 var nxtUnread = 'http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/forum_nextUnread.png';
 $("a[id*='lnkViewFirstUnread']").html('<img src="' + nxtUnread + '">').find('img').attr('alt','[View Next Unread]');
})
</script>
Replace the URL in orange to the location of your desired image. If you wish to use the image I made, please feel free to use it Bunny Dance


This topic was moved from forum Instructions to forum Archive on 4/3/2010 1:07 AM by Mottie.
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

Guppy Queen (Applicant) 9/17/2009 1:47 AM EST : RE: Replacing the View Next Unread link with an Image
Guppy Queen
Posts: 41034

0
Like

0
Dislike

Hi Mottie, is there a way to make this into a .js file?
TopBottom

Mottie (SuperAdmin) 9/17/2009 6:16 PM EST : RE: Replacing the View Next Unread link with an Image
ACK!
Mottie
Posts: 3884

0
Like

0
Dislike

Guppy!! wave

Yes, ma'am! All you need to do is copy the code between the <script> and </script> ( just like any other code :P )
$(document).ready(function(){
 var nxtUnread = 'http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/forum_nextUnread.png';
 $("a[id*='lnkViewFirstUnread']").html('<img src="' + nxtUnread + '">').find('img').attr('alt','[View Next Unread]');
})
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

Guppy Queen (Applicant) 9/17/2009 6:31 PM EST : RE: Replacing the View Next Unread link with an Image
Guppy Queen
Posts: 41034

0
Like

0
Dislike

Thank you Mottie
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%