1
rudycash
Help modifying Xdirectory
  • 2004/7/13 7:32

  • rudycash

  • Just popping in

  • Posts: 70

  • Since: 2004/2/12


I have a series of directories. Part of my launch strategy is to offer listings on a first come served basis.

I need to modify Xdiretory to display the listings in the order they were approved, rather than alphabetically. I contacted builderb and he said I could


Quote:
Yes, there is a way to do this but, it requires you to add an additional field in the DB called "startdate" once you do this it will require you to modify several files.

submit.php & templates/xdir_submit.html - add new hidden field and call the current date/time then define the variable and make sure it gets into the DB when submitted.

admin/index.php - you will need to add a field allowing you to edit this date.

viewcat.php - change the $orderby variable to:
$orderby = "premium DESC,startdate ASC,title ASC";

include/fuctions.php - add new order to the existing ordering list.


But I have no idea how to do this. I also need to get the map function to work with UK maps or failing this to remove the map button.

I am willing to pay for this work.


Can anyone help - this is urgent. I have a new site ready to launch but I can't do it until I get the sort order changed.


2
rudycash
Re: Help modifying Xdirectory
  • 2004/7/13 15:10

  • rudycash

  • Just popping in

  • Posts: 70

  • Since: 2004/2/12


Ho Hum

3
rudycash
Re: Help modifying Xdirectory
  • 2004/7/14 10:37

  • rudycash

  • Just popping in

  • Posts: 70

  • Since: 2004/2/12


OK no replies how about this - surely this is easy.

Is there an easy way to set the default sort order for the listings to be by date order rather than alphabetically. Just so that when any new user views the lisings they see them from oldest first?. This would be a simple quick fix for me if it can be done.

4
ChadK
Re: Help modifying Xdirectory
  • 2004/7/14 14:44

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Can you restate your original request? I for one didn't understand at all what you meant. :(

What do sub-directories have to do with xClassfieds?


5
rudycash
Re: Help modifying Xdirectory
  • 2004/7/14 23:40

  • rudycash

  • Just popping in

  • Posts: 70

  • Since: 2004/2/12


not sub-directories

directory as in business directory like this Find a photo

Its all fixed now

Its a googlefear thing

Login

Who's Online

413 user(s) are online (294 user(s) are browsing Support Forums)


Members: 0


Guests: 413


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