| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Web page help.. |
From: "Glenn Meadows"
The page works, it's just that if we have no album graphic uploaded, the
area just shows blank. We'd like to display a placeholder. photofle is
set in an earlier part of the code when you click on the album you wish to
view.
Go to www.sheridansquaremusic.com to see the site in action. There are
about 1,000 albums in the current incarnation of the site, which had been
sorely neglected for the past 2 years. We're getting ready to import into
the database, about 4,500 more CD titles, along with ALL of their track
titles (50,000 + song titles) to bring the site up to date quickly, but
then have to scan covers and upload the artwork. So, in the interim, we
want a "placeholder" for the graphics that are not uploaded yet.
There is a back side area to the site that allows full ASP based
upload/content creation. The people who developed this site are long gone,
so it's becoming a learning experience.
Logic suggests to me that since this is an If/Then routine, then an ELSE
portion could/would point to the covernotavail.jpg if the originally
requested file does not exist. Is that logical?
--
Glenn M.
"Mike N." wrote in message
news:nk6463diceq69b0r3ikbcdeete7qc07lle{at}4ax.com...
>
> Something needs to set the variable photofile to the image file name. This
> may be part of a subroutine where it is passed in, but the following
> should
> work also .
>
>>
>>code snippet follows:
>>
>> <%
>> set fso = Server.CreateObject("Scripting.FileSystemObject")
>
> photofile="CoverNotAvail.jpg"
>
>> path = server.mappath ("/images/covers/")
>> if fso.fileExists (path & "\" & photofile) then
>> %> * Origin: Barktopia BBS Site http://HarborWebs.com:8081 (1:379/45)SEEN-BY: 633/267 @PATH: 379/45 1 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.