Author |
Message |
kaain
New Member


Joined: Oct 22, 2006
Posts: 23
|
Posted:
Wed Mar 14, 2007 5:46 pm |
|
Im using NukeClients(tm), How do I integrate a banner directly in the header.
Thanks in advance |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Wed Mar 14, 2007 5:55 pm |
|
isnt that explained in the readme ? |
|
|
|
 |
kaain

|
Posted:
Wed Mar 14, 2007 6:06 pm |
|
Ok this is what I have done:
Code:<TR>
<TD>
<IMG SRC="themes/Tactical/images/header_down_17.png" WIDTH=3 HEIGHT=60 ALT=""></TD>
<TD COLSPAN=3>
<IMG SRC="themes/Tactical/images/header_down_18.png" WIDTH=200 HEIGHT=60 ALT=""></TD>
<TD>
<IMG SRC="themes/Tactical/images/header_down_19.png" WIDTH=10 HEIGHT=60 ALT=""></TD>
<TD COLSPAN=9><?php $content = "$tbanners5"; ?></TD>
<TD>
<IMG SRC="themes/Tactical/images/header_down_21.png" WIDTH=10 HEIGHT=60 ALT=""></TD>
<TD COLSPAN=3>
<IMG SRC="themes/Tactical/images/header_down_22.png" WIDTH=200 HEIGHT=60 ALT=""></TD>
<TD>
<IMG SRC="themes/Tactical/images/header_down_23.png" WIDTH=3 HEIGHT=60 ALT=""></TD>
</TR>
|
But it still doesn't show  |
|
|
|
 |
hitwalker

|
Posted:
Wed Mar 14, 2007 6:11 pm |
|
mmm, its long ago since i saw it but that cant be all...
do check your readme,i think your missing something... |
|
|
|
 |
kaain

|
Posted:
Wed Mar 14, 2007 6:22 pm |
|
|
|
 |
crazycrack
New Member


Joined: Jun 05, 2006
Posts: 8
|
Posted:
Wed Mar 14, 2007 6:27 pm |
|
Quote: | To add placements you first add the placement thru your NukeClients
"Placement Listing".
Once you have added the placement thru the listing make note of it #.
Then goto the includes folder and open one of the bcbannersX.php files.
"Save As" bcbanners#.php . In the file look for all occurances of pid='X'
and change it to pid='#' . Now look for all occurances of $bcbannersX
and change them to $bcbanners# . Now resave and upload the file.
Now open the theme.php file. Depends where you want the new placement
to be at you will edit either the themeheader or themefooter function.
All header and left side block placements are added to the themeheader
function and all right side block and footer placements are added to
the themefooter function.
If your adding a block placement then all you have to do is to add an
include:
Old includes:
include("includes/bcbanners1.php");
include("includes/bcbanners2.php");
include("includes/bcbanners3.php");
New includes:
include("includes/bcbanners1.php");
include("includes/bcbanners2.php");
include("includes/bcbanners3.php");
include("includes/bcbanners#.php");
If you are adding a placement for the header or footer then you will
also have to add coding for this to the exsiting code. You will have
to add $tbanners# where you want the banner to appear. Remember you
will need some basic html knowledge to add this type of place so that
your theme still looks like it did before adding the placement. |
That's the HOW TO file.
I try to find the way with KAAIN to make that working. Everything work fine in a block but nothing I try work on the header.
Any suggestion? |
|
|
|
 |
hitwalker

|
Posted:
Wed Mar 14, 2007 6:32 pm |
|
depends on the theme your using....
and make sure you've done the edits right... |
|
|
|
 |
crazycrack

|
Posted:
Wed Mar 14, 2007 7:03 pm |
|
Ok, the explaination are not very clear in the how to file! And about the theme its a custom made: http://phpnuke-clan.net
So some one know exactly what to modify or what to add? Wich file, exactly what add or modify and where! |
|
|
|
 |
hitwalker

|
Posted:
Wed Mar 14, 2007 7:13 pm |
|
with theme i mean....does it comes with a bunch of html files or just a theme.php
if its html then the banner variables has to be defined properly otherwise the script will be blind..
install maybe clear or not but we dont know it either as its commercial.. |
|
|
|
 |
crazycrack

|
Posted:
Wed Mar 14, 2007 7:17 pm |
|
do you know where I can find support on nukescript?
Because I pay for a script and I have now way to contact the support.
I dont understand why it so hard to add in the HOW TO the completes direction like:
find "something" in file.php
and after add this line.....
Anyway thx for your yelp, if another one have an idea let me know! |
|
|
|
 |
crazycrack

|
Posted:
Wed Mar 14, 2007 8:30 pm |
|
Ok I find the problem. For the header integration, you need to add :
include("includes/bcbanners#.php");
before
include("themes/theme_name/header.php");
in (html/themes/theme_name/theme.php)
So it will look like this:
include("includes/bcbanners#.php"); (IMPORTANT TO PLACE IT BEFORE)
include("themes/theme_name/header.php");
NOTE: the "#" = the number pid.
And to finish the integration, you will need to open
(html/themes/theme_name/header.php)
and simply add
echo "$bcbanners#\n";
where you want you banner! |
|
|
|
 |
hitwalker

|
Posted:
Thu Mar 15, 2007 5:02 am |
|
so all of that is done ?
is it working or not ? |
|
|
|
 |
crazycrack

|
Posted:
Thu Mar 15, 2007 11:57 am |
|
Yes! It work fine with this instruction!
Thank you for your help! |
|
|
|
 |
|