Remove MyProfile Remove MyProfile
 

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

Remove MyProfile

Started by tuga, November 04, 2005, 11:39:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tuga

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!

xplicit

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

<td class="admin_menu"><a href="profile.php?op=edit_profile" title="">{MY_PROF_LNK}</a></td>

Must be somewhere around line 96
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

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

to make this bullet-proof, you'll have to addif (!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.

tuga

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!

Abbas Ali

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.
Chief Geek at Ranium Systems

xplicit

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

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

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

xplicit

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

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

tuga

That I've changed:


// 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;

Joachim Müller

Do as suggested:
Quote from: xplicit on November 05, 2005, 01:12:36 PM
please post a link to your site with a non admin username and password so we can see

Joachim Müller


insightrob

#13
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:

<td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>

To

<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. :)

Joachim Müller

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.