PDA

View Full Version : Script Strips Off Images?


Larry
04-13-2006, 06:30 AM
I added an advertisement to the bottom of my page using PHP include:
<? include ("http://www.9wonders.com/index2.htm");?></p>

But when I load my website, Funny9.com (http://www.funny9.com), the images seem to be stripped off. Why is it so and what's the solution?

Also, there's an "N" on my index page - why is it there and how do I get rid of it?

Thanks.

Ryan
04-13-2006, 06:49 AM
In order to do this, what I would do is set that page to a variable. Todo that do this within the global.php file:
$advertisment = implode('', file("http://www.9wonders.com/index2.htm"));

Then in the footer template add this:
{advertisment}

Larry
04-13-2006, 07:38 AM
In order to do this, what I would do is set that page to a variable. Todo that do this within the global.php file:
$advertisment = implode('', file("http://www.9wonders.com/index2.htm"));

Then in the footer template add this:
{advertisment}

I added the line in global.php

And then added {advertisment} to the pages that I wanted it to appear - file.php and file_listing.php but no luck. Please advise.

Also, I think you missed by question about the "N". Thanks.

Ryan
04-13-2006, 08:11 AM
I'm really not sure what the N is. It looks to be some type of template problem. The {advertisment} must go in template files. So, yes, you would then just add it to those files that you suggested above.

Larry
04-13-2006, 09:58 AM
I'm really not sure what the N is. It looks to be some type of template problem. The {advertisment} must go in template files. So, yes, you would then just add it to those files that you suggested above.

The "N" appeared with the default setup for me.

I've done exactly what you said but the images still doesn't show, as you can see at http://www.funny9.com

Any other suggestions?

Ryan
04-13-2006, 11:28 AM
The issue with the script is that the images on that page have relative paths. So when it is set on this site they are being looked for on this site. So in order to fix this either upload the files to your images folder or set full paths on that page. :)

I'm still looking into the "N" issue.

Larry
04-13-2006, 11:52 AM
The issue with the script is that the images on that page have relative paths. So when it is set on this site they are being looked for on this site. So in order to fix this either upload the files to your images folder or set full paths on that page. :)

Is there any other alternative? Here's my situation - Funny9.com is part of a network of 9 websites (so far) that I'm currently building. I've used PHP include for the menu on ALL the websites so that I only need to change one file instead of nine. Now you see why it's important for me to get it to work? ;)

I'm still looking into the "N" issue.

Thanks, Ryan. Let me know when you've found the reason for the problem.

Ryan
04-13-2006, 11:56 AM
Like I mentioned, just change that file so the image paths are full paths for example:
images/arcade9.gif
to
http://www.9wonders.com/images/arcade9.gif

Larry
04-13-2006, 12:09 PM
Like I mentioned, just change that file so the image paths are full paths for example:
images/arcade9.gif
to
http://www.9wonders.com/images/arcade9.gif

Aaah... ok. I got what you mean - change it in my original file. Will give it a try and let you know how it turns out.

Update: great it works! But while the layout is ok in IE, it's incorrect in Firefox.

Larry
04-16-2006, 01:55 AM
The issue with the script is that the images on that page have relative paths. So when it is set on this site they are being looked for on this site. So in order to fix this either upload the files to your images folder or set full paths on that page. :)

I'm still looking into the "N" issue.

Hi Ryan, any update on the "N" issue?

Ryan
04-16-2006, 02:21 AM
It's an issue in the default template I believe. Check the footer template for a random N. I'm going to release an update soon with a few bug fixes. It will have the fix for that as well.