SSI Multiple Board News (ssi_multiBoardNews)

Started by vbgamer45, December 25, 2009, 01:57:08 AM

Previous topic - Next topic

luuuciano

it will be too complicated to add a function... that limit the output by X days... and not X amount of posts?
(to build a weekly newsletter, resume, or something like that...)
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

ephobe

any idea when this will be compatible with 1.1.12?

Suki

its compatible, you can try  changing the 1.1.11 for 1.1.12 in the package-info.xml  file in the mod's zip

then  zip it again and install.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Mick.

#83
Hey Robbo,

Is there a way not to allow image tags?  [img][/img]


As you can see i use it in my front page and a member posted several images.  Im not diggin' it.

http://www.chevyavalancheclub.com/index.php

Mick.

Quote from: IncognitoMuse on December 26, 2010, 10:43:31 PM
Not when I wrote it, no. Though there's nothing to stop you grabbing the content by return array (which is one of the myriad options it has, see the output method parameter, rather than just outputting it. Once you do that, preg_replace('~<img [^>]+?~i', '', $content) on the given content... (obviously substitute the last variable there for whatever you loop through with)

Nevermind on that ;)   I changed the layout so the front page looks more a like a blog.  Thanx tho'

Mick.

Here's a tip:

I wanted my front page to look like a blog. .....but for my likings, i wanted the 'subject' with bigger fonts, colored and clickable.

In Arantor's code in SSI.php file

find:

'subject' => $row['subject'],

and replace with:

'subject' => '<font color="#0474b4" size="5">'. '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>' . '</font>',


Demo: link


Mick.

small issue i cant crack it.  Im trying to make 'add this' work.

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a href="http://www.addthis.com/bookmark.php?v=250&amp;username=xa-4d1e47940c3e817f" class="addthis_button_compact">Share</a>
<span class="addthis_separator">|</span>
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4d1e47940c3e817f"></script>
<!-- AddThis Button END -->



But it still shares the main domain instead of the topic id.

I tried to use this in it but no luck... any ideas?

' . '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . '

demo.... CAC

Suki

Quote from: bluedevil on December 29, 2010, 07:16:56 PM
Here's a tip:

it will bemuch better if you use <span style="color:#0474b4; font-size:5em">  instead of <font>  cause that tag is deprecated


Quote from: bluedevil on December 31, 2010, 04:18:14 PM
small issue i cant crack it.  Im trying to make 'add this' work.



try using  $news['id']

' . '<a href="' . $scripturl . '?topic=' . $news['id']
. '.0">' . '
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Mick.

Thank you miss,...

I changed my mind as it may make the posts in the front page too busy.


as for the color code, using 1.5em is much better.  5em made it huge.  hehehhe 

Darkness_

Bluedevil,

Can I ask ou how you made the read more buttons ?

Mick.

Quote from: Darkness_ on January 12, 2011, 11:48:04 AM
Bluedevil,

Can I ask ou how you made the read more buttons ?
I'll post it tonight. I'm on my phone now ;)

Darkness_


Yukie

I'm encountering a slight problem (because I'm a total nub at this).
I'm using the Multi Board News function on both the index page (pulling topics from board #1) as well as another separate page (pulling topics from board #2). The index page works perfectly fine, but for the separate page, the number of comments and the "Write Comment" are missing. I also had to override the permissions for the content of board #2 to show up.
Board #1 and board #2 have the exact same settings and permission though, so I can't figure out what's wrong.

For my index page, I have:
<?php $parameters = array(
  
'limit' => 5,
  
'board' => array(2),
);
ssi_multiBoardNews($parameters); ?>


And for my separate page, I have:
<?php $parameters = array(
  
'limit' => 1,
  
'board' => array(15),
  
'perms_override' => true,
);
ssi_multiBoardNews($parameters); ?>


What am I doing wrong?

Darkness_

Quote from: bluedevil on January 12, 2011, 11:54:02 AM
Quote from: Darkness_ on January 12, 2011, 11:48:04 AM
Bluedevil,

Can I ask ou how you made the read more buttons ?
I'll post it tonight. I'm on my phone now ;)

Bluedevil, I think you've forgot it :/


luuuciano

No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Mick.

Sure, let me drop my personal business and post this for y'all this right minute.  Hang tight.

Darkness_

I just said that because you said i'll drop it tonight.


But thank you in advance :)

Mick.

I'm at my folks visiting. I'm leaving in an hour or so. I can't post the code via iPhone as I don't remember the code. I'll post it today ;) once I get home.

Darkness_

Ok, waiting wit exsitement (don't know how to spell it :D )

Thank you.

Mick.

How to add a "Read More" link,....

Open SSI.php

Find:
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$row['body'] .= '...';
}


Replace with:
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$row['body'] .= '...' . '&nbsp;&nbsp;<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . '<strong>Read More</strong>' . '</a>';
}

Advertisement: