Page 1 of 3

change msg file type

Posted: Mon Apr 14, 2008 10:03 am
by icepack
hello,
if the msg file type was changed from .html to say .php would it make the pages dynamic?

Posted: Mon Apr 14, 2008 3:02 pm
by Klemen
It should, give it a try.

Posted: Fri Apr 18, 2008 11:53 am
by icepack
i've tried changing html tp php in settings,
but instead of linking to the message, the title directs to a pop-upm, which when open reads "A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again."
i have followed all permissions instructions, and it works fine for html

Posted: Sat Apr 19, 2008 1:26 pm
by Klemen
It's possible your host doesn't allow PHP scripts in a folder with chmod 777?

Posted: Sat Apr 19, 2008 2:37 pm
by icepack
hmmm, it's very strange because it works perfectly with html, but i only get the function errors when changed to php. i'm pretty sure it's not a host problem, as they pretty much allow everything, so any other thoughts? thanks!

Posted: Sun Apr 20, 2008 12:38 pm
by Klemen
Can you copy/paste the exact error(s) you get (or post a link to a test php file), might give us a better idea of what's going on.

Posted: Sun Apr 20, 2008 2:24 pm
by icepack
it works fine there, until i CHMod count.txt and threads.txt (from 644) to 666 the msg folder to 777 as required, then i get the same problem as before... so it does seem like my host

i'm guessing everything would work if i left CHMod as 644, but would that be inadvisable, due to vunerabilities?

is there another extension i could try which might work? asp, shtml?

Posted: Sun Apr 20, 2008 6:08 pm
by Klemen
shtml should work fine under 777. However, if it works fine when you have files on 644 and msg folder on 755 you can just leave it like that, it won't make it any more vulnerable.

Posted: Mon Apr 21, 2008 9:34 am
by icepack
hi Klemen,
would shtml make it dynamic? if so, it might be worth my changing just that as opposed to fiddling with chmod.
thanks again

Posted: Mon Apr 21, 2008 11:29 am
by Klemen

Posted: Mon Apr 21, 2008 5:11 pm
by icepack
klemen, you are a star!

Posted: Thu Apr 24, 2008 12:20 pm
by icepack
sorry klemen, more bad news...
i've noticed my mboard is not automatically deleting the msg when the limit set was reached. i have tried to delete it myself by using the red cross, but i get the following error:

Warning: unlink(msg/273.shtml) [function.unlink]: No such file or directory in .....

Can't delete this post, access denied or post doesn't exist!

i think the reason behind is because i recently changed the extension from .html to .shtml, and the old msg should all be .html, but it thinks they are .shtml

Posted: Sat Apr 26, 2008 10:30 am
by Klemen
Yes, unfortunately that happens if you change message type in the middle of posts (and MBoard has no database with old name stored). Try changing extension back to html, delete old posts, then change back to shtml.

Posted: Sat Apr 26, 2008 12:47 pm
by icepack
hi klemen,
i had a feeling that was the issue. would this work:
delete all old html files manually (i.e. relevant thread and msg files) via ftp software, so that onlt shtml files are left. then if the new limit was reached (e.g. 50) would it then automatically delete them as before.

Posted: Sat Apr 26, 2008 3:03 pm
by Klemen
That would work, but you'd have links to non-existent files still in your threads.txt file.

You can try two things instead:

1. rename all .html files to .shtml in your msg folder and inside threads.txt change all .html to .shtml then try manually deleting files (open post and click the red X button)

- or -

2. as suggested before try changing extension back to html (in settings.php), delete old posts using the red X, then change back to shtml in settings.php.