Best Hosting
View next topic
View previous topic
Post new topic   Reply to topic   print   Thank Post
Author Message
amonsteph
Newbie
Newbie



Joined: Jun 11, 2010
Posts: 6

Reputation: 1

PostPosted: Fri Jun 11, 2010 9:21 pm Reply with quote Back to top

Hi, everybody

i succeed in uploading the image. if i want to upload house.jpg (200 px X 200 px) for example, there will be a new name in folder and the database : let's say 5.jpg.

The problem is that the image doesn't appear in the ads page. when i check in the imageads folder, the image is there but it's no more a jpg type; the new type is gif and the new size is 1x1.

How can i solve this problem ?

Thanks
 
View user's profile Send private message
bobby
Site Admin
Site Admin



Joined: Jan 20, 2009
Posts: 532

Reputation: 427.2
Votes: 1

PostPosted: Fri Jun 11, 2010 9:24 pm Reply with quote Back to top

Are you using RavenNuke or phpnuke? Check your file permissions. I will look at it later today.

_________________
Tricked Out News 
View user's profile Send private message
amonsteph
Newbie
Newbie



Joined: Jun 11, 2010
Posts: 6

Reputation: 1

PostPosted: Fri Jun 11, 2010 9:27 pm Reply with quote Back to top

Thanks bobby. I'm using phpnuke
 
View user's profile Send private message
bobby
Site Admin
Site Admin



Joined: Jan 20, 2009
Posts: 532

Reputation: 427.2
Votes: 1

PostPosted: Fri Jun 11, 2010 9:36 pm Reply with quote Back to top

It is probably the javascript not loading. I have the js called for RavenNuke. I will create a file for regular nuke and post it in this forum as soon as I have time.

_________________
Tricked Out News 
View user's profile Send private message
amonsteph
Newbie
Newbie



Joined: Jun 11, 2010
Posts: 6

Reputation: 1

PostPosted: Fri Jun 11, 2010 10:07 pm Reply with quote Back to top

Thanks a lot bobby. i'm waiting for you
 
View user's profile Send private message
bobby
Site Admin
Site Admin



Joined: Jan 20, 2009
Posts: 532

Reputation: 427.2
Votes: 1

PostPosted: Fri Jun 11, 2010 10:21 pm Reply with quote Back to top

This is a custom header file for phpnuke only. This should load the required javascript to allow image uploads. If you do not have a custom_header.php file in includes/custom_files, you can upload this one. If you do have one, add the content of this one to it.

Another issue standard nuke users will find is the nukeWYSIWYG editor. If you have not installed the nukeWYSIWYG editor, you will have to manually change all the wysiwyg_textarea to regular textarea in the module. I would recommend switching to RavenNuke instead of phpnuke if possible. Phpnuke is not being developed and has many security issues. When servers start switching to newer versions of php and mysql, phpnuke will have issues. I am not sure if the next version of php 5.3 will work with it or not, but I know php 6 will not work with any version of standard phpnuke without major modifications. Most all nuke modules and blocks will work with RavenNuke unless they are very old. Converting older nuke stuff to RavenNuke is not too hard.

_________________
Tricked Out News 
View user's profile Send private message
amonsteph
Newbie
Newbie



Joined: Jun 11, 2010
Posts: 6

Reputation: 1

PostPosted: Sat Jun 12, 2010 12:10 am Reply with quote Back to top

Thanks bobby but i was talking imageads, not imagecatg. the problem is that a jpg image becomes a gif image of 1x1 pixel; so image of the ad doesn't appear in the page of ads
 
View user's profile Send private message
bobby
Site Admin
Site Admin



Joined: Jan 20, 2009
Posts: 532

Reputation: 427.2
Votes: 1

PostPosted: Sat Jun 12, 2010 12:36 am Reply with quote Back to top

Sorry about that. I was thinking javascript not loading and I did not even look to see it was the ads image. Do you have the nukeWYSIWYG editor installed or did you turn the description back into a textarea? Also, does this happen to all jpg's or just certain ones?

_________________
Tricked Out News 
View user's profile Send private message
bobby
Site Admin
Site Admin



Joined: Jan 20, 2009
Posts: 532

Reputation: 427.2
Votes: 1

PostPosted: Sat Jun 12, 2010 12:53 am Reply with quote Back to top

In postads.php on around line 232, find:
Code:
if ( $imageadstype != "jpeg") {


and change it to:
Code:
if ( $imageadstype != "jpeg" || "jpg") {


And let me know if it works or not.

_________________
Tricked Out News 
View user's profile Send private message
amonsteph
Newbie
Newbie



Joined: Jun 11, 2010
Posts: 6

Reputation: 1

PostPosted: Sat Jun 12, 2010 2:49 am Reply with quote Back to top

Thanks bobby, i've tried it but i get the same result; it doesn't work
 
View user's profile Send private message
bobby
Site Admin
Site Admin



Joined: Jan 20, 2009
Posts: 532

Reputation: 427.2
Votes: 1

PostPosted: Sat Jun 12, 2010 6:21 am Reply with quote Back to top

I will install phpnuke and see if I can reproduce the issue. I will be busy for the next few days, but I will post back here what i find.

_________________
Tricked Out News 
View user's profile Send private message
doffer83
Newbie
Newbie



Joined: Jan 01, 2011
Posts: 6

Reputation: 2.1

PostPosted: Fri Apr 22, 2011 2:42 am Reply with quote Back to top

bobby wrote:
I will install phpnuke and see if I can reproduce the issue. I will be busy for the next few days, but I will post back here what i find.


Please try to find out what is the pro.. I have phpnuke too.. I added the code as you explaind... but it is still not working... erro about allowed extentions.. '.gif', '.jpeg', '.jpg', '.png'
 
View user's profile Send private message
bobby
Site Admin
Site Admin



Joined: Jan 20, 2009
Posts: 532

Reputation: 427.2
Votes: 1

PostPosted: Fri Apr 22, 2011 3:41 am Reply with quote Back to top

As soon as I can find time, I will rewrite the upload function. I can not give a time as to when I will be able to. I have so many things that I have to get finished first before I can turn my attention to this.

_________________
Tricked Out News 
View user's profile Send private message
BobbyG
Blingaholic
Blingaholic



Joined: Sep 20, 2009
Posts: 20

Reputation: 5.5

PostPosted: Fri Apr 22, 2011 4:27 am Reply with quote Back to top

Only the .gif files will load at this time. If you convert your .png, .jpg, and jpeg files to gifs you will not have a problem loading.
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic   print   Thank Post

View next topic
View previous topic
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

All times are GMT + 10 Hours
Forums ©

HomeTwitterFaceBookFeedsDonateRecommended Sites

Recommended Sites

Raven PHP Scripts

Nuke SEO

Montego Scripts

Code Authors

nunuke.co.uk