Add a Function to your Website: Difference between revisions From Online Manual

Jump to: navigation, search
No edit summary
(<div class=\"codeheader\">[\s\S]*?<code>([\s\S]*?)</code>)
Line 1: Line 1:
{{Cleanup html}}
To add information to your website, first load up either of the examples below depending on your website page extension:
To add information to your website, first load up either of the examples below depending on your website page extension:


Line 6: 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:


<div class="codeheader">: <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation"></a></div><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php&nbsp;ssi_recentTopics</span><span style="color: #007700">();&nbsp;</span><span style="color: #0000BB">?&gt;</span></span></code>
{{code|1=&nbsp;&lt;?php&nbsp;ssi_recentTopics();&nbsp;?&gt;}}
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>&lt;!--#include virtual=&quot;./SSI.php?ssi_function=recentTopics&quot; --&gt;</code>
{{code|1=&nbsp;&lt;!--#include virtual=&quot;./SSI.php?ssi_function=recentTopics&quot; --&gt;}}
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 14:05, 30 March 2011

To add information to your website, first load up either of the examples below depending on your website page extension:

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:

 <?php ssi_recentTopics(); ?>

Above code is for *.php pages, but for for *.shtml the same function equivalent is:

 <!--#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.



Advertisement: