To use this website completely, it is necessary to store cookies on your computer.
 

* Statistic

  • *Total Posts: 16418
  • *Total Topics: 2549
  • *Online Today: 10
  • *Most Online: 292
(2016 November 12, 09:37:31)
  • *Users: 0
  • *Guests: 0
  • *Spiders: 2
  • *Total: 2

  • *Baidu (2)

Check for PortaMX Directory

Started by ranseyer, 2011 February 22, 11:41:08

previous topic - next topic

0 Members and 0 Guests are viewing this topic.

ranseyer

2011 February 22, 11:41:08
A lot of Guys have the problem that the Portal is dead, after installing PortaMX.

Could it be a solution to build-in a check in the index.php (or so) ?

A) Maybe like this:
<?php
echo is_dir("./sources/PortaMX");
?>

If the directory not exists: Give a big warning output "PortaMX is not correctly installed, please xxx"

B) Better:
Maybe it would be possible to disable the Portal when this check is not successful, so the users can work anyways in the forum, and only the admin gets a big warning !!!

I think one of them would be a great messure for new users...

CU

feline

#1
2011 February 22, 13:52:54
Thats need big changes on many things, because a lot of function/variables are load before we can check any code.
for the 1.0 RC3 / RC4 it's easy to get the forum to work ..
1.. replace the index.php with the original
2.. if the file /Sources/PortaMx/PortaMxLoader.php exist, rename it

whopii .. the forum run  ^-^
Many are stubborn in relation to the path, a few in relation to the target.

ranseyer

#2
2011 February 22, 15:14:42
My own Forum is running very well (with your help) ;D

But im thinking about the newbies and so on. I read from lot of "Admins"  having the same issue...
A clear error-message would be a great help for everybody...
-when you try to access to the forum
-or after the installation
-or a separate php script: check-pmx-folders.php. I sombody asks "ohhh my portal is not (good) running", you can tell him: Please run the check-pmx-folders.php skript ...


If its not possible, then its not possible :-X. My opinion is that this would improve the professional look&feel of PortaMx a lot...

feline

#3
2011 February 22, 15:27:12
Quote from: ranseyer ,  2011 February 22, 15:14:42
A clear error-message would be a great help for everybody...
-when you try to access to the forum

that cost many, many time on each page load .. not possible
Quote
-or after the installation

also not possible .. if smf can't create the folder (eg. bad rights), a check script can't more do as smf itself
Quote
-or a separate php script: check-pmx-folders.php. I sombody asks "ohhh my portal is not (good) running", you can tell him:

Him have to learn .. anyone they can't handle a ftp client, is not preferred to administrate a forum (my meanings)
Many are stubborn in relation to the path, a few in relation to the target.