DreamHost Discussion Board http://discussion.dreamhost.com/postlist.pl?Board=forum_programming Threads in the "forum_programming" forum at the DreamHost Discussion Board! Sat, 07 Nov 2009 06:35:03 -0800 http://discussion.dreamhost.com/ en PHP gallery problems http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123754&page=0&view=collapsed&sb=5&o=14&vc=1 Thu, 05 Nov 2009 16:18:04 -0800 Sebastiang forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123754&page=0&view=collapsed&sb=5&o=14&vc=1 Post Reply?

So im trying to create a PHP gallery. And I want the thumbnail (links) to display the actual image beside it. Now so far I have that part working. But the issue is when I go that page in the first place. I want the first image to already be displayed and then I can continue clicking the others. But it simply doesn't work. I've tried a number of different variations and I get a number of different problems...

Heres my code:

<ul>
<li> <a href="?pic=Album" ><img src="Images/Album.jpg" alt="Album Cover" title="Album Cover" height="75px" width="75px" /></a></li>
<li> <a href="?pic=AlbumCD"><img src="Images/AlbumCD.jpg" alt="AlbumCD" title="AlbumCD" height="75px" width="75px" /></a></li>
<li> <a href="?pic=Logos"><img src="Images/Logos.jpg" alt="Logo Designs" title="Logo Designs" height="75px" width="75px" /></a></li>
<li> <a href="?pic=SnowboardDeck"><img src="Images/SnowboardDeck.jpg" alt="Snowboard Deck" title="Snowboard Deck" height="75px" width="75px" /></a></li>
</ul>

<?php
$pic = $HTTP_GET_VARS['pic'];
if(!$pic) {$pic='Album';}?>

<p id="imgs"><img src="Images/<?php echo $pic; ?>.jpg" alt="example" title="example" height="450px" width="450px"/></p>



Its been really frustrating me and I would appreciate any help!

Edited by Sebastiang on 11/05/09 04:19 PM (server time).

]]>
Post Reply?

So im trying to create a PHP gallery. And I want the thumbnail (links) to display the actual image beside it. Now so far I have that part working. But the issue is when I go that page in the first place. I want the first image to already be displayed and then I can continue clicking the others. But it simply doesn't work. I've tried a number of different variations and I get a number of different problems...

Heres my code:

<ul>
<li> <a href="?pic=Album" ><img src="Images/Album.jpg" alt="Album Cover" title="Album Cover" height="75px" width="75px" /></a></li>
<li> <a href="?pic=AlbumCD"><img src="Images/AlbumCD.jpg" alt="AlbumCD" title="AlbumCD" height="75px" width="75px" /></a></li>
<li> <a href="?pic=Logos"><img src="Images/Logos.jpg" alt="Logo Designs" title="Logo Designs" height="75px" width="75px" /></a></li>
<li> <a href="?pic=SnowboardDeck"><img src="Images/SnowboardDeck.jpg" alt="Snowboard Deck" title="Snowboard Deck" height="75px" width="75px" /></a></li>
</ul>

<?php
$pic = $HTTP_GET_VARS['pic'];
if(!$pic) {$pic='Album';}?>

<p id="imgs"><img src="Images/<?php echo $pic; ?>.jpg" alt="example" title="example" height="450px" width="450px"/></p>



Its been really frustrating me and I would appreciate any help!

Edited by Sebastiang on 11/05/09 04:19 PM (server time).

]]>
PHP BBCode http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123635&page=0&view=collapsed&sb=5&o=14&vc=1 Mon, 02 Nov 2009 17:35:45 -0800 chaseler forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123635&page=0&view=collapsed&sb=5&o=14&vc=1 Post Reply?

Hey Guys,

I've been with Dreamhost for a few months now, and it's been great. I've recently come across a problem though; I am trying to implement BBCode into my blog, in the comments. I want to use this because it is secure and works well. I have a custom BBCode class, but this has many security loopholes, and I wish to use the official one. Does any one know how to set this up on my dreamhost account?


Regards,
Chris Haseler ]]> Post Reply?

Hey Guys,

I've been with Dreamhost for a few months now, and it's been great. I've recently come across a problem though; I am trying to implement BBCode into my blog, in the comments. I want to use this because it is secure and works well. I have a custom BBCode class, but this has many security loopholes, and I wish to use the official one. Does any one know how to set this up on my dreamhost account?


Regards,
Chris Haseler ]]> Rails application error after Copenhagen crash http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123581&page=0&view=collapsed&sb=5&o=14&vc=1 Sat, 31 Oct 2009 13:16:39 -0800 nwillis forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123581&page=0&view=collapsed&sb=5&o=14&vc=1 Post Reply?

Hi,
I run a Rails app on one of my domains -- "Tracks" -- just for my own private amusement. Unfortunately, my domain was on Copenhagen, which crashed and burned for two days earlier this week. Well, since it came back up, I haven't been able to get the Rails app up and running again, and I just don't know enough about it to diagnose the problem. I'm a Rails user, not a Rails hacker.

The app just displays a 500 error: "Application error (Apache)" .... I can clear the cookies and the app login screen appears to be working fine so I know the app is running, but once I log in it's 500.html all the way down.

This just started after the crash, yet I can't figure out where to look for the problem. Any advice?

n

]]> Post Reply?

Hi,
I run a Rails app on one of my domains -- "Tracks" -- just for my own private amusement. Unfortunately, my domain was on Copenhagen, which crashed and burned for two days earlier this week. Well, since it came back up, I haven't been able to get the Rails app up and running again, and I just don't know enough about it to diagnose the problem. I'm a Rails user, not a Rails hacker.

The app just displays a 500 error: "Application error (Apache)" .... I can clear the cookies and the app login screen appears to be working fine so I know the app is running, but once I log in it's 500.html all the way down.

This just started after the crash, yet I can't figure out where to look for the problem. Any advice?

n

]]> Authing Django Patches on DreamHost http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123549&page=0&view=collapsed&sb=5&o=14&vc=1 Thu, 29 Oct 2009 13:52:40 -0800 tdowns12 forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123549&page=0&view=collapsed&sb=5&o=14&vc=1 Post Reply?

Hi all,

Has anyone authored patches to Django on DreamHost? I'm having trouble getting Django to recognize the changes to my classes, any pointers?

]]> Post Reply?

Hi all,

Has anyone authored patches to Django on DreamHost? I'm having trouble getting Django to recognize the changes to my classes, any pointers?

]]> Web Panel API http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123514&page=0&view=collapsed&sb=5&o=14&vc=1 Wed, 28 Oct 2009 12:02:59 -0800 fitzgerl forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123514&page=0&view=collapsed&sb=5&o=14&vc=1 Post Reply?

Can anyone help me with the proper format of the value of the "&name=" value for the announcement_list-post_announcement command API call?

My list name (as shown in the Web Panel) is:

"Crushing Day" <info@crushingday.com>

I continue to receive "Invalid Name" after making the call. Thanks for any help you can provide.


]]> Post Reply?

Can anyone help me with the proper format of the value of the "&name=" value for the announcement_list-post_announcement command API call?

My list name (as shown in the Web Panel) is:

"Crushing Day" <info@crushingday.com>

I continue to receive "Invalid Name" after making the call. Thanks for any help you can provide.


]]> greping through a tree http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123486&page=0&view=collapsed&sb=5&o=14&vc=1 Tue, 27 Oct 2009 10:24:24 -0800 MajorGeek forum_programming http://discussion.dreamhost.com/showflat.pl?Board=forum_programming&Number=123486&page=0&view=collapsed&sb=5&o=14&vc=1 Post Reply?

I'm cleaning up my site after a hack. grep was able to find a call to davtraff.com in one directory. Isn't there a trick to get grep to search for a pattern down into subdirectories too? sed or perl?

This signature line intentionally blank. ]]> Post Reply?

I'm cleaning up my site after a hack. grep was able to find a call to davtraff.com in one directory. Isn't there a trick to get grep to search for a pattern down into subdirectories too? sed or perl?

This signature line intentionally blank. ]]>