Sue
|
| Posted: 01/14/2003, 12:54 PM |
|
I have searched the forums and newsgroups and still have not found out if CC can do it or not. I want to include a text or SHTML file to display my forum stats on one page. Does anyone know what code to use and where to put it.
Jon Stantons post mentions - http://www.gotocode.com/disc_viewt.asp?mid=5802&s_topic=include&
<?
virtual ("headlines.shtml");
?>
Where does this code go Jon?
I tried, create a field and put this code in form open/before show and page open.
$fldforum_stats = "include ("stats.txt")";
No joy ..... Please help.
Thanks
|
|
|
 |
Sue
|
| Posted: 01/15/2003, 11:45 AM |
|
Bump
Does anyone know of a way pleeeaase
|
|
|
 |
Xerox
|
| Posted: 01/17/2003, 7:06 AM |
|
I had it working in Page Events/Custom Includes but it appeared above my header and I got errors when I moved the line incude "./mystats.txt"; to a different line. Still experimenting but I would like to know if I am flooging a dead horse also.
Cheers!
|
|
|
 |
Hans Njima
|
| Posted: 04/24/2003, 8:32 AM |
|
Well,...it took me a while....
This works fine for me:
I guess it's a way of thinking.
CC writes the command yourfunction() in the .php file.
When i put some things around this it generates a page with my surroundings before the <body> tag. This does not really bother me because the <body> and <head> tags are not really necessary and the browser seems to look first for these tags.
This an example from a login script:
echo "<table><tr><td>";
echo "<table><tr><td>";
virtual("../pages/tabletop.shtml");
Login_show();//Original CC function.
echo "</tr></td></table>
</td><td valign=\"top\">";
virtual("../pages/right.shtml");
echo "</tr></td></table>";
This returns me a page with all the SSI requests included.
Unfortunately CC does not seem to have a way to modify this trough the menu so there is only to modify this with 'Custom Show Page'.
I have tested this only with MSI...
Maybe this is a new discussion topic?
Regards Hans.
|
|
|
 |