News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

User Control Panel ( User CP ) V3.0

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

Previous topic - Next topic

orca8767

The theme I use is completely different though...

H3 Skillz

Does anyone have a site with this mod on it?  I really want to see a demo before I download it.

Jade Elizabeth

Quote from: H3 Skillz on January 17, 2008, 10:12:30 AM
Does anyone have a site with this mod on it?  I really want to see a demo before I download it.

you cant see it without an account.
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Alan S

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

#284
Theme Guides For UserCP

Installation On Themes

In the index.template.php

Default

Find
function template_menu()
{
global


Add after

$modSettings,


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=profile">' , $txt[79] , '</a>
</td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Replace With
    
        // Edit Profile... [profile] if usercp is enabled
if ($context['allow_edit_profile'] && $modSettings['usercp_enable'])
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;u=',$ID_MEMBER,'">' , $txt['usercp'] , '</a>
           </td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
    //Edit Profile... [profile] if usercp is disabled
    if ($context['allow_edit_profile'] && !$modSettings['usercp_enable'])
    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=profile">' , $txt[79] , '</a>
           </td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Dilber MC

Find
function template_menu()
{
global


Add after

$modSettings,


Find
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo'
<td align="center" class="menubg' , $current_action == 'profile' ? '2' : '' , '">
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
</td>';


Replace With

// Edit UserCP if enabled... [profile]
if ($context['allow_edit_profile'] && $modSettings['usercp_enable'])
echo'
<td align="center" class="menubg' , $current_action == 'profile' ? '2' : '' , '">
<a href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a>
</td>';
    // Edit Profile if UserCP is disabled... [profile]
if ($context['allow_edit_profile'] && !$modSettings['usercp_enable'])
echo'
<td align="center" class="menubg' , $current_action == 'profile' ? '2' : '' , '">
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
</td>';


Helios

Find
function template_menu()
{
global


Add after

$modSettings,


Find
// Edit Profile... [profile]
        if ($context['allow_edit_profile'])
                echo '<td><a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 0px 0;" border="0" />' : $txt[467]), '</a></td>';


Replace With

// Edit UserCP if enabled... [profile]
        if ($context['allow_edit_profile'] && $modSettings['usercp_enable'])
                echo '<td><a href="', $scripturl, '?action=usercp">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/usercp.gif" alt="' . $txt['usercp'] . '" style="margin: 0px 0;" border="0" />' : $txt['usercp']), '</a></td>';
    // Edit Profile if usercp is disabled... [profile]
        if ($context['allow_edit_profile'] && !$modSettings['usercp_enable'])
                echo '<td><a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 0px 0;" border="0" />' : $txt[467]), '</a></td>';


And upload this image to /Themes/helios theme/images/english/ and name it usercp.gif

AA New Damage
Find
function template_menu()
{
global


Add after

$modSettings,


Find
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="mainNav-profile"><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>' , $current_action == 'profile' ? '' : '';


Replace With

// Edit UserCP if enabled... [profile]
if ($context['allow_edit_profile'] && $modSettings['usercp_enable'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="mainNav-profile"><a href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a></li>' , $current_action == 'profile' ? '' : '';
    // Edit Profile if UserCP disabled... [profile]
if ($context['allow_edit_profile'] && !$modSettings['usercp_enable'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="mainNav-profile"><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>' , $current_action == 'profile' ? '' : '';


Enterprise
Find
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;


Replace With

function template_menu()
{
global $context, $modSettings, $settings, $options, $scripturl, $txt;


Find

if ($context['current_action'] == 'theme')


Add Before
if ($context['current_action'] == 'usercp')
$current_action = 'profile';


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 class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
</td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


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


Saf-Multicolour
Find

function template_menu()
{
global


Add After

$modSettings,


Find

if ($context['current_action'] == 'search2')
$current_action = 'search';


Add After

if ($context['current_action'] == 'usercp')
$current_action = 'profile';


Find
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li><a' , $current_action == 'profile' ? ' class="active"' : '', ' href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>';


Replace With

//UserCP Enabled [usercp]
   if ($context['allow_edit_profile'] && $modSettings['usercp_enable'])
echo '<li><a' , $current_action == 'usercp' ? ' class="active"' : '', ' href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a></li>';

  //UserCP disabled [profile]
   if ($context['allow_edit_profile'] && !$modSettings['usercp_enable'])
echo '<li><a' , $current_action == 'profile' ? ' class="active"' : '', ' href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>';


Simple_Green_105

Find

function template_menu()
{
global


Add After

$modSettings,


Find

if (in_array($context['current_action'], array('search',


Add After

'usercp',

Find
if ($context['current_action'] == 'search2')


Add Before

if ($context['current_action'] == 'profile')
$current_action = 'usercp';


Find

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li', $current_action == 'profile' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>';


Replace With

// UserCP if enabled
  if ($context['allow_edit_profile'] && $modSettings['usercp_enable'])
echo '<li', $current_action == 'usercp' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a></li>';
// Edit Profile if UserCP disabled [profile]
if ($context['allow_edit_profile'] && !$modSettings['usercp_enable'])
echo '<li', $current_action == 'profile' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>';



Want A Theme Listed Here? Let me know!

This theme code is for UserCP V 2.X ONLY! It will not work with any version below V2.0
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

Quote from: Alundra on January 10, 2008, 08:08:47 AM
so how do we move the nice little options/actions box up to the top instead of before the comments? its really bugging me :(

Hey , sorry i only noticed this post now! , What exactly do you mean?
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

Jade Elizabeth

Quote from: Alan S on January 17, 2008, 12:50:45 PM
Quote from: Alundra on January 10, 2008, 08:08:47 AM
so how do we move the nice little options/actions box up to the top instead of before the comments? its really bugging me :(

Hey , sorry i only noticed this post now! , What exactly do you mean?

wow i think thats for the wrong topic...im sorry! that was referring to the ultimate profile mod, which i fixed lol...(sorry again)
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

[кѕ]ваηε-σ

Alan,

I've been trying to get this to work with the Aa_New_Damage theme, but alas I've been unsuccessful. I've posted my situations earlier in this thread.



thanks,
Brandon

Click my sig, I dare you. (you might enjoy it)


I have 1337 M0DЄЯΑŦ0Я ѕκιŁŁѕ.


Quote from: ваηε-σ, #lëñņðN`, мµŋτς[02:42] [кѕ]ваηε-σ: I just pwned microsoft and completely ghosted one hard drive onto another. Two computers with the exact same operating system, exact same everything.
[02:42] ⌠Ķζ⌡мµŋτς ©  / DarkForce: lmfao, XD
[02:43] *[Ҝﮘ] #lëñņðN` ¨εﮘ`: hahahaha, noice

Alan S

Quote from: [кѕ]ваηε-σ on January 17, 2008, 06:57:14 PM
Alan,

I've been trying to get this to work with the Aa_New_Damage theme, but alas I've been unsuccessful. I've posted my situations earlier in this thread.



thanks,
Brandon

Hey , Sorry i never noticed the last post you made.

Right i suppose we could try this.

1) Undo any edits i told you to make to AA New Damage
2) Uninstall the UserCPV2.0 from the package manager. ( If there are errors , uninstall the mod and then go through the error file manualy and remove the code )
3) Delete the install package and upload a fresh copy of the UserCPV2.0 install.
4) Install it
5) See if it works.
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

[кѕ]ваηε-σ

download link on the mod page doesn't work

Click my sig, I dare you. (you might enjoy it)


I have 1337 M0DЄЯΑŦ0Я ѕκιŁŁѕ.


Quote from: ваηε-σ, #lëñņðN`, мµŋτς[02:42] [кѕ]ваηε-σ: I just pwned microsoft and completely ghosted one hard drive onto another. Two computers with the exact same operating system, exact same everything.
[02:42] ⌠Ķζ⌡мµŋτς ©  / DarkForce: lmfao, XD
[02:43] *[Ҝﮘ] #lëñņðN` ¨εﮘ`: hahahaha, noice

nick09

Quote from: [кѕ]ваηε-σ on January 19, 2008, 02:30:47 PM
download link on the mod page doesn't work

thats because the mod author does not know the site went down.

and don't bug them in PMs.

The SMF team is working on fixing up the mods downloads.

[кѕ]ваηε-σ

Hence why I posted that. I'm not stupid you know, I do have a reason as to why I post what I post.



Anyways, I went through and uninstalled the package and undid all of the changes. then I re-uploaded the package that i had previosly downloaded before the modsite went down, and reinstalled the UserCP Modification. When i tried to install the UserCP, all of the tests were successful except for the ./Sources/Modsettings.php file. After that I went through and made all the neccisary changes to the Modsettings.php and Index.template.php files as instructed to in the thread and this mod's modsite page. Now the UserCP doesn't show up on the default theme or the AA New Damage theme.

Just thought I'd tell you what I did and what happened.

Click my sig, I dare you. (you might enjoy it)


I have 1337 M0DЄЯΑŦ0Я ѕκιŁŁѕ.


Quote from: ваηε-σ, #lëñņðN`, мµŋτς[02:42] [кѕ]ваηε-σ: I just pwned microsoft and completely ghosted one hard drive onto another. Two computers with the exact same operating system, exact same everything.
[02:42] ⌠Ķζ⌡мµŋτς ©  / DarkForce: lmfao, XD
[02:43] *[Ҝﮘ] #lëñņðN` ¨εﮘ`: hahahaha, noice

au8ust


Alan S

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


LLStarks

FYI. V2.0 does not work with a fresh SMF 2.0 install.

Alan S

That is because SMF 2.0 coding has changed a lot and since i no longer have access to the new 2.0 Betas i cannot develop and support the mod for 2.0 yet.
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

Apllicmz




perplexed

#298
I have installed with no errors but I get this when I try to change things in Admin User CP

501 Method Not Implemented
POST to /forum/index.php not supported.

And by anything I mean, check or uncheck any of the boxes in Admin >features > user CP  and any of the custom fields.  It seems to work ok otherwise, just not the Admin side of it.


What does that mean? And can it be fixed?

Thanks

perplexed

Quote from: perplexed on February 07, 2008, 12:12:11 PM
I have installed with no errors but I get this when I try to change things in Admin User CP

501 Method Not Implemented
POST to /forum/index.php not supported.

And by anything I mean, check or uncheck any of the boxes in Admin >features > user CP  and any of the custom fields.  It seems to work ok otherwise, just not the Admin side of it.


What does that mean? And can it be fixed?

Thanks


Hello

has anyone seen this error before or know how to fix this?

Advertisement: