phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

How to put a chat as an extra page?

Goto page 1, 2  Next
 
Search this topic... | Search MOD Requests... | Search Box
Register or Login to Post    Index » MOD Requests  Previous TopicPrint TopicNext Topic
Author Message
Sylver Cheetah 53
Board Member



Joined: 17 Dec 2008

Posts: 426
Location: Milky Way


flag
PostPosted: Thu Jul 02, 2009 11: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? icon_rolleyes.gif

_________________
Image link
My Forum || My Blog

phpBB2 forever! icon_smile.gif
Back to top
Dog Cow
Board Member



Joined: 18 Nov 2008

Posts: 378


flag
PostPosted: Thu Jul 02, 2009 6: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? icon_rolleyes.gif

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: 621
Location: Spain


flag
PostPosted: Thu Jul 02, 2009 7: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


flag
PostPosted: Thu Jul 02, 2009 7: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 icon_smile.gif
But the chat instead if those banners...

_________________
Image link
My Forum || My Blog

phpBB2 forever! icon_smile.gif
Back to top
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 621
Location: Spain


flag
PostPosted: Thu Jul 02, 2009 8: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


flag
PostPosted: Thu Jul 02, 2009 8: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. icon_smile.gif
_________________
Image link
My Forum || My Blog

phpBB2 forever! icon_smile.gif
Back to top
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 621
Location: Spain


flag
PostPosted: Thu Jul 02, 2009 8:57 pm 
Post subject: Re: How to put a chat as an extra page?

Try to put
Code:
</embed>
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


flag
PostPosted: Thu Jul 02, 2009 9:42 pm 
Post subject: Re: How to put a chat as an extra page?

No change! icon_sad.gif
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. icon_sad.gif
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! icon_smile.gif
Back to top
Acaria
Board Member



Joined: 20 Feb 2009

Posts: 238



PostPosted: Thu Jul 02, 2009 11: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


flag
PostPosted: Fri Jul 03, 2009 8: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. icon_cry.gif
_________________
Image link
My Forum || My Blog

phpBB2 forever! icon_smile.gif
Back to top
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 551
Location: North West UK


flag
PostPosted: Fri Jul 03, 2009 9: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



PostPosted: Fri Jul 03, 2009 9: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: 551
Location: North West UK


flag
PostPosted: Fri Jul 03, 2009 9: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


flag
PostPosted: Fri Jul 03, 2009 10:15 am 
Post subject: Re: How to put a chat as an extra page?

Nothing changed. icon_sad.gif 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! icon_sad.gif

_________________
Image link
My Forum || My Blog

phpBB2 forever! icon_smile.gif
Back to top
Acaria
Board Member



Joined: 20 Feb 2009

Posts: 238



PostPosted: Fri Jul 03, 2009 11:07 am 
Post subject: Re: How to put a chat as an extra page?

Please post your chat.php code. :3
Back to top
Display posts from previous:   
Register or Login to Post    Index » MOD Requests  Previous TopicPrint TopicNext Topic
Page 1 of 2 All times are GMT
Goto page 1, 2  Next
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0285 seconds using 15 queries. (SQL 0.0016 Parse 0.0009 Other 0.0259)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo