Icy Phoenix

     
 

How To Deal With An Empty Page...

How To Deal With An Empty Page...

Article
Reply with quote    Download Post  
Post 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  



 
Vortex - View user's profile Send private message  
Vortex [ Wed 29 Nov, 2006 17:06 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


How To Deal With An Empty Page...

Comments
Reply with quote    Download Post  
Post 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: 122 Time(s)




 
Zuker - View user's profile Send private message  
Zuker [ Wed 29 Nov, 2006 17:45 ]
Reply with quote    Download Post  
Post 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


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.  




 
Vortex - View user's profile Send private message  
Vortex [ Wed 29 Nov, 2006 18:03 ]
Reply with quote    Download Post  
Post 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



 
Zuker - View user's profile Send private message  
Zuker [ Wed 29 Nov, 2006 18:21 ]
Reply with quote    Download Post  
Post 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)?


(sorry for my stupid questions...    )



 
Vortex - View user's profile Send private message  
Vortex [ Wed 29 Nov, 2006 18:37 ]
Reply with quote    Download Post  
Post 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



 
Zuker - View user's profile Send private message  
Zuker [ Wed 29 Nov, 2006 18:41 ]
Reply with quote    Download Post  
Post 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  



 
Vortex - View user's profile Send private message  
Vortex [ Thu 30 Nov, 2006 00:20 ]
Reply with quote    Download Post  
Post 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



 
Zuker - View user's profile Send private message  
Zuker [ Thu 30 Nov, 2006 00:30 ]
Reply with quote    Download Post  
Post 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



 
Vortex - View user's profile Send private message  
Vortex [ Fri 01 Dec, 2006 11:56 ]
Reply with quote    Download Post  
Post Re: How To Deal With An Empty Page... 
 
u're welcome  



 
Zuker - View user's profile Send private message  
Zuker [ Fri 01 Dec, 2006 12:01 ]
Display posts from previous:    

HideWas this topic useful?

Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1