Hello!
Please help me. I have a script that changes the design of categories on the forum, but I’m new to scripts and don’t understand how to change a user’s profile in the same way, that is, I want three or four users to have a different background in their profile, while the links in the script, i.e. indicate on which pages the script should work.
The script itself that I install in overal_footer_end before the </ body> tag. Although there is no difference. He also put scripts in the control panel for displaying on all pages. Does not work!
CSS settings:
I take this line
and change the address:
The problem is that when we allow a link to a profile instead of a category, then when I view this page it shows me that there are no changes!
why it happens ? please help me...
Here you just need to correctly put a link to use the script on the desired page. But I dont know how ...
Please help me. I have a script that changes the design of categories on the forum, but I’m new to scripts and don’t understand how to change a user’s profile in the same way, that is, I want three or four users to have a different background in their profile, while the links in the script, i.e. indicate on which pages the script should work.
The script itself that I install in overal_footer_end before the </ body> tag. Although there is no difference. He also put scripts in the control panel for displaying on all pages. Does not work!
- Code:
jQuery(document).ready(function(){
if (jQuery('.nav a').is("[href*='c1-category']")) {
jQuery("img#i_logo").attr('src', 'http://i15.servimg.com/u/f15/17/37/83/89/nddd3310.jpg'),
jQuery("body").addClass("darkbody")
}
else {jQuery("#i_logo").show()
}
});
CSS settings:
- Code:
.darkbody {
background: #35298B url("http://i15.servimg.com/u/f15/17/37/83/89/chbpol10.gif") top center !important;
}
.darkbody .bodyline {
background-color: #1D1D22 !important;
border: 1px solid #666 !important;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 0px 0px 8px #000;
-webkit-box-shadow: 0px 0px 8px #000;
box-shadow: 0px 0px 8px #000;
}
.darkbody #i_logo {
border: 1px solid #666 !important;
}
I take this line
- Code:
if (jQuery('.nav a').is("[href*='c1-category']")) {
and change the address:
- Code:
if (jQuery('.nav a').is("[href*='u9']")) {
The problem is that when we allow a link to a profile instead of a category, then when I view this page it shows me that there are no changes!
why it happens ? please help me...
Here you just need to correctly put a link to use the script on the desired page. But I dont know how ...
Last edited by Storyteller of Wonderland on June 6th 2019, 6:38 pm; edited 1 time in total