You are not connected. Please login or register

Staff bar header color according to group color

Page 1 of 2 Go to page : 1, 2  Next

Anonymous

Guest

Guest

PostGuest Tue Feb 22, 2022 2:08 pm

How to make it?


Last edited by The sea on Sun Feb 27, 2022 7:15 pm; edited 1 time in total
Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Tue Feb 22, 2022 2:13 pm

It's already like that for the first post in a topic.

Staff bar header color according to group color NpnUVUZ

Do you want it like that for all posts?
Anonymous

Guest

Guest

PostGuest Tue Feb 22, 2022 2:25 pm

Problem still there
Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Tue Feb 22, 2022 2:32 pm

Right right. I can do that, but I won't have time until tomorrow.
Anonymous

Guest

Guest

PostGuest Tue Feb 22, 2022 2:35 pm

Ok, i will wait till then.
Anonymous

Guest

Guest

PostGuest Wed Feb 23, 2022 12:15 pm

Ok, it is unnecessary to keep topic title in every post. But can you make staff post header bar color accordinhbto group color please?
Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Wed Feb 23, 2022 12:19 pm

Like this?

Staff bar header color according to group color HWP1sca
Anonymous

Guest

Guest

PostGuest Wed Feb 23, 2022 12:22 pm

No, let me know show you screensshot below
Staff bar header color according to group color 20220216


Last edited by The sea on Sun Feb 27, 2022 7:18 pm; edited 1 time in total
Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Wed Feb 23, 2022 12:25 pm

That's just a rank image. You can add them yourself through Users & groups -> Rank administration in the Admin Panel.
Anonymous

Guest

Guest

PostGuest Wed Feb 23, 2022 12:29 pm

It is not rank image but staff color take the color of it't bar color
Anonymous

Guest

Guest

PostGuest Wed Feb 23, 2022 12:32 pm

I used
Code:
.post {
    margin-bottom: .75rem;
}

To make some space between two post. Now it is time to give code for staff header color but it is only working for phpbb3 forum. I don't know code fpr punbb
Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Wed Feb 23, 2022 12:33 pm

Aha, I didn't even see that red bar. I don't know how to get the right color with PunBB, so you'll have to ask someone who knows Forumotion better than me. Try FMCodes.
Anonymous

Guest

Guest

PostGuest Wed Feb 23, 2022 12:37 pm

Can i show you the java script code for it?
Anonymous

Guest

Guest

PostGuest Wed Feb 23, 2022 12:39 pm

This is the code for it
Code:
(function($) {
    'use strict';
 
  $('<style>').text([
    '.fa-post-staff {',
    '  border-top: 12px solid;',
    '}',
  ].join('\n'))
    .appendTo('head');
 
    $(function() {
        if (!/^\/t(\d+)(p\d+-|-).*$/i.test(location.pathname)) return;
        $('.post').each(function() {
            var $post = $(this);
            var $name = $post.find('.postprofile strong[style] > a[href] > span[style]');
            if (!$name.length) return;
            if (!$name.css('color')) return;
            $post.addClass('fa-post-staff').css('border-top-color', $name.css('color'));
        });
    });
})(jQuery);
Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Wed Feb 23, 2022 12:43 pm

Thanks. Fixed for PunBB now.
Anonymous

Guest

Guest

PostGuest Wed Feb 23, 2022 12:45 pm

Wow, thanks, could you teach me, how to fix it?😁
Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Wed Feb 23, 2022 12:46 pm

That would take some time! It doesn't seem that you have much knowledge of HTML, CSS or JS, so I suggest you start learning the basics first before I explain a complicated piece of code! Smile
Anonymous

Guest

Guest

PostGuest Wed Feb 23, 2022 12:52 pm

Ok. Staff bar header color according to group color 1f600 so if i used this code for another punbb forum then i should copy it from java management, right?
Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Wed Feb 23, 2022 12:53 pm

The sea wrote:Ok. Staff bar header color according to group color 1f600 so if i used this code for another punbb forum then i should copy it from java management, right?

Yep. And it's JavaScript management! Java is an entirely different coding language Very Happy
Anonymous

Guest

Guest

PostGuest Wed Feb 23, 2022 12:57 pm

Can you change the color #23- posted by and today at 11:53 am and move the multi quote, quote, edit on the top? It should be more lighter. It is hard to find out these buttons
Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Wed Feb 23, 2022 1:02 pm

The sea wrote:Can you change the color #23- posted by and today at 11:53 am and move the multi quote, quote,  edit on the top? It should be more lighter. It is hard to find out these buttons

  1. Regarding the post time color: find me a color and I'll do it.
  2. Posting buttons: I can move them, yes. But are you talking about the buttons when you say "It should be more light"
  3. Please, for the love of god, post a new topic per issue. Here you posted two NEW issues, in a topic about a DIFFERENT issue. Instead you should post one topic for moving the buttons and one topic for the color of the post time text. This makes it much easier for me to help you and understand what you need.
Anonymous

Guest

Guest

PostGuest Wed Feb 23, 2022 1:05 pm

Ok then close the topic. I had more three issue i will open new, thanks
Anonymous

Guest

Guest

PostGuest Sun Feb 27, 2022 7:13 pm

Admin wrote:Thanks. Fixed for PunBB now.


This is the script
Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Thu Mar 03, 2022 2:54 am

Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Thu Mar 03, 2022 2:58 am

@Admim

Sponsored content

PostSponsored content

Go to page : 1, 2  Next

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