View Single Post
  #1  
Old 9th May 2010, 16:09
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Thumbs up Templates or Remain with Current?
Allot of people are looking for a complete new theme for PMBT.
thing is allot of people have a hard time working with the curent theme system so they really cant change much in the way of it.

My solution!
Use Templates
What is a template you ask here is a sample
Code:
<!-- INCLUDE themes/eVo_blue/templates/over_all_header.html -->
<!-- INCLUDE themes/eVo_blue/templates/over_all_left.html -->
</div></td>
<td width="65%" valign="top">
<div id="center">
<table width="100%" border="1" cellpadding="1" cellspacing="1">
<script type="text/javascript" language="JavaScript">
var expanded = 0;
function expand(id) {
        if (expanded == id) return;
        var obj;
        var obj2;
        obj = document.getElementById("userpanel_"+id);
        obj.className = 'show';
        if (expanded != 0) {
                obj2 = document.getElementById("userpanel_"+expanded);
                obj2.className = 'hide';
        }
        expanded = id;
}
</script>

<!-- BEGIN user_var -->
    <tr>
        <td onmouseover="javascript:expand({user_var.ID});"><p><font color="{user_var.COLOR}">{user_var.USERNAME}</font>{user_var.INACTWARNING}</p></td>
        <td><p><span class="overlib" onmouseover="return overlib('<img src=\'themes/eVo_blue/pics/pic_uploaded.gif\' border=\'0\' alt=\'\' title=\'\'   /> {user_var.PRETY_UPLOADED}<br /><img src=\'themes/eVo_blue/pics/pic_downloaded.gif\' border=\'0\' alt=\'\' title=\'\'   /> {user_var.PRETY_DOWNLOADED}<br />last Login: {user_var.LASTLOGIN} ago',CAPTION, '{LANG__btuserdetails}',TEXTFONT,'Verdana',TEXTCOLOR,'#FFFFFF',CAPTIONFONT,'Lucida Console, Verdana',CENTER,FGCOLOR,'#000000',BGCOLOR,'#6F7578',CAPICON,'themes/eVo_blue/pics/help.png',BORDER,2,SHADOW,SHADOWOPACITY,40,SHADOWCOLOR,'#030303',SHADOWX,2,SHADOWY,2);" onmouseout="return nd();" style="cursor:help"><img src="themes/eVo_blue/pics/help.gif" border="0" alt="" title=""   /></span><img src="themes/eVo_blue/pics/pic_ratio.gif" border="0" alt="" title=""   />{user_var.RATIO}</p></td>
    </tr>
    <tr class="hide" id="userpanel_{user_var.ID}">
        <td nowrap nobr><p align="center"><a href="user.php?op=profile&amp;id={user_var.ID}"><img src="themes/eVo_blue/pics/profile.png" border="0" alt="Profile" title="Profile"   /></a><a href="pm.php?op=send&amp;to={user_var.ID}"><img src="themes/eVo_blue/pics/menu/pm.png" border="0" alt="Send message" title="Send message"   /></a></p></td>
    </tr>
<!-- END user_var -->
</table>
<br clear="all" >
<!-- INCLUDE themes/eVo_blue/templates/over_all_right.html -->
<!-- INCLUDE themes/eVo_blue/templates/over_all_footer.html -->
This is a template for members list.
What make this so good?
You well now be able to make your site look How you want it with out changing any part of the main source code.
No longer well each page Have to look the same because with each page the source code only creates the information
used and the template created the screen.

The down fall to this is None of the Current themes well work with out converting them to templates.
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/

Last edited by joeroberts; 9th May 2010 at 16:10. Reason: Spell check
Reply With Quote