You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 54 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - prevent users from changing themes. [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
borgata20
Sergeant
Sergeant


Joined: Jun 13, 2003
Posts: 118

Location: North Jersey

PostPosted: Mon Jun 16, 2003 6:06 pm Reply with quoteBack to top

Does anyone know of a way that you can prevent the user from changing the theme when they log into your site. If I change the rights on the directory will that prevent them from changing it or is something I have to do on the PHP side?? Thanks for everyones help!!!


Ralph Confused
Find all posts by borgata20View user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Mon Jun 16, 2003 6:19 pm Reply with quoteBack to top

This has been answered before. Please search Wink

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Tue Jun 17, 2003 9:13 am Reply with quoteBack to top

well, I searched the Forums for 45 minutes last night and I couldn't find it.

Searched for:
themes
theme changes
change theme
prevent theme
prevent theme change
changing theme
prevent
change
changing
stop users
stop theme
theme select
select theme
select

And I never found it...
If you even think about including the word theme in your search...watch out..yikes...impossible to go through all those posts...
I'm thinking phpBB's search is not that great.
I even tried searching in specific forums, etc.

can I tell him Raven?
hehe

_________________
Getting Started | My Projects
Find all posts by mikemView user's profileSend private message
borgata20
Sergeant
Sergeant


Joined: Jun 13, 2003
Posts: 118

Location: North Jersey

PostPosted: Tue Jun 17, 2003 9:28 am Reply with quoteBack to top

I searched for hours last night. There is a ton of stuff there. It would be a great help if he told me, if that's ok with you Raven! Wink

Ralph
Find all posts by borgata20View user's profileSend private messageVisit poster's website
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Tue Jun 17, 2003 9:46 am Reply with quoteBack to top

well, since your topic title pretty much comes up on every search I preformed on this subject. maybe a good idea to post the solution here as well.

Simple.
First set yoru Default theme in your Nuke Admin/Preferences.
Then go to your FTP and remvoe ALL the themes from your theme fodler EXCEPT for your default.

Now, just in case your users have selected a theme that you are deleting, you can run this script to clear their theme selection field in the users table.

Code:
<?php

######################################################
# File to Clear the theme Selection in the users table
# 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=''");

Copy that code and save it as cleartheme.php and upload it to your Mian nuke directory and then point your browser to it. Do this AFTER you delete all the themes from your themes folder

mikem

_________________
Getting Started | My Projects
Find all posts by mikemView user's profileSend private message
allevon
Site Mod
Site Mod


Joined: Nov 22, 2002
Posts: 716

Location: New Jersey

PostPosted: Tue Jun 17, 2003 10:03 am Reply with quoteBack to top

why dont you just do it the simple way and delete the themes other than the one you want to use. Thats it.

_________________
"Give Me Liberty, Or Give Hackerz Death!!!"
Patrick Henry Revised for 21st century.
Let The Bodies Hit The Floor! Let The Bodies Hit The Floor!
Find all posts by allevonView user's profileSend private messageVisit poster's website
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Tue Jun 17, 2003 10:06 am Reply with quoteBack to top

allevon wrote:
why dont you just do it the simple way and delete the themes other than the one you want to use. Thats it.


Quote:
Then go to your FTP and remvoe ALL the themes from your theme fodler EXCEPT for your default.


did I say that...you're worse than me allevon and I didn't think that was possible..hehe Wink

_________________
Getting Started | My Projects
Find all posts by mikemView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Tue Jun 17, 2003 10:48 am Reply with quoteBack to top

Rookies Laughing

http://nukecops.com/postlite2418-themes.html
http://www.nukecops.com/postlite1937-remove.html+theme+selection
http://nukecops.com/postlite3154-themes.html

Took me 2 minutes, seriously Laughing

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Tue Jun 17, 2003 11:28 am Reply with quoteBack to top

Raven wrote:
Rookies Laughing

http://nukecops.com/postlite2418-themes.html
http://www.nukecops.com/postlite1937-remove.html+theme+selection
http://nukecops.com/postlite3154-themes.html

Took me 2 minutes, seriously Laughing


I have to know..what exactly were the words you used to do your Search and what forums?

_________________
Getting Started | My Projects
Find all posts by mikemView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Tue Jun 17, 2003 11:37 am Reply with quoteBack to top

I don't remember. But, if you just type in 'remove theme' and search all words you get back 1 page with 3 articles on it, if I remember right.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
borgata20
Sergeant
Sergeant


Joined: Jun 13, 2003
Posts: 118

Location: North Jersey

PostPosted: Tue Jun 17, 2003 11:44 am Reply with quoteBack to top

Instead of deleting all the themes, I just changed the file permissions. That I way I can go back and change the theme in the future! Much better than deleting them all.

Rookies.....we all have to start somewhere!!

Ralph
Find all posts by borgata20View user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Tue Jun 17, 2003 11:56 am Reply with quoteBack to top

Just for the record, the 'rookies' comment was for the Elite Nukers, not you Wink

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
oaklid
Corporal
Corporal


Joined: May 30, 2003
Posts: 56


PostPosted: Tue Jun 17, 2003 4:10 pm Reply with quoteBack to top

And another option: move the unwanted themes out of the themes directory. Works like a charm.

_________________
Kristen
http://www.mediatinker.com/
Find all posts by oaklidView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.395 Seconds - 243 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::