Latest topics
Recent Tutorials
Who is online?
In total there are 11 users online :: 2 Registered, 0 Hidden and 9 Guests

Ace 1, Wolfuryo

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

To color the cells on the index when a new message is posted

View previous topic View next topic Go down

avatar
Gae
New Member
Title :
Gender : Unspecified
Posts : 9
Points : 153
Reputation : 2
Language : French English
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile

PostGae on Sun 09 Apr 2017, 21:13

Hi @Ange Tuteur,

I suggest a plugin conversion to FA Edge from Forumotion Tips (Forumactif in French).

Description of plugin : It supposed to be a plugin when a new message is posted, the color of the cells on the index of your forum will change to another color that you want.
Version of Plugin : For Phpbb2, punBB, Invision & Phpbb3 (i think you need only phpbb3 version for FA Edge)
Plugin Source Code :

For Phpbb2, PunBB & Invision
Javascript > Create a new JS > Of All pages
Code:
$(function() {
 $('img[src="http://illiweb.com/fa/empty.gif"]').closest('tr').addClass('newpost');
$('img[src="http://illiweb.com/fa/empty.gif"]').closest('tr').addClass('newpost');
});

Don't forget to save.


CSS

Code:
tr.newpost td {background-color:#COLOR!important;}

Don't forget to save.


For Phpbb3
Javascript > Create a new JS > Of All pages
Code:
$(function() {
 $('dl.icon[style*="http://illiweb.com/fa/empty.gif"]').addClass('newpost');
$('dl.icon[style*="http://illiweb.com/fa/empty.gif"]').addClass('newpost');
});

Don't forget to save.


CSS

Code:
dl.newpost {
background-color:#COLOR!important;}

Don't forget to save.

I think it would be useful to have the addresses of the basic images when we have the minimized CSS on FA Edge. 
Thanks in advance for you answer.
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4675
Points : 9687
Reputation : 2331
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Mon 10 Apr 2017, 13:01

Hi @Gae,

Try using this script :
Code:
$(function() {
  $('.forum-status[style*="state=new"]').parent().addClass('newpost');
});

and this CSS :
Code:
.newpost { background-color:#FF8 !important; }

As long as the new post images contain the query "state=new" in the URL, it should work without any issues. Wink
avatar
Gae
New Member
Title :
Gender : Unspecified
Posts : 9
Points : 153
Reputation : 2
Language : French English
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile

PostGae on Wed 12 Apr 2017, 12:05

Hi @Ange Tuteur

Great! It works without problem.
Thanks to you!
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4675
Points : 9687
Reputation : 2331
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Thu 13 Apr 2017, 14:25

Great to hear ! You're welcome. ^^

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum