Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 80
2 members and 78 guests
foo7tjtdallergp, health46ev26
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > PHP-Nuke 6.5 to 6.9 > Nuke 6.5 to 6.9 - Themes

Reply
 
LinkBack Thread Tools Display Modes
How to use just one Theme
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 60
Join Date: Apr 2003
Location: The Netherlands
How to use just one Theme - 04-15-2003, 02:36 PM

How to remove the choice for the users for a theme.
I want to use just 1. In the admin config its possible to ser the standard theme, but a user can still change a theme for the forum.
In the forum config i cant set the theme to subblack. There's only the default subsilver.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Junior Member
 
Status: Offline
Posts: 16
Join Date: Apr 2003
04-15-2003, 02:56 PM

I take it you are using 6.5?

Okay here is a way of doing it, although somebody might suggest a better way.

Set the Nuke Preferences in admin to subblack and your forum will be subblack.

Goto /modules/Your_Account/ and open up nav.php

Find line 71-77

Code:
if ($thmcount > 1) {
	$menuimg = menuimg("themes.gif");
	echo "<td width=\"10%\"><font class=\"content\">"
              ."<center><a href=\"modules.php?name=Your_Account&op=chgtheme\"><img src=\"$menuimg\" border=\"0\" alt=\""._SELECTTHETHEME."\" title=\""._SELECTTHETHEME."\"></a>
"
	   ."<a href=\"modules.php?name=Your_Account&op=chgtheme\">"._SELECTTHETHEME."</a>"
	    ."</center></form></font></td>";
   }
And place a // in front of each line.

This will mean if they goto "Your Account" the ability to change themes is taken away.

The downside is that if you want to test an alternative theme yourself, you will have to take out the // from line 71 - 77 login to your account and change theme for yourself - then re-do the // again.

Hope that helps
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
04-15-2003, 03:05 PM

The easiest way is to remove ALL but your Default theme from your themes folder on your FTP, then the selection to change themes will magically disappear from the Your Account page since you now only have ONE theme in your themes folder.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 16
Join Date: Apr 2003
04-15-2003, 03:17 PM

I just knew there was an easier way Thanks for explaining that Mike, I didnt know that option vanishes with just one theme
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
04-15-2003, 03:36 PM

Quote:
Originally Posted by TalkNuke
I just knew there was an easier way Thanks for explaining that Mike, I didnt know that option vanishes with just one theme
hey, we all learn something new everyday..if we didn't, wouldn't life suck ? :-)

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Junior Member
 
Status: Offline
Posts: 60
Join Date: Apr 2003
Location: The Netherlands
04-15-2003, 04:58 PM

He guys thank you both!!

So i remove the other themes with ftp :wink:
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
04-15-2003, 05:01 PM

One mroe thing. If your users have any issues because of removing the "other" themes. you may need to clear their theme selction filed in the database.

You can do that using this script.
Copy this. Paste it in notepad and save as cleartheme.php
Code:
<?php

######################################################
# File to clear themes from PHP-Nuke 6.5
# After you used this file, you can safely delete it.
######################################################
#            -= WARNING: PLEASE READ =-
#
# NOTE: This file uses config.php to retrieve needed
# variables values. So, to do the upgrade PLEASE copy
# this file in your server root directory and execute
# it from your browser.
######################################################

include("mainfile.php");

####################### BEGIN THE UPDATE #######################################



// clear theme
$db->sql_query("UPDATE ".$prefix."_users SET theme=''");
Upload to your main Nuke directory and then run it
http://www.yoursite.com/cleartheme.php

that will clear the theme selection field fo all users..Doesn't hurt anything.

Backup your Database just in case though.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Junior Member
 
Status: Offline
Posts: 6
Join Date: May 2003
Location: California
05-15-2003, 03:19 PM

Mikem: I am doing the same thing, removing all other themes... And I have a question, are there any directories in the themes folder that need to stay there, that are neccessary files, or should I just delete every folder that's not the theme I want?

Thanks.
  Send a message via AIM to Darius  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#9 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
05-15-2003, 04:08 PM

There should only be theme's folder sin the themes directory.
You should be safe to delete all the "other" themes in your themes directory and leave your default one.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#10 (permalink))
Junior Member
 
Status: Offline
Posts: 83
Join Date: Jan 2003
05-15-2003, 07:36 PM

You want a hard problem about this topic? Here we go...

Nuke 6.0 with phpbbtonuke 2.0.4
BackDog theme for Nuke (graphics changed)
Charcoal theme for phpbb (damn...i didn't knew from begining that Charcoal has BlackDog as theme for Nuke integrated into his package)

BlackDog is hardly coded and gives many kinds of bugs and already I fixed some of them but many other left. So if i overwrite BlackDog files into Charcoal it gives me nasty errors.

No other themes in /theme folder only those 2. Ofcourse users can change from Your_account the theme from BlackDog into Charcoal looks same BUT many modules which are working good unde BlackDog are changed a little bit (ie. if i have one module with right side blocks OFF after users apply Charcoal those Blocks are shown)
Also if a user tries to change the theme from Forum Profile and clicks on the single choice (Charcoal) then he has that theme for Nuke also.

I tried to UPDATE the field theme with '' in nuke_users but if a user which made that change comes back he has the changed theme just because of the cookies i think and is updated into db without doing anything.
I tried to make the theme field from nuke_users NULL and default IS NULL but no good.

Again i think te best way is to copy actual BlackDog over Charcoal.. but when i did it i got nasty erros.

Anyone willing to fix this mess?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31