IMPORTANT

FM Design will be closing soon, please click here for more information.

Latest topics
» Forum Closure
by Michael_vx Today at 05:52

» Forumactif Edge - Releases
by Ange Tuteur Yesterday at 11:25

» [GAME] Count to One Million!
by Valoish Wed 13 Dec 2017, 23:23

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

» Numbering of messages in the topic
by SLGray Mon 04 Dec 2017, 22:40

» Support Forums and Social Networks
by SLGray Mon 04 Dec 2017, 22:38

» Browsers & Updates
by Wolfuryo Mon 04 Dec 2017, 15:20

» Logo/Favicon
by Mr_Grande Mon 04 Dec 2017, 09:55

» Broadcasting Duo
by brandon_g Sun 03 Dec 2017, 11:01

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

None

[ 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 : 270
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 : 22
Posts : 4718
Points : 9624
Reputation : 2346
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 : 270
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 : 22
Posts : 4718
Points : 9624
Reputation : 2346
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