Posted on: 04/15/04 02:17pm
By: dewdoo
I just upgraded my zclassifieds for geeklog 1.3.9 and now when users try to upload pictures to advertise. The second image is not showing up and the thumbnail picture looks like a sepia print. I am using GD library to handle the resizing .....speaking of resizing ....It keeps telling me that the image is over 300k and the image size is not! Is this a bug in the code or something? Any help would be helpful.
zclassifieds for 1.3.9
Posted on: 04/16/04 12:16am
By: dewdoo
Well I figured it out.......in the functions.inc (../../plugins/advt/functions.inc) change this:
function makeThumb( $scrFile, $dstFile, $dstW=120, $dstH=100 )
{
global $_CONF;
$im = ImageCreateFromJPEG( $scrFile );
$srcW = ImageSX( $im );
$srcH = ImageSY( $im );
$ni = ImageCreate( $dstW, $dstH );
ImageCopyResized( $ni, $im, 0, 0, 0, 0, $dstW, $dstH, $srcW, $srcH );
ImageJPEG( $ni, $dstFile );
}
}
to this
function makeThumb( $scrFile, $dstFile, $dstW=120, $dstH=100 )
{
global $_CONF;
$im = ImageCreateFromJPEG( $scrFile );
$srcW = ImageSX( $im );
$srcH = ImageSY( $im );
$ni = ImageCreateTrueColor( $dstW, $dstH );
ImageCopyResized( $ni, $im, 0,0,0,0, $dstW, $dstH, $srcW, $srcH );
ImageJPEG( $ni, $dstFile );
}
}
Hope this helps anyone with incorrect colors using GD Lib with ZClassifieds!
zclassifieds for 1.3.9
Posted on: 04/16/04 09:13am
By: enigmah
Same problem here. It keeps saying the image is more than 300k when it is not.
zclassifieds for 1.3.9
Posted on: 04/16/04 09:17am
By: enigmah
Another isuue is that the email address of the user is actually shown with the ad. Is there any way to hide it and replace it with "geeklog email"?
zclassifieds for 1.3.9
Posted on: 04/16/04 10:11am
By: dewdoo
I noticed that if the image size dimensions are around 320 X 240 and it is under 300k. I dont get the javascript error message. I am going to look more into this and the email over the weekend, when I dont have too many distractions....... Unless someone beats me to punch....if so .... report it here in the forums to help the rest of us out.
zclassifieds for 1.3.9
Posted on: 04/19/04 03:49am
By: Robin
[QUOTE BY= dewdoo] I just upgraded my zclassifieds for geeklog 1.3.9 and now when users try to upload pictures to advertise. The second image is not showing up and the thumbnail picture looks like a sepia print.[/QUOTE]
I realized that I wasn't very specific about the changes to the latest release. Sorry for any inconvienience
more info here[*1]
[QUOTE BY= dewdoo]It keeps telling me that the image is over 300k and the image size is not![/QUOTE]
My question is whether the image gets uploaded. I tried it (without GD however) and got the same message warning but after all the image got uploaded.
[QUOTE BY= enigmah]Is there any way to hide it and replace it with "geeklog email"?[/QUOTE]
Well actually that was the idea at some point before we released it to the public. I still have this version of
detail.php file. If anyone's interested I can send you a copy.
This should be a part of configuration option however I'm not that good at php to achieve this
zclassifieds for 1.3.9
Posted on: 04/19/04 04:52am
By: Robin
[QUOTE BY= enigmah] Another isuue is that the email address of the user is actually shown with the ad. Is there any way to hide it and replace it with "geeklog email"?[/QUOTE]
Further to my latest post you can always remove the following lines from detail.php
echo "<td width="20%" height="20">E-mail</td>n";
echo "<td width="80%" height="20"><a href="mailto:{$user['email']}">{$user['email']}</a></td>n";
And use the
Ask Question option. It's basically same function but the privacy is kept.
zclassifieds for 1.3.9
Posted on: 04/20/04 04:27pm
By: spirshi
how do i get rid of the 'new' image that comes up next to a new category?
How long does that image last?
How do i change the order of categories? (default seems to be alphabetical)
thanks for any help!
zclassifieds for 1.3.9
Posted on: 04/20/04 05:45pm
By: spirshi
Just in response to the 'removing email' thing.
Even if you remove those lines, a persons email address can still be seen in the link for "ask question".
Is there a way to mask this?
zclassifieds for 1.3.9
Posted on: 04/22/04 02:44am
By: Robin
Right. I'm investigating this. I'll let you know the results as soon as I can.
zclassifieds for 1.3.9
Posted on: 04/22/04 05:16am
By: Robin
[QUOTE BY= spirshi] Just in response to the 'removing email' thing.
Even if you remove those lines, a persons email address can still be seen in the link for "ask question".
Is there a way to mask this?[/QUOTE]
The quick fix would be this
echo "<td width="80%" height="20">{$user['fullname']} | <a href="{$_CONF['site_url']}/profiles.php?uid={$user[uid]}"><b>Ask Question</b></a></td>n";
Replace the current line with
Ask Question with the one above. This will use GL built in mail utility.
Let me know if it works OK.
zclassifieds for 1.3.9
Posted on: 04/22/04 10:33pm
By: Anonymous (spirshi)
wow, you're doing a great job keepin up with the plugin. definitely appreciate it!
do you know how i can make it so that the 'RIGHT side blocks' dont show up when someones checking the classifieds? like how this forum plugin works.
when it leaves the right blocks, my page becomes too wide.
thanks!
zclassifieds for 1.3.9
Posted on: 04/24/04 03:06pm
By: Robin
[QUOTE BY= spirshi] how do i get rid of the 'new' image that comes up next to a new category?[/QUOTE]
Edit index.php (for the plugin) and look for
new.gif. Locate it and delete (if you want to get rid of it)
[QUOTE BY= spirshi]How long does that image last?[/QUOTE]
I can't quite make out the formula it's something like this
$subcatsrow['add_date'] > $time - 3600 * 24 * 3 ? $isnew = "<img src="images/new.gif" align="top">" : $isnew = "";
[QUOTE BY= spirshi]do you know how i can make it so that the 'RIGHT side blocks' dont show up when someones checking the classifieds? like how this forum plugin works.[/QUOTE]
At the bottom of each file there is something like
COM_siteFooter(true) just get rid of the
true
zclassifieds for 1.3.9
Posted on: 12/08/04 09:58am
By: Anonymous (LostGaijin)
I was wondering, how can i display an image on the top of the zClassifieds page, just above the menu.. I have a small image of a newspaper ad i wanna place on top..
http://lostgaijin.its-my-life.net/advt/index.php my site now
and i wanna place this image..
I dont know what file to add this link to and or what code i need to write..im a newbie... pls help...