The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

group post text style

View previous topic View next topic Go down

Solved group post text style

Post by _Twisted_Mods_ on October 18th 2014, 9:58 pm

ok what i want to do is style each groups text when they make a post


example

if i posted a msg and im in the admin group

my font would look like this

if posible i want this done 2 ways so i can see what one i want

1: style only new post of that group
2:style all post that was ever made by that group

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: group post text style

Post by Ange Tuteur on October 19th 2014, 12:56 am

Hello thetwistedkilla,

This is for phpbb2, correct ?

Thanks

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: group post text style

Post by _Twisted_Mods_ on October 19th 2014, 1:21 am

yes mam

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: group post text style

Post by Ange Tuteur on October 19th 2014, 7:35 am

You can do this to add a classname to the post of a group member :

Administration Panel > Modules > JavaScript codes management > Create a new script

Title : Your choice
Placement : In the topics
Paste the code below :
Code:
$(function() {
 groupMod('#A200FF', 'adminGroup');
 
 function groupMod(color, classname) {$('.post:has(strong a span[style="color:'+color+'"] strong)').addClass(classname).next().addClass(classname)}
});

To add classes to a group member, write : groupMod(color, classname)

color : The color of the group. ( Users and Groups > Groups administration > Edit > Group members color )

classname : The class that you want to add to their posts.


From there you can use the classname added to modify the post content of that group.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: group post text style

Post by _Twisted_Mods_ on October 19th 2014, 1:48 pm

ok this is my setup

group:Administrators
color of the group:#88FF00
class name i wanna edit with css: admin_msg

can u give me an example using that because its a lil confusing for me

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: group post text style

Post by _Twisted_Mods_ on October 19th 2014, 2:44 pm

ok i got it to work but it styles everything in the post the profile field the title and the messge..

is there any way for me to just style the msg not the title/subject or profile field

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: group post text style

Post by Ange Tuteur on October 20th 2014, 1:04 am

Of course, you can use the selector added to the parent to select its children. Example :
Code:
.adminGroup .postbody div { color:red }

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: group post text style

Post by _Twisted_Mods_ on October 20th 2014, 3:00 am

ty ange that worked

Topic Solved

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: group post text style

Post by Ange Tuteur on October 20th 2014, 3:41 am

You're welcome

Topic archived

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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