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

[ABD] Last News and Messages

Post by orynider »

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 »

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 »

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 »

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

Re: [DEV] Last News and Messages

Post by orynider »

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 »

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

Re: [DEV] Last News and Messages

Post by orynider »

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 »

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

Re: [DEV] Last News and Messages

Post by orynider »

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: 321
Joined: Thu Mar 08, 2007 2:48 pm
Location: egypt,alexandria
Contact:

Re: [DEV] Last News and Messages

Post by ac_roma »

very good and useful mod

thanks orynider
User avatar
orynider
Translator
Posts: 270
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin-Ciprian Bodin
Contact:

Re: [ALPHA] Last News and Messages

Post by orynider »

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 »

Might links to the forums take the last post instead of the first?
User avatar
orynider
Translator
Posts: 270
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin-Ciprian Bodin
Contact:

Re: [ALPHA] Last News and Messages

Post by orynider »

Î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 »

thanks for your great work :)
User avatar
orynider
Translator
Posts: 270
Joined: Wed Nov 16, 2005 12:48 pm
Location: Arad, România
Name: Florin-Ciprian Bodin
Contact:

Re: [ALPHA] Last News and Messages

Post by orynider »

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”