Script help and forum help
3 posters
Page 1 of 1
Script help and forum help
1) How do I disable users just changing colors of their forum post text? For example, hey have all the RICH/HTML Text Editor features, but they just can't change text color.
2) What's a code that will make users in the Administrator and Moderator group (those are the exact group names on my forum) have red text on the forum? Ex. Any text users of these groups will post will be red. This is only supposed to appear on messages and forum topics posted by the user.
2) What's a code that will make users in the Administrator and Moderator group (those are the exact group names on my forum) have red text on the forum? Ex. Any text users of these groups will post will be red. This is only supposed to appear on messages and forum topics posted by the user.
Re: Script help and forum help
I dont think that is possible. I have tried myself but i cant figure it out.
Re: Script help and forum help
I was thinking what if after you make a post or edit the post, the script would detect if you're in the Moderator or Administrator group. If you are, then it edits and changes all the post text to red, if you're not, it changes all the post text to black.vaccam wrote:I dont think that is possible. I have tried myself but i cant figure it out.
Re: Script help and forum help
That sounds complicated, there i cannot help you. Lets wait and see what a more professional coder comes along.
Sorry that i couldnt help you any futher.
Best regards
Vaccam
Sorry that i couldnt help you any futher.
Best regards
Vaccam
Re: Script help and forum help
That's alright. Thanks for seeing if you could help though. I'm guessing a staff member will be here soon to help.vaccam wrote:That sounds complicated, there i cannot help you. Lets wait and see what a more professional coder comes along.
Sorry that i couldnt help you any futher.
Best regards
Vaccam
Re: Script help and forum help
Hello ThePhantomHourglass,
First you should modify your staff ranks. Go to :
Administration Panel > Users and groups > Ranks > Rank administration
Edit, or create a title, make sure it is special too.
You should wrap your title with these tags :
When finished modifying your staff ranks go to :
Modules > Javascript codes management > create a new script
Title : what you wish
Placement : In the topics
Paste the code below and save :
The color from font tags will be removed for posts. Posts with the rank title that is #Admin will have red color.
Additionally if you wanted to hide the color palette :
Display > Colors > CSS
paste this to hide it :
First you should modify your staff ranks. Go to :
Administration Panel > Users and groups > Ranks > Rank administration
Edit, or create a title, make sure it is special too.
You should wrap your title with these tags :
- Code:
<span id="staffPost">Rank Title</span>
When finished modifying your staff ranks go to :
Modules > Javascript codes management > create a new script
Title : what you wish
Placement : In the topics
Paste the code below and save :
- Code:
$(function() {
$('.post .entry-content font').removeAttr('color');
$('.post:has(#staffPost) .entry-content').attr('style','color:#f00;');
});
The color from font tags will be removed for posts. Posts with the rank title that is #Admin will have red color.
Additionally if you wanted to hide the color palette :
Display > Colors > CSS
paste this to hide it :
- Code:
.sceditor-button-color { display:none !important; }
Re: Script help and forum help
Thanks! It worked!Ange Tuteur wrote:Hello ThePhantomHourglass,
First you should modify your staff ranks. Go to :
Administration Panel > Users and groups > Ranks > Rank administration
Edit, or create a title, make sure it is special too.
You should wrap your title with these tags :
- Code:
<span id="staffPost">Rank Title</span>
When finished modifying your staff ranks go to :
Modules > Javascript codes management > create a new script
Title : what you wish
Placement : In the topics
Paste the code below and save :
- Code:
$(function() {
$('.post .entry-content font').removeAttr('color');
$('.post:has(#staffPost) .entry-content').attr('style','color:#f00;');
});
The color from font tags will be removed for posts. Posts with the rank title that is #Admin will have red color.
Additionally if you wanted to hide the color palette :
Display > Colors > CSS
paste this to hide it :
- Code:
.sceditor-button-color { display:none !important; }
You can mark this as complete and archive now.
Similar topics
» Welcome to the Support Forum script
» How to fix this script to the size of forum
» Suggested Script (Need Someone that can read script)
» Deleted script but still shows on forum
» Script Src
» How to fix this script to the size of forum
» Suggested Script (Need Someone that can read script)
» Deleted script but still shows on forum
» Script Src
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum