meta tags

The 2.0.x discussion forum has been locked; this will remain read-only. The 3.0.x discussion forum has been renamed phpBB Discussion.
Locked
Jarod
Registered User
Posts: 8
Joined: Tue Apr 09, 2002 2:00 am

meta tags

Post by Jarod »

I noticed there's no option to set meta keywords in phpbb. Will that be added in someday or do we have to hack the files to do this?
Kylecool
Registered User
Posts: 674
Joined: Sat Feb 02, 2002 3:51 am
Location: Southern California, U.S.A! GO USA!
Contact:

Post by Kylecool »

Yes you can. Just edit the overall_header.tpl which is located in the templates/subSilver directory. The top part looks like:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<!-- link rel="stylesheet" href="templates/subSilver/{T_HEAD_STYLESHEET}" type="text/css" -->
<style type="text/css">
You can can add meta-tags in there, and it's immensely simple. :)

-Kyle Reilly
phpBB Moderator
VACATION UNTIL june 29TH or 30th. :)
Jarod
Registered User
Posts: 8
Joined: Tue Apr 09, 2002 2:00 am

Post by Jarod »

Well the point of my question was if it would be built into the admin interface to insert meta tags or do I have to manually edit files to do it. I guess I'll have to edit files.
Kylecool wrote: Yes you can. Just edit the overall_header.tpl which is located in the templates/subSilver directory. The top part looks like:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<!-- link rel="stylesheet" href="templates/subSilver/{T_HEAD_STYLESHEET}" type="text/css" -->
<style type="text/css">
You can can add meta-tags in there, and it's immensely simple. :)

-Kyle Reilly
phpBB Moderator
Kylecool
Registered User
Posts: 674
Joined: Sat Feb 02, 2002 3:51 am
Location: Southern California, U.S.A! GO USA!
Contact:

Post by Kylecool »

Yes, currently you can NOT edit it through the admin panel. You MUST edit the templates. ;)

It's only 1 file so it's not that hard.

-Kyle
VACATION UNTIL june 29TH or 30th. :)
SamG
Former Team Member
Posts: 3221
Joined: Fri Aug 31, 2001 6:35 pm
Location: Beautiful Northwest Lower Michigan
Name: Sam Graf

Post by SamG »

People are failing to see the point of the template idea. We are editing HTML so we don't have to edit [PHP] files.

The handholding of traditional BBSing has confused us. People think of phpBB as less powerful because it approaches the forum HTML from a dual method, with themes being seen as weak BBS admin controls. We really need to clarify this, IMO.
Kylecool
Registered User
Posts: 674
Joined: Sat Feb 02, 2002 3:51 am
Location: Southern California, U.S.A! GO USA!
Contact:

Post by Kylecool »

HTML is in the files. :)

-Kyle
Last edited by Kylecool on Mon Apr 15, 2002 2:52 am, edited 1 time in total.
VACATION UNTIL june 29TH or 30th. :)
SamG
Former Team Member
Posts: 3221
Joined: Fri Aug 31, 2001 6:35 pm
Location: Beautiful Northwest Lower Michigan
Name: Sam Graf

Post by SamG »

No ... HTML is in tpl files :D
Kanuck
Former Team Member
Posts: 2791
Joined: Thu Jul 05, 2001 9:33 pm
Location: Toronto, Ontario

Post by Kanuck »

And it's raw HTML, with blocks where the right text and images go.

Simple as that
Kanuck
Former phpBB.com team member
Kylecool
Registered User
Posts: 674
Joined: Sat Feb 02, 2002 3:51 am
Location: Southern California, U.S.A! GO USA!
Contact:

Post by Kylecool »

Yes, HTML is in the tpl files. All you have to do is change that little bit, and you are set to go. :)

-Kyle
VACATION UNTIL june 29TH or 30th. :)
SamG
Former Team Member
Posts: 3221
Joined: Fri Aug 31, 2001 6:35 pm
Location: Beautiful Northwest Lower Michigan
Name: Sam Graf

Post by SamG »

And the reason the HTML is in the tpl files is so that phpBB can work with our HTML, the same kind of stuff we manage to write for every other page of our sites without the handholding of a control panel.
Kanuck
Former Team Member
Posts: 2791
Joined: Thu Jul 05, 2001 9:33 pm
Location: Toronto, Ontario

Post by Kanuck »

W00t. Triple-teamed. :D
Kanuck
Former phpBB.com team member
SamG
Former Team Member
Posts: 3221
Joined: Fri Aug 31, 2001 6:35 pm
Location: Beautiful Northwest Lower Michigan
Name: Sam Graf

Post by SamG »

This is not for poor Jarod, but for all who are trying to lace and tie Velcro shoes.
Locked

Return to “2.0.x Discussion”