advanced topics

Started by neverhurry, 9 years ago

previous topic - next topic

0 Members and 1 Guest are viewing this topic.

neverhurry

*
9 years ago
THere is a nice mod called "advanced topics" (http://custom.simplemachines.org/mods/index.php?mod=1069), is it possible to put it in a block in PortaMX? How difficult it wil be to do that? Can anyone give me a hint? Thank you very much.

Norv

*
#1
9 years ago
Not directly, I'm afraid.
First off, the mod is not compatible with SMF 2.0, it needs to be re-written for it. (I understood you have 2.0, or are you referring to a forum on 1.1.10 ?).
Then, there may be another way to achieve a similar (though not identical) result, which is to use SSI, ssi_recentTopics() or ssi_recentPosts() specifically.

Untested example: (in a PHP block)
Code Select

$topics = ssi_recentTopics(10, null, null, 'array');

echo "
   <table>";
foreach ($topics as $topic)
{
  echo "
<tr>
<td class=\"windowbg\">${topic['icon']} ${topic['link']}</td>
<td class=\"windowbg\">${topic['views']}</td>
<td class=\"windowbg\">{$topic['board']['link']}</td>
<td class=\"windowbg\">${topic['time']}</td>
 </tr>";
}
echo '</table>';

neverhurry

*
#2
9 years ago
WOW, thank you so much! Being busy, will back tonight to try.   :o O0 :D

* Shouts

Feline
11 months ago
Today we update our Forum to the Version 1.45
Feline
a year ago
Today we update our Forum to Version 1.4
This release is full compatible with the EU GDPR
Feline
a year ago
Update for PortaMx 1.54 ecl released.
With this updates the Portal works with PHP 7.x and SMF 2.0.15
Feline
a year ago
PortaMx Forum 1.3
released !

*
Feline
a year ago
Today we switched to PHP 7.2 and activate Opcode caching.
Fast .. Very fast *
Feline
2 years ago
Today we upgrade our old SMF 2.0 Forum to PortaMx Forum *

* Calendar

Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31