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 ] Different skins for pages in Website Maker?
Topic Started: Jul 26 2017, 06:12 PM (573 Views)
UpChuck
Member
[ * ]
Board URL: http://s1.zetaboards.com/FFC/index/

Curious if it's possible to force a webpage (made in website maker) to use a different skin rather than the default skin
Offline Profile Goto Top
 
Revillution.net
Member
[ *  *  * ]
It is, you can use this code:


Above the Board

Full code:

Code:
 
<script type="text/javascript">
$(function () {
$themeswitch = $('select[name="setskin"]').closest("form");
$themeswitch.submit(function (a) {
a.preventDefault();
$.post($.zb.stat.url + "index/?force_ads", $themeswitch.zb_serialize({
r: "/index"
}), function (b) {
window.location.reload()
})
});

var default_theme = "Theme Name Here";
if (location.href.indexOf('/pages') !== -1) {
var selected_theme = $.trim($("#setskin option:selected").text());
if (selected_theme != default_theme) {
$.zb.cookie.set("original_theme", $("#setskin").val(), 1);
$("#setskin").val($("#setskin option:contains('" + default_theme + "')").val());
$themeswitch.submit();
}
} else {
if ($.zb.cookie.get("original_theme")) {
$("#setskin").val($.zb.cookie.get("original_theme"));
$.zb.cookie.del("original_theme");
$themeswitch.submit();
}
}
});
</script>



Note: This also fixes the skin selector bug.
Edited by Revillution.net, Jul 27 2017, 01:37 AM.
Offline Profile Goto Top
 
UpChuck
Member
[ * ]
Thanks! I tried using the code and the code changes pretty much everything on the forum. What text in the code do I need to change besides "Theme Name Here" ?
Offline Profile Goto Top
 
UpChuck
Member
[ * ]
Can anyone help?
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Put the code on the specific Website Maker page you want to apply the theme change to, not the Above the Board section of the Board Template.
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

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