Another News Mod

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
11
55%
Very Good
1
5%
Good
3
15%
Fair
1
5%
Poor
4
20%
 
Total votes: 20

TheRetroFox
Registered User
Posts: 1
Joined: Sun Jul 29, 2007 7:53 am

Re: Another News Mod

Post by TheRetroFox »

I have installed this mod, and here is the problem I get- it happens on the homepage and the forum index:

Warning: Cannot modify header information - headers already sent by (output started at /www/freeweb7.com/o/n/w/onwardsoftworks/htdocs/forums/language/lang_english/lang_main.php:1) in /www/freeweb7.com/o/n/w/onwardsoftworks/htdocs/forums/includes/page_header.php on line 483

Warning: Cannot modify header information - headers already sent by (output started at /www/freeweb7.com/o/n/w/onwardsoftworks/htdocs/forums/language/lang_english/lang_main.php:1) in /www/freeweb7.com/o/n/w/onwardsoftworks/htdocs/forums/includes/page_header.php on line 485

Warning: Cannot modify header information - headers already sent by (output started at /www/freeweb7.com/o/n/w/onwardsoftworks/htdocs/forums/language/lang_english/lang_main.php:1) in /www/freeweb7.com/o/n/w/onwardsoftworks/htdocs/forums/includes/page_header.php on line 486
Anyone know whats going on or how to fix it?
User avatar
Janmarques
Registered User
Posts: 148
Joined: Thu Jun 22, 2006 3:30 pm
Location: Antwerp - Belgium
Contact:

Re: Another News Mod

Post by Janmarques »

Open the language file, and make sure there is NO character/space/new line before <?php or after ?>

That should do it
krabbat
Registered User
Posts: 3
Joined: Thu Aug 09, 2007 7:42 pm

Re: Another News Mod

Post by krabbat »

Thank you Janmarques for a great mod!

I want to integrate the mod with the main index to the right of the bulletin board. I think this is possible but I can't figure out how to do it. Do you have any suggestions?

This is how I want it to look like.
http://img520.imageshack.us/my.php?image=picoz9.gif

Let's say this was my BB, I want to put the strip to the right in my bulletin board. This I want to include with a

Code: Select all

<?php include 'otherpage.php'; ?>
Thank you for tacking time.
User avatar
Janmarques
Registered User
Posts: 148
Joined: Thu Jun 22, 2006 3:30 pm
Location: Antwerp - Belgium
Contact:

Re: Another News Mod

Post by Janmarques »

Hi there,
you can put the forum in 2 tabels, one for the forum, and on for the accouncements!

Nice idea btw!
the_exhibitionist
Registered User
Posts: 8
Joined: Sat Sep 15, 2007 9:44 pm

Re: Another News Mod

Post by the_exhibitionist »

Hi
I have installed this mod but I cant seem to get it to work.
all I have is a link to the forum index then a header saying news site with nothing in it and then phpbb copy write text....
I have to fit the text into a window width of 140px.
I am not bothered about the height yet.
just bothered that I can't get it to work.
I set the news forum id to 2,4,5,6,
If it helps the site is http://www.nzinr.com
the 'Iframe' is on the left hand side.
Please help......
diabolic.bg
Registered User
Posts: 447
Joined: Mon Dec 11, 2006 3:41 pm
Location: Bulgaria, Sofia
Contact:

Re: Another News Mod

Post by diabolic.bg »

Open announcements.php and correct here:

Code: Select all

//
// Configuration
//

// Number of news on portal
$CFG['number_of_news'] = '15';

// Length of news
$CFG['news_length'] = '5000';

// News Forum ID: separate by comma for multi-forums, eg. '1,2,5'
$CFG['news_forum'] = '2';
Instructions and Guides
1) MOD Discription
2) MOD FAQ
3) Disclaimer

.:o0o:.

1) MOD Discription
This MOD produces a page, where all the last post of one or more specific forum are listed, this can be usefull to use in frame on your regular website, so it has a direct connection with the forum.

.:o0o:.

2) MOD FAQ

Q: Can I change the forum where the newspage gets his information from?
A: Of course...
Open announcements.php
Find Code:
$CFG['news_forum'] = '1';


and replace "1" with the forum number you want. If you want it from multiple forums, just put a "," inbetween.
EG: 1,2,5,10


Q: Can I change the length of the showed articles?
A: Yes, you can...
Open announcements.php
Find Code:
$CFG['news_length'] = '5000';


and replace "5000" with the number of characters you want to show.


Q: Can I change the number of showed aricles?
A: Also this is possible...
Open announcements.php
Find Code:
$CFG['number_of_news'] = '5';


and replace "5" with the number of articels to show you want.


Q: How do I install those additional languages with EasyMod?
A: Just load the folder "translations" up to phpbb-root/admin/mods/
Now, you can run in the adminpanel all the languages you have got installed.


End of FAQ - further addictions are always possible

.:o0o:.

3) Disclaimer
This MOD has been produced...
... based on Smartors- ezPortal
... with the help of Paul, on the phpBB.nl website
... with the help of Bee, on the phpBB.nl website

This MOD has been translated...
... into Dutch by myself
... into French by myself and a doublecheck by Weedom
... into German by Big_Wheely
... into German-Formal using the same translation as German
... into Danish by John Hjorth

Thanks all for using this MOD, have fun with it.

Kind Regards,
Jan
;)
the_exhibitionist
Registered User
Posts: 8
Joined: Sat Sep 15, 2007 9:44 pm

Re: Another News Mod

Post by the_exhibitionist »

yup did that still nothing....
is it something I have done or am I being a spaz?
diabolic.bg
Registered User
Posts: 447
Joined: Mon Dec 11, 2006 3:41 pm
Location: Bulgaria, Sofia
Contact:

Re: Another News Mod

Post by diabolic.bg »

Maybe any file is broken. Try to upload again announcements.php, fetchposts.php and templates/subSilver/news_body.tpl IN BINARY MODE.
the_exhibitionist
Registered User
Posts: 8
Joined: Sat Sep 15, 2007 9:44 pm

Re: Another News Mod

Post by the_exhibitionist »

wahoo....
done it ...
it was the news_body.tpl.
thanks ever so much for your help...
very much appreciated.....
diabolic.bg
Registered User
Posts: 447
Joined: Mon Dec 11, 2006 3:41 pm
Location: Bulgaria, Sofia
Contact:

Re: Another News Mod

Post by diabolic.bg »

I'm glad to hear it! :D
maudlin
Registered User
Posts: 1
Joined: Tue Dec 18, 2007 10:57 am

Re: Another News Mod

Post by maudlin »

hey,

i have the same problem as the_exhibitionist.
and i did everything diabolic.bg said but it doesn't work :(

the only thing there is on my page is "Powered by phpBB © 2001, 2005 phpBB Group" when i surf to announcements.php

help me please :oops:
diabolic.bg
Registered User
Posts: 447
Joined: Mon Dec 11, 2006 3:41 pm
Location: Bulgaria, Sofia
Contact:

Re: Another News Mod

Post by diabolic.bg »

#
#-----[ DIY INSTRUCTIONS ]------------------------------------------
#
Now you can add http://linktoforum/announcements.php into a frame on you website.
Use for this <iframe src="http://linktoforum/announcements.php" width="70%" height="100%"></iframe>
#
Are your link correct?
I recommend you to give the full path - http://your_domain/phpbb2/announcements.php
This is the code from the_exhibitionist's page.

Code: Select all

<div id="news"><iframe src="phpBB2/announcements.php" width="96%" height="100%"></iframe>
</div>
I think it's wrong.
It must be:

Code: Select all

<div id="news"><iframe src="http://your_domain/phpBB2/announcements.php" width="96%" height="100%"></iframe>
</div>
Maybe the_exhibitionist have a similar error.
User avatar
Janmarques
Registered User
Posts: 148
Joined: Thu Jun 22, 2006 3:30 pm
Location: Antwerp - Belgium
Contact:

Re: Another News Mod

Post by Janmarques »

You can choose it wheter you want to include it somewhere else or not ;)

@maudlin: if you want, PM me your FTP and I'll see what I can do :)
ScionCrow
Registered User
Posts: 3621
Joined: Fri Feb 13, 2004 6:59 am
Location: Darkness

Re: Another News Mod

Post by ScionCrow »

Must do a big bump on this. If anyone wouldn't mind answering this question for me, since I'm wondering if this MOD works with Categories Hierarchy or not. We need this particular mod (or anything similar to this) to pull the announcements from a forum onto a custom page that is coded on the site I administer. Would appreciate if someone could help.
No longer supporting phpBB. PM or email me regarding support and you will be ignored. I'm fully done with phpBB and everything.
User avatar
Janmarques
Registered User
Posts: 148
Joined: Thu Jun 22, 2006 3:30 pm
Location: Antwerp - Belgium
Contact:

Re: Another News Mod

Post by Janmarques »

This MOD should work completely independant.
I'm not 100 % sure, but if you just upload the three files and open announcements.php in your browser and it shows up without problems then it works :) It really isn't much work to install it ;)
Post Reply

Return to “[2.0.x] MOD Database Releases”