31
sailjapan
Re: mxDirectory 3.0RC2???

I believe a hack was required if your server is running php 5. It's in the forums somewhere, run a search

32
tommyZ
Re: mxDirectory 3.0RC2???
  • 2009/12/22 22:27

  • tommyZ

  • Friend of XOOPS

  • Posts: 89

  • Since: 2005/1/4 1


Doing as Zyspec recommends in his post fixes the blank index.php page in the front end of MxDir 3.0RC2 due to PHP5 (maybe XOOPS 2.4.2)

If you get the RC2 from the link posted in this thread, this has been changed
Delete lines 38-41 in ./index.php:
function add_header($tpl_source, &$xoopsTpl)
{
return "<?php echo $xoops_module_header?>n".$tpl_source;
}


Then delete line 48 (now line 44 after the above was deleted) in ./index.php so it looks like this:

$xoopsTpl->register_postfilter('add_header');


There is also a coupon class fix for PHP5. Modify ./class/coupon.php line 124 from:

if (get_class($coupon) != 'coupon') {

to:

if (get_class($coupon) != 'Coupon') {
Notice the capital 'c' is required for the 'Coupon' compare. This is because the PHP interpreter changed the get_class function to be case sensitive in PHP5.


You will still have to manually do:

Then in these templates:
xdir_index.html
xdir_listingfull
.html
xdir_mylistings
.html
xdir_viewalpha
.html
xdir_viewcat
.html

Comment out the 
<{$xoops_module_header}> line so it looks like:

<!-- {
$xoops_module_header}> -->


and walla! i am working on migrating data from xdirectory to mxdir because xdir won't work on 2.4.2 as it should! this is a bit tricky, but i am on it!

thanks for the support everyone!

33
Falcon22
Re: mxDirectory 3.0RC2???
  • 2010/1/13 1:37

  • Falcon22

  • Just popping in

  • Posts: 58

  • Since: 2003/12/26


Is there anywhere I can see a working mxdirectory?

34
ghia
Re: mxDirectory 3.0RC2???
  • 2010/1/13 2:00

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


At tiznit-ino.net (link page jaunes)

35
sailjapan
Re: mxDirectory 3.0RC2???

I run mxDirectory here.

Login

Who's Online

289 user(s) are online (171 user(s) are browsing Support Forums)


Members: 0


Guests: 289


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