How To Deal With An Empty Page...


Subject: 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 :(

Subject: Re: How To Deal With An Empty Page...
mmm, test this file and replace where it's SCRIPT CODE HERE with your script


blank_page.rar
Description:  
Download
Filename: blank_page.rar
Filesize: 709 Bytes
Downloaded: 250 Time(s)

Subject: Re: How To Deal With An Empty Page...
Zuker wrote: [View Post]
mmm, test this file and replace where it's SCRIPT CODE HERE with your script



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



Could they be due to the script?


The script is quite simple I think, it just recalls a java applet:


Code: [Download] [Hide]
  1. <!-- Begin Azzurra JavaCR Code -->  
  2. <center>  
  3. <applet align="center" archive="http://javacr.azzurra.org/java/cr.zip" codebase="http://javacr.azzurra.org/java/" code="ConferenceRoom.class" width="670" height="390">  
  4. <param name="cabbase" value="http://javacr.azzurra.org/java/cr.cab">  
  5. <param name="ssp" value="http://javacr.azzurra.org/params/javaazzurra.prm">  
  6. <param name="joinSound" value="drip.au">  
  7. <param name="nick" value="kope_guest">  
  8. <param name="restricted" value="false">  
  9. <param name="room" value="#kope">  
  10. <param name="roomsWidth" value="0">  
  11. <param name="simple" value="false">  
  12. <param name="ticker" value="">  
  13. Questa applicazione necessita di un browser abilitato Java  
  14. </applet>  
  15. </center>  
  16. <center>  
  17. <a href="http://www.azzurra.org" target="_blank">  
  18. <img src="http://www.azzurra.org/aznetlogo.gif" border="0">  
  19. </a>  
  20. </center>  
  21. <!-- End of Azzurra JavaCR Code -->  
  22.  
  23.  

Subject: 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

Subject: Re: How To Deal With An Empty Page...
Zuker wrote: [View Post]
u can add a portal page in the ACP and create the blocks u want
And add an html block with the script



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: )

Subject: 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

Subject: Re: How To Deal With An Empty Page...
Zuker wrote: [View Post]
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



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:

Subject: Re: How To Deal With An Empty Page...
they are pointed to the root of your forum

Code: [Download] [Hide]
  1. <img src="templates/ca_aphrodite/images/blue/logo_xs.gif" title="hola"/> 


work ;)

Subject: Re: How To Deal With An Empty Page...
Zuker wrote: [View Post]
they are pointed to the root of your forum

Code: [Download] [Hide]
  1. <img src="templates/ca_aphrodite/images/blue/logo_xs.gif" title="hola"/> 


work ;)




It works perfectly, thanks a lot ;)

Subject: Re: How To Deal With An Empty Page...
u're welcome :twisted:


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1595s (PHP: 12% SQL: 88%)
SQL queries: 12 - Debug Off - GZIP Enabled