News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SSI Multiple Board News (ssi_multiBoardNews)

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

Previous topic - Next topic

i777Ares

/Themes/default/BoardAttachments.template.php
Code (Find) Select
<?php
Code (Add Before) Select
<script type="text/javascript" src="crawler.js">
/*
Text and/or Image Crawler Script ©2009 John Davenport Scheuer
as first seen in http://www.dynamicdrive.com/forums/ username: jscheuer1
This Notice Must Remain for Legal Use
*/
</script>

Code (Find) Select
<table>
Code (Replace With) Select
<div class="marquee" id="mycrawler2"><table>
Code (Find) Select
</table>
Code (Replace With) Select
</table></div>
Code (Find) Select
?>
Code (Replace With) Select
?>
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler2',

inc: 5, //speed - pixel increment for each iteration of this marquee's movement
mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
moveatleast: 2,
neutral: 150,
savedirection: true
});
</script>

place attached file to root DONE
Want some images made for your smf site?
paid help or free see here http://x-tremedesigns.net

Biology Forums

Crap! I just noticed you're using 2.0, 1.x doesn't have BoardAttachments.template.php.  :-\ :-\ :-\ :-\ :-\

Thanks anyways!

i777Ares

Quote from: Arantor on March 06, 2011, 05:40:47 PM
Quotei had to put the image in the post for it to show in the block if you look at one of the posts inside the forum you will see what i mean

This is why you need to give me more specific examples. You want me to spend my time trying to help you, you gotta give me more specifics than you are so far.
dude what else do you need to know
the problem: the php code will NOT show the attached image from the post but if I set  'length' => 500, then put the [img]http://x-tremedesigns.net/myfile/44949.jpg_thumb.png[/img]
in the post its self it will show the image but I am wanting it to show the image with out having to do this
Want some images made for your smf site?
paid help or free see here http://x-tremedesigns.net

Biology Forums

Can you guide me to it?

The board attachments mod

i777Ares

Quote from: Arantor on March 06, 2011, 05:52:23 PM
Like the link you're telling me about that I should use as an example?
the info cycled in red is what you are seeing on front page as you can see I used the img tags to place image in the post so it will showon front page
because the $parameters = array(
  'limit' => 6,
  'board' => array(6,8,9,10,11),
  'board_disp' => false,
  'category_disp' => true,
  'attachments' => 'thumbnail',
  'length' => 500,
  'avatar' => 'false',
);
ssi_multiBoardNews($parameters);

does not show attachment image
Want some images made for your smf site?
paid help or free see here http://x-tremedesigns.net

i777Ares

Want some images made for your smf site?
paid help or free see here http://x-tremedesigns.net

i777Ares

wow umm ok well then why can i not see it
Want some images made for your smf site?
paid help or free see here http://x-tremedesigns.net

i777Ares

Want some images made for your smf site?
paid help or free see here http://x-tremedesigns.net

i777Ares

ok i see it so the problem is with permissions or admin group
Want some images made for your smf site?
paid help or free see here http://x-tremedesigns.net

i777Ares

the main admin account can not see this so that may be the coding 
because you cant change the permissions for the account
Want some images made for your smf site?
paid help or free see here http://x-tremedesigns.net

Arantor

OK, I looked at the code again, and with what I know now that I didn't know over a year ago, I can see a bug for administrators.

Code (find) Select
if ($parameters['attachments'] != 'none' && !empty($modSettings['attachmentEnable']) && count(array_intersect($parameters['board'], boardsAllowedTo('view_attachments'))) > 0)

Code (replace) Select
if ($parameters['attachments'] != 'none' && !empty($modSettings['attachmentEnable']) && ($context['user']['is_admin'] || count(array_intersect($parameters['board'], boardsAllowedTo('view_attachments'))) > 0))

boardsAllowedTo is a strange function; it returns the list of boards as it should, except for administrators, though why it showed them to me is a mystery. Before anyone else asks, I don't have the power to update this modification and if for any reason it were returned to me, I would remove it from this site.

i777Ares

wow Thank you so much that worked you should update the file and the mod for this.
it is the only problem I have seen ppl most talking about
Want some images made for your smf site?
paid help or free see here http://x-tremedesigns.net

i777Ares

wow dude...... whatever
its a great mod anyway
Want some images made for your smf site?
paid help or free see here http://x-tremedesigns.net

Darkness_

Using SMF 2 RC5

Using the code with custom action mod

<?php require_once("/*****SSI.php"); ?>
<?php
$parameters 
= array(
  
'limit' => 5,
  
'length' => 200,
  
'board' => array(40),
  
'category' => array(12),
  
'board_disp' => false,
  
'category_disp' => false,
);

ssi_multiBoardNews($parameters);


?>



But nothing is showing up for me :/ is it related because it is actually for an older version of smf (I don't think so, because it worked on a RC4)
or am I doing something wrong?

The Board Id and category id are both correct.


Maybe good to know i installed the mod ssi_topic to

Thanks in advance

Darkness_


Darkness_

Yeah I just noticed that. I first thougt that there was a function build in custum actions to do that, but that was with simple portal.
Solved now, thanks for your fast reply.

And sry for not trying everything I could (I just didn't get on it, but when you asked the link to me, i noticed I didn't try that)

Darkness_


samozin

 hey guys i tried what u all told but i couldnt even get the result that (bluedevil) got
i wanted to show it with thumbnails but did work propably

any one can help ?
iam using smf 2.0 rc5


Masterd

Yes, it should look like this.

<?php 

require_once("SSI.php");

$parameters = array(
  
'limit' => 5,
  
'length' => 200,
  
'board' => array(40),
  
'category' => array(1),
  
'board_disp' => false,
  
'category_disp' => false,
  
'attachments' => 'thumbnail',
);

ssi_multiBoardNews($parameters);

?>

poveyjo

Does this work in 1.13?

I managed to install it by changing the version number in 1.13.  But I can't get it to display anything at all. Normal SSI still works fine.

When I search SSI.php for multiBoardNews there is no function in there.  Should one have been added?

Advertisement: