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 ] Script Compatibility with Themes
Topic Started: Nov 22 2013, 08:31 AM (296 Views)
PMB30
Member
[ *  * ]
Board Address: http://s9.zetaboards.com/MRW_Forums/index/
Board Software: ZetaBoards
Description: I have just installed the BlueLine Mobile theme which is brilliant as our members have been requesting a compatible mobile theme for a while. However to get it working I've had to remove the following coding. Could anyone advise how I put the coding into the existing default theme please?

Above
Quote:
 
<script type="text/javascript">
////////////////////////////////////
// Inbox Flasher 1.0 //
// By Choco of ZB Support //
// June 4th, 2008 //
///////////////////////////////////

color = [];
interval = 300; //Flash rate in milliseconds
color[0] = "white"; //Color one
color[1] = "red"; //Color two -- script flashes between these two

l=0;function flash() {z=$("#menu_pm a")[0];$(z).css("color",color[l]);l=(0-l)+1;}
$(function(){$("#menu_pm a").each(function() {x=$(this).html();if(x.match(/small\>(\d+)</gi)) {y=RegExp.$1;if(y>0){q=setInterval("flash()",interval);$(this).attr("id","flash");}}});});
</script>


Below
Quote:
 
<script type="text/javascript" >
/* Display Image Uploads as Thumbnails
Created by Nicolas of Zathyus Networks */
$(function () {
var thumbstyle = "margin-top: 2px; max-width: 480px; max-height: 640px;"
var iconimg = '<img alt="Attachment:" src="http://z3.ifrm.com/static/1/attach.png"/>'
$("dl.c_post-attachment a[href$=.apng], dl.c_post-attachment a[href$=.ico], dl.c_post-attachment a[href$=.bmp], dl.c_post-attachment a[href$=.gif], dl.c_post-attachment a[href$=.png], dl.c_post-attachment a[href$=.jpg], dl.c_post-attachment a[href$=.jpeg]").each(function () {
var image = $(this).attr('href');
$(this).html(iconimg+'<img src="' + image + '" style="'+thumbstyle+'" title="Uploaded Image" alt="Uploaded Image" />');
});
});
</script>

<script type="text/javascript" >
/* Coded by Nicolas of ZNR and HNZ */
/* <![CDATA[ */
function newmarker(forumid,newposts,nonew) {
$(".c_forum strong a[href*="+forumid+"]").closest('td').prev().children('img').attr('src',nonew);
$(".c_forum strong a[href*="+forumid+"]").closest('td').prev().children('a').children('img').attr('src',newposts);
}
newmarker('3002683/' , 'http://www.miniaturerailwayworld.co.uk/images/mrwngnew.jpg' , 'http://www.miniaturerailwayworld.co.uk/images/mrwngold.jpg');
newmarker('3002585/' , 'http://www.miniaturerailwayworld.co.uk/images/mrw725new.jpg' , 'http://www.miniaturerailwayworld.co.uk/images/mrw725old.jpg');
newmarker('3002587/','http://www.miniaturerailwayworld.co.uk/images/mrw1025new.jpg','http://www.miniaturerailwayworld.co.uk/images/mrw1025old.jpg');
newmarker('3009461/','http://www.miniaturerailwayworld.co.uk/images/mrweventsnew.jpg','http://www.miniaturerailwayworld.co.uk/images/mrweventsold.jpg');
newmarker('2752/','http://www.miniaturerailwayworld.co.uk/images/mrwconstructionnew.jpg','http://www.miniaturerailwayworld.co.uk/images/mrwconstructionold.jpg');
newmarker('2751/','http://www.miniaturerailwayworld.co.uk/images/mrwmodellingnew.jpg','http://www.miniaturerailwayworld.co.uk/images/mrwmodellingold.jpg');
newmarker('2749/','http://www.miniaturerailwayworld.co.uk/images/mrwsalenew.jpg','http://www.miniaturerailwayworld.co.uk/images/mrwsaleold.jpg');
newmarker('2750/','http://www.miniaturerailwayworld.co.uk/images/mrwsalenew.jpg','http://www.miniaturerailwayworld.co.uk/images/mrwsaleold.jpg');
newmarker('2735/','http://www.miniaturerailwayworld.co.uk/images/mrwnewsnew.jpg','http://www.miniaturerailwayworld.co.uk/images/mrwnewsold.jpg');
newmarker('2754/','http://www.miniaturerailwayworld.co.uk/images/mrwmrmtnew.jpg','http://www.miniaturerailwayworld.co.uk/images/mrwmrmtold.jpg');
newmarker('2755/','http://www.miniaturerailwayworld.co.uk/images/mrwfriendsnew.jpg','http://www.miniaturerailwayworld.co.uk/images/mrwfriendsold.jpg');
newmarker('2723/' , 'http://www.miniaturerailwayworld.co.uk/images/mrwintronew.jpg' , 'http://www.miniaturerailwayworld.co.uk/images/mrwintroold.jpg');
/* ]]> */
</script>
<script type="text/javascript">
if ($.zb.logged_in === true) {
$('tr.c_info').hide();
$('div[id*="cat"] td.c_mark, td.c_forum').removeAttr('rowspan');
$('td.c_subforum').attr('colspan', '2');
}
</script>
<script type="text/javascript">
if ($.zb.logged_in === false) {
$('tr.c_info').hide();
$('div[id*="cat"] td.c_mark, td.c_forum').removeAttr('rowspan');
$('td.c_subforum').attr('colspan', '2');
}
</script>
<style type="text/css"><!--
/*
Facebook Style Like/Dislike System for ZetaBoards v1.0
Copyright 10-29-10 ~Wonder
May not be reposted anywhere
Place in the Below the Board section of the Board Template
*/
.likebg {background-color: #eaeaea;}
--></style>

<script>
//The Buttons are what you click to like/dislike a post, the Icons are what are shown next to the users who like/dislike a post
likeImageButtonURL="http://z1.ifrm.com/0/1/0/p408628/likeZB.png";
likeImageIconURL="http://img299.imageshack.us/img299/7645/thumbsupgreenr.gif";
dislikeImageButtonURL="http://img411.imageshack.us/img411/2557/zbdislike.png";
dislikeImageIconURL="http://img299.imageshack.us/img299/9333/thumbsdownrede.gif";

//Set to true if you want to disable Liking
disableLike=false;

//Set to true if you want to disable Disliking
disableDislike=false;

//If you want to change the word 'Like' to something else, edit these strings.
likeText=["Like","Likes","like this","likes this","Unlike"];

//If you want to change the word 'Dislike' to something else, edit these strings.
dislikeText=["Dislike","Dislikes","dislike this","dislikes this","Undislike"];
</script>
<script src="http://ifzblike.appspot.com/static/zblike.js"></script>


Copyright
Quote:
 
<script type="text/javascript">
//<![CDATA[
$("#submenu a:contains('Portal')").remove();
//]]>
</script>


Menu
Quote:
 
<script type="text/javascript" language="JavaScript1.2">
/*
* Add links to submenu by Zefer
* Made November 2007
*/var links=[]
links[links.length]=["Youtube Channel", "http://www.youtube.com/miniaturerailwaywrld"]

for(i=0;i<links.length;i++){
document.getElementById("submenu").innerHTML += "<a href='" +links[1]+ "'>" +links[0]+ "</a>"
}

</script>
<script type="text/javascript" language="JavaScript1.2">
/*
* Add links to submenu by Zefer
* Made November 2007
*/var links=[]
links[links.length]=["Miniature Railway World Website", "http://www.miniaturerailwayworld.co.uk"]

for(i=0;i<links.length;i++){
document.getElementById("submenu").innerHTML += "<a href='" +links[1]+ "'>" +links[0]+ "</a>"
}

</script>


Thanks in advance!
Offline Profile Goto Top
 
Ferby
Member Avatar
Developer
[ *  *  *  *  * ]
If you only have the two themes (The mobile and your default theme) then you can stick the codes in the default theme's layout. The above code would go just above <!-- BOARD --> whilst the below code goes under <!-- BOARD -->. I'm not entirely sure where the codes that belong in the copyright section would go but the menu codes goes just under <!-- MENU -->. Hope that made sense to you :P
Offline Profile Goto Top
 
Moonface
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