PDA

View Full Version : Creating a module like news?


rjerina
10-06-2004, 10:23 PM
I want to create a module just like the news module, where it will pick up the posts from the forumid you specify, then put it where ever you specify on your portal.

I installed an RSS hack that gets the rss feed and enters it into one of my forums. Only thing is, the news module is being used for my site's related news.

Anyone have a way of creating something that has the same purpose as the news module?

rjerina
10-07-2004, 02:11 PM
can anyone help me? i want to get my rss feed up on my portal =\

Our Sponsors
 

Briskoda
10-07-2004, 04:08 PM
Sounds like a copy of the news.php and new template, not forgetting to update the eval templates in the news_copy.php

I have copied module codes to give it a different touch on specific pages, or double up.

rjerina
10-07-2004, 04:39 PM
yeah but wont i need to edit the setting somehow so i can specify which forum it's getting the posts from?

Our Sponsors
 

Fiber
10-07-2004, 10:36 PM
The settings are in you vBa CMPS/edit page option. Though you won't be able to have both modules on the same page that would require some extra hacking.

rjerina
10-08-2004, 12:04 AM
The settings are in you vBa CMPS/edit page option. Though you won't be able to have both modules on the same page that would require some extra hacking.

thats what i want ! :(

Briskoda
10-08-2004, 05:07 AM
To have both news and new_copy on the same page; yup would not work, but the news_copy on it's own would quite happiy read the news settings for that page.

To get both news and new_copy displaying on the same page...umm you could hardcode the parms in your news_copy as your forum id that is taking the RSS as it should not change. Not perfect, but workable.

Brian
10-08-2004, 09:57 AM
You would basically need to search the file for $vba_options and replace those variables with hardcoded values.

rjerina
10-08-2004, 04:59 PM
blah, this sucks. should have support for multiple ones on one page.