Welcome to Creative Nation!

Welcome to Creative Nation, . Feel free to browse our forums and help yourself to all our free tutorials, images, and recources!

Download

To download this script go back to article »

Member Login

Lost your password?

Not a member yet? Sign Up!

Pm counter problem


The next generation of web design.


You are not connected. Please login or register

Pm counter problem

Go down  Message [Page 1 of 1]

1 Pm counter problem on 9/4/2011, 10:06 am

shadowz_au

avatar

When i add it and pm myself and it count as 2 pm but i got 1 pm on my inbox

here the code

Code:

$.ajax({
  url: '/privmsg?folder=inbox',
  success: function(ajax) {
    count = $('img[src="http://illiweb.com/fa/empty.gif"]', ajax).length;
 
    if (count < 1) {
      $('a.mailbox').html('Mailbox');
    }

    else {
      $('a.mailbox').html('Mailbox ('+count+')');
    }
  }
});


If you guy know anything about this

I cant post anywhere on web section so i have to post here

2 Re: Pm counter problem on 9/4/2011, 1:34 pm

Gangstar15

avatar

see if you have two scripts of it Smile and remember to change this this http://illiweb.com/fa/empty.gif to your new PM icon Smile

3 Re: Pm counter problem on 9/4/2011, 2:56 pm

virtuosity

avatar
Is that the JS code for new message?

4 Re: Pm counter problem on 9/5/2011, 3:13 am

shadowz_au

avatar

Yes. I try different icon but it doesnt work and i dont have two script.

If u can do it for me? Gangstar

5 Re: Pm counter problem on 9/5/2011, 5:35 am

Gangstar15

avatar

send me the details Smile

6 Re: Pm counter problem on 9/5/2011, 6:51 am

shadowz_au

avatar

SENT!

7 Re: Pm counter problem on 9/5/2011, 7:04 am

Gangstar15

avatar

First, you are linking an image, where you don't have it in the ACP - Pics Managements o.O
: http://i24.servimg.com/u/f24/14/74/84/24/aficon10.png

now its done.

8 Re: Pm counter problem on 9/5/2011, 7:15 am

shadowz_au

avatar

oo Thanks Smile

(s)?

9 Re: Pm counter problem on 9/5/2011, 8:20 am

Gangstar15

avatar

(s)?

I though it was (3)?

10 Re: Pm counter problem on 9/5/2011, 8:23 am

shadowz_au

avatar

ill check it

Well it look this a (s)

Sponsored content


Back to top  Message [Page 1 of 1]

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

.

Free forum | © PunBB | Free forum support | Contact | Report an abuse | Free forum.