| Author |
Message |
borgata20
Sergeant


Joined: Jun 13, 2003
Posts: 118
Location: North Jersey
|
Posted:
Mon Jun 16, 2003 6:06 pm |
  |
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  |
|
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Mon Jun 16, 2003 6:19 pm |
  |
|
    |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Tue Jun 17, 2003 9:13 am |
  |
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 |
|
   |
 |
borgata20
Sergeant


Joined: Jun 13, 2003
Posts: 118
Location: North Jersey
|
Posted:
Tue Jun 17, 2003 9:28 am |
  |
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!
Ralph |
|
|
    |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Tue Jun 17, 2003 9:46 am |
  |
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 |
|
   |
 |
allevon
Site Mod


Joined: Nov 22, 2002
Posts: 716
Location: New Jersey
|
Posted:
Tue Jun 17, 2003 10:03 am |
  |
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! |
|
    |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Tue Jun 17, 2003 10:06 am |
  |
| 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  |
_________________ Getting Started | My Projects |
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Tue Jun 17, 2003 10:48 am |
  |
|
    |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Tue Jun 17, 2003 11:28 am |
  |
I have to know..what exactly were the words you used to do your Search and what forums? |
_________________ Getting Started | My Projects |
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Tue Jun 17, 2003 11:37 am |
  |
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 |
|
    |
 |
borgata20
Sergeant


Joined: Jun 13, 2003
Posts: 118
Location: North Jersey
|
Posted:
Tue Jun 17, 2003 11:44 am |
  |
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 |
|
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Tue Jun 17, 2003 11:56 am |
  |
Just for the record, the 'rookies' comment was for the Elite Nukers, not you  |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
oaklid
Corporal


Joined: May 30, 2003
Posts: 56
|
Posted:
Tue Jun 17, 2003 4:10 pm |
  |
And another option: move the unwanted themes out of the themes directory. Works like a charm. |
_________________ Kristen
http://www.mediatinker.com/ |
|
   |
 |
|
|