Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Theme selector

Asked Modified Viewed 2,506 times
K
kvjn777
K
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 9 threads in the forums
  • Started this discussions
asked
Junior Member

Ive seen some sites with the panel that allows people to select there own theme as a guest. I have tried looking everywhere here and searched it, and nothing. Can someone point me to it?
Edited by kvjn777 on 12-12-2011 03:35,
0 replies

7 posts

H
Harly
H
Harly 10
Regards, Har1y.
  • Senior Member, joined since
  • Contributed 302 posts on the community forums.
  • Started 51 threads in the forums
answered
Senior Member

Good to hear, kvjn777! B)

I think it would be better to start a new thread concerning your new support question.
You'll have a better chance of getting the right response, when the users can see a thread with a headline like this: "Game themes wanted" or something like that. ;)
Edited by Harly on 13-12-2011 00:30,
0 replies
K
kvjn777
K
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 9 threads in the forums
  • Started this discussions
answered
Junior Member

Yes I have it now. Works great. Thanks so much. Can someone point me in the right direction to find some gaming themes. Will pay for some if they are premium
0 replies
H
Harly
H
Harly 10
Regards, Har1y.
  • Senior Member, joined since
  • Contributed 302 posts on the community forums.
  • Started 51 threads in the forums
answered
Senior Member

I think you forgot to upload and activate the panel, 'theme_switcher_panel', itself - the code alone, will not do the trick.
I've packed it like this:
When you unpack the zip-file, you'll see these 2 items:
'files' (folder)
'readme-eng.txt' (file)
Now open the 'files' folder, and the 'infusions' folder inside that, and you'll then see a folder called 'theme_switcher_panel', and this last folder is the one you should place inside the 'infusions' folder, which you can see from the root of your site.

Install:
1. First you copy and paste the code from the 'readme-eng.txt' (which contains the install instructions) to the mentioned place in maincore.php, if you have'nt allready done that (I know you did that, but I mention it as a general info to everyone else).
This is the code mentioned:
//Theme Switcher
function simple_theme_exists($theme){
   if (file_exists(THEMES.$theme."/theme.php") && file_exists(THEMES.$theme."/styles.css")){
      return true;
   }
}
$settings['theme'] = (isset($_COOKIE['v7_themeswitcher']) && $_COOKIE['v7_themeswitcher'] != "Default" && simple_theme_exists($_COOKIE['v7_themeswitcher'])) ? $_COOKIE['v7_themeswitcher'] : $settings['theme'];
//

- that you place in maincore.php, like this:
define("FORUM", BASEDIR."forum/");
define("INFUSIONS", BASEDIR."infusions/");
define("PHOTOS", IMAGES."photoalbum/");
define("THEMES", BASEDIR."themes/");

//Theme Switcher
function simple_theme_exists($theme){
   if (file_exists(THEMES.$theme."/theme.php") && file_exists(THEMES.$theme."/styles.css")){
      return true;
   }
}
$settings['theme'] = (isset($_COOKIE['v7_themeswitcher']) && $_COOKIE['v7_themeswitcher'] != "Default" && simple_theme_exists($_COOKIE['v7_themeswitcher'])) ? $_COOKIE['v7_themeswitcher'] : $settings['theme'];
//

2. Now you add the panel, 'theme_switcher_panel', like a normal new panel from the administration of your site, placing it as a side-panel, left or right. Remember to activate it as well.

That's it - enjoy!
Edited by Harly on 13-12-2011 00:23,
0 replies
K
kvjn777
K
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 9 threads in the forums
  • Started this discussions
answered
Junior Member

Still cant get it to work, added what i needed in the maincore but still nothing
0 replies
H
Harly
H
Harly 10
Regards, Har1y.
  • Senior Member, joined since
  • Contributed 302 posts on the community forums.
  • Started 51 threads in the forums
answered
Senior Member

Try this simpler version instead. Attached to this thread...
(Works just fine with PHPFusion v. 7.02.04)

UPDATE: Repacked, and attached, the same Panel again, this time correctly, because windows 7 adds an extra folder on top of the one you zip/compress, when using the build-in program from windows 7.
To avoid this extra folder, mark all the folders and files you want to compress into a single zip-file, and 'zip' it from there (using windows 7's own zip-program, off course)!

BTW: This 'theme_switcher_panel' where originally made by Matonor for PHPFusion v.6 (originally released on www.phpfusion-mods.com), and then updated to v.7 by someone else (maybe by one of the coders at www.phpfusion-mods.net, who made the new readme.txt for it). At least, I think that's the story of this panel.
Edited by Harly on 13-12-2011 09:22,
Harly attached the following file:
theme_switcher_panel_v7_1.zip [No information available / 225 Downloads]
0 replies
K
kvjn777
K
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 9 threads in the forums
  • Started this discussions
answered
Junior Member

Thank you

Merged on Dec 12 2011 at 05:50:17:
ok, i went to the site and downloaded but when i installed it and put it on a panel it didnt work, not showing the themes, just a blank box
Edited by kvjn777 on 12-12-2011 06:50,
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

You can Download it from here : http://ankurthakur.in/forum/viewthrea...read_id=28

Quote

Remember:- Do not follow the Step given on the Thread on this Link. Instead of that, follow the steps given in the readme file inside the attachment.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 7 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

H
H
Harly 10
Regards, Har1y.
  • Senior Member, joined since
  • Contributed 302 posts on the community forums.
  • Started 51 threads in the forums
A
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
K
K
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 9 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet