Members   Search      Help    Register    Login    Home
Home » Support Forums for PMBT 2.X » Development of 2.X » Templates of Remain with Current?(Tell us what you think)
Templates of Remain with Current? [message #4109] Sun, 09 May 2010 15:05
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer

Theme Sytem[ 6 votes ]
1.Current System 1 / 17%
2.Template System 5 / 83%
3.I got My own Idea 0 / 0%

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
<!-- 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.


http://a.imageshack.us/img831/5562/mybikes.png
Previous Topic:Dutch Language
Next Topic: Phpmybitorrent forums
Goto Forum:
  


Current Time: Wed Feb 08 22:53:41 GMT 2012

Total time taken to generate the page: 0.00726 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software