PDA

View Full Version : Configuring php Nuke


carrielang
12-11-02, 04:50 PM
Ok, newbie blonde striking again here :)

How do I go about configuring php nuke? I have the admin screen up....but I can't figure out how to get a Menu box...how to get rid of other boxes, how to put my banner at the top, get rid of that first welcome message, etc.

I'm such a newbie to this, it's beyond pathetic. Is there a website that explains all this? Or a good book that's suggested I get?

Thanks all!!!

Jade Dragon
12-11-02, 07:41 PM
Here's my thread on nuke forums...
http://www.nukeforums.com/forums/viewtopic.php?topic=11511&forum=39&10

I have some customizations that I did and posted there.

to configure...

http://www.yoursite.tld/admin.php

that will bring up the login screen or go right to the config page with a bunch of icon.

click on preferences.

there is where you can control your general layout and which default theme to use...DO NOT USE SLASH!!!! there is a problem in the original code that came with the site. manage the footers and settings.


the "blocks" is where you can manage your menu boxes. I suggest just making your own and deactivating the original ones.
scroll down to the "add new block" the "title" is what will appear above your menu. Ignore the RSS/RDF and the drop down menus.

Now see that nice big blank area? that's where you can add all the html/php/javascript/ & flash you want. It will automatically put in inside a block for the menu.

Position Left/Right and such.....

Set permissions and "create block"

Jade Dragon
12-11-02, 07:54 PM
To replace your header, configure colors and over all edit the theme(s) you want to use.

Figure out which theme(s) you want to use. I only go with one per setup since it is so much easier to customize and not worry about doing multiple theme changes.

Look for "../themes/YourThemeChoice/theme.php this is where your main editing is going to happen. Some themes have broken out the header/footer and such.

there are litterally hundreds of phpnuke themes out there. http://www.nuke-themes.com/ is a good place to find one that interests you.

If you open up the "'theme.php" in notebook you will see the coding that manages your site.

for example
/************************************************** **********/
/* Theme Colors Definition */
/* */
/* Define colors for your web site. $bgcolor2 is generaly */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the */
/* other two bgcolor variables follows the same criteria. */
/* $texcolor1 and 2 are for tables internal texts */
/************************************************** **********/

$bgcolor1 = "#DEDEE6";
$bgcolor2 = "#BCBCCB";
$bgcolor3 = "#DEDEE6";
$bgcolor4 = "#DEDEE6";
$textcolor1 = "#660000";
$textcolor2 = "#660000";

this is for the tables. Most of the well done themes will have the block of text over what you need to edit. I suggest starting with a simple theme to experiment with. Then go on to a more adavance theme to edit, once you are used to php.

carrielang
12-11-02, 08:00 PM
Wow...thank you a bunch :)

Ok, got a menu done (darn html.....I'm such a newbie, but learning bit by bit :) ).... and am tweaking it a little bit. Got hubby on a search for some topic icons....then I think we're finally done :) Then to make it the actual start page instead of the gimpy silly one we got now :)

Jade Dragon
12-11-02, 08:03 PM
php example

when editing your header (or other info) in the theme.php be carefull of how you code. the " has to be escaped in most cases.

."<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#DEDEE6\"><tr>\n"
."<td bgcolor=\"#DEDEE6\"><IMG src=\"themes/BlueBump/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td></tr></table>\n"
."<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#BCBCCB\">\n"
."<tr>\n"

see befor every " there is a / this allows php to read the above code like so.

<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" bgcolor="#DEDEE6"><tr>
<td bgcolor="#DEDEE6"><IMG src="themes/BlueBump/images/pixel.gif" width="1" height="1" alt="" border="0" hspace="0"></td></tr></table>
<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" bgcolor="#BCBCCB">
<tr>

look familiar now?

the ."echos the line for php and the \n" tells php line end or 'return'

If you have question feel free to ask. a good thing to do is refer to which theme you are using and specifically what errors or question you might have.

Good Luck.

Jade Dragon
12-11-02, 08:06 PM
See post further down....

Jade Dragon
12-11-02, 08:17 PM
Maybe I'll end up with a tut :p


Modules what are they and how to make new ones.

if you click on modules in the admin section you will see a list simular to the blocks. These however are your modules or applications which you can also activate or deactivate as needed.

There no real editor for the modules since it is application based (like forums or a gallery)

BTW- phpBB port for phpNuke is at http://bbtonuke.sourceforge.net and the Gallery I use on my site is at http://www.marsishere.net/ called My_eGallery

in your directory http://path.to.nuke.site/modules/
you will see the list of modules. If you want to make a new module then here is where you need to create a folder and put your pages in it. (next post creating multiple static pages in phpnuke)

then once that is done you can then click on your "modules" link in you admin pannel and it automatically appears. then you can click "activate" . boom your done you have a new module.

Jade Dragon
12-11-02, 08:24 PM
Creating multiple "static" pages in phpnuke.

1) create a new folder in "modules" and name it accordingly.

2) create a new index.php file with this information. This will theme your static pages. (for this post I edited out the copyright info)

<?php

if (!eregi("modules.php", $PHP_SELF)) {

die ("You can't access this file directly...");
}
include("header.php");
?>

Put all your HTML/PHP here minus the "head" & "body" tags

<?php
include("footer.php");
?>

3) use the same format above to create your other *.php pages in the new directory you created.

4) Now to link the pages together. Use the following link structure to call the pages within the new module directory.

<a href="../modules.php?op=modload&name=FolderName&file=filename" style="text-decoration: none">Link Here</a><br>


Change the FolderName to your directory name and the filename to the name of the file you wish to link to. Thing to remember when linking to the file name is to not put the extension in the code; filename Not filename.php

When you are done creating your pages you can activate the module in the admin section of phpNuke.

Jade Dragon
12-11-02, 08:28 PM
I think that just about covers the basics on configuring phpNuke.

After this maybe I will do a tutorial.

anywho.....good luck on your site. Any questions feel free to ask!

JD

evilstranger
12-13-02, 04:41 PM
for some reason when i copy the code and paste it into my new block i get no mage do you no what can be causing this?

Jade Dragon
12-13-02, 04:47 PM
My phpNuke site HERE (http://wizardry-realm.drazanfamily.com/) uses the flash nav bar that you can find here http://resources.powweb.com/tools/utilities.htm just copy the entire code that it gives you into a block and you automatically have your flash menu.

Additional NOTE:

save the *swf file from the resource page and upload it to your server/package.

also if you have problems with it showing up use the Full URL path to the *swf file. http://www. etc etc....

evilstranger
12-13-02, 06:10 PM
thank you very much for the quick reply as it is working now..