Tricked Out News

Welcome to TON. This site is dedicated to development of addons for the RavenNuke™ CMS
Follow Us:
Tricked Out Mods: Forums

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

NukeC 3.7.5 Image Upload Problem
 
 
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> NukeC
View previous topic :: View next topic  
Author Message
Mike63740
I might as well work here
I might as well work here


Joined: Jan 07, 2010
Posts: 121
Location: Washington, DC
Reputation: 21.4Reputation: 21.4
votes: 2

PostPosted: Tue Aug 03, 2010 5:57 pm 
Post subject: NukeC 3.7.5 Image Upload Problem
Reply with quote

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
  
Back to top
View user's profile Send private message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 600
Location: North Carolina
Reputation: 543Reputation: 543Reputation: 543
votes: 4

PostPosted: Wed Aug 04, 2010 6:03 am 
Post subject:
Reply with quote

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
  
Back to top
View user's profile Send private message
Mike63740
I might as well work here
I might as well work here


Joined: Jan 07, 2010
Posts: 121
Location: Washington, DC
Reputation: 21.4Reputation: 21.4
votes: 2

PostPosted: Wed Aug 04, 2010 3:16 pm 
Post subject:
Reply with quote

/home/yourserver/public_html/modules/NukeC/imageads/

Which one below equal to above path?

1. http://mysite.com/Nuke/modules/NukeC/imageads/

2. www.mysite.com/Nuke/modules/NukeC/imageads/

3. nuke.mysite.com/Nuke/modules/NukeC/imageads/

4. http://www.mysite.com/Nuke/modules/NukeC/imageads/

5. http://www.nuke.mysite.com/Nuke/modules/NukeC/imageads/

6. /Nuke/modules/NukeC/imageads/

Thank you.
  
Back to top
View user's profile Send private message
Mike63740
I might as well work here
I might as well work here


Joined: Jan 07, 2010
Posts: 121
Location: Washington, DC
Reputation: 21.4Reputation: 21.4
votes: 2

PostPosted: Wed Aug 04, 2010 4:46 pm 
Post subject:
Reply with quote

Only .gif file type uploads without any errors.

I get upload error message with files:
png & jpg

Thanks.
  
Back to top
View user's profile Send private message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 600
Location: North Carolina
Reputation: 543Reputation: 543Reputation: 543
votes: 4

PostPosted: Wed Aug 04, 2010 5:10 pm 
Post subject:
Reply with quote

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
  
Back to top
View user's profile Send private message
Mike63740
I might as well work here
I might as well work here


Joined: Jan 07, 2010
Posts: 121
Location: Washington, DC
Reputation: 21.4Reputation: 21.4
votes: 2

PostPosted: Wed Aug 04, 2010 8:08 pm 
Post subject:
Reply with quote

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.
  
Back to top
View user's profile Send private message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 600
Location: North Carolina
Reputation: 543Reputation: 543Reputation: 543
votes: 4

PostPosted: Fri Aug 06, 2010 8:54 am 
Post subject:
Reply with quote

I will look at it Saturday when I can sit down and spend the needed time to test some changes.
_________________
Tricked Out News
  
Back to top
View user's profile Send private message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 600
Location: North Carolina
Reputation: 543Reputation: 543Reputation: 543
votes: 4

PostPosted: Sat Aug 07, 2010 4:58 pm 
Post subject:
Reply with quote

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
  
Back to top
View user's profile Send private message
Mike63740
I might as well work here
I might as well work here


Joined: Jan 07, 2010
Posts: 121
Location: Washington, DC
Reputation: 21.4Reputation: 21.4
votes: 2

PostPosted: Sun Aug 08, 2010 1:55 pm 
Post subject:
Reply with quote

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
_________________
Open-source software has been changing lives since 1998.
  
Back to top
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> NukeC All times are GMT - 5 Hours
 
 Page 1 of 1

 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001-2008 phpBB Group
Forums ©