- Posts: 20
- Thank you received: 0
Images?
15 years 8 months ago #1073
by Pete
DigiOz Webmaster
www.digioz.com
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
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.
15 years 7 months ago #1075
by Pete
DigiOz Webmaster
www.digioz.com
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:
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
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
Please Log in or Create an account to join the conversation.
15 years 7 months ago #1078
by Pete
DigiOz Webmaster
www.digioz.com
Open file "list.php". Find this code block:
Replace it with this:
Pete
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.125 seconds