m (Bot: Automated text replacement (-(<div class="codeheader">(Code)?\: <a href="javascript\:void\(0\);" onclick="return smfSelectText\(this\);" class="codeoperation">(\[Select\])?</a></div><code[\s\S]*?>[\s\S]*?)<(/)?span[\s\S]*?>([\s\S]*?</code>) +)) |
|||
Line 5: | Line 5: | ||
Locate the function you wish to add to your website page from the list of examples and take the code it lists for the function, our example uses the Recent Topics Function: | Locate the function you wish to add to your website page from the list of examples and take the code it lists for the function, our example uses the Recent Topics Function: | ||
Above code is for *.php pages, but for for *.shtml the same function equivalent is: | Above code is for *.php pages, but for for *.shtml the same function equivalent is: | ||
<div class="codeheader">: <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation"></a></div><code><!--#include virtual="./SSI.php?ssi_function=recentTopics" --></code> | <div class="codeheader">: <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation"></a></div><code><!--#include virtual="./SSI.php?ssi_function=recentTopics" --></code> | ||
Now add that line of code in an html view of your page where you wish the information to be located. Repeat with other functions you wish to add. Once uploaded to your website you should see the information on your website. | Now add that line of code in an html view of your page where you wish the information to be located. Repeat with other functions you wish to add. Once uploaded to your website you should see the information on your website. |
Revision as of 12:57, 24 March 2011
To add information to your website, first load up either of the examples below depending on your website page extension:
- http://www.simplemachines.org/community/ssi_examples.php for *.php web pages.
- http://www.simplemachines.org/community/ssi_examples.shtml for *.shtml web pages.
Locate the function you wish to add to your website page from the list of examples and take the code it lists for the function, our example uses the Recent Topics Function:
Above code is for *.php pages, but for for *.shtml the same function equivalent is:
: <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation"></a>
<!--#include virtual="./SSI.php?ssi_function=recentTopics" -->
Now add that line of code in an html view of your page where you wish the information to be located. Repeat with other functions you wish to add. Once uploaded to your website you should see the information on your website.