1

Topic: Classified Adverts

I would like my members to be able to post classified adverts. At the moment they can use the blog to do so, but I would like a more sophisticated function eg having categories and regions.

I was thinking that the Events facility on VLD (without the calendar) might to the job quite nicely because I can add fields.

How much swearing and head scratching am I letting myself in for if I copy every event file and rename it from ext.events.php to ext.adverts.php? All the event templates will be copied as event-*.tpl to advert-*.tpl and I will make appropriate changes in the language files and then customise the new files.

This way, I still have events on my site and might end up with a functioning classified advert facility.

All suggestions, handy hints and comments are welcome.

2

Re: Classified Adverts

paid classified ads?

so, you want members to be able to click "buy your own ads" and to run thir campaign on your web site, right?

3

Re: Classified Adverts

Not quite. I run a crew / boat finder website and yachties always have "treasures of the bilge" to sell to other yachties.

4

Re: Classified Adverts

That was tedious and it almost worked....

I copied every template and php file that was related to events and then renamed it as described in my original post. I then opened every single tpl and php file and did a search for "event" and then copied & pasted the code then renamed the "event" part of the code to "advert" except in the all the event tpl & php files. In the new advert tpl & php files, I renamed "event" as "advert". Then I had a dig around in myphpadmin on my localhost and copied the event tables to make the new advert tables. After much swearing, I actually found it easier to edit the backed up database.sql in notepad++ and then restore it with the lines of new code to add the fields.

So far, so good. Well not quite. The advert page does not load correctly and is missing fields and and does not save when you try create a new advert. I don't think the error is tpl related, but I could be wrong.

In the includes/cache folder, there are several files with silly looooong names eg:
vld_events_fields_english_3631c88aeb563f16220f86f2b580aa78.php
What is the significance of these files and how is the long name generated?

Anyone with an idea of what else I could have missed, please share you ideas?

Thanks

Last edited by DesperateSailors (2011-11-24 11:19:41)

5

Re: Classified Adverts

then you make a copy be sure you had different name for cache files !

Give the world the best you have, and the best will come to you.
Tutorials and Mods for VldPersonals  Add CometChat to your vldPersonals site

6

Re: Classified Adverts

Thanks gugu.

Where do I check what the cache file names are?

7

Re: Classified Adverts

Now all working, thanks to Radioact.