http://www.icyphoenix.com/viewtopic.php?f=35&t=653
-----------------------------------
Vortex
Wed 29 Nov, 2006 17:06

How To Deal With An Empty Page...
-----------------------------------
Hi,


I am adding a chat page to my site, and I'd like it to be in the same style of the entire board. I'd like it to appear  in the middle of the page, leaving the other blocks of the portal untouched... I mean, from the home page (portal) just adding a link to the header and make the applet to appear in the middle of the portal like xsnews do... is it possible? 

Sorry but I have very little knowledges of php...  I have the empty page I found in Contrib folder and I have the script of the chat (an IRC channel)... but I don't know how to make it work  :(


-----------------------------------
Zuker
Wed 29 Nov, 2006 17:45

Re: How To Deal With An Empty Page...
-----------------------------------
mmm, test this file and replace where it's SCRIPT CODE HERE  with your script


-----------------------------------
Vortex
Wed 29 Nov, 2006 18:03

Re: How To Deal With An Empty Page...
-----------------------------------
[quote user="Zuker" post="5319"]mmm, test this file and replace where it's SCRIPT CODE HERE  with your script[/quote]


Hey thanks it works... or better: the script now works and the page loads :D


What should I do now to make it appear like the portal with the script in the middle instead of xsnews? 

I'd like the script to be in the middle of the page, with normal blocks in left and right columns...


Ah by the way, I get some errors:


[quote]
Warning: Cannot modify header information - headers already sent by (output started at /chat.php:2) in /includes/sessions.php on line 428

Warning: Cannot modify header information - headers already sent by (output started at /chat.php:2) in /includes/sessions.php on line 429

Warning: Cannot modify header information - headers already sent by (output started at /chat.php:2) in /includes/page_header.php on line 1227

Warning: Cannot modify header information - headers already sent by (output started at /chat.php:2) in /includes/page_header.php on line 1229

Warning: Cannot modify header information - headers already sent by (output started at /chat.php:2) in /includes/page_header.php on line 1230 [/quote]


Could they be due to the script?


The script is quite simple I think, it just recalls a java applet:


[code]
<!-- Begin Azzurra JavaCR Code -->
<center>
<applet align="center" archive="http://javacr.azzurra.org/java/cr.zip" codebase="http://javacr.azzurra.org/java/" code="ConferenceRoom.class" width="670" height="390">
  <param name="cabbase" value="http://javacr.azzurra.org/java/cr.cab">
  <param name="ssp" value="http://javacr.azzurra.org/params/javaazzurra.prm">
  <param name="joinSound" value="drip.au">
  <param name="nick" value="kope_guest">
  <param name="restricted" value="false">
  <param name="room" value="#kope">
  <param name="roomsWidth" value="0">
  <param name="simple" value="false">
  <param name="ticker" value="">
  Questa applicazione necessita di un browser abilitato Java
</applet>
</center>
<center>
  <a href="http://www.azzurra.org" target="_blank">
    <img src="http://www.azzurra.org/aznetlogo.gif" border="0">
  </a>
</center>
<!-- End of Azzurra JavaCR Code -->

[/code]


-----------------------------------
Zuker
Wed 29 Nov, 2006 18:21

Re: How To Deal With An Empty Page...
-----------------------------------
u can add a portal page in the acp and create the blocks u want
And add an html block with the script


-----------------------------------
Vortex
Wed 29 Nov, 2006 18:37

Re: How To Deal With An Empty Page...
-----------------------------------
[quote user="Zuker" post="5321"]u can add a portal page in the acp and create the blocks u want
And add an html block with the script[/quote]


I'm creating it... where is it created? I mean, once created, how to link it (and edit it)? :D


(sorry for my stupid questions...  :oops:  )


-----------------------------------
Zuker
Wed 29 Nov, 2006 18:41

Re: How To Deal With An Empty Page...
-----------------------------------
check that the page created got an id assigned

then, u will have http://www.yourweb.com/root/index.php?page=id

pd: check this guide: http://www.icyphoenix.com/viewtopic.php?t=47


-----------------------------------
Vortex
Thu 30 Nov, 2006 00:20

Re: How To Deal With An Empty Page...
-----------------------------------
[quote user="Zuker" post="5323"]check that the page created got an id assigned

then, u will have http://www.yourweb.com/root/index.php?page=id

pd: check this guide: http://www.phpbbxs.eu/viewtopic.php?t=47[/quote]


Thanks a lot, it works great! ;)



I have another question... if I use a "code-only" applet all works fine, because the html in the block just links to an applet hosted by another service.

But if I'd like to use a more complex applet that SHOULD have in his own folder the .jar and stuff to work? Which is the directory from which the code is read? I mean, if I have a dinamic link like "/data/stuff.jar" in the code, where have I to put this file? Or should I modify the code in order to point it to the file? (eg: "http://mysite.com/folder/data/stuff.jar")


I hope I used a understandable english  :shock:


-----------------------------------
Zuker
Thu 30 Nov, 2006 00:30

Re: How To Deal With An Empty Page...
-----------------------------------
they  are pointed to the root of your forum

[code]<img src="templates/ca_aphrodite/images/blue/logo_xs.gif" title="hola"/>[/code]

work ;)


-----------------------------------
Vortex
Fri 01 Dec, 2006 11:56

Re: How To Deal With An Empty Page...
-----------------------------------
[quote user="Zuker" post="5344"]they  are pointed to the root of your forum

[code]<img src="templates/ca_aphrodite/images/blue/logo_xs.gif" title="hola"/>[/code]

work ;)[/quote]



It works perfectly, thanks a lot ;)


-----------------------------------
Zuker
Fri 01 Dec, 2006 12:01

Re: How To Deal With An Empty Page...
-----------------------------------
u're welcome  :twisted:


