The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

about the topics list

View previous topic View next topic Go down

about the topics list

Post by Ahmed.K on December 18th 2015, 5:28 am

I want add a background color for the "tr" in the topics list area with the new posts icon ... but this code doesn't work .. any ideas?

Code:
$(document).each(function() {
var img = $(".status img");
if (image.getAttribute('src')=="newpost.png") {
$('tr').css("background-color","#e6e9ee");
};
});

Ahmed.K
Forumember

Posts : 349
Reputation : 4
Language : English

Back to top Go down

Re: about the topics list

Post by SLGray on December 18th 2015, 6:16 am

Where did you get that code?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36705
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Re: about the topics list

Post by Ahmed.K on December 18th 2015, 7:24 am

I made it.

Ahmed.K
Forumember

Posts : 349
Reputation : 4
Language : English

Back to top Go down

Re: about the topics list

Post by SLGray on December 18th 2015, 6:26 pm

Have you tried using CSS?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36705
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Re: about the topics list

Post by Ahmed.K on December 18th 2015, 11:00 pm

how?

Ahmed.K
Forumember

Posts : 349
Reputation : 4
Language : English

Back to top Go down

Re: about the topics list

Post by SLGray on December 19th 2015, 2:31 am

Please post your forum's link. Are you referring to the area where the category title is?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36705
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Re: about the topics list

Post by Ahmed.K on December 19th 2015, 10:04 pm

@SLGray wrote:Ok. You are talking about the topic list in sub-forums.
Yes. now any ideas?

Ahmed.K
Forumember

Posts : 349
Reputation : 4
Language : English

Back to top Go down

Re: about the topics list

Post by Sr.Smith on December 20th 2015, 11:42 am

Hi Ahmed.K, I don't see your forum version or your Forum address so I have to suppose that it is punBB

For that version you can try this javascritp in "all pages"

Code:
$(function() {
    if ($(".status img").length) {

        /**** Beginning of editable zone ***/
        var URLiconNewPost = "http://illiweb.com/fa/prosilver/topic_unread_hot.gif";
        var NewPostTrColor = "#e6e9ee";
        /**** End of editable zone ***/
        var img = $(".status img");
        img.each(function() {
            if ($(this).attr('src') == URLiconNewPost) {
                $(this).closest('tr').find('td').css("background-color", NewPostTrColor);
            };
        })
    }
});

You must fill your information in the "editable zone".

Sr.Smith
Forumember

Posts : 90
Reputation : 11
Language : Spanish

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum