Hi all,
I have a forum running an old yapp forum with the yapp cms portal or whatyoumaycallit
During the past years I have had many blocks all made from external modules and then edited and included
into my blocks. This Is did with commands like <?php include etc etc I have managed to setup a Teamspeak
block to see who is in teamspeak a ranikings block (UT2004 server rankings UTstatsDB), who is in chat block
server query blocks (who is in server, what maps are being played etc) all these things gamers like to see
all of them I have made by taking the standalone php modules, installing them and then modifying a php
file and including this file into a block.
I have also played around with the blocks here on smf and I have wandered a bit thru the php"P"uke modules and blocks.
The best thing is ofcourse to build the scripts into standalone blocks but I dont have this kinda php knowledge to do so.
Sometimes I roam the net looking for blocks other people made etc etc.
Now for the question, is it a good way to setup blocks with includes? Or is this bad as I probably overload the page with
extensive scripts wich probably should be far smaller...
How come I cant get an include like <? include ("../scripts/UT2003area/coreserversDM.php"); ?> to work in my tinyportal?
What is the code to include a php into a block?
For me it would be a nice feature to have the ability to add a php include url thru the block manager :)
thats all for now,
l8r
trying this include. ... an it aint working, anybody have a clue?
Just use the php type block, and in there write as if it were a pure php program. so your example would just be include ("../scripts/UT2003area/coreserversDM.php"); on one line. Now, its often dependant on WHAT script and functions is used, but here you just have to try.
In current version there is not any preview working properly, in the next release it will be shown as the forum loaded with the block, but not saved. So you can test real-time, but not having the forum "hang" afterwards.
I have a phpbox up and its not showing anything, the php I am trying to include is external
include ("http://www.corenation.com/scripts/UT2003area/coreserversDM.php");
this is all thats in it any idea?
http://www.fragger-nl.nl02.members.pcextreme.nl/smf
I PMed you the admin code if you feel like taking a look :)
http://www.fragger-nl.nl02.members.pcextreme.nl/smf/index.php?action=tpadmin;blockeditl=12
but block wouldnt it be nice to have an include block :) ??? :D
and maybe a tool to be able to bind names :) or other fields :P
with this I mean.. my forum name is Tom, and my teamspeak name is Tom, connect them somehow
just a weird idea :P
Thanks, I have logged in and looked at it, and the code actually works on my local server - and on this one.:)
So I suspect it has something to do with allowing include things from other sites through php. But I am not so well informed on what this can be.