Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Help with Only Register users can change themes  (Read 3279 times)

0 Members and 1 Guest are viewing this topic.

DeadClown

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Help with Only Register users can change themes
« on: January 09, 2005, 07:29:43 pm »

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
« Last Edit: January 09, 2005, 09:36:04 pm by donnoman »
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Help with Only Register users can change themes
« Reply #1 on: January 09, 2005, 08:30:53 pm »

Here's an easier solution:

edit your include/functions.inc.php and find:
Code: [Select]
function themeSelect($parameter)
{
global $CONFIG,$lang_theme_selection;
$return= '';
$lineBreak = "\n";

if ($CONFIG['theme_list'] == 0){
    return;
}
change to:
Code: [Select]
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.
« Last Edit: January 09, 2005, 09:35:45 pm by donnoman »
Logged

DeadClown

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Help with Only Register users can change themes
« Reply #2 on: January 09, 2005, 09:00:47 pm »

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..
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Help with Only Register users can change themes
« Reply #3 on: January 09, 2005, 09:10:46 pm »

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)
Logged

DeadClown

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Help with Only Register users can change themes
« Reply #4 on: January 09, 2005, 09:22:06 pm »

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
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Help with Only Register users can change themes
« Reply #5 on: January 09, 2005, 09:38:03 pm »

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.



Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Help with Only Register users can change themes
« Reply #6 on: January 09, 2005, 09:43:03 pm »

I believe regular uses can't use the drop-down list but they can add the text to the thread title.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.