Author |
Message |
Sylver Cheetah 53 Board Member
Joined: 17 Dec 2008
Posts: 426 Location: Milky Way
|
Posted: Thu Jul 02, 2009 7:14 am Post subject: How to put a chat as an extra page? |
|
|
This is my /templates/subsilver/chat.tpl file:
Code: | <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td align="left" class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></td>
</tr>
</table>
<embed wmode="transparent" src="http://www.xatech.com/web_gear/chat/chat.swf" quality="high" width="640" height="480" name="chat" FlashVars="id=63876441&rl=Romanian" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://xat.com/update_flash.shtml" />
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><span class="nav">{PAGE_NUMBER}</span></td>
<td align="right"><span class="nav">{PAGINATION}</span></td>
</tr>
</table>
</table>
</td></tr></table> |
It doesn't work, I just see the chat code. Why? _________________ Image link
My Forum || My Blog
phpBB2 forever! |
|
Back to top |
|
|
Dog Cow Board Member
Joined: 18 Nov 2008
Posts: 378
|
Posted: Thu Jul 02, 2009 2:57 pm Post subject: Re: How to put a chat as an extra page? |
|
|
Sylver Cheetah 53 wrote: |
It doesn't work, I just see the chat code. Why? |
Which code? Do you mean that you see exactly what you have posted? If so, then that may mean that the .tpl file isn't getting parsed. _________________ Moof!
Lincoln's Tomb, Oak Ridge Cemetery, Springfield IL Mac 512K Blog Mac GUI |
|
Back to top |
|
|
dogs and things Board Member
Joined: 18 Nov 2008
Posts: 628 Location: Spain
|
Posted: Thu Jul 02, 2009 3:03 pm Post subject: Re: How to put a chat as an extra page? |
|
|
On a standard phpBB2 you canīt use html in .tpl files, that's why you just see the code, it doesnīt get parsed, I guess. _________________ phpBB2 will never die, I hope! |
|
Back to top |
|
|
Sylver Cheetah 53 Board Member
Joined: 17 Dec 2008
Posts: 426 Location: Milky Way
|
Posted: Thu Jul 02, 2009 3:42 pm Post subject: Re: How to put a chat as an extra page? |
|
|
Dog Cow wrote: | Which code? Do you mean that you see exactly what you have posted? If so, then that may mean that the .tpl file isn't getting parsed. |
No. I was seeing only the chat code, not the rest.
dogs and things wrote: | On a standard phpBB2 you canīt use html in .tpl files, that's why you just see the code, it doesnīt get parsed, I guess. |
I've changed the extension from TPL to HTML and then PHP. Now I see perfectly the chat, but the rest is not displayed right.
Before the chat, I see this:
{L_INDEX}
And after, in the left corner:
{PAGE_NUMBER}
And in the right corner:
{PAGINATION}
What I want is something like this: http://friendsforever.co.cc/links.php
But the chat instead if those banners... _________________ Image link
My Forum || My Blog
phpBB2 forever! |
|
Back to top |
|
|
dogs and things Board Member
Joined: 18 Nov 2008
Posts: 628 Location: Spain
|
Posted: Thu Jul 02, 2009 4:00 pm Post subject: Re: How to put a chat as an extra page? |
|
|
You could install Extreme Styles MOD, very easy to install and makes it possible to use html in .tpl files. _________________ phpBB2 will never die, I hope! |
|
Back to top |
|
|
Sylver Cheetah 53 Board Member
Joined: 17 Dec 2008
Posts: 426 Location: Milky Way
|
Posted: Thu Jul 02, 2009 4:07 pm Post subject: Re: How to put a chat as an extra page? |
|
|
I already use eXtreme Styles. Simple Subforums request me to do it, so I have it for about 2 years now. _________________ Image link
My Forum || My Blog
phpBB2 forever! |
|
Back to top |
|
|
dogs and things Board Member
Joined: 18 Nov 2008
Posts: 628 Location: Spain
|
Posted: Thu Jul 02, 2009 4:57 pm Post subject: Re: How to put a chat as an extra page? |
|
|
Try to put at the end of the chat code. _________________ phpBB2 will never die, I hope! |
|
Back to top |
|
|
Sylver Cheetah 53 Board Member
Joined: 17 Dec 2008
Posts: 426 Location: Milky Way
|
Posted: Thu Jul 02, 2009 5:42 pm Post subject: Re: How to put a chat as an extra page? |
|
|
No change!
I think who said that the php code is not parsed is right, but how to fix this? Maybe most MODs have a PHP file and also a TPL file for a thing. But what I'm trying is to use a single file. I wonder if it's impossible to do it all in one file... But, I wouldn't know how to do more.
All I want is a simple page with my logo, navigation, menu and all that is in FAQ for example, but instead of FAQ to have a chat. And I will modify the menu and add a Chat link. _________________ Image link
My Forum || My Blog
phpBB2 forever! |
|
Back to top |
|
|
Acaria Board Member
Joined: 20 Feb 2009
Posts: 238
|
Posted: Thu Jul 02, 2009 7:32 pm Post subject: Re: How to put a chat as an extra page? |
|
|
Wait, so did you create a file called chat.php in the root or something?
Not too sure I'm understanding you. |
|
Back to top |
|
|
Sylver Cheetah 53 Board Member
Joined: 17 Dec 2008
Posts: 426 Location: Milky Way
|
Posted: Fri Jul 03, 2009 4:28 am Post subject: Re: How to put a chat as an extra page? |
|
|
No, I've put it in /templates/subsilver/. But your idea is even better, so now I've moved it in the root. But nothing changed. _________________ Image link
My Forum || My Blog
phpBB2 forever! |
|
Back to top |
|
|
Jim_UK Board Member
Joined: 19 Nov 2008
Posts: 656 Location: North West UK
|
Posted: Fri Jul 03, 2009 5:00 am Post subject: Re: How to put a chat as an extra page? |
|
|
dogs and things wrote: | You could install Extreme Styles MOD, very easy to install and makes it possible to use html in .tpl files. |
But the .tpl files are html already. There should be no problem adding extra html to a tpl file.
Do you not mean:-
You can not add PHP to the .tpl files in a standard install but adding the eXtreme Styles mod will allow you to do so?
Jim |
|
Back to top |
|
|
Acaria Board Member
Joined: 20 Feb 2009
Posts: 238
|
Posted: Fri Jul 03, 2009 5:02 am Post subject: Re: How to put a chat as an extra page? |
|
|
No no no, I mean is the chat page a page in the root called something like chat.php?
I'm very confused as to what your actual issue is. D: |
|
Back to top |
|
|
Jim_UK Board Member
Joined: 19 Nov 2008
Posts: 656 Location: North West UK
|
Posted: Fri Jul 03, 2009 5:07 am Post subject: Re: How to put a chat as an extra page? |
|
|
Try adding "target =_blank" to the code
<embed wmode="transparent" src="http://www.xatech.com/web_gear/chat/chat.swf" quality="high" width="640" height="480" target="blank" name="chat" FlashVars="id=63876441&rl=Romanian" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://xat.com/update_flash.shtml" />
Jim |
|
Back to top |
|
|
Sylver Cheetah 53 Board Member
Joined: 17 Dec 2008
Posts: 426 Location: Milky Way
|
Posted: Fri Jul 03, 2009 6:15 am Post subject: Re: How to put a chat as an extra page? |
|
|
Nothing changed. But the problem is not with the chat, the chat is okay now. The problem is with everything else... Look:
http://otvforum.com/chat.php
It is terrible. Terrible, I tell you! _________________ Image link
My Forum || My Blog
phpBB2 forever! |
|
Back to top |
|
|
Acaria Board Member
Joined: 20 Feb 2009
Posts: 238
|
Posted: Fri Jul 03, 2009 7:07 am Post subject: Re: How to put a chat as an extra page? |
|
|
Please post your chat.php code. :3 |
|
Back to top |
|
|
|