Meta, stylesheet and Dreamweaver

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
Guest

Meta, stylesheet and Dreamweaver

Post 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
static1635
Posts: 9
Joined: Thu Jun 02, 2005 5:13 pm

Re: Meta, stylesheet and Dreamweaver

Post 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
Justin's Squat:
[url]http://www.greylizard.net/[/url]
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
static1635
Posts: 9
Joined: Thu Jun 02, 2005 5:13 pm

Post by static1635 »

Cool, thank you, I will get onto it right away :)

Justin
Justin's Squat:
[url]http://www.greylizard.net/[/url]
static1635
Posts: 9
Joined: Thu Jun 02, 2005 5:13 pm

Post 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";
Justin's Squat:
[url]http://www.greylizard.net/[/url]
static1635
Posts: 9
Joined: Thu Jun 02, 2005 5:13 pm

Post by static1635 »

hang on I see what I have missed a couple of \'s

Sorted :)

Sorry 'bout that, & thanks :)
Justin's Squat:
[url]http://www.greylizard.net/[/url]
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

:D
Locked