| Author |
Message |
amonsteph
Newbie


Joined: Jun 11, 2010
Posts: 6
Reputation: 1 
|
Posted:
Fri Jun 11, 2010 9:21 pm |
|
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 |
| |
|
|
bobby
Site Admin


Joined: Jan 20, 2009
Posts: 532
Reputation: 427.2  Votes: 1
|
Posted:
Fri Jun 11, 2010 9:24 pm |
|
Are you using RavenNuke or phpnuke? Check your file permissions. I will look at it later today. |
_________________ Tricked Out News |
|
|
amonsteph
Newbie


Joined: Jun 11, 2010
Posts: 6
Reputation: 1 
|
Posted:
Fri Jun 11, 2010 9:27 pm |
|
Thanks bobby. I'm using phpnuke |
| |
|
|
bobby
Site Admin


Joined: Jan 20, 2009
Posts: 532
Reputation: 427.2  Votes: 1
|
Posted:
Fri Jun 11, 2010 9:36 pm |
|
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 |
|
|
amonsteph
Newbie


Joined: Jun 11, 2010
Posts: 6
Reputation: 1 
|
Posted:
Fri Jun 11, 2010 10:07 pm |
|
Thanks a lot bobby. i'm waiting for you |
| |
|
|
bobby
Site Admin


Joined: Jan 20, 2009
Posts: 532
Reputation: 427.2  Votes: 1
|
Posted:
Fri Jun 11, 2010 10:21 pm |
|
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 |
|
|
amonsteph
Newbie


Joined: Jun 11, 2010
Posts: 6
Reputation: 1 
|
Posted:
Sat Jun 12, 2010 12:10 am |
|
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 |
| |
|
|
bobby
Site Admin


Joined: Jan 20, 2009
Posts: 532
Reputation: 427.2  Votes: 1
|
Posted:
Sat Jun 12, 2010 12:36 am |
|
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 |
|
|
bobby
Site Admin


Joined: Jan 20, 2009
Posts: 532
Reputation: 427.2  Votes: 1
|
Posted:
Sat Jun 12, 2010 12:53 am |
|
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 |
|
|
amonsteph
Newbie


Joined: Jun 11, 2010
Posts: 6
Reputation: 1 
|
Posted:
Sat Jun 12, 2010 2:49 am |
|
Thanks bobby, i've tried it but i get the same result; it doesn't work |
| |
|
|
bobby
Site Admin


Joined: Jan 20, 2009
Posts: 532
Reputation: 427.2  Votes: 1
|
Posted:
Sat Jun 12, 2010 6:21 am |
|
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 |
|
|
doffer83
Newbie


Joined: Jan 01, 2011
Posts: 6
Reputation: 2.1 
|
Posted:
Fri Apr 22, 2011 2:42 am |
|
| 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' |
| |
|
|
bobby
Site Admin


Joined: Jan 20, 2009
Posts: 532
Reputation: 427.2  Votes: 1
|
Posted:
Fri Apr 22, 2011 3:41 am |
|
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 |
|
|
BobbyG
Blingaholic


Joined: Sep 20, 2009
Posts: 20
Reputation: 5.5 
|
Posted:
Fri Apr 22, 2011 4:27 am |
|
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. |
| |
|
|
 |
|
|