Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Dec 17th, 2017, 9:16pm


Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Revolution Board Modification (Conforums adapted)  (Read 2066 times)
Dalton
Ex-Shiny Gold Star Club Member
Conforums Administrator


member is offline

Avatar



AIM
Homepage PM

Gender: Male
Posts: 1774
xx Revolution Board Modification (Conforums adapted)
« Thread started on: May 18th, 2012, 3:56pm »

Code:
<script type="text/javascript">
<!--
/*
Revolution Board Modification Alternate A
Created By Eichi modded by Dalton
*/

var td = document.getElementsByTagName('td');
for(t=0; t<td.length; t++){
   if(td[t].width == "66%" && td[t].className == "windowbg2"){
      var board = td[t].getElementsByTagName('font')[0].innerHTML;
      var description = td[t].innerHTML.split(/<br\/?>/i)[1].split(/<br\/?>/i)[0];
      if(td[t].innerHTML.indexOf('Moderator') !=-1){
         var mod = td[t].innerHTML.split(':')[1].split('<\/i>')[0];
         td[t].vAlign = "right";
         td[t].innerHTML = '<table width="100%" cellspacing="0" cellpadding="0"><tr><td width="50%">' + board + '</td><td width="50%"><font size="1">(Board Led By: ' + mod + ')</font></td></tr><tr><td colspan="2">' + description + '</td></tr></table>';
      } else {
         td[t].vAlign = "right";
         td[t].innerHTML = '<table width="100%" cellspacing="0" cellpadding="0"><tr><td>' + board + '</td></tr><tr><td>' + description + '</td></tr></table>';
      }
   }
}
//-->
</script> 


Adapted to find the right parts of the table to do the correct modification, only difference is in the placement of the moderators.

Main footers
User IP Logged

User Image
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls