Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [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
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [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
Recent Tutorials
Top posting users this month
Top Achievers
Who is online?
In total there are 19 users online :: 0 Registered, 0 Hidden and 19 Guests :: 2 Bots
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
[SOLVED] Custom color posts for staff members
Page 1 of 2 • Share
Page 1 of 2 • 1, 2
I noticed that on this forum different staff members have different colored bars on top of their posts
Ex: xxx | xxx | xxx
I know that this is doable using the tutorial/thread that was already posted: Here
This is doable according to Groups (Admin, Mod, Designer, etc) but I was wondering if there's a way to get specific staff members to each have their own colored post.
For example, on my forum (which is version phpBB2), my staff tag is a pink Admin tag and I would like to have a pink bar on my post to match it. But then the other 2 Admins that we have on the forum have a mint Admin tag, and a purple Admin tag and they also want their post colors to match their tags. Would this be doable? Or can it only be done according to groups?
Also posted the thread here
Ex: xxx | xxx | xxx
I know that this is doable using the tutorial/thread that was already posted: Here
This is doable according to Groups (Admin, Mod, Designer, etc) but I was wondering if there's a way to get specific staff members to each have their own colored post.
For example, on my forum (which is version phpBB2), my staff tag is a pink Admin tag and I would like to have a pink bar on my post to match it. But then the other 2 Admins that we have on the forum have a mint Admin tag, and a purple Admin tag and they also want their post colors to match their tags. Would this be doable? Or can it only be done according to groups?
Also posted the thread here
Last edited by Valoish on Tue 26 Jul 2016, 10:51; edited 2 times in total
Hi @Valoish and welcome to FM Design !
Yes, what you're asking for is absolutely possible. If it's alright with you, I'll write up a script tomorrow to do what you're requesting. I'm going to bed soon, and if I start coding now I probably wont be going to bed at all -- I get carried away like that. xD
Have a good night, and see you tomorrow.
Yes, what you're asking for is absolutely possible. If it's alright with you, I'll write up a script tomorrow to do what you're requesting. I'm going to bed soon, and if I start coding now I probably wont be going to bed at all -- I get carried away like that. xD
Have a good night, and see you tomorrow.
Thanks @Ange Tuteur!
Awesome, that's great to hear~ And that's perfectly fine, I don't mind waiting at all. c: I know the feeling about coding LOL. I get that way with Graphic/Web Design and sometimes Web Development so I totally get it.
You too! And thanks again for taking a look at my topic so quickly. ^^
Awesome, that's great to hear~ And that's perfectly fine, I don't mind waiting at all. c: I know the feeling about coding LOL. I get that way with Graphic/Web Design and sometimes Web Development so I totally get it.
You too! And thanks again for taking a look at my topic so quickly. ^^
@Valoish good morning,
I put together a script which will add a unique class to each post based on the member's id. To install it, go to Admin Panel > Modules > JavaScript codes management and create a new script with the following settings.
Placement : In the topics
Paste the content below and save the newly created script.
Once this is installed, all posts should now have a unique class name like this : .u{ID}_post
Where {ID} is the user's id. For example, my user id is "1" so my posts will have the class .u1_post, which allows me to style my post individually with CSS. I'll give you an example rule using your user id on your forum. Add this rule to your stylesheet :
Display > Colors > CSS stylesheet
If you don't know where to find a user's id, go to their profile page and look at the address bar. The user's id will be directly after the "u" :
You can also see it in the URL preview in the bottom left ( or right ) when you hover over the direct user link.
If you have any questions let me know.
I put together a script which will add a unique class to each post based on the member's id. To install it, go to Admin Panel > Modules > JavaScript codes management and create a new script with the following settings.
Placement : In the topics
Paste the content below and save the newly created script.
- Code:
$(function() {
for (var a = $('.name'), i = 0, j = a.length, link; i < j; i++) {
link = $('a[href^="/u"]', a[i])[0];
if (link) {
$(a[i]).closest('.post').addClass('u' + link.href.replace(/.*?u(\d+).*/, '$1') + '_post');
}
}
});
Once this is installed, all posts should now have a unique class name like this : .u{ID}_post
Where {ID} is the user's id. For example, my user id is "1" so my posts will have the class .u1_post, which allows me to style my post individually with CSS. I'll give you an example rule using your user id on your forum. Add this rule to your stylesheet :
Display > Colors > CSS stylesheet
- Code:
.u132_post > td {
border-top:12px solid pink;
}
If you don't know where to find a user's id, go to their profile page and look at the address bar. The user's id will be directly after the "u" :
You can also see it in the URL preview in the bottom left ( or right ) when you hover over the direct user link.
If you have any questions let me know.
@Ange Tuteur Good morning c:
Gonna give this a try now and let you know if I run into any issues. ^^
Thank you~
Gonna give this a try now and let you know if I run into any issues. ^^
Thank you~
No changes ; A;
I made a new JS file called "Colored Posts"
Then I added the CSS you provided and pasted it at the bottom of my forum's CSS file but there was no change. I tried pasting the CSS at the very top but still nothing changed ><
I made a new JS file called "Colored Posts"
Then I added the CSS you provided and pasted it at the bottom of my forum's CSS file but there was no change. I tried pasting the CSS at the very top but still nothing changed ><
I just checked the console on your forum and I noticed an error which may be blocking the new script I gave you. Try editing... "Toolbar BG Test" and see if it has the following content ( or similar to it ) :
If it does, delete that script and add the contents to the stylesheet, if you want. It's CSS which is why it's causing an error in JS codes management.
- Code:
#fa_share{display:none!important}#fa_toolbar,#fa_toolbar_hidden{background:url('http://i.imgur.com/JIAW2JG.png')}
If it does, delete that script and add the contents to the stylesheet, if you want. It's CSS which is why it's causing an error in JS codes management.
@Valoish, sorry for the late reply, but we're getting there ! Unfortunately I found another error. Check the "No Share" script to see if it has this content :
Hopefully after that all the errors will be cleared up and the script I gave you will work.
- Code:
#fa_share{display:none!important}
Hopefully after that all the errors will be cleared up and the script I gave you will work.
Getting closer, just a little more it looks like.
Check one of the topic icon scripts for these texts and delete them :
Check one of the topic icon scripts for these texts and delete them :
- Code:
This will add an extra field below the description field for URLs+it will also parse the icons in the topic list.
^ Updated that bit, I am working with @Valoish on our forum.
LOL. I left the text in there from earlier this week. #^_^# Sorry!
Still not seeing pink, sadly. ;.;
LOL. I left the text in there from earlier this week. #^_^# Sorry!
Still not seeing pink, sadly. ;.;
@HaeDoesGraphics hey welcome !
I think we're on the final boss, do you have a script like this in JS codes management ?
If so, at the very end of the script add a semi-colon : ; because it's missing one and seems to be conflicting with a script after it.
Semi-colons are like periods in a sentence, in programming. If you miss one everything explodes.
I think we're on the final boss, do you have a script like this in JS codes management ?
- Code:
$(document).ready(function() {
$.getScript('https://raw.github.com/lokesh/lightbox2/master/js/lightbox.js')
});
$(function() {
$('input[name="description"]').change(function() {
var ValidFileExtension = ['jpg', 'JPG', 'jpeg', 'JPEG', 'png', 'PNG', 'gif', 'GIF', 'bmp', 'BMP'];
if ($.inArray($(this).val().split('.').pop().toLowerCase(), ValidFileExtension) == -1) {
alert("Sorry, the allowed file extensions are: '.jpeg','.jpg', '.png', '.gif', '.bmp'")
}
})
})
If so, at the very end of the script add a semi-colon : ; because it's missing one and seems to be conflicting with a script after it.
Semi-colons are like periods in a sentence, in programming. If you miss one everything explodes.
Hai @HaeDoesGraphics <3
@Ange Tuteur You are honestly a genius! It works now!
Just one tiny last thing before this thread is 100% resolved;
There's a little white line between the member details box and the member post
I have a feeling this can be solved using CSS, but I'd rather not mess with the code before I break something ; A;
@Ange Tuteur You are honestly a genius! It works now!
Just one tiny last thing before this thread is 100% resolved;
There's a little white line between the member details box and the member post
I have a feeling this can be solved using CSS, but I'd rather not mess with the code before I break something ; A;
HUZZAH ! Debugger XP +50
Those lines are "border-spacing" in the table layout. You can remove them globally with this css rule :
They can commonly be mistaken for borders when there's a background behind the table cells. So it's a good thing to know when working with tables.
Those lines are "border-spacing" in the table layout. You can remove them globally with this css rule :
- Code:
.forumline { border-spacing:0; }
They can commonly be mistaken for borders when there's a background behind the table cells. So it's a good thing to know when working with tables.
@Ange Tuteur More like Debugger XP +100 LOL.
And it's all perfect now~!
Thank you so much for all your help! Both @HaeDoesGraphics and I really appreciate it. ^^
I'll play around with the colors, and possibly other attributes as well, to see what can and can't be added in.
Edit; That gif is her in real life right now, I'm sure LOL.
And it's all perfect now~!
Thank you so much for all your help! Both @HaeDoesGraphics and I really appreciate it. ^^
I'll play around with the colors, and possibly other attributes as well, to see what can and can't be added in.
Edit; That gif is her in real life right now, I'm sure LOL.
- Sponsored content
Page 1 of 2 • 1, 2
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 2
Permissions in this forum:
You cannot reply to topics in this forum