| Author |
Message |
Mike63740
I might as well work here


Joined: Jan 07, 2010
Posts: 72
Reputation: 14.6  Votes: 1
|
Posted:
Wed Aug 04, 2010 8:57 am |
|
Bobby, I have researched the forums and did not find a fix to my image upload problem. When I submit my image for an ad, I get this error message:
Ads Submission Error
pjpegAllowed File Types are : '.gif', '.jpeg', '.jpg', '.png'
Please help if you have a fix.
Thanks |
| |
|
|
bobby
Site Admin


Joined: Jan 20, 2009
Posts: 532
Reputation: 427.2  Votes: 1
|
Posted:
Wed Aug 04, 2010 9:03 pm |
|
Does it work with other images or do all images give you this error?
One thing you could try is this.
In your NukeC acp, change the "Ads Image upload full path" to the root path. Example would be /home/yourserver/public_html/modules/NukeC/imageads/. Servers vary depending on the setup. |
_________________ Tricked Out News |
|
|
Mike63740
I might as well work here


Joined: Jan 07, 2010
Posts: 72
Reputation: 14.6  Votes: 1
|
Posted:
Thu Aug 05, 2010 6:16 am |
|
|
|
Mike63740
I might as well work here


Joined: Jan 07, 2010
Posts: 72
Reputation: 14.6  Votes: 1
|
Posted:
Thu Aug 05, 2010 7:46 am |
|
Only .gif file type uploads without any errors.
I get upload error message with files:
png & jpg
Thanks. |
| |
|
|
bobby
Site Admin


Joined: Jan 20, 2009
Posts: 532
Reputation: 427.2  Votes: 1
|
Posted:
Thu Aug 05, 2010 8:10 am |
|
If it uploads any image than the path is correct as it is. Try to replace the postads.php with this one. |
_________________ Tricked Out News |
|
|
Mike63740
I might as well work here


Joined: Jan 07, 2010
Posts: 72
Reputation: 14.6  Votes: 1
|
Posted:
Thu Aug 05, 2010 11:08 am |
|
Nothing new. postads.php has coding for .jpg and .png, but not .gif. It’s funny, because only .gif images will upload.
Can I just Delete codes for .png and .jpg?
Thanks. |
| |
|
|
bobby
Site Admin


Joined: Jan 20, 2009
Posts: 532
Reputation: 427.2  Votes: 1
|
Posted:
Fri Aug 06, 2010 11:54 pm |
|
I will look at it Saturday when I can sit down and spend the needed time to test some changes. |
_________________ Tricked Out News |
|
|
bobby
Site Admin


Joined: Jan 20, 2009
Posts: 532
Reputation: 427.2  Votes: 1
|
Posted:
Sun Aug 08, 2010 7:58 am |
|
You can try editing postads.php and // out the following lines:
| Code: | $type = basename($fileupload_type);
//if (($type == "jpeg") || ($type == "jpg") || ($type == "pjpeg")) {
//$type= "jpeg";
//}
//if ($type == "png") {
//$type = "png";
//}
$filename = $UploadPath."$nextidads.".$type; |
It works for me either way. |
_________________ Tricked Out News |
|
|
Mike63740
I might as well work here


Joined: Jan 07, 2010
Posts: 72
Reputation: 14.6  Votes: 1
|
Posted:
Mon Aug 09, 2010 4:55 am |
|
I'm going to put off editing the postads.php file for now. RavenNuke 2.4.0 used with NukeC 3.7.5 has proven to me to be very consistent. I begin using phpNuke in July, 2009.
If I had to choose 1 out of 3 file types as an upload image, I would pick .gif before .png and .jpg for more than 1 reason. For now I'm content with image upload.
Look forward to me returning to this topic. Case no closed for me.
Thank you,
Mike |
| |
|
|
 |
|
|