The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Changing skin?

View previous topic View next topic Go down

In progress Changing skin?

Post by Alan Barry on August 1st 2015, 7:09 pm

Has anyone seen this topic ? http://help.forumotion.com/t133402-concise-ipb-theme-for-forumotion-punbb ?

Well, I followed the instructions and this is the result on my tester page. Clearly, the result isn't good - http://asdasd.forumotion.co.uk/

The tutorial isn't very clear, especially with what the download included.

Do any of you know where these go?

(These are marked as Javascript Management in the download files)

Code:
$(document).ready(function(){
if (location.pathname == "/forum"){
$('#nav_app_forums').addClass('active');
}
if (location.pathname == "/"){
$('#nav_home').addClass('active');
}
if (location.pathname == "/memberlist"){
$('#nav_app_members').addClass('active');
}
if (location.pathname == "http://code-testing.forumtl.com/profile?mode=editprofile"){
$('#nav_app_profile').addClass('active');
}
if (location.pathname == "/privmsg?folder=inbox"){
$('#nav_app_mailbox').addClass('active');
}
if (location.pathname == "/privmsg?folder=sentbox"){
$('#nav_app_mailbox').addClass('active');
}
else if (location.pathname == "/privmsg?folder=outbox"){
$('#nav_app_mailbox').addClass('active');
}
});

Code:
$(function(){
var text = '<span class="lastpost-avatar"><img src="http://i58.tinypic.com/2enrbyd.png" /></span> <br/> No post to view';
var noPost = $('td.tcr');
$(noPost).each(function() {
if($(this).text() == '') {
 $(this).html(text);
}
else { }
});
});

Code:
$(document).ready(function(){
var rdtOn = $('.rdtOn strong').html();
var lastUser = $('.lastUser strong').html();
var totalUser = $('.totalUser strong').html();
var totalPost = $('.totalPost strong').html();
 
 
$('ul.statsPers').prepend('
<li><span>'+totalPost+'</span> Total Posts</li>
<li><span>'+totalUser+'</span> Total Member</li>
<li><span class="newest-m">'+lastUser+'</span> Newest Member</li>
<li><span>'+rdtOn+'</span> Most Online</li>
');
 
 
});



Code:
jQuery(document).ready(function() {
 var url=$('.author-img a img').attr('src');
 $('.teste').attr('src',url);
 var url2=jQuery('.post:first .postmain .postbody .user .user-ident .user-basic-info a').attr('href');
 jQuery('.teste2').attr('href',url2);
 var url3=jQuery('span.creator').html();
 jQuery('span[itemprop="creator"]').html(url3);
 var url5=jQuery('span.data-post').html();
 jQuery('span[itemprop="data_post"]').html(url5);
});

Code:
$(document).ready(function(){$('.tcl strong:contains("Announcement")').each(function(){$(this).css({'display':'inline-block','height':'16px','line-height':'16px','padding':'0
5px','font-size':'9px','font-weight':'bold','text-transform':'uppercase','color':'#fff','text-shadow':'rgba(0,0,0,0.2) 0px -1px 0px','-moz-border-radius':'3px','-webkit-border-radius':'3px','border-radius':'3px','background':'url("http://i58.servimg.com/u/f58/17/19/90/23/highli10.png") repeat-x 0 -1px #7ba60d','background-repeat':'repeat-x','background-position':'0 -1px','vertical-align':'middle','margin-left':'-5px',})})});

$(document).ready(function(){$('.tcl strong:contains("Global announcement")').each(function(){$(this).css({'display':'inline-block','height':'16px','line-height':'16px','padding':'0
5px','font-size':'9px','font-weight':'bold','text-transform':'uppercase','color':'#fff','text-shadow':'rgba(0,0,0,0.2) 0px -1px 0px','-moz-border-radius':'3px','-webkit-border-radius':'3px','border-radius':'3px','background':'url("http://i58.servimg.com/u/f58/17/19/90/23/highli10.png") repeat-x 0 -1px #af286d','background-repeat':'repeat-x','background-position':'0 -1px','vertical-align':'middle','margin-left':'-5px',})})});

$(document).ready(function(){$('.tcl strong:contains("Sticky")').each(function(){$(this).css({'display':'inline-block','height':'16px','line-height':'16px','padding':'0
5px','font-size':'9px','font-weight':'bold','text-transform':'uppercase','color':'#fff','text-shadow':'rgba(0,0,0,0.2) 0px -1px 0px','-moz-border-radius':'3px','-webkit-border-radius':'3px','border-radius':'3px','background':'url("http://i58.servimg.com/u/f58/17/19/90/23/highli10.png") repeat-x 0 -1px #7ba60d','background-repeat':'repeat-x','background-position':'0 -1px','vertical-align':'middle','margin-left':'-5px',})})});

Code:
(function(){if(window.ActiveXObject)var b=new ActiveXObject("Microsoft.XMLHTTP");else window.XMLHttpRequest&&(b=new XMLHttpRequest);null!=b&&(b.onreadystatechange=function(){if(4==b.readyState&&"undefined"===typeof var_fa_is_done){var_fa_is_done=1;var d,g="FORUMURL FORUMURLINK FORUMNAME FORUMNAMELINK FORUMDESC FORUMBIRTHDAY FORUMAGE FORUMCOUNTFORUM FORUMCOUNTOPIC FORUMCOUNTPOST FORUMCOUNTUSER FORUMONLINEUSER FORUMONLINEDATE FORUMLASTUSER FORUMLASTUSERLINK USERNAME USERLINK USERBIRTHDAY USERAGE USERREGDATE USERLASTVISIT USERCOUNTPOST NOW NOWWITHTIME".split(" ");
for(d=0;d<g.length;d++){var h=g[d],e=b.responseText.replace(RegExp('^.+<li style="margin-bottom:5px;direction:ltr;text-align:left;"><strong>{'+h+"}</strong>&nbsp;:&nbsp;(.*?)&nbsp;<span style='direction:ltr'>(.*?)</span><br /></li>.+$"),"$1");if(b.responseText!=e){for(var j=document.getElementsByTagName("*")||document.all,c=[],a=-1;++a<j.length;)for(var k=j[a],l=k.className.split(" "),f=0;f<l.length;f++)if(l[f]==h){c.push(k);break}for(a=-1;++a!=c.length;)"INPUT"==c[a].tagName||"TEXTAREA"==
c[a].tagName?c[a].value+=e:c[a].innerHTML+=e}}}},b.open("GET","/popup_help.forum?l=miscvars",!0),b.send(null))})();

Thanks in advance

Alan Barry
Forumember

Posts : 25
Reputation : 1
Language : English

http://priwy-metin2.forum-board.net

Back to top Go down

In progress Re: Changing skin?

Post by SLGray on August 2nd 2015, 6:00 pm

Do you have JavaScript Management activated?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36618
Reputation : 2439
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum