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.
Post Reply

Rating:

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

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 27928
Joined: Sat Aug 16, 2003 7:36 am

Another News Mod

Post by Extensions Robot » Tue Aug 01, 2006 5:22 pm

MOD Name: Another News Mod
Author: Janmarques
MOD Description: These add-on files allow you to add last announces in a frame on your main website.

MOD Version: 1.0.1
Tested on phpBB Version: 2.0.21

Download File: Another_News_Mod_1_0_1a.zip
mods overview page: View
File Size: 10862 Bytes



Support for this MOD needs to be asked within this topic. The phpBB Teams are not responsible or required to give anyone support for this MOD. By installing this MOD, the phpBB Support Team or phpBB MODifications Team may not be able to provide support.

This MOD has only been tested by the phpBB MOD Team with the phpBB version listed in the topic. It may not work in any other versions of phpBB.
Last edited by Extensions Robot on Mon Apr 30, 2007 12:30 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 » Sat Aug 26, 2006 12:07 pm

MOD Validated/Released

Notes:
This simple news MOD is displayed as an iframe on your forum. For admins, the configuration settings can be found in announcements.php.

GHFSilva
Registered User
Posts: 11
Joined: Tue Apr 25, 2006 12:53 am

Post by GHFSilva » Wed Aug 30, 2006 12:27 pm

We have installed this mod on our website, the page did run cute news which is why it's a PHP extension, check it out.

http://www.gungho-fighters.com/news.php

But we have found a little problem and was after some advice.

The exported data stretches to the size of the table set, we've set ours to what suites our site best, and if you view under IE it stretches the IFRAME and fits it to the table, but under Fire Fox it just stays as a little box at the top of the Table.

Any ideas ?

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw » Wed Aug 30, 2006 12:47 pm

Have you tried removing these attributes from the iframe:

Code: Select all

width="100%" height="100%"
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

User avatar
Janmarques
Registered User
Posts: 148
Joined: Thu Jun 22, 2006 3:30 pm
Location: Antwerp - Belgium
Contact:

Post by Janmarques » Thu Aug 31, 2006 9:12 am

Thank you dear phpBB Team for submitting my MOD :mrgreen:
Here is a guide

Image
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: Select all

$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: Select all

$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: Select all

$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

User avatar
Janmarques
Registered User
Posts: 148
Joined: Thu Jun 22, 2006 3:30 pm
Location: Antwerp - Belgium
Contact:

Post by Janmarques » Thu Aug 31, 2006 10:38 am

GHFSilva wrote: We have installed this mod on our website, the page did run cute news which is why it's a PHP extension, check it out.

http://www.gungho-fighters.com/news.php

But we have found a little problem and was after some advice.

The exported data stretches to the size of the table set, we've set ours to what suites our site best, and if you view under IE it stretches the IFRAME and fits it to the table, but under Fire Fox it just stays as a little box at the top of the Table.

Any ideas ?

Try to use

Code: Select all

<object style="width: 70%;height: 100%;" data="http://linktoforum/announcements.php" type="text/html"> 
   </object>
instead of the frames :wink:

Didn't test, but should work

sir_wimelef
Registered User
Posts: 5
Joined: Fri Apr 28, 2006 11:38 am

Post by sir_wimelef » Thu Aug 31, 2006 12:42 pm

i try to install it in my website, but i sems to doesn't work.

i made all the things listed in the .mod with some modifications

#-----[ COPY ]------------------------------------------
copy root/announcements.php to announcements.php
copy root/fetchposts.php to fetchposts.php
copy root/news_body.tpl to templates/wow/news_body.tpl
#-----[ OPEN ]------------------------------------------
language/lang_Spanish/lang_main.php on
#-----[ FIND ]------------------------------------------
$lang['Message'] = 'Message';
#-----[ AFTER, ADD ]------------------------------------------
//Start Another News Mod
$lang['Comments'] = 'Comentarios';
$lang['View_Comments'] = 'Ver comentarios';
$lang['Post_Comments'] = 'Postear comentario';
$lang['Home'] = 'Noticias';
$lang['Read_Full'] = 'Completa';
//End Another News Mod
#-----[ 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>
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------

and i made a blank php page with the iframe, and it apear only with the template background color and the footer
this is the link http://www.ccorpse.es/v2/foro/news.php
any idea?

User avatar
Saeru
Registered User
Posts: 622
Joined: Sun Feb 19, 2006 5:44 am
Location: Under a pile of PHP code.
Contact:

Post by Saeru » Thu Aug 31, 2006 1:33 pm

I recommend removing the iframe and putting it in a DIV tag. Iframes do not display the same on all browsers, and in some are not supported all that well. DIV pritty mjuch is and will look the same on all browsers.
"Naku ga yousuru ichidanto tsuyosa kyaku ga icchuu wo yusuru."[/size]

sir_wimelef
Registered User
Posts: 5
Joined: Fri Apr 28, 2006 11:38 am

Post by sir_wimelef » Fri Sep 01, 2006 7:59 am

ok but i supose that mustr apear somthing more on this http://www.ccorpse.es/v2/foro/announcements.php or no?
or how to add a anouncement?

User avatar
Saeru
Registered User
Posts: 622
Joined: Sun Feb 19, 2006 5:44 am
Location: Under a pile of PHP code.
Contact:

Post by Saeru » Sat Sep 02, 2006 5:51 am

I meant for the mod author to rewrite the mod and make it in a DIV tag rather then an iframe for the above reasons.
"Naku ga yousuru ichidanto tsuyosa kyaku ga icchuu wo yusuru."[/size]

User avatar
Janmarques
Registered User
Posts: 148
Joined: Thu Jun 22, 2006 3:30 pm
Location: Antwerp - Belgium
Contact:

Post by Janmarques » Sun Sep 03, 2006 6:10 pm

Retry all actions, then: upload the news_body.tpl also to the subSilver template root, and check if that works ;)

emptycs
Registered User
Posts: 48
Joined: Sun Jul 09, 2006 6:14 pm

Post by emptycs » Sun Sep 03, 2006 8:06 pm

Janmarques wrote:
GHFSilva wrote:We have installed this mod on our website, the page did run cute news which is why it's a PHP extension, check it out.

http://www.gungho-fighters.com/news.php

But we have found a little problem and was after some advice.

The exported data stretches to the size of the table set, we've set ours to what suites our site best, and if you view under IE it stretches the IFRAME and fits it to the table, but under Fire Fox it just stays as a little box at the top of the Table.

Any ideas ?

Try to use

Code: Select all

<object style="width: 70%;height: 100%;" data="http://linktoforum/announcements.php" type="text/html"> 
   </object>
instead of the frames :wink:

Didn't test, but should work


Same thing even when I use object

http://esclan.net/news.php

User avatar
Janmarques
Registered User
Posts: 148
Joined: Thu Jun 22, 2006 3:30 pm
Location: Antwerp - Belgium
Contact:

Post by Janmarques » Mon Sep 04, 2006 3:21 pm

Please do also this:
Retry all actions, then: upload the news_body.tpl also to the subSilver template root, and check if that works

User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Post by Ramon Fincken » Mon Sep 04, 2006 3:24 pm

Please don't add 13 users in a multi msn tab to show your MOD url.
If it is a good mod we'll see it in time.

good luck developping.

Rfn

ps: further discussion per PM
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here

User avatar
Janmarques
Registered User
Posts: 148
Joined: Thu Jun 22, 2006 3:30 pm
Location: Antwerp - Belgium
Contact:

Post by Janmarques » Wed Sep 13, 2006 6:49 pm

For those who want a spanish version:

Open

Code: Select all

language/lang_spanish/lang_main.php
Find

Code: Select all

?>
Before add

Code: Select all

$lang['Comments'] = 'Comentario'; 
$lang['View_Comments'] = 'Ver Comentario'; 
$lang['Post_Comments'] = 'Poner comentario'; 
$lang['Home'] = 'Sitio de noticias'; 
$lang['Read_Full'] = 'Leer entero'; 

Post Reply

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