[ABD] Last News and Messages

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
orynider
Registered User
Posts: 249
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin Bodin
Contact:

Re: [RC6] Last News and Messages

Post by orynider » Thu Dec 20, 2007 7:33 pm

I don't know is this is a bug since the mod is to display last message and you have a option to go to the last message from last page. I didn't added any paggination features to this mod and it's based on egosearch, I don't know if should pagination be added ...

koalaii
Registered User
Posts: 176
Joined: Sun Jan 02, 2005 4:25 pm
Location: France

Re: [RC6] Last News and Messages

Post by koalaii » Fri Dec 21, 2007 12:29 pm

ah ok.

I think I will mod your mod then :D I will also change the page information (instead of having previous/next x topics I will use the regular page 1 2 3 4 ...). The idea is to transform it into a viewforum format.

Thx

koa

koalaii
Registered User
Posts: 176
Joined: Sun Jan 02, 2005 4:25 pm
Location: France

Re: [RC6] Last News and Messages

Post by koalaii » Sat Dec 22, 2007 12:27 am

I've been struggling for the whole day to make a full feature viewforum of your mod, with all the topics from different forums in one page. Finally I am asking for help : http://www.phpbb.com/community/viewtopi ... 2&t=641325

User avatar
orynider
Registered User
Posts: 249
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin Bodin
Contact:

Re: [RC7] Last News and Messages

Post by orynider » Sat Dec 22, 2007 6:09 am

Oh, if is so important for you I can add pagination, I think that two lines of code will fix it, plus template update :P

Edit:

Oky, now I added the new PAGINATION Constant to the two arrays and upgraded the prosilver template.

Other changes or features that will require more time will have to whait longer.

The file has been upgraded in File Manager! ;)

koalaii
Registered User
Posts: 176
Joined: Sun Jan 02, 2005 4:25 pm
Location: France

Re: [RC6] Last News and Messages

Post by koalaii » Sun Dec 23, 2007 1:23 am

That's very cool thanks a lot. It's a good viewforum replacement that way :)
It saves a lot of SQL queries too compared to viewforum.

Is the Icon on the left of the message is acting like in viewforum ?

koa

User avatar
orynider
Registered User
Posts: 249
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin Bodin
Contact:

Re: [RC6] Last News and Messages

Post by orynider » Wed Dec 26, 2007 12:37 am

koalaii wrote:
Is the Icon on the left of the message is acting like in viewforum ?
I designed this based on "At a glance mod" for phpBB2 and had only a simbol like [*], one for normal and one for anoucements, bot with hot option that was then a color, now this are replaced with Olympus icons but I didn't added all Olympus features to it yet couse when I started this project I tryed to keep compatibility with phpBB2 backend of mxBB3. This was generated @ phpbb.ro in to a new "At a Glance" mod completly rewriten with all Olympus standards that are working with phpBB 2.0.22, and this version "Last News and Messages" here @ phpbb.com , plus the mxBB 2.8.1 version that will be released with the portal as official module probably, since is the first mxBB module that is using Olympus standard to build the queryes and can be used as reference for module developers there. ;)

terexwizard
Registered User
Posts: 2
Joined: Wed Dec 19, 2007 11:27 am

Re: [RC6] Last News and Messages

Post by terexwizard » Fri Jan 04, 2008 10:25 am

Problem Latest Site News is not show in phpBB version 3.0.0 if edit code in file recent_message.php inline 128
$sql = $db->sql_build_query('SELECT', array(
'SELECT' => 'f.forum_id, f.forum_name' . $sql_title . ', t.*, p.post_time, p.poster_id, u.username as last_username, u.username as author_username',

'FROM' => array(
FORUMS_TABLE => 'f',
POSTS_TABLE => 'p',
TOPICS_TABLE => 't',
USERS_TABLE => 'u',
),

'WHERE' => 'f.forum_id IN (' . $recent_news_forum_id . ')
AND t.topic_status <> 2
AND t.forum_id = f.forum_id
AND p.post_id = t.topic_first_post_id
AND t.topic_moved_id = 0
AND p.poster_id = u.user_id
AND t.topic_poster = u.user_id',

'ORDER_BY' => 't.topic_last_post_id DESC',

));

to

$sql = $db->sql_build_query('SELECT', array(
'SELECT' => 'f.forum_id, f.forum_name' . $sql_title . ', t.*, p.post_time, p.poster_id, u.username as last_username, u.username as author_username',

'FROM' => array(
FORUMS_TABLE => 'f',
POSTS_TABLE => 'p',
TOPICS_TABLE => 't',
USERS_TABLE => 'u',
),

'WHERE' => 'f.forum_id IN (' . $recent_news_forum_id . ')
AND t.topic_status <> 2',

'ORDER_BY' => 't.topic_last_post_id DESC',

));

Latest Site News Show because show data repeated :cry:

terexwizard
Registered User
Posts: 2
Joined: Wed Dec 19, 2007 11:27 am

Re: [RC6] Last News and Messages

Post by terexwizard » Fri Jan 04, 2008 11:48 am

mod Last News and Messages is work. i add number in last_config
// NEWS FORUM ID
$recent_news_forum_id = ''3,4,5,6,7,9'; // SEPERATE NEWS FORUMS WITH , eg '1,2,3' - SET TO '0' IF YOU DO NOT HAVE A NEWS FORUM

:D :D :D :D :D :D :D

User avatar
orynider
Registered User
Posts: 249
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin Bodin
Contact:

Re: [RC6] Last News and Messages

Post by orynider » Sat Jan 05, 2008 6:52 pm

lol :o

User avatar
orynider
Registered User
Posts: 249
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin Bodin
Contact:

Re: [RC6] Last News and Messages

Post by orynider » Sun Dec 14, 2008 1:07 am

You can not use mixed quotation.

$recent_news_forum_id = ''3,4,5,6,7,9'; //This is bad

$recent_news_forum_id = ''3,4,5,6,7,9"; //This should work

$recent_news_forum_id = \'3,4,5,6,7,9\'; //This should work

:o

thecrewstyle
Registered User
Posts: 126
Joined: Sun Apr 22, 2007 5:52 am

Re: [RC6] Last News and Messages

Post by thecrewstyle » Mon Apr 27, 2009 6:56 am

is this mod working on phpbb 3.0.4 ?

JohanLM
Registered User
Posts: 69
Joined: Sat Apr 02, 2005 8:21 am
Location: Sweden / Gothenburg

Re: [RC6] Last News and Messages

Post by JohanLM » Wed May 27, 2009 11:34 am

tagged and hiya mr Ory. :)

[EDIT THE DAY AFTER]
I must ask from you who uses it (or you Ory. if you are around). Does this one show the posts from the "hidden" sections to? This is an issue atleast two other simillar MODs has, that they show all post subjects for everyone, even those that don't have access/look rights for some areas?

Is this an issue for this one to?

User avatar
orynider
Registered User
Posts: 249
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin Bodin
Contact:

Re: [RC6] Last News and Messages

Post by orynider » Tue Jun 02, 2009 1:52 pm

Hi Johan,

Yes, all settings of the mx addon version should work and can be edited in the last_config.php settings file.

Make sure that $recent_auth_read = true; is set and only one time couse I added this line twice.

To ignore some forums you do not have here the block pannel check box only the old fashioned methosd:

$recent_forums_ignore = ' ';

JohanLM
Registered User
Posts: 69
Joined: Sat Apr 02, 2005 8:21 am
Location: Sweden / Gothenburg

Re: [RC6] Last News and Messages

Post by JohanLM » Wed Jun 03, 2009 9:05 am

Great, :D
And good to see you still around keeping an eye on things Ory. :)

User avatar
robra
Registered User
Posts: 147
Joined: Thu Dec 09, 2010 2:09 am
Location: Brazil

Re: [RC6] Last News and Messages

Post by robra » Sun Aug 21, 2011 4:15 am

Hi, orynider.

It's great MOD. Congratulation !!!

Well, I need your help.
I created a left sidebar in Forum by overall_footer.html and put the last news and messages in a block with scroll effect, but because the line include($phpbb_root_path . 'recent_messages.'.$phpEx); is in index.php then, the last news and messages are only visible in the block when I access the principal page of the Forum, or the index page.
When I access the Topic page, the PM page and the others pages of the Forum I can see the left side bar in all pages but the block showing the last news and messages only in the index page.
How can I charge the block in the left side bar on all pages of the Forum once without put the line in each php files like viewtopic.php, viewforum.php, memberlist.php,... ?

Thank you.

Locked

Return to “[3.0.x] Abandoned MODs”