1
JamesSAEP
mxdirectory submit values
  • 2007/3/12 15:35

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


For the life of me, I can't find where the drop down list values for "Country" and "Hours" are being pulled from when submitting a new listing. Can someone point me to them?

Thanks.

2
bintel
Re: mxdirectory submit values
  • 2007/3/12 23:13

  • bintel

  • Just popping in

  • Posts: 18

  • Since: 2006/1/12


Usually on the top of the page but under the copyright notice where the country and hours are called in "/submit.php" file. Those links are repeated throughout some files for the directory.

include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; [b]this is for country values[/b]

include 
'class/formtime.php'; [b]this is for time values[/b]

3
JamesSAEP
Re: mxdirectory submit values
  • 2007/3/13 13:40

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Great, thank you. That is exactly what I needed.

4
JamesSAEP
Re: mxdirectory submit values
  • 2007/3/14 14:30

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Anyone know what needs to be edited so that the "Hours" doesn't get displayed during submitting or viewing of a listing? I don't see anything in the template files.

5
tg1979
Re: mxdirectory submit values
  • 2007/3/14 17:41

  • tg1979

  • Just popping in

  • Posts: 4

  • Since: 2007/3/14


I just basically asked the same question under the Module Troubleshooting forum. I would like to rearrange the content shown for the business listings to look more like this site:

http://www.foxwood.ws/modules/mxdirectory/

Hopefully someone can tell us what files need to be edited. My guess is they are the ones in the MxDirectory Templates folder, but when I edited what I thought was the correct file and line and replaced the file on the server, nothing seemed to change.

6
JamesSAEP
Re: mxdirectory submit values
  • 2007/3/21 13:42

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


There's several places you'll want to remove the reference to business hours...

First in /templates/xdir_link.html comment out line 35 like this:

Comment out line 226 in /submit.php like this:
//    $modlinkform->addElement($hrtray);

Then comment out lines 220-223 in /modlink.php like this:
//  $modlinkform->addElement(new XoopsFormTime(_MD_BUSMFHRS , 'mfhrs', 15, $mfhrs));
//  $modlinkform->addElement(new XoopsFormTime(_MD_BUSSATHRS , 'sathrs', 15, $sathrs));
// $modlinkform->addElement(new XoopsFormTime(_MD_BUSSUNHRS , 'sunhrs', 15, $sunhrs));

Login

Who's Online

350 user(s) are online (293 user(s) are browsing Support Forums)


Members: 0


Guests: 350


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