Customizing SMF > Modifications and Packages
SSI Topic and Replies
tyty1234:
SSI Topics and Replies
Original Author: Daniel15
Currently Developed by: tyty1234
Current Version: 2.0
Compatible With: SMF 2.0
Download
Summary
This mod adds a new SSI function that allows you to grab a topic and its replies.
Usage
Basic usage:
--- Code: ---<?php ssi_topic(int $topic, int $num_replies); ?>
--- End code ---
$topic - The topic id for the topic you want to grab.
$num_replies - The number of replies you would like to show (provides a "more replies" link if there are more comments than the amount you limit).
Please visit the tytyweb.net for advanced usage.
Installation
This mod should be installed using the Package Manager. No manual edits should be necessary, but if it comes to that resort, please use the Package Parser.
Changelog
What's new in this version?
Released for SMF 2.0
Dropped SMF 1.1.x compatibility.
Full re-write of mod.
Ability to grab attachments, and use of negative offsets in $start variable to get last # of replies.
Replaced page index with a "more replies" link (customizable).
samozin:
thanx man let understand some
u know that ssi function
<?php ssi_boardNews(); ?>
grabs the topics and number on comment on the topics only from the frist section in the frist catigory that was aproblem to me ...
so that mod u gave to.. gonna grab all new topics from all over the catigories of the whole forum or what ?
Daniel15:
--- Quote ---so that mod u gave to.. gonna grab all new topics from all over the catigories of the whole forum or what ?
--- End quote ---
No, this mod just grabs one topic and all of its replies.
--- Quote --- u know that ssi function
<?php ssi_boardNews(); ?>
grabs the topics and number on comment on the topics only from the frist section in the frist catigory that was aproblem to me ...
--- End quote ---
You can get the topics from another board with ssi_boardNews(), just pass it the board ID. On your forum index, if you go into the board, the URL will look a bit like:
index.php?board=2
The 2 is the board number. Then, you use the ssi_boardNews function like this:
--- Code: ---<?php ssi_boardNews(2); ?>
--- End code ---
samozin:
thanx my hero
listen in the package-info.xml u didnt type any thing about the smf versions that mod should be in installed with ..
i tried to u use ur mod but the forum gave me the error that says that pakage doesnt fit the forum version
my forum is
SMF 1.1.2
now what ?.... i dont like to install mods manually.... plz tell me that it is ur fault and ur gonna fix it
Daniel15:
Sorry about that, my computer seems to make corrupted ZIP files. I've uploaded a new package that should work. Please download it and tell me if it works for you :).
--- Quote --- listen in the package-info.xml u didnt type any thing about the smf versions that mod should be in installed with
--- End quote ---
Yeah, I don't usually do that, as this should work for all current SMF versions
Navigation
[0] Message Index
[#] Next page
Go to full version