Images?

More
15 years 2 months ago #1070 by ragou
Images? was created by ragou
Is it possible to add images in guestbook

Please Log in or Create an account to join the conversation.

More
15 years 2 months ago #1073 by Pete
Replied by Pete on topic Images?
Not in its currect condition. But it wouldn't be too difficult to do so.

Is this a question or a request for it?


Pete

DigiOz Webmaster
www.digioz.com

Please Log in or Create an account to join the conversation.

More
15 years 2 months ago #1074 by ragou
Replied by ragou on topic Images?
Yes, it's a request. I hope it doesn't sound rude.

Please Log in or Create an account to join the conversation.

More
15 years 2 months ago #1075 by Pete
Replied by Pete on topic Images?
OK, here is a quick modification to the DigiOz Guestbook 1.7.2 to allow file upload:

In the zip file there is a "config.php" file that contains the following section:
Code:
// Image upload settings --------------------------------------------------------------------------- $img_upload_enabled = 1; $img_max_file_size = 1500000; $img_upload_path = "files/";

Set the first flag to zero to disable image upload. The second variable is the maximum file size. Lastly, the third variable is the relative or absolute path to your image upload directory.

Right now the only file extension I coded for was ".jpg". There is obviously a lot more that can be done with it, but its a matter of finding the time to code it.

Enjoy!
Pete

DigiOz Webmaster
www.digioz.com
Attachments:

Please Log in or Create an account to join the conversation.

More
15 years 2 months ago #1077 by ragou
Replied by ragou on topic Images?
This is good of course, but my idea was that image must be diplayed after uploading. Now there is only a link to image, not the image itself. How to do this?

Please Log in or Create an account to join the conversation.

More
15 years 2 months ago #1078 by Pete
Replied by Pete on topic Images?
Open file "list.php". Find this code block:
Code:
if ($img_upload_enabled == 1) { echo "<b>Attachment: </b><a href=\"files/"; $lines[$i]->showFileName(); echo "\"><font color=blue>"; $lines[$i]->showFileName(); echo "</font>"; }

Replace it with this:
Code:
if ($img_upload_enabled == 1) { echo "<b>Attachment: </b><img src=\"files/"; $lines[$i]->showFileName(); echo "\">"; }

Pete

DigiOz Webmaster
www.digioz.com

Please Log in or Create an account to join the conversation.

Time to create page: 0.128 seconds
Powered by Kunena Forum