Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: chinmay235 on October 03, 2013, 02:57:23 AM

Title: ssi_topic() not working in SMF 2.0.5
Post by: chinmay235 on October 03, 2013, 02:57:23 AM
Hi i want to show one particular forum and replies under that topic.

i follow this link
http://www.simplemachines.org/community/index.php?topic=162958.0
But this is Compatible With: SMF 2.0


Tell me how can i show that in SMF 2.0.5.

I am using ssi_topic() in SMF 2.0.5 but this is not working.


Here is my code which is i have include the SSI.php


<?php
require('SSI.php');

ssi_topic(3);
?>


Showing error

Fatal error: Call to undefined function ssi_topic() in E:\xampp\htdocs\smf\test.php on line 4
Title: Re: ssi_topic() not working in SMF 2.0.5
Post by: margarett on October 03, 2013, 04:30:43 AM
But did you install that MOD?
Because ssi_topic is NOT a standard function in SSI.php, it is introduced by that MOD...
Title: Re: ssi_topic() not working in SMF 2.0.5
Post by: chinmay235 on October 03, 2013, 04:39:22 AM
No, How can i install?

Please give me link of mod
Title: Re: ssi_topic() not working in SMF 2.0.5
Post by: margarett on October 03, 2013, 04:48:06 AM
You install it like every other MOD, through package manager.
The link to the MOD is on the topic you mentioned :o
Here it goes: http://custom.simplemachines.org/mods/index.php?mod=751
Title: Re: ssi_topic() not working in SMF 2.0.5
Post by: chinmay235 on October 03, 2013, 04:49:47 AM
Thank you. let me install
Title: Re: ssi_topic() not working in SMF 2.0.5
Post by: chinmay235 on October 03, 2013, 05:05:37 AM
I have successfully download and install through package manager

there is showing error

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: ssi_topic() not working in SMF 2.0.5
Post by: margarett on October 03, 2013, 05:12:03 AM
You should probably emulate the version...
How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version)
Title: Re: ssi_topic() not working in SMF 2.0.5
Post by: chinmay235 on October 03, 2013, 05:22:31 AM
Thank you very much. I have successfully installed.
Title: Re: ssi_topic() not working in SMF 2.0.5
Post by: margarett on October 03, 2013, 05:35:08 AM
And can you use the function now (like you're intending to do in the beginning?)
Title: Re: ssi_topic() not working in SMF 2.0.5
Post by: Kindred on October 03, 2013, 11:12:20 AM
and also, remember, you need to include SSI including the PATH, if your script is not in the exact same directory as the SSI file (the forum directory)
Title: Re: ssi_topic() not working in SMF 2.0.5
Post by: chinmay235 on October 04, 2013, 02:15:29 AM
I know.  :)


Thanks...
Title: Re: ssi_topic() not working in SMF 2.0.5
Post by: chinmay235 on October 04, 2013, 10:06:02 AM
Hi i fetch the data using ssi_topic() but problem is it is showing ASC order. how i get data from DESC order



include("SSI.php");
$topic_id=$_REQUEST['topic'];
$limit=5;
ssi_topic($topic_id,$limit);


above code is shoing ASC order how can i fetch data in DESC order?
Title: Re: ssi_topic() not working in SMF 2.0.5
Post by: Kindred on October 04, 2013, 10:15:39 AM
Ok...   This is now officially MOD SUPPORT.
Please ask questions related to specific mods in the thread dedicated to supporting that mod.
Title: Re: ssi_topic() not working in SMF 2.0.5
Post by: chinmay235 on October 04, 2013, 10:25:16 AM
QuoteOk...   This is now officially MOD SUPPORT.
Please ask questions related to specific mods in the thread dedicated to supporting that mod.


there is not any thread supporting mod for ssi_topic()
Title: Re: ssi_topic() not working in SMF 2.0.5
Post by: margarett on October 04, 2013, 10:29:12 AM
You linked it in your first post :P
Title: Re: ssi_topic() not working in SMF 2.0.5
Post by: chinmay235 on October 05, 2013, 02:01:26 AM
Hi,

I have posted in which you had asked to me in http://www.simplemachines.org/community/index.php?topic=162958.0

But i did not get any answer.


include("SSI.php");
$topic_id=$_REQUEST['topic'];
$limit=5;
ssi_topic($topic_id,$limit);


above code is showing ASC order how can i fetch data in DESC order?
Title: Re: ssi_topic() not working in SMF 2.0.5
Post by: Kindred on October 05, 2013, 06:59:26 AM
that does not change the fact that we do not actually provide support for mods here...  We don't use that mod, so, quite honestly, we have no idea ho he has coded it....   as I said before - questions relating to a specific mod need to be asked in the support topic for that mod.