Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...dumping jpgs in a DIR that auto displays on WEB ?dumping jpgs in a DIR that auto displays on WEB ?
Previous
 
Next
New Post
10/23/2012 5:00 PM
 

!)   I have a WEB server at home, using Microsoft IIS.  On it If I want to display pics on the WEB, I make a directory on that PC in the IIS area, for example “PICS”

You can get to that dir on any browser   http://www.AJWEBSERVER.com/PICS   (example, this doesn’t work)

When there you can see the jpgs under that dir , click on each pic to see it, then the back button, choose another…what a pain.

So, I wrote some html’s a “A.HTM”

 

Now you can go http://www.AJWEBSERVER.com/PICS/A.htm

 

And it brings up a framework with all the pics in thumbnails on the left, click on a thumbnail and it puts a big version in the big frame to the right…much better and faster….

 

BUT, everytime I do this, I have to go and make a custom htm file, and then rename all my jpgs to fit it….as below:

 

 

 

                                <TR>

                                                <TD><A HREF="Picture 001.jpg" TARGET="NewPic"><IMG SRC="Picture 001.jpg" width=100 height=80><BR>Picture 001.jpg</IMG></A></TD>

                                </TR>

 

                                 <TR>

                                                <TD><A HREF="Picture 002.jpg" TARGET="NewPic"><IMG SRC="Picture 002.jpg" width=100 height=80><BR>Picture 002.jpg</IMG></A></TD>

                                </TR>

 

                                <TR>

                                                <TD><A HREF="Picture 003.jpg" TARGET="NewPic"><IMG SRC="Picture 003.jpg" width=100 height=80><BR>Picture 003.jpg</IMG></A></TD>

                                </TR>

Then go rename numerous jpg s to Picture 001, 002, 003….and so on….

NOW, my question finally.    Isn’t there a way, to skip all this , for example just make a folder, on my WEB server  “PICS”,,,,and have some sort of code (my question to you is what is this “some sort of code”?)

After this “some sort of code” is in that directory, I can just copy in all the pictures to that directory, and goto, http://www.AJWEBSERVER.com/PICS    and all pics in this directory display in a nice viewable fashion ?

 

Thanks Much AJ

 
New Post
10/24/2012 4:33 AM
 
Yes it can be done.

In essence the code trawls the folder where the pics live (Directory.GetFiles() http://msdn.microsoft.com/en-us/libra...). Then it iterates the result set. For each item in the result set it generates a fragment of html (essentially what you have in one line of your table). As it generates that fragment it knows the actual name of the file so it pops it in to the anchor tags.

To work inside DNN that code would have to be packaged as a module.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
10/24/2012 10:22 AM
 
I was hoping there was an app pre-written, I'm an oracle developer my self, but it seems I'd need to know c++, C# or VB to do this?
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...dumping jpgs in a DIR that auto displays on WEB ?dumping jpgs in a DIR that auto displays on WEB ?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out