Page 1 of 1

Several news block, differents sources

Posted: 29. August 2012 05:24
by MaamuT
Sorry for my funny english, but i'm french and i don't spek very well…

I would like to install several blocks of news, each one taking his source in a different forum.

I excavated well in the codes of Board3 but I did not find how to make.

The only result that I had, it is to have two forums in the same block, or two forums in two blocks, but not a forum per block.

Thx

Re: Several news block, differents sources

Posted: 2. September 2012 05:41
by MaamuT
No ideas ?

Impossible ?

Re: Several news block, differents sources

Posted: 11. December 2012 19:18
by MaamuT
Hm, always no ideas ?

Nobody to help me ?

Re: Several news block, differents sources

Posted: 11. December 2012 22:25
by anywhere91
Hi

Not taking up the block news for various reasons (if I remember correctly !)

Blocks of the gate that manages permissions based forum, not the permissions from another site
Block news not only manages external rss

Alternative. Integrate an RSS feed in a frame in portal as lastRSS

Example: http://planetozh.com/blog/2004/11/magpi ... s-parsers/

Regards (and sorry for google translation ! :mrgreen: )

Bonjour / Soir

Impossible a faire en reprennant le bloc news tel quel pour deux raisons (si je me souvient bien !)

Les blocs du portail ne gere que les permissions du forum sur lequel tu es, pas les permissions d'un site externe
Le bloc news ne gere pas les flux rss externe

Autre solution. Integrer un flux rss dans un cadre du portail comme lastrss ou autres :mrgreen:

Exemple : http://planetozh.com/blog/2004/11/magpi ... s-parsers/

Cordialement

Re: Several news block, differents sources

Posted: 15. December 2012 14:27
by DocSommer
Isn't it possible to use several announcements block with different forum id's as source? Of course this would recommend that a news must be posted as announcement and not regular topic.

I'm using this solution, but only with one block/forum-ID as source:

http://portal.poison-door.net/

Re: Several news block, differents sources

Posted: 18. December 2012 12:24
by MaamuT
Hi all,

Yes it is possible, and it is very simple, when the trick is had…

It is enough to follow the example : How to edit a module file

Not to forget to rename the variables board3

Code: Select all

board3_item
By :

Code: Select all

board3_my_item
After, it is enough quite simply to rename the element of the function

Code: Select all

$template->assign_block_vars('news_row', array(
By :

Code: Select all

$template->assign_block_vars('my_item_news_row', array(
That's all, go to the Admin panel => MODs => Portal Module

Add your new module, configure, and admire it, it is as simple as that.

P.-S. : Not to forget to also modify the variable news_row to my_item_new_row in the file template.html

Re: Several news block, differents sources

Posted: 2. September 2013 01:29
by beccasmandan
Hi folks,

i am having a bit of trouble with this lol
Not to forget to rename the variables board3
CODE: SELECT ALL
board3_item

By :
CODE: SELECT ALL
board3_my_item


After, it is enough quite simply to rename the element of the function
CODE: SELECT ALL
$template->assign_block_vars('news_row', array(

By :
CODE: SELECT ALL
$template->assign_block_vars('my_item_news_row', array(


That's all, go to the Admin panel => MODs => Portal Module

Add your new module, configure, and admire it, it is as simple as that.

P.-S. : Not to forget to also modify the variable news_row to my_item_new_row in the file template.html


I have the portal_news.php and portal_news2.php files

portal_news.php being the original

and i have performed the edits that are mentioned in the quoted section above on this file,
well
" CODE: SELECT ALL
$template->assign_block_vars('news_row', array(

By :
CODE: SELECT ALL
$template->assign_block_vars('my_item_news_row', array( "
^^ that one

and
" P.-S. : Not to forget to also modify the variable news_row to my_item_new_row in the file template.html "
^^ that one both on the portal_news.php

i can see two different boxes on the portal page, but the both show the same content
what am i doing wrong?
can anyone help please as i am tearing my hair out lol

thanks guys

Re: Several news block, differents sources

Posted: 30. September 2014 15:48
by Nor7on
Up.

How i can do it?

I same problem, two blocks, but the same content.