TinyPortal

Development => Support => Topic started by: BAlGaInTl on July 13, 2007, 05:48:56 PM

Title: Possible to use SSI functions in Articles?
Post by: BAlGaInTl on July 13, 2007, 05:48:56 PM
I was just wondering...

Is it possible to use the SMF SSI functions in TP articles?

I've been trying to figure out how to do this.

Basically, I want to make a hidden article that uses several of the SSI functions that I can then copy and paste into a newsletter to remind people to visit the site.  I've tried this by creating a PHP article, but I'm having absolutely no luck.

If it's not possible, I suppose that I can just create a hidden page somewhere else on my server for this.

Any help is appreciated.
Title: Re: Possible to use SSI functions in Articles?
Post by: tick on July 13, 2007, 07:06:09 PM
Yes it is possible.  What code  are you using in your article?
Title: Re: Possible to use SSI functions in Articles?
Post by: BAlGaInTl on July 13, 2007, 08:52:31 PM
Quote from: Tick on July 13, 2007, 07:06:09 PM
Yes it is possible.  What code  are you using in your article?


I was trying to just use <?php ssi_recentTopics(); ?> and similar, but I have no idea how to format it. 

I tried with and without the <?php require("/path/to/forum/SSI.php"); ?> line.

I will keep trying to figure stuff out, but any direction would be nice.
Title: Re: Possible to use SSI functions in Articles?
Post by: tick on July 13, 2007, 09:13:26 PM
This is all you put in the php article.  ssi_recentTopics();
Title: Re: Possible to use SSI functions in Articles?
Post by: BAlGaInTl on July 13, 2007, 09:48:52 PM
hehe...

That explains it then.  This is my first time playing around with the PHP articles.

It is working now.

Thanks.