I have a standalone phpBB2 forum in conjuction with our postnuke site.
we want to add a who's online block to the postnuke home page, to show who is online in the forums. now I have working code to show this, but I cant seem to find a block that will take the code.
the actual code is PHP script, when added to PHP page it shows the necessary information so the code works ok, but how can I add that code to a block? so that it shows this information, and what type of block do i need?
the code in question is
in case that is any help, as you can see its just a small snippet.
if anyone can help I would be very gratefull.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mdee responded to »Short URL questions« 12:02 AM
- mesteele101 responded to »Problem in Database Connection« 21. May
- mesteele101 created topic »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 20. May
- Herr.Vorragend responded to »Clip Documentation and Doubt« 19. May
- mazdev responded to »zikula 1.3.3. and IE9« 19. May
- mesteele101 responded to »How to install Zikula for MSSQL ??? - Part II« 19. May
- mesteele101 created topic »File packaging« 16. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Looking for a block for php script
-
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Jun 26, 2009
- Posts: 57
You can do it by adding a new block in the administration -> blocks area. select 'Core/PHP Script' from the drop down menu.
As far as I can work it out you don't need to write the wholeCode
<?php include("phpBB2/online.php"); ?>
you should just write it as
Code
include("phpBB2/online.php");
hope this helps - let me know if it does =OD -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 6
sadly not, in fact it lost all the content of the home page, everything went and i had to delete the block via the database just to get back into admin?
and as I have tried this bloc with the full code, I know that doesn't work either? so i am stumped, however as this IS a core block i think i will move this to core block support and see if they can help there, thanx for trying anyway, much appreciated. -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Jun 26, 2009
- Posts: 57
Why not do a test to see if it actually the postnuke acting up or an incompatibility with the file you are calling.
write a test .php file
Code
upload it to the root directory of your postnuke installation.
Then call it in a PHP block
Code
include("test.php");
if it works then there must be a problem with it actually reading your phpbb/online.php file
just a suggestion :D
- Moderated by:
- Support
