xoops forums

JamesSAEP

Just can't stay away
Posted on: 2007/3/12 15:35
JamesSAEP
JamesSAEP (Show more)
Just can't stay away
Posts: 732
Since: 2005/2/28
#1

mxdirectory submit values

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.

bintel

Just popping in
Posted on: 2007/3/12 23:13
bintel
bintel (Show more)
Just popping in
Posts: 18
Since: 2006/1/12
#2

Re: mxdirectory submit values

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]

JamesSAEP

Just can't stay away
Posted on: 2007/3/13 13:40
JamesSAEP
JamesSAEP (Show more)
Just can't stay away
Posts: 732
Since: 2005/2/28
#3

Re: mxdirectory submit values

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

JamesSAEP

Just can't stay away
Posted on: 2007/3/14 14:30
JamesSAEP
JamesSAEP (Show more)
Just can't stay away
Posts: 732
Since: 2005/2/28
#4

Re: mxdirectory submit values

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.

tg1979

Just popping in
Posted on: 2007/3/14 17:41
tg1979
tg1979 (Show more)
Just popping in
Posts: 4
Since: 2007/3/14
#5

Re: mxdirectory submit values

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.

JamesSAEP

Just can't stay away
Posted on: 2007/3/21 13:42
JamesSAEP
JamesSAEP (Show more)
Just can't stay away
Posts: 732
Since: 2005/2/28
#6

Re: mxdirectory submit values

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:
<!--  <{html_options name=bizhrs options=$link.bizhrs}> -->

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));