| View previous topic :: View next topic |
| Author |
Message |
Shotokan dadaMember


Joined: May 09, 2007 Posts: 11
|
Posted: Wed May 09, 2007 11:54 am Post subject: Header Banner |
|
|
Hi
I have been trying for a long time to have a banner on the right side of my site header just like you have here but i could not find some one that tell me how it needs to be done.
I have post in many different Nuke forums but no sucess.
Would you be able to help me to do that? I am using PHP-Nuke 7.8 patched 3.3. and i really like to see the banner where you guys have.
I appreciate your help.
Thanks, _________________
 |
|
| Back to top |
|
 |
emilacosta dadaAdmin


Joined: Sep 19, 2005 Posts: 219 Location: Miami, FL
|
Posted: Wed May 09, 2007 4:59 pm Post subject: |
|
|
You can work with the theme of your site for that. If you download the Nuke distribution from this site and take a look in the DeepBlue theme you will see it.
1. you will need to declare the global variable $banners
2. add $ads = ads(0); // 0 is for the position of the ads
3. print it where you need it echo "$ads;"
Enjoy.  _________________ "In the computer business you’re either a one or a zero and I am determined never to be zero." |
|
| Back to top |
|
 |
Shotokan dadaMember


Joined: May 09, 2007 Posts: 11
|
Posted: Wed May 09, 2007 6:40 pm Post subject: |
|
|
| emilacosta wrote: | You can work with the theme of your site for that. If you download the Nuke distribution from this site and take a look in the DeepBlue theme you will see it.
1. you will need to declare the global variable $banners
2. add $ads = ads(0); // 0 is for the position of the ads
3. print it where you need it echo "$ads;"
Enjoy.  |
What is the Nuke distribution you mentioned? I try to find it but i did not find. Can you place the link here?
Once again thanks a lot _________________
 |
|
| Back to top |
|
 |
emilacosta dadaAdmin


Joined: Sep 19, 2005 Posts: 219 Location: Miami, FL
|
Posted: Thu May 10, 2007 7:58 am Post subject: |
|
|
The last version will be good. Remember to use the ads system make sure you have the advertisng module install and active. Here is the link:
http://dadanuke.org/modules.php?name=Downloads&d_op=getit&lid=97
Enjoy.  _________________ "In the computer business you’re either a one or a zero and I am determined never to be zero." |
|
| Back to top |
|
 |
Shotokan dadaMember


Joined: May 09, 2007 Posts: 11
|
Posted: Fri May 11, 2007 2:56 pm Post subject: |
|
|
First of all thanks for the link.
AHhh. Now i see what makes the banners appears there on the header. Now i just have one more small problem maybe.
My theme have the html part for the header in a different file, so the theme.php call up another file on the theme directory called header.html. Looking you code for the depblue theme both pieces the theme.php and header.html are inside the same program (them.php), so when i add the $ads to my header.html nothing really happens.
What i would hav to do? Merge the header.html inside the theme.php or can it be done using that structure?
I am posting the files here to help you analyze/see what i am talking about and see if you can help me. _________________
 |
|
| Back to top |
|
 |
dadaBIT General Manager


Joined: Jun 23, 2005 Posts: 582 Location: United States
|
Posted: Fri May 11, 2007 6:17 pm Post subject: |
|
|
Hello, have placed the banner variable in theme.php. Removed legacy banner code as well. All you have to do now is place this code anywhere you want banner (position 0). Say for example you want it in header, then open header.html and experiment by placing the below variable where it is a best fit for your theme layout.
Defined banner variable
-Kev _________________
 Visit the DaDaNuke Wish List |
|
| Back to top |
|
 |
Shotokan dadaMember


Joined: May 09, 2007 Posts: 11
|
Posted: Sat May 12, 2007 12:52 pm Post subject: |
|
|
Hey dadaBIT
I did what you said and added the variable like you said into my header.html.
After several tentatives without sucess i finally found away to make it appear:lol:
Now the only thing is the banners shows at the center of my header and would like to have it on the right side like it appears on your site. I have tried to move the variable aroung but couldn't make it appear there without damaging the whole table structure. Honestly the way i placed the variable there is kind of weird but is working at least
I have added the code here so if you have some time to look and laught a little bit of what i did...but that's ok. I just stressed already my alternatives on adding it to the right side corner of my header. Another reason I think the way i added is wrong because if I try to click on the banner at the header it's not working but If i place the banner on other partes of the side the click url is ok.
Thanks a lot for all your helo so far.
Here is the code.
http://www.n00bfest.com/aceite/themes/HL2/header.zip _________________
 |
|
| Back to top |
|
 |
Shotokan dadaMember


Joined: May 09, 2007 Posts: 11
|
Posted: Mon May 14, 2007 12:50 pm Post subject: |
|
|
How do you guys managed to have the different banners at the header changing like that? They are all coded inside the header.html?
I looked at the source code and you don't use the $ads variable right? Whý is that?
Thanks, _________________
 |
|
| Back to top |
|
 |
|