Dodger57
Newbie
Posts: 1
Registered: 3/25/2007
Member Is Offline
|
| posted on 3/25/2007 at 11:08 PM |
|
|
Using php includes as content
Hi all,
I need to be able to enter the contents to the scroller using php includes like this:
| Code: | | <?php $CatID='53'; include('news/News.php'); ?> |
This includes pulls the info from a new updater and is much easier for me to use than editing a js file.
I don't seem to be able to get this to work however ... is it indeed possible to use the includes like above in Tigra Scroller?
I tried it like this within the scroll.tpl0.js file.
| Code: | 'file': '',
'content': '<?php include("http://www.ktbb.com/homenews.php")?>',
'pause_b': 2,
'pause_a': 0
} |
Thanks
Dodger
|
|
|
tigra
Administrator
Posts: 1990
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 3/26/2007 at 02:47 PM |
|
|
try:
| Code: | {
'file': 'homenews.php',
'content': '',
'pause_b': 2,
'pause_a': 0
}
|
the php page must be in the same domain.
|
|
|