We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Left click topics to mark as read
Topic Started: Aug 2 2010, 03:04 AM (372 Views)
atomicwitch-ZNR
Member Avatar
Member
[ * ]
Board Address: http://s4.zetaboards.com/Emmys_Guys_and_Gals/index/
Board Software:ZetaBoards
Description: Enable left click on envelope to mark topics as read as it does on forums.
Offline Profile Goto Top
 
Pete B-ZNR
Member Avatar
Member
[ *  *  * ]
Code:
 
<script type='text/javascript'>
$(function() {
$(".posts td.c_cat-mark img").click(function(){
var the_url = $(this).closest("tr").children("td.c_cat-title").children("a").attr("href");
$.get(the_url+"1");
$(this).closest("td").html('<img alt="Regular (No New Posts)" src="http://z3.ifrm.com/63/36/0/p14824/t_nonewpost.png">');
});
});
</script>


Board Template (Below the Board) or Theme Layout. You can replace
Code:
 
http://z3.ifrm.com/63/36/0/p14824/t_nonewpost.png


with the image code for the read icon specific to your theme. :)
Offline Profile Goto Top
 
RedBldSandman
Member Avatar
Asante sana Squash banana
[ *  *  *  * ]
Regular no new posts.
Hot Topic no new posts.
Poll no new posts.

There are three types so you'll have to get all 3 image srcs defined and work out which one it was originally (using either the src or alt attributes) :(

(Unless, of course, the requester uses only a single image for all 3!),
Offline Profile Goto Top
 
atomicwitch-ZNR
Member Avatar
Member
[ * ]
Thank you. I'll have a go with that. :)
Offline Profile Goto Top
 
Pete B-ZNR
Member Avatar
Member
[ *  *  * ]
RedBldSandman
Aug 9 2010, 09:06 PM
Regular no new posts.
Hot Topic no new posts.
Poll no new posts.

There are three types so you'll have to get all 3 image srcs defined and work out which one it was originally (using either the src or alt attributes) :(

(Unless, of course, the requester uses only a single image for all 3!),
>_< Completely forgot about that.

I can write that bit in if you want.
Offline Profile Goto Top
 
atomicwitch-ZNR
Member Avatar
Member
[ * ]
Please. I'm a little lost. I have customised forum and topic images for Regular, no new posts and Hot Topic no new posts. and no alt. I'm not sure what to change.
Edited by atomicwitch-ZNR, Aug 11 2010, 06:26 AM.
Offline Profile Goto Top
 
Pete B-ZNR
Member Avatar
Member
[ *  *  * ]
Code:
 
<script type='text/javascript'>
$(function() {
$(".posts td.c_cat-mark img").click(function(){
var the_url = $(this).closest("tr").children("td.c_cat-title").children("a").attr("href");
$.get(the_url+"1");
if ($(this).closest("td").children("img").attr("alt") == "Regular") {
$(this).closest("td").html('<img alt="Regular (No New Posts)" src="http://z3.ifrm.com/63/36/0/p14824/t_nonewpost.png">');
} else if($(this).closest("td").children("img").attr("alt") == "Hot Topic"){
$(this).closest("td").html('<img alt="Regular (No New Posts)" src="http://z3.ifrm.com/63/36/0/p14824/t_nonewpost.png">');
} else if($(this).closest("td").children("img").attr("alt") == "Poll"){
$(this).closest("td").html('<img alt="Regular (No New Posts)" src="http://z3.ifrm.com/63/36/0/p14824/t_nonewpost.png">');
}
});
});
</script>


You just need to replace the image URL with the specific read icon for each type of topic. Normal, Hot and Poll.

Also, make sure the alt text for each image is in place correctly.
Offline Profile Goto Top
 
atomicwitch-ZNR
Member Avatar
Member
[ * ]
Thank you. It's working. :D
I thought it wasn't at first, because they don't click, but when you refresh the page the image has changed.


Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic