Advertisement:

Author Topic: SSI Multiple Board News (ssi_multiBoardNews)  (Read 64613 times)

Offline Deadfire

  • Semi-Newbie
  • *
  • Posts: 60
Re: SSI Multiple Board News (ssi_multiBoardNews)
« Reply #220 on: May 11, 2013, 11:57:43 PM »
Then I see no reason for it to be failing. It's not like I left the limiter in it that was in the original ssi_boardNews that only took the last % of topics for a board.

But there's something definitely awry somewhere, but it's late and I can't see anything obviously wrong. If I remember and have time I'll look into it, but I wouldn't hold your breath. Revisiting my old mods is not my normal idea of fun.

Aye, I'll see what I can figure out in the meantime.

I agree with being tired, and looking at something you did years ago, sounds like spending time with an ex that you wish you never met :)

Offline mark7144

  • Sophist Member
  • *****
  • Posts: 1,166
Re: SSI Multiple Board News (ssi_multiBoardNews)
« Reply #221 on: July 17, 2013, 12:58:25 PM »
Hello Runic,

Great mod. I have a question, does this support the 'Attachment Positioning' mod so that attachments can be positioned within the articles?

Offline NIAB

  • Jr. Member
  • **
  • Posts: 135
  • Gender: Male
  • So yeah...
    • @GetWasded on Twitter
    • Wasded.com
Re: SSI Multiple Board News (ssi_multiBoardNews)
« Reply #222 on: July 20, 2013, 03:30:31 AM »
Hey guys,

Was wondering if there is any way to use this ssi in order for it to show the topTopics from the desired boards. Reason for that is that ssi_topTopics doesnt show avatars, and I am yet to figure out a solution for this.

Thanks

Offline Motorhed

  • Semi-Newbie
  • *
  • Posts: 78
Re: SSI Multiple Board News (ssi_multiBoardNews)
« Reply #223 on: August 02, 2013, 12:51:51 PM »
Probably mentioned before, but the board link, after the category link, always goes to the same random thread on my site.

http://tangledwebbing.com - Click the board name links in the main news area and they all go to the same thread.

Offline Oskar78Swe

  • Newbie
  • *
  • Posts: 8
Re: SSI Multiple Board News (ssi_multiBoardNews)
« Reply #224 on: January 14, 2014, 04:07:53 AM »
Old topic but maybe someone has come to a solution to the problem that i quote below.
I also have the same problem, I am not able to choose a single board or categeory unless it is board 1. The rest of the boards (2,3,4,5 and so on) get's the foreach problem as Deadfire has/had.

Has someone come to a solution to this?

I'm having a bit of a issue trying to show a single board, The code works just fine for more then 1 though....

I'm getting 'Invalid argument supplied for foreach()'

This is my code:
Code: [Select]
<?php
$parameters = array(
'limit' => 5,
'board' => 2,
'output_type' => 'array',
'length' => 500,
'attachments'=> 'thumbnail',
);
$return ssi_multiBoardNews($parameters);
foreach ($return['topics'] as $news)
{

echo'
<article>
<h2>'
$news['subject'], '</h2>
<p class="pubdate">written by '
$news['poster']['link'], ', <time datetime="2013-03-01T12:00:00-05:00">'$news['time'], '</time></p>
<p class="pubdate">posted in '
$news['board']['link'], '</p>
<hr />
<p>'
$news['body'], '</p>';
if (isset($news['attachments']))
                     echo 
'
            <br><p><a href="'
$news['attachments'][0]['href'], '"><img src="'$news['attachments'][0]['thumbnail']['href'], '"/></a></p>'
echo' <hr />
<p class="read">'
$news['link'], ' | '$news['new_comment'], '</p>
</article>
<hr class="article-divider" />'
;

if (!$news['is_last'])
echo '
<hr>
<br />'
;
}
echo'<div class="clear-fix"></div>';

echo '</div>';

echo '</div>';
?>


var_dump ($parameters); gives;

Code: [Select]
array(5) { ["limit"]=> int(5) ["board"]=> int(2) ["output_type"]=> string(5) "array" ["length"]=> int(500) ["attachments"]=> string(9) "thumbnail" }

Offline cnywrestling

  • Semi-Newbie
  • *
  • Posts: 15
Re: SSI Multiple Board News (ssi_multiBoardNews)
« Reply #225 on: July 21, 2014, 11:37:34 AM »
A little late to the game, but I just started using this mod. Can anyone give me a little direction on how to alter it to just return the sticky topics?  I tried adding "with t.is_sticky = 1" to the selections, but it just returns nothing then. Any guidance would be greatly appreciated.
Thanks.

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,344
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SSI Multiple Board News (ssi_multiBoardNews)
« Reply #226 on: July 21, 2014, 12:06:48 PM »
Does not look like it supports sticky topics it would need to be altered.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,035
    • Arantor on GitHub
Re: SSI Multiple Board News (ssi_multiBoardNews)
« Reply #227 on: July 21, 2014, 01:15:25 PM »
Correct, it was never one of the original design criteria.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline cnywrestling

  • Semi-Newbie
  • *
  • Posts: 15
Re: SSI Multiple Board News (ssi_multiBoardNews)
« Reply #228 on: July 21, 2014, 01:21:53 PM »
Thanks. So it's not as simple as just changing the sql statements in the function? I wasn't sure how sticky topics were selected.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,035
    • Arantor on GitHub
Re: SSI Multiple Board News (ssi_multiBoardNews)
« Reply #229 on: July 21, 2014, 01:23:06 PM »
No, it's not.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline cnywrestling

  • Semi-Newbie
  • *
  • Posts: 15
Re: SSI Multiple Board News (ssi_multiBoardNews)
« Reply #230 on: July 21, 2014, 01:24:30 PM »
Thanks anyway...

Offline ittiphol

  • Jr. Member
  • **
  • Posts: 188
Re: SSI Multiple Board News (ssi_multiBoardNews)
« Reply #231 on: July 22, 2014, 05:49:06 AM »
How to set length

Thank you

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,035
    • Arantor on GitHub
Re: SSI Multiple Board News (ssi_multiBoardNews)
« Reply #232 on: July 22, 2014, 05:50:50 AM »
Length of what?
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline ittiphol

  • Jr. Member
  • **
  • Posts: 188
Re: SSI Multiple Board News (ssi_multiBoardNews)
« Reply #233 on: July 22, 2014, 10:15:29 AM »
Length of what?

insert

'length' => 500,

it's ok thank you  ;D

Offline ntfrance

  • Newbie
  • *
  • Posts: 9
Re: SSI Multiple Board News (ssi_multiBoardNews)
« Reply #234 on: August 31, 2016, 07:14:56 AM »
hellos, I would like to run the option attached files, but I do not manage to activate the

someone could help me!

Offline ormuz

  • Full Member
  • ***
  • Posts: 677
Re: SSI Multiple Board News (ssi_multiBoardNews)
« Reply #235 on: December 02, 2017, 11:42:58 AM »
This this mod allow you to do this:

Show one topic, from a specific defined list of topics in a random fashion?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,035
    • Arantor on GitHub
Re: SSI Multiple Board News (ssi_multiBoardNews)
« Reply #236 on: December 02, 2017, 11:48:21 AM »
No, this just outputs news from boards as most recent topics per board.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.