1
lamjdx
Multiple mxdirectory 3.0 rc1 cloning
  • 2007/2/16 16:14

  • lamjdx

  • Just popping in

  • Posts: 11

  • Since: 2005/4/23


Can we get multiple mxdirectory install in the same website?

Cloning the mxdirectory the same way as in xhld module.

This module judges its number by tale of directory's name.

modules/mxdirectory0 - treated as No.0 module of mxdirectory
modules/xhld1 - treated as No.1 module of mxdirectory
modules/h2 - treated as No.2 module of mxdirectory

so we can have X number of mxdirectory within the same site.

Thanks.
http://www.canvie.com

2
bintel
Re: Multiple mxdirectory 3.0 rc1 cloning
  • 2007/2/18 17:57

  • bintel

  • Just popping in

  • Posts: 18

  • Since: 2006/1/12


It is possible for run multiple mxdirectory modules. I have 11 running and tested over and over with fake businesses with no problem. My site is not live just yet but will be soon. Anyways, you got to change the database table names to something else and also change all instances (MXDIR or something similar to something different) so you can narrow down the errors if it comes up. It is not necessary to change codes in the files but I prefer doing so since I tends to overwrite files from another directory to the wrong one because of the same text in it.

I use Criline Search and Replace to change all instances to its own based on the directory names so in bug mode, it reduced notices and errors to zip.

Some of my directory are different with added fields from others so this is my way of doing it by changing codes in the files.

I also did this for real estate but didn't like the outcome so I switch to open-realty and had XOOPS wrapped it with the header and Xoops. Regular members do not need to register to OR so it is fine for the site.

BTW, I am using XOOPS 2.016.

So I hope that I was clear on this.


Good luck!

3
lamjdx
Re: Multiple mxdirectory 3.0 rc1 cloning
  • 2007/2/19 19:55

  • lamjdx

  • Just popping in

  • Posts: 11

  • Since: 2005/4/23


Thanks BINTEL.

"Anyways, you got to change the database table names to something else and also change all instances (MXDIR or something similar to something different)" ...

what do you mean by "change all instances"?

Thanks.

4
raygauci
Re: Multiple mxdirectory 3.0 rc1 cloning
  • 2007/2/19 20:57

  • raygauci

  • Just popping in

  • Posts: 64

  • Since: 2004/12/16


Have just uploaded mxdirectory 3.01rc1 using XOOPS v 2.016 and has given me a white screen. Is there something needs to be done, permissions, renames etc for this to work?

Ray

5
JamesSAEP
Re: Multiple mxdirectory 3.0 rc1 cloning
  • 2007/2/20 15:17

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Quote:

bintel wrote:
I switch to open-realty and had XOOPS wrapped it with the header and Xoops. Regular members do not need to register to OR so it is fine for the site.


bintel -
I've been trying to figure out how to wrap the open-realty with xoops. Would you be able to share all the code modifications for this?

6
JamesSAEP
Re: Multiple mxdirectory 3.0 rc1 cloning
  • 2007/2/20 15:21

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Quote:

raygauci wrote:
Have just uploaded mxdirectory 3.01rc1 using XOOPS v 2.016 and has given me a white screen. Is there something needs to be done, permissions, renames etc for this to work?

Ray


To solve this error, do the following:

In the ./index.php file, comment out lines 38-41 like, or just remove them
//function add_header($tpl_source, &$xoopsTpl)
//{
//    return "<?php echo $xoops_module_header//?>n".$tpl_source;
//}


and then also comment out line 48 like
//$xoopsTpl->register_postfilter('add_header');


This will solve the problem till the final release comes out.

7
bintel
Re: Multiple mxdirectory 3.0 rc1 cloning
  • 2007/2/27 1:57

  • bintel

  • Just popping in

  • Posts: 18

  • Since: 2006/1/12


perfect example of mxdirectory clones are at www.deafx.com

open-realty - you can use the cms_integration template and add the header and footer stuff to the main.html like this.

<html
<
head>
         <
meta http-equiv="content-type" content="text/html;charset=ISO-8859-1" />
         {
load_meta_keywords}
         {
load_meta_description}
        {
load_css_style}
        {
load_css_editor}
        <
title>{site_title}</title>
        {
load_js}

        {
license_tag}
     </
head>
<
body>
(
logo and menu links)

<
div class="content">
    <!-- OR 
files go here -->
{
content}
</
div>
<!-- 
end_html -->

(
copy paste the footer stuff here from Xoops' theme.html and modify it to your needs)

</body>
<html>


I added the left menu links from the other OR template's main.html to this file to make it complete.

Modify the .css file to your needs.

That's it. Add the Xoops' "Home" link somewhere on the main page to get back to the XOOPS site and a OR link on XOOPS index page to get to OR script.


MXDirectory clones:
Changing table names, file names, and codes like this:

change all "XDIR" to "MXXI or whatever"
change all "xdir" to "mxxi or whatever"

so this directory is different from the other directories.

Hope that helps since it worked out great for me.

Login

Who's Online

204 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 204


more...

Donat-O-Meter

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

Latest GitHub Commits