1
CS_Swan
editing mxdirectory fields
  • 2008/12/21 19:46

  • CS_Swan

  • Just popping in

  • Posts: 28

  • Since: 2008/11/28


I now have MxDirectory working and I want to change some of the field forms for example I want to change state to Rural Municipality and I want to make it able to sort on that field . anyone willing to help?

2
stefan88
Re: editing mxdirectory fields
  • 2008/12/21 21:07

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

Firs make a backup and do not experiment with a live site.

You will have to start with the database - change the "state" field in "xdir_links" and in "xdir_mod" to be longer than 2 chars. For new instalation you can change them in sql/mysql.sql file. For installed module you may use phpmyadmin.

Then you should edit some files - not shure about all of them, but for shure you will have to change this:

addElement(new XoopsFormText(_MD_BUSSTATE 'state'22$state));


in mxdirectory\modlink.php and in mxdirectory\admin\index.php

On the other hand if two symbols is OK, then probably you can edit only language files...
..

3
CS_Swan
Re: editing mxdirectory fields
  • 2008/12/23 22:09

  • CS_Swan

  • Just popping in

  • Posts: 28

  • Since: 2008/11/28


which file do i edit in order to change the labels on forms?

thank you

4
stefan88
Re: editing mxdirectory fields
  • 2008/12/23 22:42

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

Quote:
which file do i edit in order to change the labels on forms?


it would be in mxdirectory/language/YOURLANGUAGE/main.php

edit the "State: " part in this definition:

define("_MD_BUSSTATE","State: ");


..

5
tpraja
Re: editing mxdirectory fields
  • 2008/12/30 15:13

  • tpraja

  • Just popping in

  • Posts: 4

  • Since: 2008/10/7


Where we can I edit mxdirectory fields? sorry I cant understand. Please explain me clearly.

6
sailjapan
Re: editing mxdirectory fields

make changes to the file at
.../modules/mxdirectory/language/YOURLANGUAGE/main.php

open it in a text editor, and it should be apparent what to edit.
Never let a man who does not believe something can be done, talk to a man that is doing it.

7
coolke
Re: editing mxdirectory fields
  • 2009/5/18 7:03

  • coolke

  • Just popping in

  • Posts: 1

  • Since: 2008/10/15


thanks for sharing :)


-------------------------------
[Link removed by SailJapan (Moderator)]

Login

Who's Online

190 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 190


more...

Donat-O-Meter

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

Latest GitHub Commits