We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Restrict access to skins on webpages.
Topic Started: Nov 19 2011, 02:05 AM (490 Views)
camaro
Member
[ *  * ]
Board Address: www.sonicblast.org
Board Software: ZetaBoards
Description: I have tons of skins for my forum and I have a website created through the website maker but I don't have time to create different graphics and styles for the website using each and every skin. I would like a code that, while using the website, prevents them from seeing the skin selector and forces them to the default skin.
Edited by camaro, Nov 19 2011, 02:07 AM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
if (location.href.indexOf('/pages/site') !== -1) {
default_theme = "Spin Slash (Default)";

if(location.href.match("/")){
if($("#setskin option:selected").html() != default_theme){
$("#setskin").val($("#setskin option:contains("+default_theme+")").val()).parent().submit();
} else {
$("#setskin").parent().html("Theme: <em>"+default_theme+"</em>");
}
}
}
</script>
Offline Profile Goto Top
 
camaro
Member
[ *  * ]
Works very well. Is there any way to make it so when you go back to the forum that it goes back to the skin you were using? If not that's cool, thank you very much for this code. :)
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Sorry, I'm not quite sure how to fix that from happening. I wouldn't even know how to do your original request, but I found the code.
Offline Profile Goto Top
 
Brendan
Member Avatar


Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic