News:

Wondering if this will always be free?  See why free is better.

Main Menu

User Control Panel ( User CP ) V3.0

Started by Alan S, April 28, 2007, 12:59:54 PM

Previous topic - Next topic

Bigdove1

Quote from: dl75 on August 16, 2007, 05:17:19 PM
Quote from: Sfx23 on August 16, 2007, 04:39:08 PM
I have version 1.1.3, i installed it but I don't see it. Do I have to enable it or something. Help please.

Yes you do. Go to admin CP and on the left under configuration you'll see "Staff config." There you'll see the setting.


where is it? doesn't my version Smf 1.1.3 with the MOD v1.2 reveal any menu in the admin part? in any way considering script it does not even touch with script with dimensions admin.

let us have all same the forum????
Can you provide us a capture of image of this menu?? I am curious to see that

thank you

dl75

Go on the previous page, and read about changing permission. That worked for me fine.

Bigdove1 what do you want the screenshot of??

Bigdove1

Hello has all,
Good, I have to find Bug which revealed me an error 403 with each time I clicked on the button "User Cp".
The problem, it is that the file usercp.php does not make a call on "ID_MEMBER"
what gives this when I click.
index.php? action=usercp
error 403

The forum thus plants.
on the other hand if I type this

index.php? action=usercp; u=444
with thus my "Id Member"
the file recognize me well and magic the menu appear and I sail inside without problem.


What is necessary you it added so that he recognizes me correctly??

thank you has alan for its script even if at home Ca does not function.

Help me please  :D

tatore

Quote from: Bigdove1 on August 18, 2007, 06:45:46 AM
Hello has all,
Good, I have to find Bug which revealed me an error 403 with each time I clicked on the button "User Cp".
The problem, it is that the file usercp.php does not make a call on "ID_MEMBER"
what gives this when I click.
index.php? action=usercp
error 403

The forum thus plants.
on the other hand if I type this

index.php? action=usercp; u=444
with thus my "Id Member"
the file recognize me well and magic the menu appear and I sail inside without problem.


What is necessary you it added so that he recognizes me correctly??

thank you has alan for its script even if at home Ca does not function.

Help me please  :D
Hi, big.
I've already installed the mod, and first made changes on local machine to all template files, then from package manager installed the mod.
Can you attache here your index.template.php of the current theme? Maybe I can help you.
*Salvo*




Quote from: RumbaarI wont jump to conclusion, but you might be hacked?

Alan S

Quote from: Bigdove1 on August 18, 2007, 06:45:46 AM
Hello has all,
Good, I have to find Bug which revealed me an error 403 with each time I clicked on the button "User Cp".
The problem, it is that the file usercp.php does not make a call on "ID_MEMBER"
what gives this when I click.
index.php? action=usercp
error 403

The forum thus plants.
on the other hand if I type this

index.php? action=usercp; u=444
with thus my "Id Member"
the file recognize me well and magic the menu appear and I sail inside without problem.


What is necessary you it added so that he recognizes me correctly??

thank you has alan for its script even if at home Ca does not function.

Help me please  :D

I'll take a quick look at that and get back to you.
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Alan S

#125
Quote from: Bigdove1 on August 18, 2007, 06:45:46 AM
Hello has all,
Good, I have to find Bug which revealed me an error 403 with each time I clicked on the button "User Cp".
The problem, it is that the file usercp.php does not make a call on "ID_MEMBER"
what gives this when I click.
index.php? action=usercp
error 403

The forum thus plants.
on the other hand if I type this

index.php? action=usercp; u=444
with thus my "Id Member"
the file recognize me well and magic the menu appear and I sail inside without problem.


What is necessary you it added so that he recognizes me correctly??

thank you has alan for its script even if at home Ca does not function.

Help me please  :D

Okay , well i cant recreate the problem since it works perfectly for me on any site , So if you wish you can try out these modifications to include the ID_MEMBER variable and see if it fix's it.


Themes/yourtheme/index.template.php

Find
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;


Replace With


// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt, $ID_MEMBER;


Find
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a>
     
</td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Replace With

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a>
     
</td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';



This code is tested and works. Feel free to see if it fix's the problem. If it does , I will release a new version with the fix and maybe one or two extras.
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

tatore

Quote from: JOSHSKORN on July 13, 2007, 07:28:19 PM
Hmm....I just noticed this.  The image that isn't showing up for me, also isn't available in the picture preview of the mod here.  Was the code to include the Messenger.png picture accidentally or purposely omitted for V1.2?  Just checked and it's also not in V1.1, either.  Why was the image included, then?  I'm just a little confused here.

Other than that, I've resolved all of my other issues, just by trial and error, copying and pasting, along with manual file edits.
the 12th image is still missing, but I've noticed that in "usercp.template.php" the following string:
$settings['images_url'],'/usercp/messenger.png" is missing, with its related function.
I've tried to create it copying and pasting a sample similar string and it works, but useless...there's no specified fuctionality-
*Salvo*




Quote from: RumbaarI wont jump to conclusion, but you might be hacked?

Doughboy

I had installed this mod in a test enviroment using EasyPHP with no problems but when I tried it for real I got a 403 error, something wrong with the index.php file.  The way I got around it was to use a custom .htaccess file with this code -

<IfModule mod_security.c>
SecFilterEngine Off
</IfModule>


and now it works.  My question is I understand that code turns off security on the folder I put it in, which is my forum folder.  Is there anyway to just use .htaccess on the index.php file itself so I have some security?

Also I did some code modification to show the Referral ID (from that mod) on the Control Panel.  Not perfect but it works.  If anyone wants the code let me know.

Alan S

Quote from: Doughboy on August 30, 2007, 09:16:42 AM
I had installed this mod in a test enviroment using EasyPHP with no problems but when I tried it for real I got a 403 error, something wrong with the index.php file.  The way I got around it was to use a custom .htaccess file with this code -

<IfModule mod_security.c>
SecFilterEngine Off
</IfModule>


and now it works.  My question is I understand that code turns off security on the folder I put it in, which is my forum folder.  Is there anyway to just use .htaccess on the index.php file itself so I have some security?

Also I did some code modification to show the Referral ID (from that mod) on the Control Panel.  Not perfect but it works.  If anyone wants the code let me know.

Hmmm , So thats the fix to the 403 error , I have read about using that code in htaccess files before with various smf issues but it never occurred to me that it might fix the usercp 403 error.
No , i dont believe its possible just to limit it to the index.php file , Im going to have to look more into this to find a secure fix to the error.

P.S : To all Charter Members , UserCP SMF 2.0 Edition has been released , See CM section for more info.
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

HuRRR


GrnEyedDvl


Neorics

#131
Quote from: Alan S on August 13, 2007, 05:58:14 PM
Quote from: lhb on August 13, 2007, 01:39:16 PM
First, let me say that I think this a great mod, novice users really like the easy to use interface better.

I do have a question that I hope is not stupid.  I origianlly had a few themes and had allowed members to change their own themes, and everything worked OK.  I hav since removed the option for users to change their own themes, but the "My Themes" icon still show up in the Control panel.  Members can click on it, and it takes them to the themes selection ,but some themes do not show the thumbnails properly.  Attempting to select a them bounces them back to their profile settings. 

My question: Does this mod check to see if that group has permission to change themes?  If they don't, then the "my Theme" icon should not be displayed"

Thanks in Advance

No , This mod currently does not check group permissions for any of the icons , In V2.0.X , It will but i am fairly busy in the real world at the moment so i wouldnt expect V2.0 for another few weeks , But there will be a good deal extra in 2.0 , I can say that for sure.

any progress about this? i also need this...

if you cant make the update then can someone tell me how to comment out the theme option? i mean to disable it...

also i like to suggest adding the profile summary to the panel, maybe in the next update? or can you give me the code to manually install it?



Quote from: GrnEyedDvl on September 07, 2007, 10:58:30 PM
Will this work with Tiny Portal?

yah it does, i'm using 1.1.3 and tiny portal and yes it's working
[For Hire] I can help you with anything regarding Simple Machines Forum  ~ My Portfolio

catchpen

Installed it, replaced the code for a customized theme, uploaded the icons to a cpanel directory and it's working.

Clean and Simple - This is perfect for new members not used to being a forum member.  It looks awesome on Mesh (TP) black theme thanks!

asdas2

ok great mod... but in the navigation bar it says USERCP can  i change that to Profile ....
i  m using dilber mc ... any idea
www.chillparadise.com

for all desi people .... get everything u ever wanted.... log in to view hidden stuff.

tatore

In "...Themes/default/languages/Modifications.yourlanguage.php"
find the string:

$txt['usercp'] = 'usercp';

replace with

$txt['usercp'] = 'Profile';
;)
*Salvo*




Quote from: RumbaarI wont jump to conclusion, but you might be hacked?

Alan S

Quote from: tatore on September 23, 2007, 03:51:50 AM
In "...Themes/default/languages/Modifications.yourlanguage.php"
find the string:

$txt['usercp'] = 'usercp';

replace with

$txt['usercp'] = 'Profile';
;)

Or

Themes/yourtheme/index.template.php

Find

' , $txt['usercp'] , '


Replace With
' , Profile , '

Or

Find

' , $txt['usercp'] , '


Replace With
' , $txt[79] , '
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Kindred

while those were valid corrections, Alan, a) we try to avoid hardcoding words and b) the originally suggested change is the best choice for simplicity.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Alan S

Quote from: Kindred on September 24, 2007, 01:26:54 PM
while those were valid corrections, Alan, a) we try to avoid hardcoding words and b) the originally suggested change is the best choice for simplicity.

Yup , I know hardcoded words are to be avoided , I just said i'd post those two to give users a choice.

Thanks

- Alan
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

asdas2

Quote from: tatore on September 23, 2007, 03:51:50 AM
In "...Themes/default/languages/Modifications.yourlanguage.php"
find the string:

$txt['usercp'] = 'usercp';

replace with

$txt['usercp'] = 'Profile';
;)
Quote from: Alan S on September 24, 2007, 01:22:16 PM
Quote from: tatore on September 23, 2007, 03:51:50 AM
In "...Themes/default/languages/Modifications.yourlanguage.php"
find the string:

$txt['usercp'] = 'usercp';

replace with

$txt['usercp'] = 'Profile';
;)

Or

Themes/yourtheme/index.template.php

Find

' , $txt['usercp'] , '


Replace With
' , Profile , '

Or

Find

' , $txt['usercp'] , '

Replace With
' , $txt[79] , '




Thankzz both of you ..
thankzz
www.chillparadise.com

for all desi people .... get everything u ever wanted.... log in to view hidden stuff.

goranbaxy

great mod, just what I needed, thanks!

Advertisement: