FeatherBB

Lighter than a feather.

You are not logged in.

#1 2015-07-20 22:20:03

sklerder
Member
Registered: 2015-06-27
Posts: 15

Another enhancement about 'New messages'

Hi here.

On many (most) of PunBB/Fluxbb and on Feather BB, I noticed that the "New message" is positioned at the end of the "topic title".
On my FluxBB forum, I have implemented a mod which displays this mention before the name of the topic (after the icon indicating there is/are new messages).
It's certainly a cosmetic view of my own, but it has the big advantage that when your are reading all the new messages that it's easier to click on the "New message(s)" mention without rolling your mouse right/left/up/down ...

If needed, I'll post a view (for the moment, I didn't post my website, I wouldn't want to make any "promotion" about my forum), and wouldn't impose you to be registered in order to sees this implemantation, as it is a authenticated user's view.

Instead of the "new message" mention, it could also be a particular "clickable" icon (actually, the icon is specific, but whitout no link from this icon to the new messages).

If it's not clear enough to you, adaur, I will explain it in French (will be easier for me :))

Last edited by sklerder (2015-07-22 21:39:59)

Offline

#2 2015-07-21 19:04:09

adaur
Lead developer
From: France
Registered: 2015-06-05
Posts: 94
Website

Re: Another enhancement about 'New messages'

I see what you mean.

It would be very easy to implement; do you have a printscreen where we could see your feature in action?

Offline

#3 2015-07-21 20:11:54

sklerder
Member
Registered: 2015-06-27
Posts: 15

Re: Another enhancement about 'New messages'

Hello !

Here are some captures ...
The first illustrates what we could get in a topic :

http://www.orange-sans-guigne.com/osg-forum/img/members/2/Feather_new-in-topic.jpg

The second, an extract of read and unread in a topic :

http://www.orange-sans-guigne.com/osg-forum/img/members/2/Feather_new-and-already-read-in-topic.jpg

The third, made on the "recent search" page :

http://www.orange-sans-guigne.com/osg-forum/img/members/2/Feather_search_new.jpg

In this last picture, I have also a click-button "Ouvrir tous les nouveaux" ("Open all new") that permits me to open every new topic in a separate tab (but it's time consuming with many tabs to open, and Javascript based).

The mot important of the feature would be to have the direct link to "Open new" ("Nouveau message") at the left of the topic's name instead of the right of the topic's name, either in a topic or in a search.

It's easier on forum with much topics to open in the same "phase" ...

Offline

#4 2015-07-21 20:47:14

adaur
Lead developer
From: France
Registered: 2015-06-05
Posts: 94
Website

Re: Another enhancement about 'New messages'

Hi,

Sure, why not it looks good Smile

Offline

#5 2015-07-21 22:08:14

sklerder
Member
Registered: 2015-06-27
Posts: 15

Re: Another enhancement about 'New messages'

This is only a proposal, of course.
Otherwise, I'll recreate my mod for FeatherBB, when I'll migrate to it Smile

The modfication, for FluxBB, wasn't too hard (just some "fields" to swap).

For the "Open all new" button, I know what I wrote is not "good programming" ...
In case it could help, here is the code of my mod for FluxBB :

##
##        Mod title:  OpenAllNewPosts 
##
##      Mod version:  0.1.0
##  Works on FluxBB:  1.5.*
##     Release date:  2012-09-04
##           Author:  sklerder (sklerder - at - orange.fr)
##
##      Description:  This mod :
##                    - Displays "New messages"  on the left of the subject of new posts/topics
##					  - Adds a button to open all new topics found with only one click
##
##   Affected files:  search.php
##					  viewforum.php
##					  index.php
##
##       Affects DB:  No
#
#---------[ 1. OPEN ]-------------------------------------------------------
#

viewforum.php

#
#---------[ 2. FIND ]-------------------------------------------------------
#



		if (!empty($subject_new_posts) || !empty($subject_multipage))
		{
			$subject .= !empty($subject_new_posts) ? ' '.$subject_new_posts : '';
			$subject .= !empty($subject_multipage) ? ' '.$subject_multipage : '';
		}

#
#---------[ 3. REPLACE WITH ]----------------------------------------------
#

		if (!empty($subject_new_posts) || !empty($subject_multipage))
		{
			$subject = (!empty($subject_multipage) ? $subject_multipage.' ' : '') . $subject ;
			$subject = (!empty($subject_new_posts) ? $subject_new_posts.' ' : '') . $subject ;
		}

#
#---------[ 4. OPEN ]-------------------------------------------------------
#

search.php

#
#---------[ 5. FIND ]-------------------------------------------------------
#

		if (!empty($subject_new_posts) || !empty($subject_multipage))
		{
			$subject .= !empty($subject_new_posts) ? ' '.$subject_new_posts : '';
			$subject .= !empty($subject_multipage) ? ' '.$subject_multipage : '';
		}
#
#---------[ 6. REPLACE WITH ]-----------------------------------------------
#


		if (!empty($subject_new_posts) || !empty($subject_multipage))
		{
			$subject = (!empty($subject_multipage) ? $subject_multipage.' ' : '') . $subject ;
			$subject = (!empty($subject_new_posts) ? $subject_new_posts.' ' : '') . $subject ;
		}

#
#---------[ 7. FIND ]-------------------------------------------------------
#

		$subject_new_posts = '<span class="newtext">[ <a href="viewtopic.php?id='.$cur_search['tid']

#
#---------[ 8. BEFORE, ADD ]-------------------------------------------------------
#		
		$commande .= 'window.open(&quot;viewtopic.php?id='.$cur_search['tid'].'&amp;action=new&quot;);';
#
#---------[ 9. FIND ]-------------------------------------------------------
#
		$subject_new_posts = '<span class="newtext">[ <a href="viewtopic.php?id='.$cur_search['tid']

#
#---------[ 10. REPLACE WITH ]-----------------------------------------------
#

		$subject_new_posts = '<span class="newtext">[ <a href="viewtopic.php?id='.$cur_search['tid']

#
#---------[ 11. FIND ]-------------------------------------------------------
# 
			echo "\t\t\t".'</tbody>'."\n\t\t\t".'</table>'."\n\t\t".'</div>'."\n\t".'</div>'."\n".'</div>'."\n\n";

#---------[ 12. AFTER, ADD ]-------------------------------------------------------

			if(!empty($commande))
			  echo "<p class=\"buttons\"><button title=\"Ouvrir tous les nouveaux de la page\" onclick='". $commande .";'>Ouvrir tous les nouveaux </button></p>";

#---------[ 13. OPEN ]-------------------------------------------------------
#

index.php

#
#---------[ 14. FIND ]-------------------------------------------------------
#

		$forum_field = '<h3><a href="viewforum.php?id='.$cur_forum['fid'].'">'.pun_htmlspecialchars($cur_forum['forum_name']).'</a>'.(!empty($forum_field_new) ? ' '.$forum_field_new : '')

#
#---------[ 15. REPLACE WITH ]-----------------------------------------------
#

		$forum_field = '<h3>'.(!empty($forum_field_new) ? ' '.$forum_field_new : '').'&nbsp;<a href="viewforum.php?id='.$cur_forum['fid'].'">'.pun_htmlspecialchars($cur_forum['forum_name']).'</a>'
		
#
#---------[ 16. SAVE/UPLOAD ]------------------------------------------------
#


Last edited by sklerder (2015-07-21 22:08:52)

Offline

#6 2015-07-22 19:41:34

adaur
Lead developer
From: France
Registered: 2015-06-05
Posts: 94
Website

Re: Another enhancement about 'New messages'

Ok, thank you! I'll take a closer look later Smile

Last edited by adaur (2015-07-22 19:41:48)

Offline

#7 2015-07-22 21:42:15

sklerder
Member
Registered: 2015-06-27
Posts: 15

Re: Another enhancement about 'New messages'

Hi !
Thanks to consider it, adaur ...

Offline

Board footer

[ Generated in 0.046998 seconds, 8 queries executed - Memory usage: 1.45 MiB (Peak: 1.49 MiB) ]