vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Boards Duplicate - View Topic
Topic Rating: *****
Printable View
This topic was locked 3rd Apr 08 at 12:34am by Michael
Fel!x
Full Member
***

[AVATAR]

Posts: 171
Status: Offline
Gender: Male
Location: Sydney
Age: 31
Joined:  
Reputation: 3%  


pmmsn
Boards Duplicate (17th Mar 08 at 8:43am UTC)
A totally different board is mirroring another.
Forum URL: http://stopthetragedy.vforums.co.uk/
Browser: IE7
Operating System: Windows XP

Problem: One of the boards on my forum is showing the same information as another (Howlers). It may have something to do with the Board Mod, but still wondering why it's happening =/

(if it's code maybe this should be moved =])

Image
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Boards Duplicate (17th Mar 08 at 8:46am UTC)
As this is a code error, I've moved it to Code Support. {Wink}

rroll.to— Shorten a link, rickroll your friends.
Fel!x
Full Member
***

[AVATAR]

Posts: 171
Status: Offline
Gender: Male
Location: Sydney
Age: 31
Joined:  
Reputation: 3%  


pmmsn
Re: Boards Duplicate (18th Mar 08 at 5:17am UTC)
Code:
 
  1. <div id='w_bm' style="display:none">
  2.     <table cellspacing=0 cellpadding=3 width=100% border=0 class='bm'>
  3.         <tr>
  4.             <td class = "window1 right" width="5%" align="center" id='icon_hold'><div id='bm_icon'></div></td>
  5.             <td class='window1 right' valign="top" width="60%" align="left"><span id='bm_title' style='float: left'></span> <span id='bm_mods'  style='float: right; vertical-align: top'></span><br /><div id='bm_desc'></div></div></td>
  6.             <td class='window1 right' width="10%" align='center'><div id='bm_posts'></div><div id='bm_topics'></div></td>
  7.             <td class='window1' valign="top" width="25%"><div id='bm_lp'></div></td>
  8.         </tr>
  9.         <tr id='sub_hold' style='display:none'>
  10.             <td colspan=3 class = 'window2 top' align="left"><span id='bm_sub'></span></td>
  11.         </tr>
  12.     </table>
  13. </div>
  14.  
  15. <script>
  16. function bm_swap(id, value){
  17.     get(id,'id').innerHTML = value;
  18. }
  19.  
  20. for(i=0;i<get('tr','tag').length;i++){
  21.     if(get('tr','tag')[i].cells[0].innerHTML.match(/(No )?New Posts/i) && get('tr','tag')[i].cells[0].className == 'window1'){
  22.  
  23.         bm_swap('bm_icon', get('tr','tag')[i].cells[0].innerHTML);
  24.         bm_swap('bm_title', get('tr','tag')[i].cells[1].getElementsByTagName('span')[1].innerHTML);
  25.         bm_swap('bm_desc', get('tr','tag')[i].cells[1].getElementsByTagName('span')[3].innerHTML.split(/Sub-Boards:/)[0]);
  26.   if(get('tr','tag')[i].cells[1].getElementsByTagName('span')[3].innerHTML.match(/Sub-Boards/)){
  27.             bm_swap('bm_sub',get('tr','tag')[i].cells[1].getElementsByTagName('span')[3].getElementsByTagName('font')[0].innerHTML);
  28.             get('sub_hold','id').style.display = '';
  29.             get('icon_hold','id').rowSpan = '2';
  30.         }else{
  31.             bm_swap('bm_sub','<i>None</i>');
  32.             get('sub_hold','id').style.display = 'none';
  33.             get('icon_hold','id').rowSpan = '1';
  34.         }
  35.  
  36.         if(get('tr','tag')[i].cells[1].getElementsByTagName('span')[4]){
  37.             bm_swap('bm_mods',get('tr','tag')[i].cells[1].getElementsByTagName('span')[4].innerHTML.replace(/Led By/,'Moderator'));
  38.         }
  39.         
  40. bm_swap('bm_topics',get('tr','tag')[i].cells[1].getElementsByTagName('span')[2].firstChild.innerHTML.split(/-/)[0]);
  41.         bm_swap('bm_posts',get('tr','tag')[i].cells[1].getElementsByTagName('span')[2].firstChild.innerHTML.split(/-/)[1]);
  42.  
  43.         bm_swap('bm_lp',get('tr','tag')[i].cells[2].firstChild.innerHTML.replace(/\sby/,'<br />by'));
  44.         get('tr','tag')[i].firstChild.innerHTML = get('w_bm','id').innerHTML;
  45.         get('tr','tag')[i].cells[1].style.display = get('tr','tag')[i].cells[2].style.display='none';
  46.         get('tr','tag')[i].firstChild.colSpan='3';
  47. get('tr','tag')[i].parentNode.parentNode.cellPadding = '0';
  48.       
  49.     }
  50. }
  51. </script>
  52. <script>
  53. /*Remove :: from buttons
  54. Usual Copyright stuff here!
  55. Wrighty*/
  56.  
  57. for(i=0; i<get('td','tag').length;i++){
  58.     if(get('td','tag')[i].innerHTML.match(/ :: /) && get('td','tag')[i].className.match(/title(1|2)/)){
  59.         get('td','tag')[i].innerHTML = get('td','tag')[i].innerHTML.replace(/ :: /g,' ');
  60.     }
  61. }
  62. </script>
 


I removed it from my headers, but here it is =]

Image
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Boards Duplicate (18th Mar 08 at 7:23pm UTC)
I'm going to be 100% truthful and tell you that I have absolutely no idea what the hell is causing that. {Tongue Out}

I'll recode it sometime soon! {Smile}
Fel!x
Full Member
***

[AVATAR]

Posts: 171
Status: Offline
Gender: Male
Location: Sydney
Age: 31
Joined:  
Reputation: 3%  


pmmsn
Re: Boards Duplicate (19th Mar 08 at 6:49am UTC)
Hehe, thanks Wrighty xD

No hurry though {Wink}

Image
 Printable View

All times are GMT+0 :: The current time is 10:24am
Page generated in 0.313 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums