[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: 248
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin Bodin
Contact:

[ABD] Last News and Messages

Post by orynider » Sun Jul 22, 2007 3:12 am

MOD Title: Last News and Messages (At-a-Glance)

MOD Description: This adds a block with latest news and last posts on phpBB3 forum index.

MOD Version: 1.0.0 RC6

MOD Download: recent_messages.zip

Demo Board: http://crestinii.uv.ro/forum/


Download MOD: recent_messages.zip

ScreenShot MOD:
Image

http://www.phpbb.ro/viewtopic.php?t=8531
Last edited by orynider on Sun Dec 14, 2008 1:05 am, edited 19 times in total.

User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: [DEV] Last News and Messages

Post by nickvergessen » Sun Jul 22, 2007 6:58 am

perhaps you could use the style of the viewforums.php?
No Support via PM

User avatar
Akansu
Registered User
Posts: 80
Joined: Mon Jun 04, 2007 2:51 pm
Contact:

Re: [DEV] Last News and Messages

Post by Akansu » Sun Jul 22, 2007 7:12 am

good mod..It's all enough..Thanks..

Can you looh that ?:

recent_messages.php in line 37

Code: Select all

$script_path = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($board_config['script_path']));
for RC3 replace with :

Code: Select all

$script_path = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($config['script_path']));
I changed this code and it has worked

User avatar
Akansu
Registered User
Posts: 80
Joined: Mon Jun 04, 2007 2:51 pm
Contact:

Re: [DEV] Last News and Messages

Post by Akansu » Sun Jul 22, 2007 7:13 am

Akansu wrote:good mod..It's all enough..Thanks..

Can you look that ?:

recent_messages.php in line 37

Code: Select all

$script_path = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($board_config['script_path']));
for RC3 replace with :

Code: Select all

$script_path = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($config['script_path']));
I changed this code and it has worked

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

Re: [DEV] Last News and Messages

Post by orynider » Sun Jul 22, 2007 9:49 am

Hi,

This was my fist attempt to make someting prosilver releated, so I may fix the template in the future if nobody else will.

I droped "$script_path" now I use "{$phpbb_root_path}" like in viewforum.php, if will work there will work here too, but I didn't used it from start couse I had some issues with a mod that I developed at phpbb.ro for phpBB2, on some servers if phpBB was in a folder and not in root viewtopic.php was opened in root, so users get 404 error.

The bug was fixed in the .zip :|

Ah, and I added a new option "$recent_forums_ignore" that will allow you to set forums that you wish to ignore in your recent topics. I alloso tryed to use a phpBB2 method to not show topics that users can view but not read, with a variable $recent_auth_read, but the method is not working with Olympus features.

foropadres
Registered User
Posts: 44
Joined: Tue May 08, 2007 5:48 am

Re: [DEV] Last News and Messages

Post by foropadres » Sun Jul 22, 2007 10:45 am

Hi, good mod. :P

This is my screenshot

Image
The part of the right does not seem to be correct. :roll:

The messages that appear in my last news are not news are a normal post :roll:

A suggestion:

A few columns might be added by the forum to which the topic belongs, the hour of the last response and the user who has published the last response. ;)

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

Re: [DEV] Last News and Messages

Post by orynider » Sun Jul 22, 2007 11:23 am

foropadres wrote: The messages that appear in my last news are not news are a normal post :roll:
You most edit in last_config.php the news forum id ($recent_news_forum_id = '3';), the forum in wich all topics are news does not matter if they are are or not announcements.

foropadres
Registered User
Posts: 44
Joined: Tue May 08, 2007 5:48 am

Re: [DEV] Last News and Messages

Post by foropadres » Sun Jul 22, 2007 12:18 pm

ok, thanks.

I belive the line in recent_messages.html

Code: Select all

<!-- BEGIN latest_news -->
goes to before the line

Code: Select all

         <!-- IF latest_news.ROW_COUNT is even -->

And other suggestion

It's possible automatic don't show posts of users can't read?

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

Re: [DEV] Last News and Messages

Post by orynider » Sun Jul 22, 2007 5:29 pm

I'm rewiting the mod and the template. On the second thisg I tryed to implement it but I can not get a aray list with 'forum_id,persissions' for all forums in wich users can not read messages, at least not with the Olympus features.

User avatar
ac_roma
Registered User
Posts: 307
Joined: Thu Mar 08, 2007 2:48 pm
Location: egypt,alexandria
Contact:

Re: [DEV] Last News and Messages

Post by ac_roma » Sun Jul 22, 2007 6:37 pm

very good and useful mod

thanks orynider

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

Re: [ALPHA] Last News and Messages

Post by orynider » Mon Jul 23, 2007 7:55 am

The new version is 0.9.2, many bugs fixed. Now multiple forums for news can be set in last_config.php :D
You can read the Version History, and allso proper credit was added couse the ideea is not a new ideea, just was recoded for Olympus.

foropadres
Registered User
Posts: 44
Joined: Tue May 08, 2007 5:48 am

Re: [ALPHA] Last News and Messages

Post by foropadres » Mon Jul 23, 2007 9:36 am

Might links to the forums take the last post instead of the first?

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

Re: [ALPHA] Last News and Messages

Post by orynider » Mon Jul 23, 2007 10:32 am

În the Last Post just after the Last author you have a link that is suppozed to go at the last message from the respective topic, but was not upgraded yet. I will look into this ...
I can replace the normal vietopic url with the last post link upgraded and the current last post link using the Olympus features. :?

foropadres
Registered User
Posts: 44
Joined: Tue May 08, 2007 5:48 am

Re: [ALPHA] Last News and Messages

Post by foropadres » Mon Jul 23, 2007 10:50 am

thanks for your great work :)

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

Re: [ALPHA] Last News and Messages

Post by orynider » Mon Jul 23, 2007 10:58 am

Done, you can download version 0.9.3 now. ;)

edit:
I added in the .zip a contrib folder with the template file for subsilver2 and instructions for now.

Locked

Return to “[3.0.x] Abandoned MODs”