Multi-theme Changed ( I did not understand the tutorial we have )
4 posters
Page 1 of 1
Multi-theme Changed ( I did not understand the tutorial we have )
I did not understand the theme change tutorial we had so i will tell you the themes i want for my forum , ok.
1 theme : http://en.hitskin.com/search-a-skin/the-naruto-rpg-skin-147088.htm
2 theme: http://en.hitskin.com/search-a-skin/http-ninjaaceadventureforumotioncom-forumhtm-153768.htm
3 theme : http://en.hitskin.com/search-a-skin/naruto-uzumaki-126339.htm
4 Theme : http://en.hitskin.com/search-a-skin/the-naruto-akatsuki-rpg-theme-133957.htm
5 Theme : http://en.hitskin.com/search-a-skin/http-ninjaaceadventureforumotioncom-154647.htm
6 Theme : http://en.hitskin.com/search-a-skin/http-narutoanimeworlddarkbbcom--157948.htm
7 Theme : http://en.hitskin.com/search-a-skin/naruto-rasengan-spring-skin-134031.htm
Just give me all the codes and tell me where to add them thanks !!
1 theme : http://en.hitskin.com/search-a-skin/the-naruto-rpg-skin-147088.htm
2 theme: http://en.hitskin.com/search-a-skin/http-ninjaaceadventureforumotioncom-forumhtm-153768.htm
3 theme : http://en.hitskin.com/search-a-skin/naruto-uzumaki-126339.htm
4 Theme : http://en.hitskin.com/search-a-skin/the-naruto-akatsuki-rpg-theme-133957.htm
5 Theme : http://en.hitskin.com/search-a-skin/http-ninjaaceadventureforumotioncom-154647.htm
6 Theme : http://en.hitskin.com/search-a-skin/http-narutoanimeworlddarkbbcom--157948.htm
7 Theme : http://en.hitskin.com/search-a-skin/naruto-rasengan-spring-skin-134031.htm
Just give me all the codes and tell me where to add them thanks !!
Re: Multi-theme Changed ( I did not understand the tutorial we have )
Hi,
What part of the tutorial don't you understand?
What part of the tutorial don't you understand?
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: Multi-theme Changed ( I did not understand the tutorial we have )
Darren1 wrote:Hi,
What part of the tutorial don't you understand?
He doesn't understand any of it. It says on the original post if he can just get the code.
Re: Multi-theme Changed ( I did not understand the tutorial we have )
This is the code:
Do that for each of the 7 skins
- Code:
var type = getCookie('template1');
var temsel = document.getElementById('temsel');
temsel.innerHTML ='<select onchange="changeskin(this.options[this.selectedIndex].value);window.location.reload();"><option> Changer le thème </option><option value="valeur1"> Kagamine - Kingyo.Akki </option><option value="valeur2"> School Time - Quierra </option><option value="valeur3"> Web 2.2 rose - Capucine </option></select>';
if (type == 'valeur1')
{
document.write('<link rel="stylesheet" type="text/css" href="http://themeselect.forumactif.com/143387-ltr.css">');
}
else if (type == 'valeur2')
{
document.write('<link rel="stylesheet" type="text/css" href="http://themeselect.forumactif.com/143694-ltr.css">');
}
else if (type == 'valeur3')
{
document.write('<link rel="stylesheet" type="text/css" href="http://themeselect.forumactif.com/131817-ltr.css">');
}
function changeskin(change) {
var scheme = change;
var name = 'template1';
var pathname = location.pathname;
var myDomain = pathname.substring(0,pathname.lastIndexOf('/')) +'/';
var ExpDate = new Date ();
ExpDate.setTime(ExpDate.getTime() + (180 * 24 * 3600 * 1000));
setCookie(name,scheme,ExpDate,myDomain);
}
function getCookie(name){
var cname = name + "=";
var dc = document·cookie;
if (dc.length > 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin, end));
}
}
return null;
}
function setCookie(name, value, expires, path, domain, secure) {
document·cookie = name + "=" + escape(value) +
((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain) +
((secure == null) ? "" : "; secure");
}
tutorial wrote:Lets change the text displayed for the theme.
- Code:
<option> Choose your theme </option>
Change the text "Choose your theme" to what you'd like.
Now lets add our skins
Stay in section 1 of the coding and locate this
- Code:
<option value="valeur1"> Name of theme - Name of theme creator </option>
This is the name of the theme followed by the creator of the theme, lets change it to our first theme.
Now, lets go and correspond that to our style sheets in section 2
Code:
if (type == 'valeur1')
{
document.write('<link rel="stylesheet" type="text/css" href="URL_OF_YOUR_FORUM/IDNUMBER-ltr.css">');
}
Just change URL_OF_YOUR_FORUM/IDNUMBER-ltr.css" to what you have saved in your note/word pad which would be similar to "http://Your_forum_address/153102-ltr.css"
Do that for each of the 7 skins
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: Multi-theme Changed ( I did not understand the tutorial we have )
Darren1 wrote:This is the code:
- Code:
var type = getCookie('template1');
var temsel = document.getElementById('temsel');
temsel.innerHTML ='<select onchange="changeskin(this.options[this.selectedIndex].value);window.location.reload();"><option> Changer le thème </option><option value="valeur1"> Kagamine - Kingyo.Akki </option><option value="valeur2"> School Time - Quierra </option><option value="valeur3"> Web 2.2 rose - Capucine </option></select>';
if (type == 'valeur1')
{
document.write('<link rel="stylesheet" type="text/css" href="http://themeselect.forumactif.com/143387-ltr.css">');
}
else if (type == 'valeur2')
{
document.write('<link rel="stylesheet" type="text/css" href="http://themeselect.forumactif.com/143694-ltr.css">');
}
else if (type == 'valeur3')
{
document.write('<link rel="stylesheet" type="text/css" href="http://themeselect.forumactif.com/131817-ltr.css">');
}
function changeskin(change) {
var scheme = change;
var name = 'template1';
var pathname = location.pathname;
var myDomain = pathname.substring(0,pathname.lastIndexOf('/')) +'/';
var ExpDate = new Date ();
ExpDate.setTime(ExpDate.getTime() + (180 * 24 * 3600 * 1000));
setCookie(name,scheme,ExpDate,myDomain);
}
function getCookie(name){
var cname = name + "=";
var dc = document·cookie;
if (dc.length > 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin, end));
}
}
return null;
}
function setCookie(name, value, expires, path, domain, secure) {
document·cookie = name + "=" + escape(value) +
((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain) +
((secure == null) ? "" : "; secure");
}tutorial wrote:Lets change the text displayed for the theme.
- Code:
<option> Choose your theme </option>
Change the text "Choose your theme" to what you'd like.
Now lets add our skins
Stay in section 1 of the coding and locate this
- Code:
<option value="valeur1"> Name of theme - Name of theme creator </option>
This is the name of the theme followed by the creator of the theme, lets change it to our first theme.
Now, lets go and correspond that to our style sheets in section 2
Code:
if (type == 'valeur1')
{
document.write('<link rel="stylesheet" type="text/css" href="URL_OF_YOUR_FORUM/IDNUMBER-ltr.css">');
}
Just change URL_OF_YOUR_FORUM/IDNUMBER-ltr.css" to what you have saved in your note/word pad which would be similar to "http://Your_forum_address/153102-ltr.css"
Do that for each of the 7 skins
were do i add this this is confusing .
Re: Multi-theme Changed ( I did not understand the tutorial we have )
The post tells you. Just need to read...
MrMario- Helper
- Posts : 22186
Reputation : 1839
Language : test
Re: Multi-theme Changed ( I did not understand the tutorial we have )
I read i just don't understand well.
Re: Multi-theme Changed ( I did not understand the tutorial we have )
He just doesn't understand where to put it. Maybe the templates.MrMario wrote:The post tells you. Just need to read...
Edit: I also don't understand it.
Re: Multi-theme Changed ( I did not understand the tutorial we have )
For PHPBB2 this tutorial will be better; http://www.webartzforum.com/tutorials-f7/forumotion-theme-changer-t301.htm
What about it do you not understand?
I find them both simple to do, and they both tell you how to do everything in plain, simple English?
What about it do you not understand?
I find them both simple to do, and they both tell you how to do everything in plain, simple English?
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: Multi-theme Changed ( I did not understand the tutorial we have )
Can you like make a video tutorial or make screen shot of every step ^^
Similar topics
» Got a few questions about the multi theme tutorial
» Multi-theme...
» Can anyone help me with the multi theme business?
» Problem with multi-theme changer
» why has my theme changed to something else?
» Multi-theme...
» Can anyone help me with the multi theme business?
» Problem with multi-theme changer
» why has my theme changed to something else?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum