» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 70
0 members and 70 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Oral Chelation - initial cleansing of your veins & arteries

Register Now! Contact Us

About this Page
This is a discussion on Building a PNP 7.6 Theme from scratch - mods arent skinned within the Nuke 7.x - Themes forums, part of the PHP-Nuke 7.x category; Hi Im looking for some advice here, I have created my own theme for PNP and installed it and it ...


Go Back   Nukemods Forum » PHP-Nuke 7.x » Nuke 7.x - Themes

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-20-2005, 06:56 PM
Junior Member
 
Join Date: Mar 2005
Posts: 9
Building a PNP 7.6 Theme from scratch - mods arent skinned
Hi Im looking for some advice here, I have created my own theme for PNP and installed it and it is working, however, it seems, that the central column, was not fully affected by my efforts, they seem to be CSSed but not dressed in my fancy graphics. Blocks like navigation, and user info etc, look just fine, and news stories on front page are dressed in my graphics, but the shoutbox is not. when clicking on account, the 3 columns appear with dressed blocks on left and right but everything in center column seems vannila. Did I forget to create a file or something? :?

I used the tutorial by Mtechnik http://www.phpnukefiles.com/modules....ex&func=mai n
to find my way around under the hood.

Versions: PHP-Nuke-Platinum 7.6
Running on Debian LAMP system
L=Debian woody 3.1 (2.6.27)
A=Apache 1.3.33-4
M=MySQL 4.0.23-7
P=PHP4 4.3.10-8

Using PS7 and DW2004MX

My gratitude to anyone who can help steer me back on course. Thanks

SpyD
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-22-2005, 12:52 PM
Junior Member
 
Join Date: Mar 2005
Posts: 9
For those of you, who might have an intrest in this (NPN Theme design N00bs like me ) I worked this one out myself, here is how i did it.

The middle column of blocks in pnp 7.6 can be effectivley dressed up by:

taking your blocks.html file, spliting it up, into two chunks of code, everything before the variable ($content) in the body of your block, and everything after.

lets call the first chunk your "custom open table code" and the part after your "custom close table code"

Take those two chunks of code, and use the nuke tools to convert this HTML code to php code.

once you have converted them, they are ready to be used in the correct PHP file.

look in the YOUR_THEME folder,

example: /var/www/themes/MY_THEME if you are on a webserver

you will notice, a theme.php file. if you do not, then you are either confused about where to look, or you are way ahead of yourself and should come back to this post after you have built your theme.php file.

if you only see a theme.php most likely you need to modify this file, but depending on what HOWTO or tutorial or templates you used to design your theme, there might be a seperate file containing the code you need to modify. some themes use one set of open table functions and some use two, maybe more. regardless, you need to modify the one that creates the table you want to dress up.

So, you might find the open table functions (one or two sets) in theme.php or in tables.php or functions.php look around, when you find a set of OpenTable functions, you need to figure out which one to modify.

The easiest way I know of is to examine the open tables code, look for the table tag eg. <table..... and modify it like this <table name=XXX .... save up and go reload your nuke page in the browser. view the source of the page and see if the table in your page has the XXX, using this technique I determine which table in the open tabels functions is the outer table, Once I know that, I modify the function.

Editing my function I replace the open table code with my CUSTOM OPEN TABLE CODE that I converted to PHP, then I repace the matching close table code with my CUSTOM CLOSE TABLE CODE.

save up and reload the nuke page in the browser, it should now be dressed in your block graphics.

I cant say this enough, if you dont *BACK UP YOUR FILES* you are going to mess up and loose em eventually. Good luck, no waranty, mod at your own risk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
building a theme magnum100 Nuke 7.x - Themes 3 06-04-2006 08:34 AM
How to start building a with PHP waymore Open topics 2 01-21-2006 03:56 AM
Looking for some mods Bleeder Other "stuff" 1 12-08-2005 02:18 PM
ported mods iphoenix Open topics 2 06-01-2003 12:48 PM
Building a Roster Type Module Scott Nuke 6.5 to 6.9 - Modules 0 05-08-2003 03:46 PM


All times are GMT -5. The time now is 07:33 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31