Customizing SMF > Graphics and Templates
SSI Within a Template?
Overseer:
I hope to use SSI to include some custom scripts in my template... for 3 purposes
1) a randomised section for adverting my affils. they each get a short text description/a small banner/ and a link..
2) a news feed from my sister news site (it will have an rss feed when they're done writing the scripts..) (i know i cant SSI from outside my domain)
3) an advertising banner script (so i only have to change this to update adverts, and not every page on the site)
So far i've done a little investigation with SSI.. seems like the pages have to be called .shtml to get it to work. and other than that i'm pretty much lost.. for now.
۞:
With YSE you could use php in the template to the same effect:
--- Code: ---<? include('mypage.html'); ?>
--- End code ---
I'm guessing it will be the same with SMF :)
Overseer:
cool thx, sounds real easy :D
the only thing i now see 'issues' with now is how to get the output from the news on the other site onto my board.
is it possible to write a php script that 'copies' the page returned from a script (also php, but i guess that doesnt really matter) running on the other site as the output from the local script?
(so basically a page, i know i can query the scripts on the other site with parameters, they're being custom written by a firend)
۞:
Anything is possible :P
alienine:
If it was I'd be swimming in red wine with naked women all around me... don't you say anything is possible.....
Navigation
[0] Message Index
[#] Next page
Go to full version