TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,991
  • Total Topics: 21,323
  • Online today: 633
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 458
  • Total: 458

[resource] SSI Functions

Started by Xarcell, January 26, 2006, 12:51:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Xarcell

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

Advanced SSI FAQ

Expert SSI FAQ




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" -->




mnichols7

#1
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="./

G6Cad

That was really good links.
A lot of thank you for those Xarcell  :)

elpvn

Thanks Xarcell, I'll try it right now

P/S: To G6: when do you going to finish your upgrade site ?Ã,  :laugh:

G6Cad

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]

borgBOB



alan s

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

erikman


Xarcell


This website is proudly hosted on Crocweb Cloud Website Hosting.