change msg file type
hi klemen,
thanks for the reply.
with regard to option 1, it would take forever changing the extensions by hand. is there a quick way or program to use to bulk convert them?
i have looked online but all of them have to be paid for...
thanks
thanks for the reply.
with regard to option 1, it would take forever changing the extensions by hand. is there a quick way or program to use to bulk convert them?
i have looked online but all of them have to be paid for...
thanks
[b][color=red][url=http://ilumu.com]UK Website Design Specialists - ILUMU.COM[/url][/color][/b]
Don't know of any, try searching.
How about option 2?
How about option 2?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
For option 1 I can recommend Total Commander (http://www.ghisler.com/)
It's a shareware program but Christian Ghisler (the author of the program) is very lenient toward users who do not buy the program if they can not afford it. It is one of a few commercial programs I am a registered user of.
Here's how to rename the files with Total Commander
Once installed, start Total Commander.
Browse to the msg folder.
Select all files (Ctrl+A or Ctrl + Num+)
Press CTRl+M (starts Multi-Rename-Tool)
In the extension field, change [E] to shtml (check if the new names are oke)
Press Start! button to change the names
Press Close button to close the Multi-Rename-Tool
Greetings,
Henrie
It's a shareware program but Christian Ghisler (the author of the program) is very lenient toward users who do not buy the program if they can not afford it. It is one of a few commercial programs I am a registered user of.
Here's how to rename the files with Total Commander
Once installed, start Total Commander.
Browse to the msg folder.
Select all files (Ctrl+A or Ctrl + Num+)
Press CTRl+M (starts Multi-Rename-Tool)
In the extension field, change [E] to shtml (check if the new names are oke)
Press Start! button to change the names
Press Close button to close the Multi-Rename-Tool
Greetings,
Henrie
hi klemen,
i was hoping the extension change from html to shtml would make mboard entirely dynamic, but i see previous messages (in shtml) are unaffected even when i change the footer. so i'm guessing it won't be possible to make this work on mboard?
thanks
i was hoping the extension change from html to shtml would make mboard entirely dynamic, but i see previous messages (in shtml) are unaffected even when i change the footer. so i'm guessing it won't be possible to make this work on mboard?
thanks
[b][color=red][url=http://ilumu.com]UK Website Design Specialists - ILUMU.COM[/url][/color][/b]
SSI (shtml) are dynamic and it doesn't depend on the script (MBoard in your case). Have you read and tried any of the tutorials?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
hi klemen,
thanks for the reply. i've taken a look at your tutuorials, but can't find much help there. i'm really confused as i thought making the extensions shtml would mean when i change the footer, previous message's footers would also change, but it doesn't. not sure if i've done something wrong...
thanks for the reply. i've taken a look at your tutuorials, but can't find much help there. i'm really confused as i thought making the extensions shtml would mean when i change the footer, previous message's footers would also change, but it doesn't. not sure if i've done something wrong...
[b][color=red][url=http://ilumu.com]UK Website Design Specialists - ILUMU.COM[/url][/color][/b]
In the shtml files you have to include code to include the footer.
Something like
To write this code in the *.shtml files in the msg folder you have to edit the existing (s)html files manually.
For new files to include this code you will have to edit the mboard.php file.
In MBoard 1.30 op en mboard.php file and go to line 443, there you'll find thisNow edit this like thisNow you will have your footer.txt in all new files.
But this is only for the footer.txt file. Some other code is still hardcoded in the file. For example the "My lovely website - message board" which is set in the settings.php file in $settings['mboard_title']="" is written in the message file and is not dynamically read, so changes in the settings.php file will not be reflected in the message. Also the link to the css file is hardcoded. This normally will not give any problem unless you move to another host.
Greetings,
Henrie
Something like
Code: Select all
<!--#include file="../footer.txt" -->
For new files to include this code you will have to edit the mboard.php file.
In MBoard 1.30 op en mboard.php file and go to line 443, there you'll find this
Code: Select all
</body>
Code: Select all
<!--#include file="../footer.txt" --></body>
But this is only for the footer.txt file. Some other code is still hardcoded in the file. For example the "My lovely website - message board" which is set in the settings.php file in $settings['mboard_title']="" is written in the message file and is not dynamically read, so changes in the settings.php file will not be reflected in the message. Also the link to the css file is hardcoded. This normally will not give any problem unless you move to another host.
Greetings,
Henrie
Are you sure that SSI is supported by your server?
You can check by creating a test.
Create one file called ssitest.shtml with the following content:
Now create another file with the name content.txt with the following content:
Upload both files to your server in the same directory. Now open ssitest.shtml in you browser. If the page does not display any content than SSI is not supported by your server. If it displays the text in content.txt than SSI is supported.
Greetings,
Henrie
You can check by creating a test.
Create one file called ssitest.shtml with the following content:
Code: Select all
<html>
<head>
<title>Test for SSI support.</title>
</head>
<body>
<p><!--#include file="content.txt" --></p>
</body>
</html>
Code: Select all
If this text is displayed than SSI is supported.
Upload both files to your server in the same directory. Now open ssitest.shtml in you browser. If the page does not display any content than SSI is not supported by your server. If it displays the text in content.txt than SSI is supported.
Greetings,
Henrie
hi henrie,
thanks for the reply. i did the test and it passed. It read:
If this text is displayed than SSI is supported.
if i sent my mboard.php file to you, would you mind taking as look at it. it has been modified by klemen to include images, and i have made further modifications too.
i tried using
<!--#include file="footer.txt" -->
instead of
<!--#include file="../footer.txt" -->
but i get the following error
[an error occurred while processing this directive]
cheers![/code]
thanks for the reply. i did the test and it passed. It read:
If this text is displayed than SSI is supported.
if i sent my mboard.php file to you, would you mind taking as look at it. it has been modified by klemen to include images, and i have made further modifications too.
i tried using
<!--#include file="footer.txt" -->
instead of
<!--#include file="../footer.txt" -->
but i get the following error
[an error occurred while processing this directive]
cheers![/code]
[b][color=red][url=http://ilumu.com]UK Website Design Specialists - ILUMU.COM[/url][/color][/b]
You did try with
<!--#include file="../footer.txt" -->
?
<!--#include file="../footer.txt" -->
?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
How about you instead try replacing (in mboard.php)
with this:
Save, upload, post a new message and test it.
Code: Select all
$content.=$footer;
Code: Select all
$content.='<!--#include file="../footer.txt" -->';
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools