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! > Replacing the View Next Unread link with an Image
Mottie (MVP) 7/28/2009 2:01 AM EST : Replacing the View Next Unread link with an Image
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

Replacing the [View Next Unread] link with an Image

Before   After
 

Thisscript will replace the [View Next Unread] text seen in the forum topicview 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
TopBottom

Draylor (New Admin) 7/28/2009 7:07 PM EST : RE: Replacing the View Next Unread link with an Image
Draylor
Posts: 424
Fingers of Fury!

Mottie,
    Personally wanted to say thank you again for your hard work here ... it's more then appreciated!

~Draylor
TopBottom

[RENNT] Darknees (New Admin) 8/12/2009 1:06 PM EST : RE: Replacing the View Next Unread link with an Image
[RENNT] Darknees
Posts: 338
Fingers of Fury!

this doesnt work on my site for some reason.. ?
TopBottom

Mottie (MVP) 8/12/2009 3:06 PM EST : RE: Replacing the View Next Unread link with an Image
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

Share a link?
TopBottom

[RENNT] Darknees (New Admin) 8/12/2009 3:32 PM EST : RE: Replacing the View Next Unread link with an Image
[RENNT] Darknees
Posts: 338
Fingers of Fury!

when i put it in the footer in html, nothing shows up. its just blank. like nothing is there at all.
TopBottom

[RENNT] Darknees (New Admin) 8/12/2009 4:04 PM EST : RE: Replacing the View Next Unread link with an Image
[RENNT] Darknees
Posts: 338
Fingers of Fury!

rtech.guildportal.com
TopBottom

Mottie (MVP) 8/13/2009 9:53 AM EST : RE: Replacing the View Next Unread link with an Image
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

Hi Darknees!

I don't see anything in your footer but HTML for the red box. Did you try adding a free form text/HTML type content box under your Forums content box and add the code there (while in <> HTML mode of course).
TopBottom

[RENNT] Darknees (New Admin) 8/13/2009 5:31 PM EST : RE: Replacing the View Next Unread link with an Image
[RENNT] Darknees
Posts: 338
Fingers of Fury!

hi, sorry i took it off due to it not working. i put it back on the forums page now, at the bottom but above 'whos online' it doesnt show anything in preview or on the site...
TopBottom

Mottie (MVP) 8/13/2009 6:51 PM EST : RE: Replacing the View Next Unread link with an Image
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

Hi Darknees!

It looks like it's working fine for me.. in FF, IE and Chrome... Are you looking on the correct page? It only shows up on the Topic page... here is a screenshot (it's in the middle of the image).


TopBottom

[RENNT] Darknees (New Admin) 8/14/2009 2:00 AM EST : RE: Replacing the View Next Unread link with an Image
[RENNT] Darknees
Posts: 338
Fingers of Fury!

oh so it only appears when you click on a topic?
TopBottom

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