kenny wrote:and in there add our function

- Code: Select all
'ANNOUNCEMENT' => get_announcements('2', '5', 'Insert Block Title Here'),
The numbers in the brackets corresponds to our function file. The
1st number is the forum id we want to take the announcements from and
the 2nd number is the amount of announcements.
Ok, So this could be used to show news in the mainpage of my website, right? I mean, post the news in the forum, and they appear in the mainpage.
But, couldn't it be possible to show news (announcements) from various forums? Im mean, instead of:
- Code: Select all
'ANNOUNCEMENT' => get_announcements('2', '5', 'Insert Block Title Here'),
Something like:
- Code: Select all
'ANNOUNCEMENT' => get_announcements('2', '8', '13', '20'; '5', 'Insert Block Title Here'),
Where '2', '8', '13', '20' indicates the forums from were the announcements are shown, and where '5' means the number of announcements shown in total...
Or another way, couldn't it be possible to indicate any member group/-s (for example, "reporters"), and select the forums and the number of announcements that are shown? So any announcements posted in any of the selected forums be any member of the group "reporters" would appear in the main page. I think that would be nice for forums that are about more than one thing... For example, a froum about Anime, Games, design and culture. I this cases, you could use:
- Code: Select all
'ANNOUNCEMENT' => get_announcements('2'; '8', '13', '20', '22'; '5', 'Insert Block Title Here'),
Where the first number indicates the member groups (in this case, "reporters"); the second numbers indicates the forums ("Anime news", "Games news", "design news", "culture news"), and the third number, indicates the total number of announcements shown...
I don't know if this is possible... I'm just asking, because I think that it would be great

Kevin.