Aiken Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/me-yat.jpeg) Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 35 Joined:
pmskypemsnyahooxfire | PM checker (10th Jan 10 at 12:50am UTC) Resolved | | Global Header:
 Code: - <script type="text/javascript">
- funtion pm(){
-
- var pmPost;
-
- if(vf_new_pms == 0)
- {
- pmPost = "<a href="/action/pm"><img src="http://images.virtualforums.co.uk/unread.gif"></a>";
- } else {
- pmPost ="<a href="/action/pm"><img src="http://images.virtualforums.co.uk/read.gif"></a>";
- }
-
-
- return pmPost;
-
- }
- </script>
In table:
 Code: - <script type="text/javascript">
- document.write(pm());
- </script>
This is supposed to determine if there are new PM's or not and show the correct image depending on the result | |
vF forums: Perfect World RP BLEACH Universe - Under Construction / Testing Phase Xen Qarna RP - Stage I Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled the Final Anime Hideout |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: PM checker (10th Jan 10 at 12:57am UTC) | | "<a href="/action/pm"><img src="http://images.virtualforums.co.uk/unread.gif"></a>";
That line is the problem. You need to escape double quotes within the double quotes, or simply use:
pmPost = '<a href="/action/pm"><img src="http://images.virtualforums.co.uk/unread.gif"></a>';
And change the other one! | |
|
Aiken Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/me-yat.jpeg) Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 35 Joined:
pmskypemsnyahooxfire | |
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: PM checker (10th Jan 10 at 1:17am UTC) | | Post your changed version, and what the outcome is. You have to show the unread messages image if there's 0 new pms! O.o | |
|
Aiken Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/me-yat.jpeg) Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 35 Joined:
pmskypemsnyahooxfire | Re: PM checker (10th Jan 10 at 1:31am UTC) | |  Code: - <script type="text/javascript">
- funtion pm(){
-
- var pmPost;
-
- if(vf_new_pms == 0)
- {
- pmPost = '<a href="/action/pm"><img src="http://images.virtualforums.co.uk/unread.gif"></a>';
- } else {
- pmPost = '<a href="/action/pm"><img src="http://images.virtualforums.co.uk/read.gif"></a>';
- }
-
- return pmPost;
-
- }
- </script>
There is no outcome | |
vF forums: Perfect World RP BLEACH Universe - Under Construction / Testing Phase Xen Qarna RP - Stage I Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled the Final Anime Hideout |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: PM checker (10th Jan 10 at 1:43am UTC) | | You misspelt the word 'function' you've spelt it funtion. | |
|
Aiken Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/me-yat.jpeg) Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 35 Joined:
pmskypemsnyahooxfire | |
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: PM checker (10th Jan 10 at 1:54am UTC) | | Working now? | |
|
Aiken Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/me-yat.jpeg) Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 35 Joined:
pmskypemsnyahooxfire | |