Hi
I just wondered where I can add the Meta info and change where the mboard looks for the stylesheet
Oh and can I call the mboard.php page into Dreamweaver or will it mess it up?
Thanks
Justin
Meta, stylesheet and Dreamweaver
-
- Posts: 9
- Joined: Thu Jun 02, 2005 5:13 pm
Re: Meta, stylesheet and Dreamweaver
sorry login probsAnonymous wrote:Hi
I just wondered where I can add the Meta info and change where the mboard looks for the stylesheet
Oh and can I call the mboard.php page into Dreamweaver or will it mess it up?
Thanks
Justin
Justin's Squat:
[url]http://www.greylizard.net/[/url]
[url]http://www.greylizard.net/[/url]
Hi,
I wouldn't recommend loading it in DW, but you can try, just make sure you backup the original script in case something goes wrong...
To edit CSS styles just edit the "style.css" file that comes with MBoard.
To add meta tags: open mboard.php in a plain text editor (like Notepad or Wordpad) and use the search function to find: <head>
The <head> code is located twice within mboard.php: the first one is the head tag of MESSAGES and the second one is the head tag of MAIN FORUM (first page that shows when you open mboard.php in your browser). You may add your meta tags below those head tags.
IMPORTANT
Make sure you escape all quotes in your meta tags with a backslash (\). So instead of " you should use \".
Example:
WRONG:
<meta name="description" content="My website description">
OK:
<meta name=\"description\" content=\"My website description\">
Regards
I wouldn't recommend loading it in DW, but you can try, just make sure you backup the original script in case something goes wrong...
To edit CSS styles just edit the "style.css" file that comes with MBoard.
To add meta tags: open mboard.php in a plain text editor (like Notepad or Wordpad) and use the search function to find: <head>
The <head> code is located twice within mboard.php: the first one is the head tag of MESSAGES and the second one is the head tag of MAIN FORUM (first page that shows when you open mboard.php in your browser). You may add your meta tags below those head tags.
IMPORTANT
Make sure you escape all quotes in your meta tags with a backslash (\). So instead of " you should use \".
Example:
WRONG:
<meta name="description" content="My website description">
OK:
<meta name=\"description\" content=\"My website description\">
Regards
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
-
- Posts: 9
- Joined: Thu Jun 02, 2005 5:13 pm
-
- Posts: 9
- Joined: Thu Jun 02, 2005 5:13 pm
Oh dear, I did that and the forum fell over:
http://www.greylizard.net/forum2
This was after putting the meta tags in with the \ bits as you said
code snip:
global $settings;
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
<html>
<head>
<title>$settings[mboard_title]</title>
<meta name=\"description\" content="Justin's Squat forum, for general chat about anything. A forum for my site justins squat, covering things from world travel to cars and my poor ford fiesta xr2. Our old jeepurs devon rex cats to my stereo and having a great time as a hippy in anjuna, goa, india at techno parties. Any subject you like to chat about at the forum.\">
<meta name=\"keywords\" content="chat, discussion, travel, hippy, webdesign, automotive, cars, music, jokes\">
<meta content=\"text/html; charset=windows-1250\">
<link href=\"style.css\" type=\"text/css\" rel=\"stylesheet\">
<script language=\"Javascript\" src=\"javascript.js\" type=\"text/javascript\"><!--
//-->
</script>
</head>
<body>
";
include_once "header.txt";
http://www.greylizard.net/forum2
This was after putting the meta tags in with the \ bits as you said
code snip:
global $settings;
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
<html>
<head>
<title>$settings[mboard_title]</title>
<meta name=\"description\" content="Justin's Squat forum, for general chat about anything. A forum for my site justins squat, covering things from world travel to cars and my poor ford fiesta xr2. Our old jeepurs devon rex cats to my stereo and having a great time as a hippy in anjuna, goa, india at techno parties. Any subject you like to chat about at the forum.\">
<meta name=\"keywords\" content="chat, discussion, travel, hippy, webdesign, automotive, cars, music, jokes\">
<meta content=\"text/html; charset=windows-1250\">
<link href=\"style.css\" type=\"text/css\" rel=\"stylesheet\">
<script language=\"Javascript\" src=\"javascript.js\" type=\"text/javascript\"><!--
//-->
</script>
</head>
<body>
";
include_once "header.txt";
Justin's Squat:
[url]http://www.greylizard.net/[/url]
[url]http://www.greylizard.net/[/url]
-
- Posts: 9
- Joined: Thu Jun 02, 2005 5:13 pm