vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Board Mod Fix [Wrighty] - View Topic
 |  |
| This topic was locked 13th Mar 08 at 7:49am by Michael | Fel!x Full Member
  
[AVATAR] Posts: 171 Status: Offline Gender: Male Location: Sydney Age: 31 Joined:
pmmsn | [F] Board Mod Fix [Wrighty] (10th Mar 08 at 7:50am UTC) Resolved - Uhh, Wrighty, just a little fix needed... | | I pretty much need THIS code fixed so that the "Moderator: Admin" will appear on the right side of the board cell. At the moment it is directly next to the name of the board. =]
(see HERE)
Thanks Wrighty! | |
|
| 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: Board Mod Fix [Wrighty] (10th Mar 08 at 5:36pm UTC) | | I coded it to your concept
I'll do this no problem though | |
| Fel!x Full Member
  
[AVATAR] Posts: 171 Status: Offline Gender: Male Location: Sydney Age: 31 Joined:
pmmsn | Re: Board Mod Fix [Wrighty] (12th Mar 08 at 5:55am UTC) | | But my concept must have changed itself around
Thanks for this Wrighty =] | |
|
| 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: Board Mod Fix [Wrighty] (12th Mar 08 at 7:43am UTC) | | It's ok.... It wont take too long to do...
| |
| 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: Board Mod Fix [Wrighty] (12th Mar 08 at 5:02pm UTC) | | Try:
 Code: - <style>
- .top {
- border-top: 1px solid #000000;
- }
- .right {
- border-right: 1px solid #000000;
- }
- .bm * {
- font-size: 11px;
- }
- </style>
-
- <div id='w_bm' style="display:none">
- <table cellspacing=0 cellpadding=3 width=100% border=0 class='bm'>
- <tr>
- <td class = "window1 right" width="5%" align="center" id='icon_hold'><div id='bm_icon'></div></td>
- <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>
- <td class='window1 right' width="10%" align='center'><div id='bm_posts'></div><div id='bm_topics'></div></td>
- <td class='window1' valign="top" width="25%"><div id='bm_lp'></div></td>
- </tr>
- <tr id='sub_hold' style='display:none'>
- <td colspan=3 class = 'window2 top' align="left"><span id='bm_sub'></span></td>
- </tr>
- </table>
- </div>
-
- <script>
- function bm_swap(id, value){
- get(id,'id').innerHTML = value;
- }
-
- for(i=0;i<get('tr','tag').length;i++){
- if(get('tr','tag')[i].cells[0].innerHTML.match(/(No )?New Posts/i) && get('tr','tag')[i].cells[0].className == 'window1'){
-
- bm_swap('bm_icon', get('tr','tag')[i].cells[0].innerHTML);
- bm_swap('bm_title', get('tr','tag')[i].cells[1].getElementsByTagName('span')[1].innerHTML);
- bm_swap('bm_desc', get('tr','tag')[i].cells[1].getElementsByTagName('span')[3].innerHTML.split(/Sub-Boards:/)[0]);
- if(get('tr','tag')[i].cells[1].getElementsByTagName('span')[3].innerHTML.match(/Sub-Boards/)){
- bm_swap('bm_sub',get('tr','tag')[i].cells[1].getElementsByTagName('span')[3].getElementsByTagName('font')[0].innerHTML);
- get('sub_hold','id').style.display = '';
- get('icon_hold','id').rowSpan = '2';
- }else{
- bm_swap('bm_sub','<i>None</i>');
- get('sub_hold','id').style.display = 'none';
- get('icon_hold','id').rowSpan = '1';
- }
-
- if(get('tr','tag')[i].cells[1].getElementsByTagName('span')[4]){
- bm_swap('bm_mods',get('tr','tag')[i].cells[1].getElementsByTagName('span')[4].innerHTML.replace(/Led By/,'Moderator'));
- }
-
- bm_swap('bm_topics',get('tr','tag')[i].cells[1].getElementsByTagName('span')[2].firstChild.innerHTML.split(/-/)[0]);
- bm_swap('bm_posts',get('tr','tag')[i].cells[1].getElementsByTagName('span')[2].firstChild.innerHTML.split(/-/)[1]);
-
- bm_swap('bm_lp',get('tr','tag')[i].cells[2].firstChild.innerHTML.replace(/\sby/,'<br />by'));
- get('tr','tag')[i].firstChild.innerHTML = get('w_bm','id').innerHTML;
- get('tr','tag')[i].cells[1].style.display = get('tr','tag')[i].cells[2].style.display='none';
- get('tr','tag')[i].firstChild.colSpan='3';
- get('tr','tag')[i].parentNode.parentNode.cellPadding = '0';
-
- }
- }
- </script>
| |
| Fel!x Full Member
  
[AVATAR] Posts: 171 Status: Offline Gender: Male Location: Sydney Age: 31 Joined:
pmmsn | Re: Board Mod Fix [Wrighty] (13th Mar 08 at 7:15am UTC) | | Thanks Wrighty, works great =] | |
|
| |
 |  |
|