- Code:
.pun .postmain .user {
display: none!important;
}
Is it possible and where will I add it? in my Template viewtopic_body?
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
.pun .postmain .user {
display: none!important;
}
<!-- BEGIN switch_user_logged_out --><div class="logged-out">
Content here
</div>
<!-- END switch_user_logged_out -->
.logged-out {
}
<!-- BEGIN switch_user_logged_out --><div class="logged-out">
.pun .postmain .user {
display: none!important;
}
</div>
logged-out {
}
<!-- BEGIN switch_user_logged_out -->
<div class="logged-out">
This is the text that will saw by the users who are not yet logged in.
</div>
<!-- END switch_user_logged_out -->
.logged-out {
// Put the styles here
}
.logged-out {
.pun .postmain .user {
display: none!important;
}
}
.logged-out {
.pun .postmain .user {
display: none!important;
}
}
<!-- BEGIN switch_user_logged_out -->
<div class="logged-out">
This is the text that will saw by the users who are not yet logged in.
</div>
<!-- END switch_user_logged_out -->
<!-- BEGIN switch_user_logged_in -->
<div class="logged-out">
This is the text that will saw by the users who logged in and will not be visible to users who are logged out.
</div>
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_in -->
This is the text that will saw by the users who logged in and will not be visible to users who are logged out.
<!-- END switch_user_logged_in -->
jQuery(document).ready(function(){
if(!jQuery('#logout')){
jQuery('.pun .postmain .user').each(function(){
jQuery(this).replaceWith('<span style="font-weight: bold; color: #ff1010; text-align: center;">You must be logged in to view this content.</span>');
});
}
});
jQuery(document).ready(function(){
if($('a[href="/register"]')){
$('.pun .postmain .user').each(function(){
$(this).replaceWith('<span style="text-align: center; color: #ff1010; font-weight: bold; text-decoration: underline;">You must be registered and logged in to view this content.</span>');
});
}
});
jQuery(document).ready(function(){
if($('a[href="/register"]')){
$('.pun .postmain .user').each(function(){
$(this).replaceWith('<span style="text-align: center; color: #ff1010; font-weight: bold; text-decoration: underline;">You must be registered and logged in to view this content.</span>');
});
}
});
thefirstdanshin wrote:yes sir, Even registered users see the "You must be logged in.."
- Code:
jQuery(document).ready(function(){
if($('a[href="/register"]')){
$('.pun .postmain .user').each(function(){
$(this).replaceWith('<span style="text-align: center; color: #ff1010; font-weight: bold; text-decoration: underline;">You must be registered and logged in to view this content.</span>');
});
}
});
this works perfectly sir, only registered users see it also...
EDIT: Oh sorry for the trouble sir, thank you for helping Topic Solved
$(document).ready(function(){
if($('img#i_icon_mini_login')){
$('.pun .postmain .user').each(function(){
$(this).replaceWith('<span style="text-align: center; color: #ff1010; font-weight: bold; text-decoration: none !important;">You must be registered and logged in to view this content.</span>');
});
}
});
Topic Solved & Locked |