Latest topics
» [GAME] What are you thinking right now?
by universecat Yesterday at 21:46

» [GAME] Animal Game
by universecat Yesterday at 21:43

» [GAME] Count to 1000 using even numbers Van-Helsing Edition
by universecat Yesterday at 21:40

» [GAME] Count to One Million!
by universecat Yesterday at 21:40

» [GAME] Last Letter Game
by universecat Yesterday at 21:39

» [GAME] Post a random picture
by SLGray Yesterday at 16:28

» Dark Mode + Another Question
by Ace 1 Yesterday at 13:31

» Hi everyone!
by skouliki Yesterday at 02:01

» Hai Guys~
by skouliki Yesterday at 01:59

» Add a login popup for the toolbar
by Ape Sun 15 Oct 2017, 13:51

» Mobile Usability Test
by Ange Tuteur Sat 14 Oct 2017, 11:20

» Chit Chat Thread
by Ange Tuteur Sat 14 Oct 2017, 11:20

» [GAME] World Snake
by SLGray Thu 12 Oct 2017, 16:12

» [GAME] Never have I ever..
by Valoish Thu 12 Oct 2017, 13:01

» Browsers & Updates
by SLGray Mon 09 Oct 2017, 12:11

Recent Tutorials
Who is online?
In total there are 10 users online :: 1 Registered, 0 Hidden and 9 Guests :: 2 Bots

jlmic

[ 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 : 211
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 : 4698
Points : 9534
Reputation : 2337
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 : 211
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 : 4698
Points : 9534
Reputation : 2337
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