group post text style
2 posters
Page 1 of 1
group post text style
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
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
Re: group post text style
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 :
To add classes to a group member, write : groupMod(color, classname)
color : The color of the group. ( Users and Groups > Groups administration > > 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.
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 > > 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.
Re: group post text style
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
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
Re: group post text style
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
is there any way for me to just style the msg not the title/subject or profile field
Re: group post text style
Of course, you can use the selector added to the parent to select its children. Example :
- Code:
.adminGroup .postbody div { color:red }
Similar topics
» color group post msg
» Changing style text
» Style for post profile
» Need help to change style of post profile and topic
» help with group/member name text and glitter/glow
» Changing style text
» Style for post profile
» Need help to change style of post profile and topic
» help with group/member name text and glitter/glow
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum