vForums Support > vForums :: Report a Bug :: Resolved Bugs :: > PM Notification Error

PM Notification Error - Posted By dog199200 (dog199200) on 19th Jul 09 at 1:22am
Url: http://inuyashasworld.vforums.co.uk/
Browser: FF

I found an error with the PM Notification setup. For some reason it wont let me click on any of the links (Reply, View, Ignore) I think are the links. So i have to go to the userbar and click New PM to get the notification to go away.

Re: PM Notification Error - Posted By Ross (admin) on 19th Jul 09 at 1:44am
Hi,

This is a code conflict on your forum. I've had a look through and this seems lik the most likely culprit since it refences a table by number rather than ID. And when the pop-up exists, there's an extra table at the very top of the page.


Code:
 
  1. get('table', 'tag')[1].cellSpacing = '1';  
  2. for(b = 0; b < 4; b++)
  3. get('br', 'tag').style.display = "none";
  4. with(get('forum_border_menu_holder', 'id')){
  5. var x = (vf_username == 'guest'? 3 : 6);
  6. for(n = 0; n < x; n++){
  7. appendChild(get('table', 'tag')[0]);
  8. if(n == 2 || n == 5)
  9. appendChild(document.createElement('br'));
  10. }
  11. }
 

Re: PM Notification Error - Posted By dog199200 (dog199200) on 19th Jul 09 at 1:49am
Lovely, I need that coding for the design of my forum in order to add the welcome table within the frame of my forum. My javascript skills are very rusty and wrighty coded it in the first place so i'm not sure how to edit it in order to fix it.

Re: PM Notification Error - Posted By Ross (admin) on 19th Jul 09 at 12:42pm
Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. get('welcome_table', 'id').cellSpacing = '1';
  4. for(b = 0; b < 4; b++) {
  5. get('br', 'tag')[b].style.display = "none"; 
  6. }
  7. with(get('forum_border_menu_holder', 'id')){
  8. var x = (vf_username == 'guest'? 3 : 6);
  9. var s = (get('table', 'tag')[0].className.match(/welcometable/))? 0 : 1;
  10. for(n = 0; n < x; n++){
  11. appendChild(get('table', 'tag')[s]);
  12. if(n == 2 || n == 5)
  13. appendChild(document.createElement('br'));
  14. }
  15. }
  16. // -->
  17. </script>
 


I've not tested it but that should work {Smile}

Re: PM Notification Error - Posted By dog199200 (dog199200) on 19th Jul 09 at 5:53pm
Thanks Ross, now just got to wait till I get a pm on the forum to see if it works, if not then i'll bug wrighty {Tongue Out}