|
|
| Author |
Message |
Syren
Experienced User
Joined: 04 Jan 2005
Posts: 484
|
Posted: August 22nd 2010, 1:06 pm Post subject: Pulling Data from a source inquiry |
|
|
Okay guys, I have a need but I first wanted to present my need/idea here and see if anyone knows if there is already a mod or script that will allow me to accomplish what I need to accomplish.
A friend of mine has an RPG that he runs from an IRC channel. He has me in charge of their forum. I've installed the Canver portal. Now, I know how to make a custom block to contain content I want it to contain however ...
He has pages that are created via an IRC script called mircstats. This compiles information from the IRC channel and displays the stats on html pages that the mircsctats creates. Here is what the finished result looks like: http://oldtowerinn.sharnyl.net/mircstats/oldtowerinn.html
However, what I'd like to do is display the information (from whichever page I choose) all nice and neat in a block on the portal page located here: http://oldtowerinn.sharnyl.net/
Now, I've spent the better part of the morning customizing a block, entering the html coding of the stats I wanted in the block and spent several hours messing with it in an effort to get it looking just right. But it's not working.
I was wondering if there was a script or mod already available that I may be able to insert in to the block to achieve my end goal? |
|
| Back to top |
|
 |
femu
Well Known User
Joined: 07 Jul 2007
Posts: 206
|
Posted: August 24th 2010, 10:38 pm Post subject: |
|
|
I'm pretty sure, there is none available. But if you can read out the needed data, then you can add them as a block to your portal.
Unfortunately I don't know the Canvar Portal. I use the Board3 portal. Over there it's easy to such a block, if you have access to the needed datas ...
EDIT: Just took a quick look on Cnavar portal (is it the phpBB3 Portal 1.2.2?). If so, you need to create a PHP file in the root/portal/block folder, where you read out the data and assign them to a template in styles/you_style/template/portal/block
Then include the block in your portal and that's it ...
But you can't read out the datas from a HTML ... YOu need to have access to the database, which holds the data! _________________ Regards,
femu
NO SUPPORT VIA EMAIL OR PM!! Please use the forum!
[My modifications homepage] - [My main page (German only!)] |
|
| Back to top |
|
 |
Syren
Experienced User
Joined: 04 Jan 2005
Posts: 484
|
Posted: August 27th 2010, 9:39 am Post subject: |
|
|
Thanks, femu. Yup, the portal is 1.2.2. I can do the block and create the php file for it the only thing though is ...
The mircstats doesn't use a database. It's an .exe that collects and outputs the data in html format. Is what I want to accomplish still possible? |
|
| Back to top |
|
 |
femu
Well Known User
Joined: 07 Jul 2007
Posts: 206
|
Posted: August 27th 2010, 9:59 am Post subject: |
|
|
I don't think so. At least not with (and by) my knowledge ... All phpBB stuff works by reading out the SQL databases and doing queries on these.
In this case I suggest to put the results via an iFrame into a seperate page and only make a link in the portal. There are to much informations on that page.
You can try to use a small addon I made (download). There I simply made a "mod", which finally only includes an external page via iFrame in the phpBB3 manner.
Hope this helps. _________________ Regards,
femu
NO SUPPORT VIA EMAIL OR PM!! Please use the forum!
[My modifications homepage] - [My main page (German only!)]
Last edited by femu on August 28th 2010, 1:08 am; edited 1 time in total |
|
| Back to top |
|
 |
Syren
Experienced User
Joined: 04 Jan 2005
Posts: 484
|
Posted: August 27th 2010, 1:38 pm Post subject: |
|
|
Thanks femu, I appreciate it  |
|
| Back to top |
|
 |
|