Welcome Guest!   Please Login or Register
Subscribe Today

You are not subscriber of DaDaNuke | Making PHP-Nuke Better!. You can subscribe from here now!

Sponsored Links




Search




Site Navigation

· Home
· About Us
· Advertise With Us
· Club
· CVS
· Downloads
· Feedback
· Forums
· Gallery
· Groups
· Journal
· Private Messages
· Search
· Stories Archive
· Submit News
· Top 10
· Topics
· Web Links
· Your Account

Survey

I Want This Addon:

SEO
Gaming
Commerce
Database
Security



Results
Polls

Votes 562

Advertisers





Who's Online

There are currently, 26 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here

Total Hits

We received
3867017
page views since September 2005




DaDaNuke :: View topic - Header Banner
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log inLog in 

Header Banner

 
Post new topic   Reply to topic    DaDaNuke Forum Index -> PHP-Nuke Themes
View previous topic :: View next topic  
Author Message
Shotokan
dadaMember
dadaMember


Joined: May 09, 2007
Posts: 11


PostPosted: Wed May 09, 2007 11:54 am    Post subject: Header Banner Reply with quote

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. Crying or Very sad

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
View user's profile Send private message AIM Address
emilacosta
dadaAdmin
dadaAdmin


Joined: Sep 19, 2005
Posts: 219
Location: Miami, FL

PostPosted: Wed May 09, 2007 4:59 pm    Post subject: Reply with quote

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. Wink
_________________
"In the computer business you’re either a one or a zero and I am determined never to be zero."
Back to top
View user's profile Send private message Visit poster's website
Shotokan
dadaMember
dadaMember


Joined: May 09, 2007
Posts: 11


PostPosted: Wed May 09, 2007 6:40 pm    Post subject: Reply with quote

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. Wink


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
View user's profile Send private message AIM Address
emilacosta
dadaAdmin
dadaAdmin


Joined: Sep 19, 2005
Posts: 219
Location: Miami, FL

PostPosted: Thu May 10, 2007 7:58 am    Post subject: Reply with quote

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. Wink
_________________
"In the computer business you’re either a one or a zero and I am determined never to be zero."
Back to top
View user's profile Send private message Visit poster's website
Shotokan
dadaMember
dadaMember


Joined: May 09, 2007
Posts: 11


PostPosted: Fri May 11, 2007 2:56 pm    Post subject: Reply with quote

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. Embarassed

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
View user's profile Send private message AIM Address
dadaBIT
General Manager
General Manager


Joined: Jun 23, 2005
Posts: 582
Location: United States

PostPosted: Fri May 11, 2007 6:17 pm    Post subject: Reply with quote

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
Code:
$myban


-Kev
_________________

Visit the DaDaNuke Wish List
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Shotokan
dadaMember
dadaMember


Joined: May 09, 2007
Posts: 11


PostPosted: Sat May 12, 2007 12:52 pm    Post subject: Reply with quote

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 Mr. Green

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
View user's profile Send private message AIM Address
Shotokan
dadaMember
dadaMember


Joined: May 09, 2007
Posts: 11


PostPosted: Mon May 14, 2007 12:50 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    DaDaNuke Forum Index -> PHP-Nuke Themes All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Powered by phpBB © 2001 phpBB Group Version 2.0.6 of PHP-Nuke Port by Tom Nitzschner © 2002 www.toms-home.com
Theme designed by Western Studios



Terms of Use | Privacy Policy © 1996-2007, DaDaNuke

Listed on FeedBurner

PHP-Nuke Copyright © 2006 by Francisco Burzi. This is free software, and you may redistribute it under the GPL.
PHP-Nuke comes with absolutely no warranty, for details, see the license.

Theme Designed by Western Studios