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.

Themes

View previous topic View next topic Go down

Themes

Post by mister23 on October 29th 2010, 6:46 am

after i upload the skin to hitskin and grab the -ltr.css do i go the step 2 of the multi-theme tutorial or is there a step before that?

also do we have to do that create the script option?

thanks Very Happy

mister23
Forumember

Male Posts : 160
Reputation : 1
Language : English

http://narutokingdom.forummotions.com/

Back to top Go down

Re: Themes

Post by ankillien on October 29th 2010, 6:58 am

Hello,

After grabbing the -ltr part, you can directly move to the step-2 and it is necessary to create the script page or the theme changer won't work.

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Re: Themes

Post by mister23 on October 29th 2010, 6:59 am

Sorry but where do i put the script?

mister23
Forumember

Male Posts : 160
Reputation : 1
Language : English

http://narutokingdom.forummotions.com/

Back to top Go down

Re: Themes

Post by ankillien on October 29th 2010, 7:08 am

Well, everything is explained in the tutorial nicely. I ask you to read it again carefully and don't try to skip anything. Most of your questions will be solved this way.

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Re: Themes

Post by mister23 on October 29th 2010, 7:11 am



also can i add one theme at a time instead of 3.

thanks

mister23
Forumember

Male Posts : 160
Reputation : 1
Language : English

http://narutokingdom.forummotions.com/

Back to top Go down

Re: Themes

Post by ankillien on October 29th 2010, 7:16 am

Yes, you can. But if you want only one theme (no option for change) then you should not use theme changer.

If you mean, you want to add only one theme(not three) besides the default one, you can do it Very Happy

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Re: Themes

Post by mister23 on October 29th 2010, 7:22 am

it keeps telling me error for something every time i try to upload the theme to hitskin.

Errors during the image recovery :i_icon_thanks_on.png(#1)

last time it had error for quote but i have all this Smile

edit

i fixed it

mister23
Forumember

Male Posts : 160
Reputation : 1
Language : English

http://narutokingdom.forummotions.com/

Back to top Go down

Re: Themes

Post by mister23 on October 29th 2010, 7:41 am

sorry for double posting but when it says change "THE_URL_OF_YOUR_HTML_PAGE_FOR_YOUR_MULTISKIN" to the URL of the HTML page we created in part 1 of step 2.

will that be this <a href="http://www.forumotion.com" target="_blank">forumotion.com</a>?

mister23
Forumember

Male Posts : 160
Reputation : 1
Language : English

http://narutokingdom.forummotions.com/

Back to top Go down

Re: Themes

Post by ankillien on October 29th 2010, 7:49 am

No.

The URL is to be taken from Admin CP > Modules > HTML page management.
It is the URL of the page that you just created for the theme changer.

Please avoid double posting unless separated by 24 hours. You can use the EDIT button to add info.

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Re: Themes

Post by mister23 on October 29th 2010, 7:52 am

so i am guessing it's this?

http://narutokingdom.forummotions.com/Themes-h1.htm

for some reason it doesn't show on my forum.

http://narutokingdom.forummotions.com/forum.htm

mister23
Forumember

Male Posts : 160
Reputation : 1
Language : English

http://narutokingdom.forummotions.com/

Back to top Go down

Re: Themes

Post by Darren1 on October 29th 2010, 8:36 am

Hi,

@mister23 wrote:so i am guessing it's this?

http://narutokingdom.forummotions.com/Themes-h1.htm

for some reason it doesn't show on my forum.

http://narutokingdom.forummotions.com/forum.htm

Have you inserted the script to make the dropdown box show up?
Or done the template editions? (You only need to do ONE, doing both means 2 will show up)

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Re: Themes

Post by mister23 on October 29th 2010, 8:39 am

I added it to the HTML source like the tutorial said to(i use phpBB3

this is the code

Spoiler:
var type = getCookie('template1');
var temsel = document.getElementById('temsel');
temsel.innerHTML ='<select onchange="changeskin(this.options[this.selectedIndex].value);window.location.reload();"><option> Choose A Theme </option><option value="valeur1"> Kakashi - Judecious </option><option value="valeur2"> Sakura - Judecious </option><option value="valeur3"> Name of theme & creater 3 </option></select>';




if (type == 'valeur1')
{
document.write('<link rel="stylesheet" type="text/css" href="http://narutokingdom.forummotions.com/164131-ltr.css">');
}
else if (type == 'valeur2')
{
document.write('<link rel="stylesheet" type="text/css" href="http://narutokingdom.forummotions.com/164132-ltr.css">');
}
else if (type == 'valeur3')
{
document.write('<link rel="stylesheet" type="text/css" href="URL_OF_YOUR_FORUM/IDNUMBER-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,'/');
}
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"); }

and the HTML page link http://narutokingdom.forummotions.com/Themes-h1.htm

mister23
Forumember

Male Posts : 160
Reputation : 1
Language : English

http://narutokingdom.forummotions.com/

Back to top Go down

Re: Themes

Post by Darren1 on October 29th 2010, 8:45 am

Are you sure it's in the site description at General > Forum > Site description ?
Is this the script there?

Code:
<span id="temsel"></span><script type="text/javascript" src=http://narutokingdom.forummotions.com/Themes-h1.htm"></script>

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Re: Themes

Post by mister23 on October 29th 2010, 8:47 am

yes and i added that code to it but it doesn't seem to work

mister23
Forumember

Male Posts : 160
Reputation : 1
Language : English

http://narutokingdom.forummotions.com/

Back to top Go down

Re: Themes

Post by Darren1 on October 29th 2010, 9:26 am

Buh hum bug!
I see the script on both your and my forums source, but it aint showing. Agreed. It was working fine when I sent Typlo that post too...? scratch
At the moment all I can suggest is to try this code, it hasn;t worked for me, so I doubt it would work at all.
I notice even the french have dumped this tutorial from their T&T listing lol

Code:
</script><span id=temsel></span><script type=text/javascript src=http://narutokingdom.forummotions.com/Themes-h1.htm></script>

That's all I can offer right now because no-one can work on a empty stomach and dinner has just arrived Very Happy

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Re: Themes

Post by mister23 on October 29th 2010, 9:35 am

Yeah it didn't work, is there any other tutorial that involves phpbb3?

this one is only template editing.
http://www.webartzforum.com/tutorials-f7/forumotion-theme-changer-t301-20.htm

mister23
Forumember

Male Posts : 160
Reputation : 1
Language : English

http://narutokingdom.forummotions.com/

Back to top Go down

Re: Themes

Post by mister23 on November 7th 2010, 6:56 am

I should wait right?

mister23
Forumember

Male Posts : 160
Reputation : 1
Language : English

http://narutokingdom.forummotions.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