|
#1
|
||||
|
||||
Tutorial On creating a theme For phpMyBitTorrent
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 themeheader is the top of your web site down the left side and you left collom if you want one. 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 CloseTable are the bottom and right side of your blocks then you have your special tables OpenTable2 CloseTable2 OpenSuccTable CloseSuccTable OpenMessTable CloseMessTable OpenErrTable CloseErrTable overlib_init is your java scripts Help is your popup bubble(help tips)
__________________
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/ |
#2
|
|||
|
|||
thank you very much for those instructions !
|
#3
|
||||
|
||||
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 <table>/<div> this is a little tricky because this is where you figure out if you want 1 main layout a left collom and a Main collom a left collom center and right collom you well also set your header here and tab bar if wanted simple way is a plain table system for your header and menu do HTML Code:
<table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr><td><img src="imagelink.png"></td></tr> <tr><td>your nav bar code</td></tr> </table> Now do you want 3 rows? sample for left collom at 25% of the page HTML Code:
<table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr><td {{you might want to set width here}}width="25%"> your coding for your left collom</td> HTML Code:
<td width="50%">
this is where you page is added (index.php torrents.php pm.php) you can put codes here witch show above theses pages such as a add link or what not
to sum up we just created a semple page layout with a header nav bar your left collom and center page Attachment 2059
__________________
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/ |
#4
|
|||
|
|||
hey joe :)
have some quesions: 1/ I try to change the nav container a little bit but I don't find where !! I want to remove that gray color and edit text color too 2/ also I want to move menu and the categories bloacks from the right to the top (just after the nav container) ! In one word I want to make those 2 bloks horizontally at the top ! hope u understand me :) thks |
#5
|
||||
|
||||
in default PMBT theme this is the nav bar
PHP Code:
this Code:
#navlist li a { padding : 3px 0.5em; margin-left : 3px; border : 1px solid #778; border-bottom : none; background : #d2d2d2; text-decoration : none; } and Code:
background : #d2d2d2; as for the others I well work on it as you well need to rewrite the 2 blocks.
__________________
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/ |
#6
|
|||
|
|||
I seen in your forums page on ur site u got 1px line for ur tables how do u do that i tryd doin the table border=1 and all that help pleaaase
|
#7
|
||||
|
||||
on what tables?
__________________
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/ |
#8
|
|||
|
|||
i want it for all tables that lists stuff like...
Browse, the search, recent 10 uploaded |
#9
|
||||
|
||||
Very good stuff!!
I follow this guys postings here and at the phpMyBit Torrent forum site, and find that he is accurate, understanding and very good. Thanks for the effort you put in and all the knowledge you share with all of us!!
|
Tags |
creating , phpmybittorrent , theme , tutorial |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need Help Creating! | jontebb | Community Cafe | 1 | 10th June 2010 15:10 |
creating theme | underx | BT.Manager (phpMyBitTorrent) | 1 | 28th January 2010 01:56 |
PHP Tutorial with XAMPP for Windows | Phogo | Tutorials | 0 | 26th January 2010 13:19 |
Tutorial | franky2008 | Gazelle | 3 | 26th August 2009 17:33 |
Tutorial Please :( | franky2008 | BT.Manager (phpMyBitTorrent) | 1 | 29th November 2008 16:23 |