1
ChadK
myAds/Classified ads/Modify Ad
  • 2004/9/7 21:19

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Use this hack if you don't want to update the date the advertisement was submitted when you just want to update the subject of the ad or something:
In myAds/admin/index.php
Find the line:
Quote:
$xoopsDB->query("update ".$xoopsDB->prefix("ann_annonces")." set cid='$cat', title='$title', type='$type', description='$description', tel='$tel', price='$price', typeprix='$typeprix', date='$date', email='$email', submitter='$submitter', town='$town', country='$country', valid='$valid', photo='$photo' where lid=$lid");

and replace it with:
Quote:
$xoopsDB->query("update ".$xoopsDB->prefix("ann_annonces")." set cid='$cat', title='$title', type='$type', description='$description', tel='$tel', price='$price', typeprix='$typeprix', email='$email', submitter='$submitter', town='$town', country='$country', valid='$valid', photo='$photo' where lid=$lid");

2
wcrwcr
Re: myAds/Classified ads/Modify Ad
  • 2004/9/14 7:20

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hey Chad

Another nice one"

What u think about of a repacking version with all those fixes and features that you?ve been doing?

I guess it will be very useful.
Thanks.

3
winabe
Re: myAds/Classified ads/Modify Ad
  • 2004/9/14 7:32

  • winabe

  • Just popping in

  • Posts: 19

  • Since: 2002/5/12


i got a blank page on your link :
http://www.aviary.info/modules/myAds/

4
wcrwcr
Re: myAds/Classified ads/Modify Ad
  • 2004/9/14 14:52

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Same here!
Maybe some alteration......

5
ChadK
Re: myAds/Classified ads/Modify Ad
  • 2004/9/15 19:42

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


nah it works guys, I just had the guest access shut down and evidently the warning redirect doesn't work for myAds.. no suprise, lots of crap doesn't work.

6
wcrwcr
Re: myAds/Classified ads/Modify Ad
  • 2004/9/15 20:49

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hey chad

Did u think about a Chad version?
Waiting.......................

7
ChadK
Re: myAds/Classified ads/Modify Ad
  • 2004/9/17 14:26

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Well you wouldn't want my version... I have far too much hacking involved in it and you'd have to go in and edit all the hard-coded garbage I added to it.

I suppose I could clean it up, use the language files properly, make the "classified broadcast system" an optional feature to be enabled or not by the admin.

- I'm actually working on a variation of the "addanonces.php" page that would allow the admin to store the external sites where he wants the ads copied to in the database so it'd be easy to update. I have gotten the simple ones working but those that require "select" or "if" conditions on the data they send back are taking a bit more time to work out.
If the site simply uses 1 URL for ads and has 5 fields on it, no problem. If the site uses 1 url for "sale" and 1 for "wanted", that's a bit more troublesome and I have to work out how that can be done so the admin can easily maintain the listings. Also if the site requires you to select various categories such as "bird species" then what I've had to do is search the ad body they're posting for various keywords to try and determine the bird species. The trouble is, some sites have more ad categories than I do and breaking the ads down into those finer levels of categories is a logic problem I haven't addressed yet.

So yes, there is a "Chad" version but it's nowhere near ready to even start a project on yet. I want more progress before I release any of it.
I've almost re-written the entire thing so I may not even call it myAds (though I'll still give the author credit for the original of course).

8
wcrwcr
Re: myAds/Classified ads/Modify Ad
  • 2004/9/21 4:10

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Sorry for the delay

I see Chad, so you are working in silence, lol.

But tell me what you think:

You are one of the (if not the only one) peolpe who makes this module very usable and with some nice features (eg. the hack that blocks same annouce twice, just for saying one).

What you think about at least make a "compendium" of all the hacks and fixes that you?ve made till now, in order to make easy to find them all ??

And please, when you think that?s the time, let me make the brazilian portuguese translation for this new myads, ok?

PLease, think about

Regards,
Wilson







9
ChadK
Re: myAds/Classified ads/Modify Ad
  • 2004/9/21 17:28

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


I would make a list of the hacks I've done but I think instead I'll make a copy of my module on my site and strip out the cross-site posting feature from it and release it to you guys.

I do really need to get the text out of the module and into the language files before I do that though. And I would like to complete a hack that allows the admin to designate a category as allowing ads or not. I have a category that I don't want people to post ads in, I want them to use the sub-categories. To do this on my site I've just basically added some code right to the page to disallow posting in that category but I'd rather have that in a table and admin edittable.

Anyway, I'll zip it up and publish it for everyone shortly.

10
wcrwcr
Re: myAds/Classified ads/Modify Ad
  • 2004/9/21 21:05

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hey Chad

Terrific news indeed
From now we gonna have a decent ads module on xoops!!

I?ll be around.....waiting.

Thank you very much.
Regards,
Wilson

Login

Who's Online

169 user(s) are online (86 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits