Help with Only Register users can change themes Help with Only Register users can change themes
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Help with Only Register users can change themes

Started by DeadClown, January 09, 2005, 07:29:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DeadClown

I have been looking on the board and I can find this one.
I know this is the code to show the list of themes {THEME_SELECT_LIST}
I want to add it in the the profile.php because I only want users to be able to change the themes.
but when adding this in to the profile.php it does not bring up the drop down window with the themes.  It show ( {THEME_SELECT_LIST} )
Can someone give me the code I need to add this in to the profile.php and have it so only Register users can change the themes.
thank you

donnoman

#1
Here's an easier solution:

edit your include/functions.inc.php and find:

function themeSelect($parameter)
{
global $CONFIG,$lang_theme_selection;
$return= '';
$lineBreak = "\n";

if ($CONFIG['theme_list'] == 0){
   return;
}

change to:

function themeSelect($parameter)
{
global $CONFIG,$lang_theme_selection;
$return= '';
$lineBreak = "\n";

if ($CONFIG['theme_list'] == 0 || !USER_ID){
   return;
}


This simply turns off the theme_select_list for non-logged in users.

DeadClown

I hate to bug.
I change that file that you told me to change. But Know I can't see were the user would change the theme. I loged in as a user to see were the theme changer was I can find it can you please help agian 
my site is Site
if you need to know that
thanks thanks for you help agian..

donnoman

Did you turn off: "Display theme list" in the config?

If you did turn it on, using the mod I posted you will still need to be logged in to see the theme_list, but if theme_list is off in the config, it will never be shown.

Did you remove {THEME_SELECT_LIST} from your template.html? If you did, you need to put it back.

If you modified profile.php you can return it to its original state.

if you would still like us to troubleshoot, post a test username and password to your gallery. (not an admin account, just a registered user)

DeadClown

You are the Best......... Thank you thank you sooo much...
My error
"Did you turn off: "Display theme list" in the config?"
was turn off
thank you
Not sure how it done but you can mark this as Solved
thanks again and have a great day

donnoman

I've marked this post as solved and for future reference to mark the message as solved, modify your first post, pull down the select list for "message icon" select solved, then save.

Glad it worked for you.




Tranz

I believe regular uses can't use the drop-down list but they can add the text to the thread title.