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: Remove MyProfile  (Read 15140 times)

0 Members and 1 Guest are viewing this topic.

tuga

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 8
Remove MyProfile
« on: November 04, 2005, 11:39:05 pm »

Hi,

I've been searching and didn't find anything that feets for me.

I'd like to know how to remove "My Profile" from a group of users (for exemple resgistered) so they can't change nothing (email, password...). I only want Administrators to change profiles (only administrators give passwords to users).

Thanks!
« Last Edit: October 13, 2006, 03:19:33 pm by GauGau »
Logged

xplicit

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 214
Re: Remove MyProfile
« Reply #1 on: November 05, 2005, 02:50:53 am »

Location depends a bit on your theme.php but for instance in classic remove:

Code: [Select]
<td class="admin_menu"><a href="profile.php?op=edit_profile" title="">{MY_PROF_LNK}</a></td>
Must be somewhere around line 96
Logged
Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Remove MyProfile
« Reply #2 on: November 05, 2005, 03:28:21 am »

Bear in mind that removing the link won't stop someone from typing profile.php?op=edit_profile into the address bar.  There is no mod or hack that I know of that will actually prevent a group from changing profile information.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Remove MyProfile
« Reply #3 on: November 05, 2005, 05:38:23 am »

to make this bullet-proof, you'll have to add
Code: [Select]
if (!GALLERY_ADMIN_MODE) { cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__); }to profile.php
However, I can see little point in disallowing users to change their profile.
Logged

tuga

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 8
Re: Remove MyProfile
« Reply #4 on: November 05, 2005, 12:35:10 pm »

Hi, thanks everyone for the help. I did everything said in this topic and the GauGau line worked but in the "@" still is the "my profile" option (users can't use it). Is there anyway to remove it? I used the xplicit way and it still appears. If it's difficult never mind, now it does that I want :)

THANKS!
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Remove MyProfile
« Reply #5 on: November 05, 2005, 12:40:49 pm »

hmmm "@"..... that means you are not using classic theme but some other theme. Modify the respective theme file. xplicit just gave an example keeping classic theme in mind. You will have to modify the theme you are using.
Logged
Chief Geek at Ranium Systems

xplicit

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 214
Re: Remove MyProfile
« Reply #6 on: November 05, 2005, 12:46:42 pm »

Ok since you are refering to the @ I asume you are using the project VII theme

In your case it will be around 126 in the $template_user_admin_menu

I'm afraid you removed it in the $template_gallery_admin_menu around 109 which you shouldn't do

Logged
Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.

tuga

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 8
Re: Remove MyProfile
« Reply #7 on: November 05, 2005, 12:54:25 pm »

Hi,
I've remove in the $template_user_admin_menu and it still appears. It's strange. By the way i'm using mac ox theme.
Thanks
Logged

xplicit

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 214
Re: Remove MyProfile
« Reply #8 on: November 05, 2005, 01:12:36 pm »

Well even tested it here and works perfectly, I'm afraid your not adjusting the right files.. or adjusting the correct files but that the server doens't point at these

please post a link to your site with a non admin username and password so we can see
Logged
Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Remove MyProfile
« Reply #9 on: November 05, 2005, 01:29:27 pm »

to make it very clear for you edit themes/mac_ox_x/theme.php
Logged
Chief Geek at Ranium Systems

tuga

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 8
Re: Remove MyProfile
« Reply #10 on: November 05, 2005, 01:31:11 pm »

That I've changed:

Code: [Select]
// HTML template for user admin menu
$template_user_admin_menu = <<<EOT

                <div align="center">
                <table cellpadding="0" cellspacing="1">
                        <tr>
                                <td class="admin_menu"><a href="albmgr.php" title="">{ALBMGR_LNK}</a></td>
                                <td class="admin_menu"><a href="modifyalb.php" title="">{MODIFYALB_LNK}</a></td>
                               
                        </tr>
                </table>
                </div>

EOT;
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Remove MyProfile
« Reply #11 on: November 06, 2005, 02:58:28 pm »

Do as suggested:
please post a link to your site with a non admin username and password so we can see
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
MOVED: Re: Remove MyProfile
« Reply #12 on: January 08, 2006, 02:00:17 pm »

Logged

insightrob

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Remove MyProfile
« Reply #13 on: October 13, 2006, 02:58:48 pm »

I know this is an old topic, but I have just had the same problems removing the 'my profile' link and discovered this topic using a search.

I have the final extract plugin installed which works great for removing most other fields. However my Gallery is bridged with both SMF and Joomla and I would rather actually keep the profile link than hide it.

I decided to edit theme.incp.php which is in the includes directory.

I edited the following line:

Code: [Select]
<td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
To

Code: [Select]
<td class="admin_menu"><a href="http://yoursite/yourprofilelinkhere" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
Obviously put your own url in there and not mine. :P

The result is that users simply get re-directed to their SMF profile page. I have no idea of the impact of this 'bodge', seems to work okay for me though. :)
« Last Edit: October 13, 2006, 03:11:55 pm by insightrob »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Remove MyProfile
« Reply #14 on: October 13, 2006, 03:19:16 pm »

This is the deprecated cpg1.3.x support board that you're replying to. As plugins have only been introduced in cpg1.4.x, you can't be using cpg1.3.x. Additionally, support for cpg1.3.x has run out anyway. Respect board rules: start a new thread of your own on the proper sub-board after having searched the forum for answers. Locking.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.