@phenomlab said in Layout Issues/Transparency:
Does it work properly now?
Yes, it does 🙂
you can see the time section on home page,
but we go to the another page, the time section disappears adn only username written.
how we can fix it?
@cagatay In ACP->/admin/appearance/customise#custom-js
locate the function with the description of
Footer Greeting
Delete these lines
if (window.location.href.indexOf("topic") > -1) {
//console.log("This is a topic, so hide the user welcome message");
bar.removeClass('show');
} else {
$('.getUsername').prepend(themessage);
}
Remove the remark from
// $('.getUsername').prepend(themessage);
So you have just
$('.getUsername').prepend(themessage);
Complete code
// Footer Greeting
$(window).on('action:ajaxify.end', function(data) {
var bar = $('.reading-meter');
function updateUsername() {
$('.getUsername .username').text(app.user.username);
$('.topicUsername').text(app.user.username);
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', updateUsername);
} else {
updateUsername();
}
var thehours = new Date().getHours();
var themessage;
var morning = ('Good morning');
var afternoon = ('Good afternoon');
var evening = ('Good evening');
var matched = false;
$('#getConsent').attr("href", "/user/" + app.user.username + "/consent");
if (thehours >= 0 && thehours < 12) {
themessage = morning;
} else if (thehours >= 12 && thehours < 17) {
themessage = afternoon;
} else if (thehours >= 17 && thehours < 24) {
themessage = evening;
}
$('.getUsername').prepend(themessage);
});
That will enable the message again
@phenomlab thank you Mark.
The mentioned codes are not in my CSS, I think we solved this situation with the widget?
@cagatay said in Rendering issues post migration to Sudonix theme/code:
The mentioned codes are not in my CSS, I think we solved this situation with the widget?
Here :
@phenomlab said in Rendering issues post migration to Sudonix theme/code:
@cagatay In ACP->/admin/appearance/customise#custom-js
@cagatay said in Rendering issues post migration to Sudonix theme/code:
The mentioned codes are not in my CSS, I think we solved this situation with the widget?
This is not CSS - it’s JS, hence ACP->/admin/appearance/customise#custom-js
ah soryy for my mistake
@cagatay dog you get this working eventually?
@phenomlab yes my friend, working correctly.
@cagatay good. Thanks for confirming.
Can we ensure that the section I show in the picture can be hidden after the user reads it once?
@cagatay Not easily without modifying the function itself. The function will look for the end of the thread and append the banner there. It’s possible to place a cookie on the user’s machine, although they will need to dismiss the banner for that to be saved.
One other immediate issue is that the cookie is browser session based, so you would need a unique identifier to determine if the message should be displayed or not - this essentially means that we test for the existence of a stored cookie on chat load and if we find a match, we hide the message.
This will have an impact on performance if you have hundreds of chat messages available, and for that reason, I’d recommend not taking this route.
got the point Mark, thank you for your explanation.
Hi,
How can i change those areas colors to white one?
Try your browser’s developer tools to try to find the codes that interest you
To test & adapt because I searched very quickly :
.skin-noskin .composer {
background-color: #xxxxxx !important;
color: #xxxxxx !important;
}
.bootstrap-tagsinput, .form-control {
background-color: #xxxxxx;
border: 1px solid var(--bs-border-color);
color: var(--bs-body-color);
}
.bootstrap-tagsinput, .form-control {
background-color: var(--bs-card-cap-bg);
border: 1px solid var(--bs-border-color);
color: var(--bs-body-color);
}
.composer .tags-container .bootstrap-tagsinput {
background: #xxxxxx;
}
@cagatay As you are using the Sudonix themes, find
.bootstrap-tagsinput, .form-control
And replace it with this
.bootstrap-tagsinput, .form-control {
background-color: var(--bs-body-bg) !important;
border: 1px solid var(--bs-border-color);
color: var(--bs-body-color);
}
And, find
.composer .tags-container .bootstrap-tagsinput input
Replace the block with
.composer .tags-container .bootstrap-tagsinput input, ::placeholder {
color: var(--bs-body-color-muted) !important;
}
thank you Mark.
By the way, gif is not working i dont know why?
For example;
@cagatay said in Rendering issues post migration to Sudonix theme/code:
By the way, gif is not working i dont know why?
It not that it doesn’t work - you have included a link to an image, which OGProxy tries to render but won’t because it’s an image and not a site URL as such.
For “Giphy” type images, you should use the button and select an image from there - for example
so i dont have any gif section and also mine is not similar as yours.
@cagatay because you don’t have the giphy extensuon installed.