PDA

View Full Version : Problem with picture at "mamboads"


lior_avr
25.07.2004, 14:14
hi
i use this nice com. and i have problem with picture by user.
i change by the details to "1" (user can uplad pic) and still i have 2 error.
1) when user uplad picture he get this message:

Warning: copy(var/www/html/components/com_mambads/userpic/tmp.jpg): failed to open stream: No such file or directory in /home/virtual/site102/fst/var/www/html/components/com_mambads/preview.php on line 46

so: about "No such file or directory" there is and i gave it 707 CHMODE
about the link to this folde i think i link it at it should be.

this is the mamboads runing on my server: http://www.holoni.co.il/index.php?option=com_mambads&Itemid=34&func=add try to add and u will get the error.
need help plz.
2) the system say "Please JPG, JPEG or PNG only, up to 50KB !
Thumbnail will be 40 x 30 " well when i uplad Jpeg no problem (besides the error) when i upload GIF, he is not recognize that at all. why?


this is the main part of the code:

<?php
# Don't allow direct linking
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

# Variables
$perpage = "10"; // Ads showed per page
$autopublish = "1"; // Publish ads automatically, if you enter "0", you have to publish them manually (not implemented yet, but easy to do with phpMyAdmin)
$regonly = "0"; // "1", if you only want registered users to use it
$srchnmb = "25"; //Number of Searchresults
$publisher = ""; // Change to "1" if also Publisher should be able to manage categories and ads, otherwise only super administrators, administrators and managers are allowed to
$uploadpic ="1"; // "0", if you do not allow users to upload pictures, then you do not need the other settings below anymore !
// Paths to the picture directory: Create a directory e.g. under downloadfiles /mambads
// and make sure it has writing rights (CHMODE it to 707)!!!
$pathtouppic = "var/www/html/components/com_mambads/userpic/"; // enter the absolute path to your uploaddirectory, like "/var/www/12345678/mambo45/uploadfiles/mambads/" WITH slash at the end!$urltouppic = "http://www.holoni.co.il/components/com_mambads/userpic/"; //enter the URL to your uploaddirectory, like "http://www.yoursite.com/mambo45/uploadfiles/mambads/" WITH slash at the end!$tw = "40"; // width of the thumbnails in pixels
$th = "30"; // height of the thumbnails in pixels

lior_avr
25.07.2004, 14:30
Ammm i found out my mistake :)
the link was not good it should be

/home/virtual/site102/fst/var/www/html/components/com_mambads/userpic/
thank's to me :) LOL