Page 1 of 1
Meta, stylesheet and Dreamweaver
Posted: Thu Jun 02, 2005 9:17 pm
by Guest
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
Re: Meta, stylesheet and Dreamweaver
Posted: Thu Jun 02, 2005 9:18 pm
by static1635
Anonymous 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
sorry login probs
Posted: Thu Jun 02, 2005 10:54 pm
by Klemen
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
Posted: Thu Jun 02, 2005 11:11 pm
by static1635
Cool, thank you, I will get onto it right away
Justin
Posted: Thu Jun 02, 2005 11:19 pm
by static1635
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";
Posted: Thu Jun 02, 2005 11:23 pm
by static1635
hang on I see what I have missed a couple of \'s
Sorted
Sorry 'bout that, & thanks

Posted: Fri Jun 03, 2005 10:32 am
by Klemen