https://www.icyphoenix.com/viewtopic.php?f=40&t=9703
-----------------------------------
MWE_001
Tue 27 Dec, 2016 22:59

Customization Question About A Block
-----------------------------------
Has anyone here ever created a Announcements block? 

I can appreciate the news block, but am curious over a Announcements block that would pull announcements out of any forum id no matter what forum and display it in a block on the home page or what ever page is chosen to display the block.

I got the cfg file created but trying to create the announcements.php I started getting in over my head real quick like.

Take care guys.

P.S. If anyone wishes to take a stab at this, I do have a announcements block.cfg file as well as an announcements block file it self that I can get to you to study.


-----------------------------------
Informpro
Wed 28 Dec, 2016 14:33

Re: Customization Question About A Block
-----------------------------------
That's a very interesting idea!

I'm not sure about the "from all the forums" though - or do you want the ID to be specifiable?


-----------------------------------
MWE_001
Wed 28 Dec, 2016 19:11

Re: Customization Question About A Block
-----------------------------------
Well, in certain blocks, we can get a choice of what article or forum id's to use kind of like the forum articles block http://prntscr.com/doyztp

I am not sure how the news block works. If it just picks up a forum pst that is marked as news or what as I have found no settings but it seems to pull posts from every forum regardless of ID.

So if I had 3 categories and 5 forums per category and I posted an announcement in 6 of them no matter what category or forum, it would pull that announcement and display it on the front page. 

Obviously it would need block variables to set. Such as how many announcements to display and stuff like that. I would guess this would probably be only appealing as a Global block?


-----------------------------------
Informpro
Wed 28 Dec, 2016 23:22

Re: Customization Question About A Block
-----------------------------------
I think another option would be to add "topic level" to the options?


-----------------------------------
MWE_001
Wed 28 Dec, 2016 23:27

Re: Customization Question About A Block
-----------------------------------
Yeah, I don't see why that wouldn't work out. 

I think for the heck of it, you could look at the announcements block from integra to see how it works. I started to try it myself yesterday using it as a guide and quickly figured out I was not the man for the job.  :(


-----------------------------------
Mighty Gorgon
Fri 30 Dec, 2016 11:35

Re: Customization Question About A Block
-----------------------------------
It should be quite easy to be done... if you didn't succeed so far, I can help next week. :mri:


