![]() |
What templates are used on the forum's front end?
Sorry, I know my thread title is very vague and probably doesn't make any sense. Let me explain.
I installed CometChat. It requires me to put a HTML code under <head> of every template I want the chat bar to be displayed. I put the code in 'forumhome' template and it is displaying the chat bar on mysite.com/forum.php. That's great. I put the code in 'forumdisplay' template and it is displaying the chat bar in on pages where threads are listed. So I want the names of all the templates where I can put this code as I want the chat bar to be displayed on every page of my forum (inside threads page, private messages page, user cp page, writing a post page etc.). So I want someone to tell me the names of all these templates. These templates must include <head> tag as the code is placed under it. |
You're supposed to put it in the header template, which is included in every template.
|
Yep what Dave said. :) There is a header template & a headerinclude template. The header template should have the <head> tag that you need. Then it will show the chat bar on the entire forum everywhere.
|
Quote:
This is the basic structure of a html page HTML Code:
<HTML> The header template is part of the normal page body (i.e. inside <body></body>), just like the footer or anything else vB renders on the screen. What you wrongly call the headerinclude template really is called headinclude, because it is the stuff that goes between the <head></head>-tags. So: The code needs to go into the headinclude template. And there are no <head>-tags in the headinclude template, because they are in the main page templates, like SHOWTHREAD. |
Quote:
Where can I put the chat code so it is displayed on every page of the site? |
You have to include JavaScript right? Put it in the headinclude template like most of us said.
|
Quote:
|
Quote:
Cometchat says to put it under <head> tag. There is no <head> tag in headinclude. What should I do? This is my headinclude template. Code:
<meta http-equiv="Content-Type" content="text/html; charset={vb:stylevar charset}" /> |
Quote:
|
Quote:
|
All times are GMT. The time now is 05:15 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|