Does the "Administrator Panel"-link have a CSS-name?
5 posters
Page 1 of 1
Does the "Administrator Panel"-link have a CSS-name?
Hello,
I just added a "return to top"-button below this very link, but the space between them is too much.
If this link has a CSS-code, then I think I could fix this issue with "margin-bottom".
But if not, how can I fix this?
Thanks.
I just added a "return to top"-button below this very link, but the space between them is too much.
If this link has a CSS-code, then I think I could fix this issue with "margin-bottom".
But if not, how can I fix this?
Thanks.
Re: Does the "Administrator Panel"-link have a CSS-name?
- Code:
.copyright {
margin-bottom: -15px;
}
Razor12345- Support Moderator
- Posts : 1583
Reputation : 268
Language : Ukr, Rus, Eng
Location : Ukraine
Re: Does the "Administrator Panel"-link have a CSS-name?
Hey,
I tried that code before. Putting "-35px" moves the icon to the perfect spot. But, because regular members don't have the "admin link", this code moves the icon up too much for them.
If you go have a look, you will see that the icon is way to high up for you, even if it is in the perfect spot for me.
Any ideas?
I tried that code before. Putting "-35px" moves the icon to the perfect spot. But, because regular members don't have the "admin link", this code moves the icon up too much for them.
If you go have a look, you will see that the icon is way to high up for you, even if it is in the perfect spot for me.
Any ideas?
Re: Does the "Administrator Panel"-link have a CSS-name?
Unfortunately, I can offer you only JS code. In it we check - if there is a link to the admin panel, then we add one margin, if not - another.
AP - Display - Templates - General - overall_footer_end
At the end of template, insert this code:
In this line the parameter of margin if there is a link to the admin panel
In this line the parameter of margin if there is no link to the admin panel
The code is worked, when the page is fully loaded.
Remove the codes you inserted in the CSS.
AP - Display - Templates - General - overall_footer_end
At the end of template, insert this code:
- Code:
<script>
window.addEventListener('load',function() {
let btnTop = document.querySelector('.copyright strong a');
if (btnTop) {
document.querySelector('.copyright').style.marginBottom = '-35px';
} else { document.querySelector('.copyright').style.marginBottom = '-5px';
}
});
</script>
In this line the parameter of margin if there is a link to the admin panel
- Code:
document.querySelector('.copyright').style.marginBottom = '-35px';
In this line the parameter of margin if there is no link to the admin panel
- Code:
} else { document.querySelector('.copyright').style.marginBottom = '-5px';
The code is worked, when the page is fully loaded.
Remove the codes you inserted in the CSS.
Razor12345- Support Moderator
- Posts : 1583
Reputation : 268
Language : Ukr, Rus, Eng
Location : Ukraine
sivastar, TonnyKamper and Friendly Toucan like this post
Re: Does the "Administrator Panel"-link have a CSS-name?
Hello.
I use this CSS in my forum to modify the Administration Panel link:
I use this CSS in my forum to modify the Administration Panel link:
- Code:
p.copyright strong a {
YOUR PROPERTIES HERE
}
Friendly Toucan likes this post
Re: Does the "Administrator Panel"-link have a CSS-name?
Hello again,
Very, very cool. The only problem is that this only changes the icon on the main page. On all other pages it is still a bit messed up. Thoughts?
Cool, tried this, but couldn't find any good results with it.
Razor12345 wrote:The code is worked, when the page is fully loaded.
Remove the codes you inserted in the CSS.
Very, very cool. The only problem is that this only changes the icon on the main page. On all other pages it is still a bit messed up. Thoughts?
YoshiGM wrote:
- Code:
p.copyright strong a {
YOUR PROPERTIES HERE
}
Cool, tried this, but couldn't find any good results with it.
Re: Does the "Administrator Panel"-link have a CSS-name?
You can tell me what do want to do with the administration panel link and i will adapt the code ^^!
Re: Does the "Administrator Panel"-link have a CSS-name?
Very, very cool. The only problem is that this only changes the icon on the main page. On all other pages it is still a bit messed up. Thoughts?
A visual demonstration on my test forum - https://testtesttest.forumotion.me . Everything is working correctly on all pages.
I can't say anything in your case as the forum is closed for guests.
The overall_footer_end template is common to all pages on the forum. It cannot work only on the home page.
Also:
Razor12345 wrote:
The code is worked, when the page is fully loaded.
Remove the codes you inserted in the CSS.
Razor12345- Support Moderator
- Posts : 1583
Reputation : 268
Language : Ukr, Rus, Eng
Location : Ukraine
Re: Does the "Administrator Panel"-link have a CSS-name?
Hey,
There is a large gap between this link and the "return to top"-button that I added below it. If you could somehow close that gap, without affecting regular members who don't see this gap because they don't have that link, then that would be cool.
Thanks.
Edit: I just opened a new thread here:
https://help.forumotion.com/t162061-can-i-change-the-administrator-panel-link-into-my-own-custom-image
If what I'm asking for in this new thread is possible, then I will close this old thread. But if you still have a solution for this thread, I will still check it out.
YoshiGM wrote:You can tell me what do want to do with the administration panel link and i will adapt the code ^^!
There is a large gap between this link and the "return to top"-button that I added below it. If you could somehow close that gap, without affecting regular members who don't see this gap because they don't have that link, then that would be cool.
Thanks.
Edit: I just opened a new thread here:
https://help.forumotion.com/t162061-can-i-change-the-administrator-panel-link-into-my-own-custom-image
If what I'm asking for in this new thread is possible, then I will close this old thread. But if you still have a solution for this thread, I will still check it out.
Last edited by Friendly Toucan on Sun 5 Feb - 10:52; edited 1 time in total
Re: Does the "Administrator Panel"-link have a CSS-name?
if this thread then is solved please mark it as completed
Re: Does the "Administrator Panel"-link have a CSS-name?
skouliki wrote:if this thread then is solved please mark it as completed
Nope, that's not what I wrote. But I will make sure to mark it as such when that is the case.
Also, I have decided to not go for the JS way, because I don't like the look of the way it loads.
So if someone would like to try solving this, then I guess it would have to be tested on a test forum, as I somewhat mentioned in my post above.
Thanks.
skouliki likes this post
Re: Does the "Administrator Panel"-link have a CSS-name?
If this code was working, we can just apply it for admins-only, it that was the problem
Javascript:
Razor12345 wrote:
- Code:
.copyright {
margin-bottom: -15px;
}
Javascript:
- Code:
$(function() {
if(_userdata["user_level"] == 1) {
$('head').append('<style>.copyright { margin-bottom: -15px; }</style>');
}
});
sivastar and Friendly Toucan like this post
Re: Does the "Administrator Panel"-link have a CSS-name?
This problem is now solved, and I'm marking it as such.
Thanks for all the help!
Thanks for all the help!
Niko likes this post
Re: Does the "Administrator Panel"-link have a CSS-name?
Problem solved & topic archived.
|
Similar topics
» administrator panel
» Help About Administrator Panel
» Question about the administrator panel.
» Permissions for Admin Panel usage for a non-Administrator
» Can't find Admin Panel Link
» Help About Administrator Panel
» Question about the administrator panel.
» Permissions for Admin Panel usage for a non-Administrator
» Can't find Admin Panel Link
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum