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

* Navigator

Expand - Collapse

* Statistic


  • *Total Posts: 16430
  • *Total Topics: 2522
  • *Online Today: 5
  • *Most Online: 292
(12. Nov 2016, 09:37:31)
  • *Users: 0
  • *Guests: 0
  • *Spiders: 1
  • *Total: 1

  • *Google

* Calendar

Mo
Tu
We
Th
Fr
Sa
Su
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

Check for PortaMX Directory

Started by ranseyer, 22. Feb 2011, 11:41:08

previous topic - next topic

0 Members and 0 Guests are viewing this topic.

ranseyer

22. Feb 2011, 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
22. Feb 2011, 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
22. Feb 2011, 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
22. Feb 2011, 15:27:12
Quote from: ranseyer on 22. Feb 2011, 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.