TinyPortal

Development => Docs => Resources => Advanced => Topic started by: Xarcell on January 26, 2006, 12:51:09 AM

Title: [resource] SSI Functions
Post by: Xarcell on January 26, 2006, 12:51:09 AM
SSI functions are a major part of SMF and plays a large role in the developement of Tinyportal. For instance you can add simple SSI functions to a php block within TP and have it's affects, without alot of coding knowledge. To use an example, you would place this code in a phpbox to display recent topic's.

ssi_recentTopics();

That's All.

If you wish to know more on SSI Functions, you can look at the ssi_examples.shtml file with  your SMF installation, or take a look at some working examples at this site here: http://www.tinyportal.net/smf/ssi_examples.php

You can read a FAQ on SSI Functions at SMF.

Basic SSI FAQ (http://www.simplemachines.org/community/index.php?topic=12936.0)

Advanced SSI FAQ (http://www.simplemachines.org/community/index.php?topic=13016.0)

Expert SSI FAQ (http://www.simplemachines.org/community/index.php?topic=13205.0)




This Is A Basic List Of SSI Functions.




Recent Topics Function: <!--#include virtual="./SSI.php?ssi_function=recentTopics" -->


Recent Posts Function: <!--#include virtual="./SSI.php?ssi_function=recentPosts" -->


Recent Poll Function: <!--#include virtual="./SSI.php?ssi_function=recentPoll" -->


Top Boards Function: <!--#include virtual="./SSI.php?ssi_function=topBoards" -->


Top Topics by View Function: <!--#include virtual="./SSI.php?ssi_function=topTopicsViews" -->


Top Topics by Replies Function: <!--#include virtual="./SSI.php?ssi_function=topTopicsReplies" -->


Top Poll Function: <!--#include virtual="./SSI.php?ssi_function=topPoll" -->


Top Poster Function: <!--#include virtual="./SSI.php?ssi_function=topPoster" -->


Topic's Poll Function: <!--#include virtual="./SSI.php?ssi_function=showPoll;ssi_topic=##" -->


Latest Member Function: <!--#include virtual="./SSI.php?ssi_function=latestMember" -->


Board Stats: <!--#include virtual="./SSI.php?ssi_function=boardStats" -->


Who's Online Function: <!--#include virtual="./SSI.php?ssi_function=whosOnline" -->


Log Online Presence + Who's Online Function: <!--#include virtual="./SSI.php?ssi_function=logOnline" -->


Welcome Function: <!--#include virtual="./SSI.php?ssi_function=welcome" -->


News Function: <!--#include virtual="./SSI.php?ssi_function=news" -->


Board News Function: <!--#include virtual="./SSI.php?ssi_function=boardNews" -->


Menubar Function: <!--#include virtual="./SSI.php?ssi_function=menubar" -->


Quick Search Function: <!--#include virtual="./SSI.php?ssi_function=quickSearch" -->


Login Function: <!--#include virtual="./SSI.php?ssi_function=login" -->


Log Out Function: <!--#include virtual="./SSI.php?ssi_function=logout" -->


Today's Birthdays Function: <!--#include virtual="./SSI.php?ssi_function=todaysBirthdays" -->


Today's Holidays Function: <!--#include virtual="./SSI.php?ssi_function=todaysHolidays" -->


Today's Events Function: <!--#include virtual="./SSI.php?ssi_function=todaysEvents" -->


Today's Calendar Function: <!--#include virtual="./SSI.php?ssi_function=todaysCalendar" -->


Recent Calendar Events Function: <!--#include virtual="./SSI.php?ssi_function=recentEvents" -->



Title: Re: [resource] SSI Functions
Post by: mnichols7 on February 28, 2006, 10:35:00 PM
Why is it that Tiny_Portal has a SSI function box but not all choices worked?Ã,  I wish to add a poll to the front page from the topics in the forum, but choosing 'Recent poll' does nothing.Ã, 

Add the code above for polls into a phpbox only gives me an error and still no poll.Ã,  Any ideas on what I am doing incorrectly?

Exactly how much of the sentence is strickly code?  Is it from the first <!--#include virtual="./
Title: Re: [resource] SSI Functions
Post by: G6Cad on March 01, 2006, 08:57:52 AM
That was really good links.
A lot of thank you for those Xarcell  :)
Title: Re: [resource] SSI Functions
Post by: elpvn on March 04, 2006, 07:06:28 PM
Thanks Xarcell, I'll try it right now

P/S: To G6: when do you going to finish your upgrade site ?Ã,  :laugh:
Title: Re: [resource] SSI Functions
Post by: G6Cad on March 04, 2006, 08:12:21 PM
QuoteP/S: To G6: when do you going to finish your upgrade site ? 

Im working on my own template, and i must say that doing it from scratch takes a bit of time ;)
But it's pretty fun doing it, and m learning a lot :)

Actually working on two at the same time, one for my site, and one form my son whos 6 years old and he have a lot of will on how he want it to look :)
He's a Batman fan so i om making a theme for him to use on his site.



[attachment deleted by admin]
Title: Re: [resource] SSI Functions
Post by: borgBOB on March 04, 2006, 08:47:49 PM
Looks very nice g6cad.
Title: Re: [resource] SSI Functions
Post by: crip on March 04, 2006, 08:59:34 PM
Also on .shtml exet: http://www.tinyportal.net/smf/ssi_examples.shtml
Title: Re: [resource] SSI Functions
Post by: alan s on March 09, 2006, 02:49:33 PM
for the log online pressence one im getting this error


Parse error: parse error, unexpected '<' in /home/smith/public_html/smf/Sources/Load.php(1620) : eval()'d code(34) : eval()'d code on line 1
Title: Re: [resource] SSI Functions
Post by: erikman on April 10, 2006, 09:53:33 AM
Do you use .php or .shtml ?
Title: Re: [resource] SSI Functions
Post by: Xarcell on June 01, 2006, 03:08:36 PM
You should use php.