is it like custom 404 error page?

The hub of Aura activity, the cortex that binds the forum together.
Post Reply
User avatar
kaos
Noble Warrior
Posts: 4089
Joined: Mon Jun 14, 2004 3:09 pm
Location: Atlanta, Ga

Post by kaos » Sat Mar 10, 2007 5:00 am

I don't want one.

but I was wonder if theirs something you can do along the same lines for like a custom way to display a jpeg.

I think I've seen it before but i could have been fooled.

anyway...
the url would basically read something like www.mysite.com/drawing.jpeg

but instead of displaying it the normal way, (the image in the upper left on a blank naked page), it would instead be displayed with a nice setup with the image centered in the middle of the page on with a background color and some links etc so you could nav back to the main site.

how do you do that?

I'm assuming it might in some way be related to custom 404errors. but you know, thats a wild guess.

something like that would be excellent for me on a portfolio site. Cuzz then I could just upload shit and it would just work without me having to make a whole damn page just to display a single image. when I'm likely to have upward of 30 images.

I don't mind making the initial page with the link to the artwork. but having to make a page for the artwork too? thats asking a but much.
April
Enforcer
Posts: 309
Joined: Mon Jun 14, 2004 5:06 am
Location: WonderLand

Post by April » Sat Mar 10, 2007 5:11 am

Do you mean like a splash image?
User avatar
Chewi
Anti-Hero
Posts: 3521
Joined: Sat Jun 12, 2004 3:51 pm
Location: Edinburgh, Scotland

Post by Chewi » Sat Mar 10, 2007 11:42 am

It's not really a custom 404 you want though you could do it that way, I suppose. One of the main reasons for not doing it that way is that a URL ending in .jpeg implies that you simply want an image, not a whole page. It could confuse the browser. The best solution is quite easy though. Make your page as usual but save it as view.php or something. When you add your img tag, do it like this...

Code: Select all

<img src="<?php echo "images/" . $_GET['x']; ?>">
Put your images in the images directory below this page and you can then simply browse to http://www.mysite.com/view.php?x=drawing.jpeg.
Last edited by Chewi on Sat Mar 10, 2007 11:46 am, edited 1 time in total.
User avatar
kaos
Noble Warrior
Posts: 4089
Joined: Mon Jun 14, 2004 3:09 pm
Location: Atlanta, Ga

Post by kaos » Sat Mar 10, 2007 3:41 pm

awsome.
I'll try it when i get back.
Post Reply