1
davidthomas1
customise module URL

I'd like to customise a module's URL.

Is it simply a matter of changing the module folder name and editing the xoops_version.php file to match before installation? Or are there other database considerations...

How do you customise a module's URL?

2
fatman
Re: customise module URL
  • 2005/3/14 7:07

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


In theory it should be as easy as changing the name of the module folder and updating xoops_version.php file and then installing the module. However a lot will depend on the individual module and if the developer has hardcoded the module folder name into links or other areas of the code.

3
davidthomas1
Re: customise module URL

Thanks for the reply.

So I suppose the best way would be to scan all the files prior to installation of the module.

Search for and replace the pre-set xoops_version.php dirname value. e.g: "$modversion['dirname']='modulefolder'"

Search the module files for 'modulefolder' text string, then replace (one by one) with personalised text to customise URL - then install.

Bascially, search and replace the module files for the hard-coded folder name and update prior to install.

what do you think?

Login

Who's Online

147 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 147


more...

Donat-O-Meter

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

Latest GitHub Commits