Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
sting
Involved
Involved



Joined: Sep 23, 2003
Posts: 456
Location: Somewhere out there...

PostPosted: Tue Jul 26, 2005 7:51 am Reply with quote

Okay -

I created an include file that pulls a random banner from a table and displays it - this is the 468x120 or whatever size it is.

In firefox, it looks great - but only in one theme.

I used table defs to set the banner, and was using fisubsilver as the theme, which is a 100% width theme. Deep Blue displays it way out to the right.

Question 1.

How does one go about placing the banner in the same place for all themes?

EDIT - I have put the include in the my_header.php . .

Now, going back to the first scenario - Firefox, fisubsilver - looks great. Switch to IE. NOTHING shows up. On occasion between refreshes, I catch a glimpse of the banner - but then it is covered by the cerulean blue.

Deep Blue, IE - looks the same as Firefox, way out to the right.

Question 2.

What is up with IE? I have checked the validator, and of course there are 100's of errors, but I have corrected the ones that are not within the ad itself.

Question 3.

Is there another / possibly better way to space these out in themes rather than using table references?

Thanks in advance...

Here is the code for the placement that works under Firefox and fisubsilver..

It is in an include file...

Code:


echo "<table align=\"RIGHT\">";
echo "<tr><td></td></tr>";
echo "<tr><TD></td></tr><tr><td></td></tr><tr><td></td></tr><tr><td></td></tr><TR><TD>" . $disp_random            ."</td></tr><tr><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD>"
                        ."<TD></TD><TD></TD><TD></TD><TD></TD></tr></table>";
                  



-sting
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
64bitguy
The Mouse Is Extension Of Arm



Joined: Mar 06, 2004
Posts: 1164

PostPosted: Tue Jul 26, 2005 10:55 pm Reply with quote

Where abouts in your theme are you trying to get this to appear?

Code:


echo "<table width=\"100%\" align=\"RIGHT\"><tr><td align=\"right\">".$disp_random."</td></tr></table>";


Of course it would really help to know what the properties of that variable are to ensure that it is a compliant call. (includes all of the relevant information)

_________________
Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance. 
View user's profile Send private message
sting







PostPosted: Wed Jul 27, 2005 8:04 pm Reply with quote

I am trying to get it to appear in the top right hand corner of the theme - regardless of which theme it is.

$disp_random is an ad, basically just an a href link with a banner image.

-sting
 
64bitguy







PostPosted: Wed Jul 27, 2005 10:17 pm Reply with quote

I'm assuming that your variable has definitions that:

a) Establish the image file location
b) Establish the image file height properties
c) Establish the image file width properties
d) Establish the url destination of the click-through of the image
e) Establish a title variable in those url properties
f) Establish the alt properties in the image file location properties

If so the above snippet of code that I provided should work in placing your ad in the upper right part of your header regardless of the theme. If not, please advise.

Remember, In Other words your variable should result in this:
Code:
$disp_random = <a href=\"http://destination.com\" title=\"Destination Information\" target=\"_blank\"><img src=\"images\advertisement.gif\" alt=\"Destination Information\" width=\"468\" height=\"60\"></a>


Modified to add the target in the href call... I new I forgot something. Smile


Last edited by 64bitguy on Thu Jul 28, 2005 6:46 am; edited 1 time in total 
VinDSL
Life Cycles Becoming CPU Cycles



Joined: Jul 11, 2004
Posts: 614
Location: Arizona (USA) Admin: NukeCops.com Admin: Disipal Designs Admin: Lenon.com

PostPosted: Thu Jul 28, 2005 6:43 am Reply with quote

sting wrote:
How does one go about placing the banner in the same place for all themes?...

I am trying to get it to appear in the top right hand corner of the theme - regardless of which theme it is....

EDIT - I have put the include in the my_header.php ...

Little trick I discovered... Try putting the banner code in 'includes/javascript.php' instead of 'my_header.php' ... Wink

_________________
.:: "The further in you go, the bigger it gets!" ::.
.:: Only registered users can see links on this board! Get registered or login! | Only registered users can see links on this board! Get registered or login! ::. 
View user's profile Send private message Visit poster's website ICQ Number
sting







PostPosted: Thu Jul 28, 2005 8:07 am Reply with quote

Quote:

a) Establish the image file location
b) Establish the image file height properties
c) Establish the image file width properties
d) Establish the url destination of the click-through of the image
e) Establish a title variable in those url properties
f) Establish the alt properties in the image file location properties


Yes, all this is taken care of. The ALT properties are not always assigned, as the code is ad code from banners that I do not code, but the properties for the most part are there.

Is the width/height what throws it off?

-sting
 
sting







PostPosted: Thu Jul 28, 2005 8:09 am Reply with quote

Quote:


Little trick I discovered... Try putting the banner code in 'includes/javascript.php' instead of 'my_header.php' ... Wink



Vin - this actually moved the header much closer in Deep Blue, but under fisubsilver it still puts it behind the theme header - so I can see it for a brief second, but then the blue/white covers it up and it is behind the theme. Same thing in Deep Blue, it appears behind the actual theme, but it is closer to the actual location.

Again, this is only happening in IE... arghf.
Firefox makes it look great...

-sting
 
64bitguy







PostPosted: Thu Jul 28, 2005 11:27 pm Reply with quote

Its really hard to diagnose this without knowing where it is happening and to see the source-code generating the results.

There are really 3 ways to do this, maybe more, depending on the version of nuke in question.

I would say that typically it would probably belong in the includes/my_header.php; however, if you need it to be presented after the stylesheet yet before the /head call you would put it in your includes/custom_files/custom_head.php or finally, if you need it to be AFTER the stylesheet and also after the /head call, you would put it in your includes/custom_files/custom_header.php. You should validate this by checking your root header.php to see the different options that should be displayed in that order. This is the way it is in my pretty customized version of 7.6.

Try it all 3 ways and compare the results.
 
sting







PostPosted: Fri Jul 29, 2005 9:54 am Reply with quote

Quote:
includes/custom_files/custom_head.php


I am not seeing this at all - is this theme based or a later version of Nuke using that directory structure?

I am running this on 7.4

Thanks,
-sting
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©