Register  It's Free! Monday,   September  6,   2010
User Name Password
  Downloads   Modules

Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
7 user(s) are online (5 user(s) are browsing Forum)

Members: 0
Guests: 7

more...
Please Read This
All my modules require users to be registered to add listings or to reply to a listing.
There are parts that NEED a user ID. to work properly.

All reputable websites DO NOT allow anonymous users to add anything, even on the
Xoops site you need to be registered, there are many reasons for this.

You may be able to hack the module to work with non registered users, it will probably not be easy, and I do not support this. I'm sorry but thats the way it is.
   All Posts (c0ntrite)


(1) 2 3 4 »


Re: Modifying Ads
Not too shy to talk
Joined:
2008/2/27 9:44
Posts: 36
Offline
it works! thanks! as always ;) I deleted both $date='$date', and $date='$now', is that ok?

Posted on: 6/24 13:24
Transfer the post to other applications Transfer


Re: Modifying Ads
Not too shy to talk
Joined:
2008/2/27 9:44
Posts: 36
Offline
oops. i didn't read your previous post right. I thought you said to change line 565 to:

date='$date',

I changed it from: date='$now',

:D my fault sorry. will try again, will let you know if it works with the old version :)

Posted on: 6/24 13:07
Transfer the post to other applications Transfer


Re: Modifying Ads
Not too shy to talk
Joined:
2008/2/27 9:44
Posts: 36
Offline
its ok :) nothing changed. it still brings the updated ad on top of the list.

Posted on: 6/23 11:18
Transfer the post to other applications Transfer


Re: Modifying Ads
Not too shy to talk
Joined:
2008/2/27 9:44
Posts: 36
Offline
the ad disappears when I edited it. then I received an email stating that the ad expired.

Posted on: 6/23 7:44

Edited by c0ntrite on 2010/6/23 8:32:07
Transfer the post to other applications Transfer


Modifying Ads
Not too shy to talk
Joined:
2008/2/27 9:44
Posts: 36
Offline
Hello John! It's been a while! Congratulations on your recent RC2 release :)

How do I stop Classifieds from updating the date when an ad is being edited by admin? Thanks!

Posted on: 6/23 6:03
Transfer the post to other applications Transfer


Re: Classifieds and image textsanitizer
Not too shy to talk
Joined:
2008/2/27 9:44
Posts: 36
Offline
I found a way to fix it, but it doesn't resize while you are posting the ad, it resizes after submission. Just change line 358


XK_insertHTML
("<img src="+image+" onload="JavaScript:if(this.width>300)this.width=300"" alt=""+alt+" ">",id);

Posted on: 4/26 13:10
Transfer the post to other applications Transfer


Re: Classifieds and image textsanitizer
Not too shy to talk
Joined:
2008/2/27 9:44
Posts: 36
Offline
Thanks but I wanted something like this:


if (image!='http://' && image!=null) {
    var 
newImg = new Image();
    
newImg.src image;
    var 
imgWidth newImg.width;
if (
imgWidth 300) {    
    
XK_insertHTML("<img src="+image+" width="300" alt=""+alt+" ">",id);
    }
else {
    
XK_insertHTML("<img src="+image+" alt=""+alt+" ">",id);
    }
}


but my problem here is that imgWidth returns 0 (zero).

Posted on: 4/26 8:41
Transfer the post to other applications Transfer


Re: Classifieds and image textsanitizer
Not too shy to talk
Joined:
2008/2/27 9:44
Posts: 36
Offline
Thanks john! your solution works, but I need a little bit more help. I tried to do some condition statement to see if width is greater than 300 thing, but my code doesn't work, hehehe. Thanks!

Posted on: 4/25 14:43
Transfer the post to other applications Transfer


Re: Classifieds and image textsanitizer
Not too shy to talk
Joined:
2008/2/27 9:44
Posts: 36
Offline
I tried version 2.4 and everything was a mess it wasn't Classifieds fault but mine, I have changed so many things in my Classifieds module that upgrading is not an option. I decided to downgrade it back to 2.0 but before doing so I checked whether the image resize of textsanitizer works, well unfortunately it doesn't. I'm still wondering what could be the problem

Posted on: 4/22 1:58
Transfer the post to other applications Transfer


Re: Classifieds and image textsanitizer
Not too shy to talk
Joined:
2008/2/27 9:44
Posts: 36
Offline
John, I just wanted to add that this was my problem with Classifieds long before updating to 2.4.4

My new problem (when I updated to 2.4.4) is that some of the "thumb" photos are "missing" or has been deleted somehow. But the original photo is still intact. I tried to replicate the problem but to no avail.

http://www.dogengine.com/modules/classifieds/viewcats.php?cid=29

if you scroll down you will see the ad "Shihtzu Puppies Batch 2" and "Pure Breed Shihtzu Puppies" has no primary picture. the thumb photo is missing from the thumb folder.

By the way, I'm using phpThumb to display the thumbnail when viewing the ad. But when viewing via category I haven't changed it yet so it relies on the "thumb" photo.

anyway this is another issue, lets stick with the textsanitizer for now.

@GreenFlatDog I tried with DHTML Editor to no avail. gave me an error msg. see my post above

Posted on: 4/12 12:33

Edited by c0ntrite on 2010/4/12 12:48:37
Transfer the post to other applications Transfer



 Top
(1) 2 3 4 »




Donat-O-Meter
Make donations with PayPal!

Donations
Waiting Contents Ext
System Downloads Forum Alumni Job Listings Garages classifieds
Weather
Southington
Conditions as of
20 minutes ago


partly cloudy
Temp: 75 °F
Feels like: 77 °F
Rel hum: 31 %
Wind increasing
SW at 10.4 mph
view forecast
jlmzone © 2010
Powered by XOOPS 2.4.4