Tutorial On creating a theme For phpMyBitTorrent
8 Attachment(s)
First and foremost you well need a good working nolige of PHP!
The theme for PMBT is the complete layout of your site so you well want to Be very careful when doing it. The far easiest way is to take copy the content of a theme that is laid out the way you already want yours but you want deffrent Images and colors. phpMyBitTorrent theme's are laid out fairly easy you have 19 separate function OpenTable() CloseTable() OpenTable2() CloseTable2() OpenNewsTable() CloseNewsTable() OpenMessTable() CloseMessTable() OpenSuccTable() CloseSuccTable() OpenErrTable() CloseErrTable() newuserpage() themeheader() themefooter() overlib_init() help() Optional are themechange() languagechange() We well take Vista theme as our example theme The two Most changed are themeheader and themefooter these to are seen on ever page Attachment 2059 themeheader is the top of your web site down the left side and you left collom if you want one. Attachment 2060 themefooter is the bottom of your web site the right side and your right colom if you want one Your second most changes is OpenTable and CloseTable these 2 are seen on every page OpenTable is the top and left side of your blocks Attachment 2061 CloseTable are the bottom and right side of your blocks Attachment 2062 then you have your special tables OpenTable2 CloseTable2 Attachment 2066 OpenSuccTable CloseSuccTable Attachment 2065 OpenMessTable CloseMessTable Attachment 2064 OpenErrTable CloseErrTable Attachment 2063 overlib_init is your java scripts Help is your popup bubble(help tips) |
thank you very much for those instructions !
|
Creating function themeheader() This is the first peace that you your browser the world see's This is a Function so You well want to make sure you retrieve all global variables PHP Code:
$db $db_prefix $user Those are Your data base connection Class and Data Base Prefix. You well not need to make any further data base connection so If you can't figure out $db class But you know simple mysql you can still do this I wont get in to $db class at this time or mysql . Now your going to want to set users online this is Not all that Hard PHP Code:
header("Content-Type: text/html; charset=UTF-8"); after this you can start you html coding first you well want to set your webcoding HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> Now you want to set your HTML Code:
<html> HTML Code:
<head></head> style sheets java scripts meta tag if You want a favacon (this is the little image beside your address bar in your browser) this is also where it is set here is an example PHP Code:
PHP Code:
Now We can start the HTML Code:
<body> It can be as semple as a
Powered by vBulletin® Version 3.8.11 Beta 3 |