Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Alan S on April 28, 2007, 12:59:54 PM

Title: User Control Panel ( User CP ) V3.0
Post by: Alan S on April 28, 2007, 12:59:54 PM
Link To Mod (http://custom.simplemachines.org/mods/index.php?mod=698)

SMF 2.0 support Added

This mod replaces the current profile screen with a more colourful User Control Panel , It makes it easier to navigate around the profile options and provides a way to contact the admin via email.

UserCP V3.0 Released
UserCP V3.0 is for SMF2.0 Beta4 Only!!

********************
UserCP V3.0
Created By Alan S
30/10/08
********************
V3.0 is the next step for the UserCP

It includes all the features of 2.0 with a few major changes.

The UserCP is now created using a array so the buttons are layed out depending on your forum permissions. This also makes it easier to manualy add
new buttons should the 4 preset ones be used.

The way the copyright and the error pages are displayed have been completely rewritten.

See the Admin Panel ( Admin -> Configuration -> Modifications -> UserCP ) for more options that have been added.


Big thanks to Kindred for the coding for the arrays.
   
 
Please Note , This Mod Could Cause Errors on Install On ModSettings.php , If It Does , Manualy Add the Code by following instructions at end of page.

Mod should work with versions 1.0.7 and above it has only been tested on 1.1 -> 1.1.4 however

SMF 2.0 users use the package UserCPv2.2

UserCP V2.0.1 users please run the UserCPV2.1QuickSearchFix_SMF2.X_Only.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=698;id=65397) package to fix the Quick Search Bug


Bugs can be emailed to alanscomputergenius[at]gmail[dot]com

Changelog

*********************************
V1.1 - Initial Release 23/Feb/07
*********************************
V1.2

- Fixed installation errors on index.template
- Cleaned up instalation code
- Fixed bug on menu which ment the usercp tab was not highlighted when in usercp.
*********************************
V1.3

- Added 1.1.4 Compatibility
- Added fix for bug which sometimes caused 403 errors.

*********************************

V1.4 14/Dec/07

- Added "Delete My Account" option to the interface.
- Removed unwanted variables from the template
- Cleaned up code
- Added comments to make it easier to find the different parts of the usercp in the file.
- Added a proper guest error page

********************************

V2.0

- Added Admin Interface
- Added Ability to Enable/Disable User CP
- Added Ability to Disable Contacting Of Admin
- Added Ability to choose to use pm or email to contact admin
- Added Admin option to let users to switch to standard profile view
- Added 4 Customisable UserCP fields ( Use own icons/text/links )
- Added If UserCP is disabled , The Menu Button for the UserCp will automaticaly change back to profile.
- Edited Error Page For Guests
- Added User ID feature for admins ( Find out your UserID , Need for using admin pm contact option )
- Removed Unwanted Commenting Code + Added Code Explaination Comments
- Added Support For UTF8 ( English on Install )

********************************

********************
UserCP V2.0.1
Created By Alan S
13/7/08
********************
UserCP V2.0.1 is for SMF 2.0 Beta releases ONLY

No feature changes took place in 2.1 except added compatibility for SMF 2.X , Also a few template tweaks were made

DO NOT INSTALL THIS PACKAGE ON SMF 1.X forums!

********************
UserCP V2.0.2
Created By Alan S
19/8/08
********************
UserCP V2.0.2 is for SMF 2.0 Beta releases ONLY

This version fixs a bug from v2.0.1 that breaks the quick search function

DO NOT INSTALL THIS PACKAGE ON SMF 1.X forums!


********************

Upgrade Package for 1.4 -> 2.0 added + Fresh 2.0 install
Want To Translate?

If you want to translate into another language feel free to do so , The english language strings are below.

$txt['usercp'] = 'User CP';
$txt['usercp_account_info'] = 'My Account Information';
$txt['usercp_account_info_summary'] = 'Click here if you want to change your account related information such as username, email, password or other sensitive details.';
$txt['usercp_look_and_layout'] = 'Look & Layout Options';
$txt['usercp_look_and_layout_summary'] = 'Click here to change the way the forum looks for you, options include the look and layout for the boards and posts.';
$txt['usercp_my_theme'] = 'My Theme';
$txt['usercp_my_theme_summary'] = 'This screen will allow you to set your default theme which you wish to use every time you login.';
$txt['usercp_my_profile'] = 'My Profile';
$txt['usercp_my_profile_summary'] = 'Click here to change the way your profile looks and appears to everyone.';
$txt['usercp_my_stats'] = 'My Stats';
$txt['usercp_my_stats_summary'] = 'Here you can check how many posts you have made and other activity related info.';
$txt['usercp_my_posts'] = 'My Posts';
$txt['usercp_my_posts_summary'] = 'This option will show you all the posts you have made since you became a member of this site.';
$txt['usercp_my_notifications'] = 'My Notifications';
$txt['usercp_my_notifications_summary'] = 'This screen will allow you to change the type and frequency of notifications you get via e-mail when participating in threads.';
$txt['usercp_buddies'] = 'Buddies';
$txt['usercp_buddies_summary'] = 'This screen will allow you to select buddies to add to your list.';
$txt['usercp_message_options'] = 'My Message Options';
$txt['usercp_message_options_summary'] = 'This screen will allow you to set your preferences for PMs received on the board and also allow you to ignore people you do not wish to receive PMs from.';
$txt['usercp_search'] = 'Search';
$txt['usercp_search_summary'] = 'This screen will allow you to search for posts made in the board.';
$txt['usercp_contact_admin'] = 'Contact Admin';
$txt['usercp_contact_admin_summary'] = 'Confused? or have a quirey? Contact the admin at this screen';
$txt['usercp_guest'] = 'Sorry Guest , You are not allowed to access the User CP , Please';
$txt['usercp_login'] = 'Login';
$txt['usercp_or'] = 'or';
$txt['usercp_register'] = 'Register';
$txt['usercp_copyright'] = 'User Cp V2.0 | Created By Alan S';
$txt['usercp_welcome'] = 'Welcome ';
$txt['usercp_delete_account'] = 'Delete My Account';
$txt['usercp_delete_account_summary'] = 'Tired of the site? Use this option to delete your member account.';
$txt['usercp_error'] = 'Error!';
$txt['usercp_enable'] = 'Enable User Control Panel';
$txt['usercp_disabled'] = 'User Control Panel Disabled';
$txt['usercp_clickhere'] = 'Click Here To Go To The ';
$txt['usercp_profile'] = 'Profile Screen';
$txt['usercp_field1image'] = 'Custom UserCP Field 1 Image';
$txt['usercp_field1url'] = 'URL';
$txt['usercp_field1maintext'] = 'Main Text ( eg. My Posts )';
$txt['usercp_field1summary'] = 'Summary Text';
$txt['usercp_field1enable'] = 'Enable 1st Custom UserCP Field';
$txt['usercp_field2image'] = 'Custom UserCP Field 2 Image';
$txt['usercp_field2url'] = 'URL';
$txt['usercp_field2maintext'] = 'Main Text ( eg. My Posts )';
$txt['usercp_field2summary'] = 'Summary Text';
$txt['usercp_field2enable'] = 'Enable 2nd Custom UserCP Field';
$txt['usercp_field3image'] = 'Custom UserCP Field 3 Image';
$txt['usercp_field3url'] = 'URL';
$txt['usercp_field3maintext'] = 'Main Text ( eg. My Posts )';
$txt['usercp_field3summary'] = 'Summary Text';
$txt['usercp_field3enable'] = 'Enable 3rd Custom UserCP Field';
$txt['usercp_field4image'] = 'Custom UserCP Field 4 Image';
$txt['usercp_field4url'] = 'URL';
$txt['usercp_field4maintext'] = 'Main Text ( eg. My Posts )';
$txt['usercp_field4summary'] = 'Summary Text';
$txt['usercp_field4enable'] = 'Enable 4th Custom UserCP Field';
$txt['usercp_usepm'] = 'Use PM instead of email to contact admin';
$txt['usercp_adminid'] = 'Enter id of Admin here ( Look at a link in your profile to find it , ?action=profile;u=x )';
$txt['usercp_switchview'] = 'Allow users to switch to standard profile view';
$txt['usercp_enablecontactadmin'] = 'Enable Contacting Of Admin Via UserCP';



Language For the SMF2.0 Version


$txt['usercp'] = 'User CP';
$txt['usercp_account_info'] = 'My Account Information';
$txt['usercp_account_info_summary'] = 'Click here if you want to change your account related information such as username, email, password or other sensitive details.';
$txt['usercp_look_and_layout'] = 'Look & Layout Options';
$txt['usercp_look_and_layout_summary'] = 'Click here to change the way the forum looks for you, options include the look and layout for the boards and posts.';
$txt['usercp_my_theme'] = 'My Theme';
$txt['usercp_my_theme_summary'] = 'This screen will allow you to set your default theme which you wish to use every time you login.';
$txt['usercp_my_profile'] = 'My Profile';
$txt['usercp_my_profile_summary'] = 'Click here to change the way your profile looks and appears to everyone.';
$txt['usercp_my_stats'] = 'My Stats';
$txt['usercp_my_stats_summary'] = 'Here you can check how many posts you have made and other activity related info.';
$txt['usercp_my_posts'] = 'My Posts';
$txt['usercp_my_posts_summary'] = 'This option will show you all the posts you have made since you became a member of this site.';
$txt['usercp_my_notifications'] = 'My Notifications';
$txt['usercp_my_notifications_summary'] = 'This screen will allow you to change the type and frequency of notifications you get via e-mail when participating in threads.';
$txt['usercp_buddies'] = 'Buddies';
$txt['usercp_buddies_summary'] = 'This screen will allow you to select buddies to add to your list.';
$txt['usercp_message_options'] = 'My Message Options';
$txt['usercp_message_options_summary'] = 'This screen will allow you to set your preferences for PMs received on the board and also allow you to ignore people you do not wish to receive PMs from.';
$txt['usercp_search'] = 'Search';
$txt['usercp_search_summary'] = 'This screen will allow you to search for posts made in the board.';
$txt['usercp_contact_admin'] = 'Contact Admin';
$txt['usercp_contact_admin_summary'] = 'Confused? or have a quirey? Contact the admin at this screen';
$txt['usercp_guest'] = 'Sorry Guest , You are not allowed to access the User CP , Please';
$txt['usercp_login'] = 'Login';
$txt['usercp_or'] = 'or';
$txt['usercp_register'] = 'Register';
$txt['usercp_copyright'] = 'User Cp V2.0.1 | Created By Alan S';
$txt['usercp_welcome'] = 'Welcome ';
$txt['usercp_delete_account'] = 'Delete My Account';
$txt['usercp_delete_account_summary'] = 'Tired of the site? Use this option to delete your member account.';
$txt['usercp_error'] = 'Error!';
$txt['usercp_enable'] = 'Enable User Control Panel';
$txt['usercp_disabled'] = 'User Control Panel Disabled';
$txt['usercp_clickhere'] = 'Click Here To Go To The ';
$txt['usercp_profile'] = 'Profile Screen';
$txt['usercp_field1image'] = 'Custom UserCP Field 1 Image';
$txt['usercp_field1url'] = 'URL';
$txt['usercp_field1maintext'] = 'Main Text ( eg. My Posts )';
$txt['usercp_field1summary'] = 'Summary Text';
$txt['usercp_field1enable'] = 'Enable 1st Custom UserCP Field';
$txt['usercp_field2image'] = 'Custom UserCP Field 2 Image';
$txt['usercp_field2url'] = 'URL';
$txt['usercp_field2maintext'] = 'Main Text ( eg. My Posts )';
$txt['usercp_field2summary'] = 'Summary Text';
$txt['usercp_field2enable'] = 'Enable 2nd Custom UserCP Field';
$txt['usercp_field3image'] = 'Custom UserCP Field 3 Image';
$txt['usercp_field3url'] = 'URL';
$txt['usercp_field3maintext'] = 'Main Text ( eg. My Posts )';
$txt['usercp_field3summary'] = 'Summary Text';
$txt['usercp_field3enable'] = 'Enable 3rd Custom UserCP Field';
$txt['usercp_field4image'] = 'Custom UserCP Field 4 Image';
$txt['usercp_field4url'] = 'URL';
$txt['usercp_field4maintext'] = 'Main Text ( eg. My Posts )';
$txt['usercp_field4summary'] = 'Summary Text';
$txt['usercp_field4enable'] = 'Enable 4th Custom UserCP Field';
$txt['usercp_usepm'] = 'Use PM instead of email to contact admin';
$txt['usercp_adminid'] = 'Enter id of Admin here ( Look at a link in your profile to find it , ?action=profile;u=x )';
$txt['usercp_switchview'] = 'Allow users to switch to standard profile view';
$txt['usercp_enablecontactadmin'] = 'Enable Contacting Of Admin Via UserCP';



Translated Language Files

UserCP v2.0 SMF 1.X Sweedish Translation By MTF95 (http://www.simplemachines.org/community/index.php?topic=167975.msg1519608#msg1519608)

UserCP V2.1 SMF 2.X  Serbian Translation AlenNS (http://www.simplemachines.org/community/index.php?topic=167975.msg1627282#msg1627282)

Since V2.0 came out a good deal of new language strings were added making the old translations partly useless , If people want to retranslate them again , just post them and i will add them to this post.

To add the new language strings , Copy the text strings from above and paste them into the /Themes/default/languages/modifications.yourlanguage.php

Useful Links

How to change the background colour of the UserCP (http://www.simplemachines.org/community/index.php?topic=167975.msg1445809#msg1445809)
How to change the colours of the links in the UserCP (http://www.simplemachines.org/community/index.php?topic=167975.200)
How to get the UserCp to work on different themes (http://www.simplemachines.org/community/index.php?topic=167975.msg1386370#msg1386370)
How to add a custom section to the UserCP ( for V1.X only ) (http://www.simplemachines.org/community/index.php?topic=167975.msg1076838#msg1076838)
How to add a custom section to the UserCP ( V2.X only ) (http://www.simplemachines.org/community/index.php?topic=167975.msg1445809#msg1445809)

Please note as of version 2.0 you can add custom sections via the admin panel , However you will have to use the manual method above if you want to use variables in the links such as $ID_Member or $scripturl.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: RoarinRow on April 28, 2007, 01:27:25 PM
Looking good Alan!   8) 
Title: Re: User Control Panel ( User CP ) V3.0
Post by: wilsy on April 28, 2007, 02:38:58 PM
Hi Alan,

I have had this installed on my forum for a while now - thanks to yourself and Aku and I can highly recommend this mod.

My members absolutely love it!  ;)

Regards,

Wilsy.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: rosiem on April 28, 2007, 07:00:28 PM
I'll try this out. :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: N3lson on April 29, 2007, 12:47:17 AM
Where it syas
<file name="$themedir/index.template.php">
   <operation>
      <search position="after"><![CDATA[if ($context['current_action'] == 'search2')]]></search>
        <add><![CDATA[if ($context['current_action'] == 'usercp')
$current_action = 'usercp';
      ]]></add>


that should´nt be ?
<file name="$themedir/index.template.php">
   <operation>
      <search position="after"><![CDATA[$current_action = 'search';]]></search>
        <add><![CDATA[if ($context['current_action'] == 'usercp')
$current_action = 'usercp';
      ]]></add>


Nice MOD
Title: Re: User Control Panel ( User CP ) V3.0
Post by: sessus on April 29, 2007, 07:45:00 AM
QuoteExecute Modification     ./Themes/default/index.template.php     Test failed

Anyone else gets that?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on April 29, 2007, 07:59:27 AM
Quote from: N3lson on April 29, 2007, 12:47:17 AM
Where it syas
<file name="$themedir/index.template.php">
   <operation>
      <search position="after"><![CDATA[if ($context['current_action'] == 'search2')]]></search>
        <add><![CDATA[if ($context['current_action'] == 'usercp')
$current_action = 'usercp';
      ]]></add>


that should´nt be ?
<file name="$themedir/index.template.php">
   <operation>
      <search position="after"><![CDATA[$current_action = 'search';]]></search>
        <add><![CDATA[if ($context['current_action'] == 'usercp')
$current_action = 'usercp';
      ]]></add>


Nice MOD

No it the code given in the modification.xml is correct , Its actualy $current_action =='search2' , You can use both ?action=search and ?action=search2  , but in the index.template.php it is down as search2.
Thanks for the quirey though!.

Quote from: sessus on April 29, 2007, 07:45:00 AM
QuoteExecute Modification     ./Themes/default/index.template.php     Test failed

Anyone else gets that?

@ Sessus , What other mods do you have installed?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: the lion on April 29, 2007, 08:36:44 AM
i have a sm1.1.1 board and i have instal 1.1.2 to my computer
how to instal it to my board ?
the link o my board:
osamajo.smfhost.com
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on April 29, 2007, 09:03:46 AM
Quote from: the lion on April 29, 2007, 08:36:44 AM
i have a sm1.1.1 board and i have instal 1.1.2 to my computer
how to instal it to my board ?
the link o my board:
osamajo.smfhost.com
Quote from: the lion on April 29, 2007, 08:36:44 AM
i have a sm1.1.1 board and i have instal 1.1.2 to my computer
how to instal it to my board ?
the link o my board:
osamajo.smfhost.com

Download The Package From Here (http://custom.simplemachines.org/mods/index.php?mod=698)

Then go to the forum admin panel  -> Packages -> Download packages

Upload the usercp zip file and then apply the package.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: tallpaul on April 29, 2007, 09:06:10 AM
do love this mod
anyone know what to change to make it work on other themes?

<!--  Edit a specific file..
  -->
- <file name="$boarddir/index.php" error="fatal">
- <!--  A seach operation, with search rules and code to modify the file with.
  -->
- <operation error="fatal">
- <!--  Search for this text before the code we add.  You can also search for after, and the end of the file.
  -->
- <search position="after" regexp="false" whitespace="exact">
- <![CDATA[ 'activate' => array('Register.php', 'Activate'),
  ]]>
  </search>
- <!--  Add this text when we find it.  Note that it's on it's own line on purpose, and the CDATA keeps things clean.
  -->
- <add>
- <![CDATA[ 'usercp' => array('usercp.php', 'usercp'),
  ]]>
  </add>
  </operation>
  </file>
- <file name="$themedir/index.template.php" error="fatal">
- <operation error="fatal">
- <search position="after" regexp="false" whitespace="exact">
- <![CDATA[ if ($context['current_action'] == 'search2')
  ]]>
  </search>
- <add>
- <![CDATA[ if ($context['current_action'] == 'usercp')
      $current_action = 'usercp';
     
  ]]>
  </add>
  </operation>
- <operation error="fatal">
- <search position="replace" regexp="false" whitespace="exact">
- <![CDATA[ if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
  ]]>
  </search>
- <add>
- <![CDATA[ if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'usercp', 'mlist', 'register', 'login', 'help', 'pm')))
     
  ]]>
  </add>
  </operation>
- <operation error="fatal">
- <search position="replace" regexp="false" whitespace="exact">
- <![CDATA[ <a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
  ]]>
  </search>
- <add>
- <![CDATA[ <a href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a>
     
  ]]>
  </add>
  </operation>
  </file>
- <file name="$themedir/languages/Modifications.english.php" error="fatal">
- <operation error="fatal">
- <search position="after" regexp="false" whitespace="exact">
- <![CDATA[ ?>
  ]]>
  </search>
Title: Re: User Control Panel ( User CP ) V3.0
Post by: mgimadu on April 29, 2007, 09:12:03 AM
thanks you
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on April 29, 2007, 11:35:54 AM
To Make It Work With A Custom Theme

Index.Template.Php

Find
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>

Replace With
<a href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a>

If there is a error on install on index.template.php ......

Install the package anyway , The most likely cause of the error is that you have another mod installed and that a bit of the code was not found , the most likely code will be this so lets fix it manualy.

Index.template.php

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

Add After
'usercp',
Title: Re: User Control Panel ( User CP ) V3.0
Post by: JerryLeeLewis on April 29, 2007, 01:17:13 PM
I have make changes in Index Template .php manually like it explained above


Very Nice Mod

For all who translate it in German here are some changes that i made in German hope it helps you
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on April 29, 2007, 01:37:15 PM
Thanks for the translation , Link has been added to the mod site topic.


The reason why a error will occur in the index.template.php is that it the installer replaces a piece of code that many other mods change , so if the code is not exactly the same the test will fail and you will have to add the index.template code manually.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: JerryLeeLewis on April 29, 2007, 01:42:02 PM
Quote from: Alan S on April 29, 2007, 01:37:15 PM
Thanks for the translation ,

no Problem  ;)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on April 29, 2007, 04:11:47 PM
Quote from: babjusi on April 29, 2007, 01:41:34 PM
Quote from: Alan S on April 29, 2007, 01:37:15 PM
Thanks for the translation , Link has been added to the mod site topic.


The reason why a error will occur in the index.template.php is that it the installer replaces a piece of code that many other mods change , so if the code is not exactly the same the test will fail and you will have to add the index.template code manually.

Thank u for your explanation. I ain''t so good with this coding thing, can you tell me please what code should I add and where?
See the post 6 posts up

http://www.simplemachines.org/community/index.php?topic=167975.msg1073991#msg1073991

It explains the code to add in the index.template.php.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: sessus on April 29, 2007, 07:31:32 PM
Alan S , those changes worked just fine.

Would you also know how to keep the UserCP Tab selected when browsing through the Profile?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on April 30, 2007, 11:36:50 AM
Quote from: sessus on April 29, 2007, 07:31:32 PM
Alan S , those changes worked just fine.

Would you also know how to keep the UserCP Tab selected when browsing through the Profile?

Humm , I thought should already do that , Anyway feel free to post the code if you want , I'll include it in the next release and other users might be thankful!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: tallpaul on April 30, 2007, 01:59:26 PM
Quote from: Alan S on April 29, 2007, 11:35:54 AM
To Make It Work With A Custom Theme

Index.Template.Php

Find
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>

Replace With
<a href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a>

If there is a error on install on index.template.php ......

Install the package anyway , The most likely cause of the error is that you have another mod installed and that a bit of the code was not found , the most likely code will be this so lets fix it manualy.

Index.template.php

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

Add After
'usercp',

excellant cheers mate  :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: tallpaul on April 30, 2007, 03:29:34 PM
user cp now works but dont have the image icons displayed.
tried uploading the image file into the images folder in the custom theme (helios multi rc2) via ftp and  my main usercp but just get permission denied, cant even change the permissions
any idea's please??
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on April 30, 2007, 05:01:42 PM
If you have ftp access try this ,

Download FileZilla (http://filezilla.sourceforge.net)

Install it and connect to your server , Go to Themes/helios/images , Create a new directory called usercp , Upload all the images from the mod usercp directory to it , Then right click on the usercp folder in ftp and set the file permissions to 777.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: tallpaul on April 30, 2007, 05:46:42 PM
Quote from: Alan S on April 30, 2007, 05:01:42 PM
If you have ftp access try this ,

Download FileZilla (http://filezilla.sourceforge.net)

Install it and connect to your server , Go to Themes/helios/images , Create a new directory called usercp , Upload all the images from the mod usercp directory to it , Then right click on the usercp folder in ftp and set the file permissions to 777.

cool mate cheers, i'll give that a try and let you know how i get on
Title: Re: User Control Panel ( User CP ) V3.0
Post by: sessus on May 01, 2007, 05:14:08 AM
Quote from: Alan S on April 30, 2007, 11:36:50 AM
Quote from: sessus on April 29, 2007, 07:31:32 PM
Alan S , those changes worked just fine.

Would you also know how to keep the UserCP Tab selected when browsing through the Profile?

Humm , I thought should already do that , Anyway feel free to post the code if you want , I'll include it in the next release and other users might be thankful!

You didn't really answer my question ;)

I found it out myself though:

in index.template.php do the following,
after
if ($context['current_action'] == 'search2')
$current_action = 'search';

add
if ($context['current_action'] == 'profile')
        $current_action = 'usercp';
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Smith Online on May 01, 2007, 07:11:13 AM
Hi Can You Tell Me How To Add More buttons to user cp for example i want to add an Awards button and a wishlist button both are part of my site already but would like to add them as buttons to user cp please help.

Regards

Smith-Online
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on May 01, 2007, 11:02:51 AM
Quote from: sessus on May 01, 2007, 05:14:08 AM
Quote from: Alan S on April 30, 2007, 11:36:50 AM
Quote from: sessus on April 29, 2007, 07:31:32 PM
Alan S , those changes worked just fine.

Would you also know how to keep the UserCP Tab selected when browsing through the Profile?

Humm , I thought should already do that , Anyway feel free to post the code if you want , I'll include it in the next release and other users might be thankful!

You didn't really answer my question ;)

I found it out myself though:

in index.template.php do the following,
after
if ($context['current_action'] == 'search2')
$current_action = 'search';

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


Lol sorry , Misread the post and though your said would you LIKE to know lol , Yes thats a coding bug i must have overlooked , Thanks for bringing it to my attention!

Quote from: Smith-Online on May 01, 2007, 07:11:13 AM
Hi Can You Tell Me How To Add More buttons to user cp for example i want to add an Awards button and a wishlist button both are part of my site already but would like to add them as buttons to user cp please help.

Regards

Smith-Online

Hey , Just doing some work now but i'll post the code you need to add to put extra things onto the usercp in about 1 hour.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Smith Online on May 01, 2007, 11:32:03 AM
Thanks ;)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on May 01, 2007, 03:17:40 PM
To Add A Extra Button To The UserCP

Open up usercp.template.php

<find>

<a href="mailto:', $webmaster_email ,'"><img border="0" src="',$settings['images_url'],'/usercp/agent.png" width="80" height="80"></a></td>


<add after>

<a href="' , $scripturl ,'?action=xxxx"><img border="0" src="',$settings['images_url'],'/usercp/image.png/gif/jpg" width="80" height="80"></a></td>


<find>
<font face="Verdana" size="1">',$txt['usercp_contact_admin_summary'],'</font></td>

<add after>

<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="' , $scripturl ,'?action=xxxx'"><b>BUTTON TITLE</a><br>
</b></font><font face="Verdana" size="1">BUTTON SUMMARY</font></td>



There are things you need to edit.

First of all , Get your button image or icon ( Good ones at http://www.crystalxp.net/ ) , name it and upload it to /Themes/themeurl/images/usercp/

Then replace , In the button code above

'?action=xxxx   with '?action=youraction

',$settings['images_url'],'/usercp/image.png/gif/jpg with ',$settings['images_url'],'/usercp/yourimage.extenison

BUTTON TITLE with Your Button Title Such As WishList

BUTTON SUMMARY with The Summary Of The Button Function
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Pc 1203 on May 01, 2007, 08:53:58 PM
Great Mod! I love it. Nice job!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: qubbah on May 08, 2007, 05:36:03 PM
anybody can help me to adjust manually my index template..

thanks...
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on May 09, 2007, 09:46:43 AM
Quote from: qubbah on May 08, 2007, 05:36:03 PM
anybody can help me to adjust manually my index template..

thanks...

Here you are.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: qubbah on May 09, 2007, 11:22:14 AM
i have this msg after put the new index templete...

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at www.mysite.net Port 80
Title: Re: User Control Panel ( User CP ) V3.0
Post by: AKR on May 14, 2007, 03:29:44 AM
Quote from: sessus on April 29, 2007, 07:45:00 AM
QuoteExecute Modification     ./Themes/default/index.template.php     Test failed

Anyone else gets that?

And i have this priblem. Please help me :(

Forum version:SMF 1.1.2

Installed Package:
1. RSS Feed Icon 1.1
2. SMF 1.1.2 Update Package   1.1.2
3. TinyPortal 0.983
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on May 14, 2007, 10:52:08 AM
Quote from: AKR on May 14, 2007, 03:29:44 AM
Quote from: sessus on April 29, 2007, 07:45:00 AM
QuoteExecute Modification     ./Themes/default/index.template.php     Test failed

Anyone else gets that?

And i have this priblem. Please help me :(

Forum version:SMF 1.1.2

Installed Package:
1. RSS Feed Icon 1.1
2. SMF 1.1.2 Update Package   1.1.2
3. TinyPortal 0.983


Install it anyway and then manually make the changes to the themes index.template.php listed here (http://www.simplemachines.org/community/index.php?topic=167975.msg1073991#msg1073991)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: the lion on May 19, 2007, 02:44:17 AM
Quote from: Alan S on April 29, 2007, 09:03:46 AM
Quote from: the lion on April 29, 2007, 08:36:44 AM
i have a sm1.1.1 board and i have instal 1.1.2 to my computer
how to instal it to my board ?
the link o my board:
osamajo.smfhost.com
Quote from: the lion on April 29, 2007, 08:36:44 AM
i have a sm1.1.1 board and i have instal 1.1.2 to my computer
how to instal it to my board ?
the link o my board:
osamajo.smfhost.com

Download The Package From Here (http://custom.simplemachines.org/mods/index.php?mod=698)

Then go to the forum admin panel  -> Packages -> Download packages

Upload the usercp zip file and then apply the package.


thanks alan s but when i open Packages -> Download packages it show me this:                                               "This feature has been disabled" 
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on May 19, 2007, 08:11:18 AM
Quote from: the lion on May 19, 2007, 02:44:17 AM
Quote from: Alan S on April 29, 2007, 09:03:46 AM
Quote from: the lion on April 29, 2007, 08:36:44 AM
i have a sm1.1.1 board and i have instal 1.1.2 to my computer
how to instal it to my board ?
the link o my board:
osamajo.smfhost.com
Quote from: the lion on April 29, 2007, 08:36:44 AM
i have a sm1.1.1 board and i have instal 1.1.2 to my computer
how to instal it to my board ?
the link o my board:
osamajo.smfhost.com

Download The Package From Here (http://custom.simplemachines.org/mods/index.php?mod=698)

Then go to the forum admin panel  -> Packages -> Download packages

Upload the usercp zip file and then apply the package.


thanks alan s but when i open Packages -> Download packages it show me this:                                               "This feature has been disabled" 


Hmmm , I've never seen that error before , Well trying going to Packages -> Options and making sure ftp info is in place and that files are writable
Title: Re: User Control Panel ( User CP ) V3.0
Post by: goitalone on May 22, 2007, 12:31:27 AM
Trying to get this to work on babylon theme but only one problem, I can't figure out how to make a button instead of just the text of that name.

The babylon theme is set up quite differently.

How can I turn that into a button instead of the text 'UserCP' ?

I will go look for a button to add right now, but I need to know what to change to get to the button url after I find one.

Thanks for any help
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on May 22, 2007, 01:56:25 PM
To make it work on the Babylon theme

index.template.php

find

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


Replace With

// User Cp [profile]
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=usercp">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/usercp.gif" alt="' . $txt['usercp'] . '" style="margin: 2px 0;" border="0" />' : $txt['usercp']), '</a>', $context['menu_separator'];


And use the button generator here[/u] to make a button called usercp.gif and upload it to Themes/babylon/images/english/ (http://www.marcovanveelen.nl/buttongenerator/)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: goitalone on May 22, 2007, 05:11:52 PM
Cool thanks..works great ;)

Nice to have that button generator as well.

Thanks a ton for the mod, it is one of my personal favorites :D
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ishan on May 29, 2007, 08:48:29 AM
I am using TP 0.983 , template = Default & some other mods like
3.    Visual Verification Options    0.3    
4.    SearchResultsMod    1.0    
5.    Website Button    1.1.4    
6.    vMoveTopic Notify by PM    0.90    
8.    Ad Revenue Sharing    1.0    
9.    Hide Selected Avatar    0.2
Link - http://www.justplay.in/forum

What modifications should i do to the template ?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on May 29, 2007, 11:01:31 AM
If there was a error on install , Look at this for the code to add

http://www.simplemachines.org/community/index.php?topic=167975.msg1073991#msg1073991

That also explains what to add to make it work with a custom theme.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: qubbah on May 29, 2007, 11:19:34 AM
can u help me to edit my index..

Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on May 29, 2007, 01:55:03 PM
Use this one , It has all the edits in it.

Title: Re: User Control Panel ( User CP ) V3.0
Post by: qubbah on May 30, 2007, 07:57:26 AM
its show this error
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3  500 myforum.net http://myforum.net/v10/index.php 60.53.56.168 /v10/index.php?action=usercp
Title: Re: User Control Panel ( User CP ) V3.0
Post by: mgimadu on May 30, 2007, 08:18:37 AM
Much thank Alan s but not run :( , reply please...  :(
Title: Re: User Control Panel ( User CP ) V3.0
Post by: DFalconX on June 02, 2007, 12:59:57 AM
here I leave a translation to the Spanish (Latin)
aqui dejo una traduccion al español (Latino)

:

$txt['usercp'] = 'CP del Usuario';
$txt['usercp_account_info'] = 'Mi Cuenta';
$txt['usercp_account_info_summary'] = 'Click aquí si quieres cambiar tu información relacionada con tu cuenta tal como nombre de usuario, email, contraseña u otros detalles.';
$txt['usercp_look_and_layout'] = 'Configuración de Apariencia y Diseño';
$txt['usercp_look_and_layout_summary'] = 'Click aqui para cambiar la forma en que se ve el foro para ti, esto incluye como se ven el foro y los post.';
$txt['usercp_my_theme'] = 'Mi tema';
$txt['usercp_my_theme_summary'] = 'Esta opcion te permitira establecer tu tema por defecto cada vez que ingreses al foro con tu cuenta.';
$txt['usercp_my_profile'] = 'Mi Perfil';
$txt['usercp_my_profile_summary'] = 'Click aqui para cambiar la apariencia de tu perfil y que lo miren todos .';
$txt['usercp_my_stats'] = 'Mis estadisticas';
$txt['usercp_my_stats_summary'] = 'Aquí puedes comprobar cuántos posts has hecho y el otra Info relacionada con la actividad.';
$txt['usercp_my_posts'] = 'Mis Posts';
$txt['usercp_my_posts_summary'] = 'Esta opción te demostrará todos los posts que has hecho desde que te hiciste un miembro de este sitio.';
$txt['usercp_my_notifications'] = 'Mis Notificaciones';
$txt['usercp_my_notifications_summary'] = 'Esto te permitira cambiar el tipo de frecuencia de tus notificaciones via e-mail cuando participas en un foro.';
$txt['usercp_buddies'] = 'Amigos';
$txt['usercp_buddies_summary'] = 'Aqui puedes seleccionar los amigos para agregarlos a tu lista.';
$txt['usercp_message_options'] = 'Opciones de mis mensajes';
$txt['usercp_message_options_summary'] = 'Esta opción te permitirá fijar tus preferencias para MPs recibidos en el foro y también que no hagas caso de la gente que no de la que no deseas recibir MPs.';
$txt['usercp_search'] = 'Buscar';
$txt['usercp_search_summary'] = 'Esta opción te permitirá buscar los posts hechos en el foro.';
$txt['usercp_contact_admin'] = 'Contactar a un administrador';
$txt['usercp_contact_admin_summary'] = '¿Confundido?, ¿Alguna duda?, pues contacta a un administrador via e-mail.';
$txt['usercp_guest'] = 'Lo siento, invitado, No tienes permiso para acceder al panel de control del usuario, por favor';
$txt['usercp_login'] = 'Ingresar';
$txt['usercp_or'] = 'o';
$txt['usercp_register'] = 'Registrarse';
$txt['usercp_copyright'] = 'User Cp V1.1';
$txt['usercp_welcome'] = 'Bienvenido ';
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on June 02, 2007, 09:42:41 AM
thanks. added to 1st post
Title: Re: User Control Panel ( User CP ) V3.0
Post by: K_4_kelly on June 02, 2007, 12:41:21 PM
hello

I love this mod alot
could you please help me to edit my index.template as well?

thanks a lot
Title: Re: User Control Panel ( User CP ) V3.0
Post by: speak121 on June 04, 2007, 02:17:38 PM
THX Alan S !!!!

I have installed the mod and I modify my profile.template.php also.

now I have the Control Panel I want! ^^
Title: Re: User Control Panel ( User CP ) V3.0
Post by: 5cakids on June 10, 2007, 01:02:51 PM
Oh thanks so much! This is awesome! And to think I was going to go Vbulletin for the CP oh glad I didnt!

Thanks
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Shadow Queen on June 12, 2007, 08:13:12 PM
I got a error install the mod on the main site.  But the test site install fine and without any errors.

   Execute Modification     ./Themes/default/index.template.php     Test failed
Title: Re: User Control Panel ( User CP ) V3.0
Post by: !Hachi! on June 12, 2007, 11:20:27 PM
it adds button only in index.template you can ignore but hold on IT TOTALLY ON YOU>i am responsible i am using custom theme so it doesn't matter .i will ignore it and add manually button thats all.
          or
   wait for author he will tell you reasons... but as i remember it only adds button  actually replace link with action=profile to action=usercp
                 if you want to add button manually change action to usercp      action=usercp
Title: Re: User Control Panel ( User CP ) V3.0
Post by: 5cakids on June 13, 2007, 12:51:05 AM
Yes I installed it no problem then updated the index page.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: qubbah on June 13, 2007, 11:01:31 AM
Quote from: qubbah on May 30, 2007, 07:57:26 AM
its show this error
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3  500 myforum.net http://myforum.net/v10/index.php 60.53.56.168 /v10/index.php?action=usercp

to make sure user control panel is working i make a new forum for fresh file... but its still showed that above error..
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on June 13, 2007, 11:02:00 AM
Quote from: hassan on June 12, 2007, 11:20:27 PM
it adds button only in index.template you can ignore but hold on IT TOTALLY ON YOU>i am responsible i am using custom theme so it doesn't matter .i will ignore it and add manually button thats all.
          or
   wait for author he will tell you reasons... but as i remember it only adds button  actually replace link with action=profile to action=usercp
                 if you want to add button manually change action to usercp      action=usercp

On the index.template.php it also add's some more code aswell as the button relating to the action=usercp.

If you get a error on install you should be able to install it anyway , It shouldnt cause any errors but then update your index.template.php with the code

Find:

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

Add before:

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


Find:

if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))


Replace with:


if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'usercp', 'mlist', 'register', 'login', 'help', 'pm')))


Find:

<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>

Replace with:

<a href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a>


Will be releasing V1.2 in a few days with a few minor bug fix's and possibly a new feature.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on June 13, 2007, 11:02:33 AM
Quote from: qubbah on June 13, 2007, 11:01:31 AM
Quote from: qubbah on May 30, 2007, 07:57:26 AM
its show this error
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3  500 myforum.net http://myforum.net/v10/index.php 60.53.56.168 /v10/index.php?action=usercp

to make sure user control panel is working i make a new forum for fresh file... but its still showed that above error..

Link to your forum and demo account please?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on June 13, 2007, 12:11:20 PM
can you post the default theme ( SMF Core) index.template.php please.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: qubbah on June 13, 2007, 12:24:20 PM
here THIS
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on June 13, 2007, 12:51:04 PM
Okay , this is weird , No specific error is showing so that doesnt really help , Did you get any errors on install? , Try uninstalling the mod , Downloading a fresh copy and installing that one and see if it works.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: 5cakids on June 14, 2007, 02:02:12 AM
Is there a way to add posts that they have posted to even if no one replied?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: karenwalkersnipple on June 15, 2007, 12:45:42 AM
This mod is not showing up in any of my custom themes.  Do I have to edit each individual themes index.template.php or just the default?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: 5cakids on June 15, 2007, 02:27:14 AM
edit all of them I do believe
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on June 15, 2007, 07:47:00 AM
Quote from: qubbah on June 13, 2007, 01:36:07 PM
it is still show this

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4  500 halaqah.net http://halaqah.net/v3/index.php 60.48.64.205 /v3/index.php?action=usercp

Hmmm , Could you try installing it on a fresh forum to make sure its a problem with the mod and not the forum?

Quote from: 5cakids on June 14, 2007, 02:02:12 AM
Is there a way to add posts that they have posted to even if no one replied?

Do you mean a new button?

http://www.simplemachines.org/community/index.php?topic=167975.msg1076838#msg1076838

Quote from: karenwalkersnipple on June 15, 2007, 12:45:42 AM
This mod is not showing up in any of my custom themes.  Do I have to edit each individual themes index.template.php or just the default?

Yes it is all of them.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Shadow Queen on June 15, 2007, 12:53:33 PM
Quote from: Alan S on June 13, 2007, 11:02:00 AM
Quote from: hassan on June 12, 2007, 11:20:27 PM
it adds button only in index.template you can ignore but hold on IT TOTALLY ON YOU>i am responsible i am using custom theme so it doesn't matter .i will ignore it and add manually button thats all.
          or
   wait for author he will tell you reasons... but as i remember it only adds button  actually replace link with action=profile to action=usercp
                 if you want to add button manually change action to usercp      action=usercp

On the index.template.php it also add's some more code aswell as the button relating to the action=usercp.

If you get a error on install you should be able to install it anyway , It shouldnt cause any errors but then update your index.template.php with the code

Find:

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

Add before:

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


Find:

if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))


Replace with:


if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'usercp', 'mlist', 'register', 'login', 'help', 'pm')))


Find:

<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>

Replace with:

<a href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a>


Will be releasing V1.2 in a few days with a few minor bug fix's and possibly a new feature.

You want me to install the mod with that file fail the test ???
Title: Re: User Control Panel ( User CP ) V3.0
Post by: qubbah on June 15, 2007, 12:58:25 PM
Quote from: Alan S on June 15, 2007, 07:47:00 AM
Quote from: qubbah on June 13, 2007, 01:36:07 PM
it is still show this

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4  500 halaqah.net http://halaqah.net/v3/index.php 60.48.64.205 /v3/index.php?action=usercp

Hmmm , Could you try installing it on a fresh forum to make sure its a problem with the mod and not the forum?

Quote from: 5cakids on June 14, 2007, 02:02:12 AM
Is there a way to add posts that they have posted to even if no one replied?

Do you mean a new button?

http://www.simplemachines.org/community/index.php?topic=167975.msg1076838#msg1076838

Quote from: karenwalkersnipple on June 15, 2007, 12:45:42 AM
This mod is not showing up in any of my custom themes.  Do I have to edit each individual themes index.template.php or just the default?

Yes it is all of them.


im install it in a fresh forum..(new forum as a test forum) but still the same problem...
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on June 15, 2007, 04:56:29 PM
Quote from: Shadow Queen on June 15, 2007, 12:53:33 PM
Quote from: Alan S on June 13, 2007, 11:02:00 AM
Quote from: hassan on June 12, 2007, 11:20:27 PM
it adds button only in index.template you can ignore but hold on IT TOTALLY ON YOU>i am responsible i am using custom theme so it doesn't matter .i will ignore it and add manually button thats all.
          or
   wait for author he will tell you reasons... but as i remember it only adds button  actually replace link with action=profile to action=usercp
                 if you want to add button manually change action to usercp      action=usercp

On the index.template.php it also add's some more code aswell as the button relating to the action=usercp.

If you get a error on install you should be able to install it anyway , It shouldnt cause any errors but then update your index.template.php with the code

Find:

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

Add before:

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


Find:

if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))


Replace with:


if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'usercp', 'mlist', 'register', 'login', 'help', 'pm')))


Find:

<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>

Replace with:

<a href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a>


Will be releasing V1.2 in a few days with a few minor bug fix's and possibly a new feature.

You want me to install the mod with that file fail the test ???

Yes , you can , It wont interfere with your forum. Then just make those edits manualy
Title: Re: User Control Panel ( User CP ) V3.0
Post by: karenwalkersnipple on June 15, 2007, 05:19:03 PM
I need the code for these following themes.

Moonraker
Heavy Metal
Oxygen
Amber
English Steel

Their coding is different and when I use the coding provided above..I get a parsel error.

TIA
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Shadow Queen on June 15, 2007, 05:29:23 PM
Alright, I will then
Title: Re: User Control Panel ( User CP ) V3.0
Post by: st1905 on June 16, 2007, 01:34:28 PM
Hello Alan and thank you so much for this mod.I`m using tinyportal+smf and both of them at latest versions.

I`m using tp-mirage theme and i cant make it work.

So i`m uploding both files for default template and mirage template.

Thank you so much.

Edit:I`ve installed it and have no problem now.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Muppet on June 17, 2007, 05:42:57 AM
Hi
I love the layout of this but am faced with this when applying mod
1. Execute Modification - Modification parse error
2. Extract Tree ./Themes/default/images/usercp 
3. Extract File ./Sources/usercp.php 
4. Extract File ./Themes/default/usercp.template.php
I have edited index template as you say but same error appears, I am using tinyportal+smf with the amber theme.
Any ideas :oThanks
Title: Re: User Control Panel ( User CP ) V3.0
Post by: nerdykit on June 17, 2007, 04:49:39 PM
This is a great mod.  Should be integral with SMF basic install in my opinion.  Is there a way to get themes that use a set of 'text generated' tabs (ie: Default theme) to show the word 'PROFILE' instead of USER CP although if it is clicked, it goes to your usercp mod?  (My users seem to be too used to the word PROFILE there).

Thanks.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MinasC on June 28, 2007, 08:14:14 PM
great mod indeed !!! could it be compatible with smf 1.1.3 ?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: babjusi on June 28, 2007, 08:22:31 PM
Quote from: MinasC on June 28, 2007, 08:14:14 PM
great mod indeed !!! could it be compatible with smf 1.1.3 ?

Yes, you will have to change the package-info.xml file.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MinasC on June 28, 2007, 08:52:17 PM
change what ? that's the only change needed ? thnx a lot !!!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: babjusi on June 28, 2007, 08:53:34 PM
add 1.1.3 after 1.1.2 where it says install and uninstall. That means it will be compatible with 1.1.3 as well
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Coldfx on June 28, 2007, 09:08:32 PM
If you made some Profile.template.php edits to mask the sidebar for the profile, this would be quite interesting.  Replace the side nav-bar with something like "Return to User CP".
Title: Re: User Control Panel ( User CP ) V3.0
Post by: RiderRaghav on June 29, 2007, 01:45:32 AM
Quote from: babjusi on June 28, 2007, 08:53:34 PM
add 1.1.3 after 1.1.2 where it says install and uninstall. That means it will be compatible with 1.1.3 as well

Can you tell me the proper process on how to do it ? .....coz I'm new to all this and I don't know much ..... lol


Thanks in advance ;)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on June 29, 2007, 05:40:05 AM
Quote from: Coldfx on June 28, 2007, 09:08:32 PM
If you made some Profile.template.php edits to mask the sidebar for the profile, this would be quite interesting.  Replace the side nav-bar with something like "Return to User CP".

Hmm , I like that idea , I may look into that for version 2.0

Quote from: riderraghav on June 29, 2007, 01:45:32 AM
Quote from: babjusi on June 28, 2007, 08:53:34 PM
add 1.1.3 after 1.1.2 where it says install and uninstall. That means it will be compatible with 1.1.3 as well

Can you tell me the proper process on how to do it ? .....coz I'm new to all this and I don't know much ..... lol


Thanks in advance ;)

You do not need to edit anything , Just update to 1.1.3 and install the current user cp package and it will install correctly , No edits or updates are required for this version {Test And Works}.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MinasC on June 29, 2007, 06:50:21 PM
gonna do it , thnx a lot !
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MinasC on June 29, 2007, 07:21:16 PM
Quote from: babjusi on June 28, 2007, 08:53:34 PM
add 1.1.3 after 1.1.2 where it says install and uninstall. That means it will be compatible with 1.1.3 as well

<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This is a simplified package manifest for SMF packages.

ATTENTION: If you are trying to install this manually, you should try
the package manager.  If it will not work for you, please take a look
at the following for information on this format:
http://mods.simplemachines.org/docs/manual-install.php

================================================================================

This script can be used to make your package do many different things.
The following documentation should be available on the format of this
file and the things you can do with it:
http://mods.simplemachines.org/docs/package-info.php

Please see the other included file, package-info_advanced.xml, for
a more detailed description of what you can do with this file.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<!-- For the id, always use something unique - put your name, a colon, and then the package name. -->
<id>Alan_S:UserCP</id>
<!-- Below should be the name of this package. -->
<name>User Control Panel By Alan S</name>
<!-- The version of this modification.  Keep it numeric so PHP can tell that old < new. -->
<version>1.1</version>

<!-- Type, one of: modification, avatar, language. -->
<type>modification</type>

<!-- Installation, the key part of this file. -->
<install>
<readme type="inline">This mod replaces the current profile screen with a more colourful User Control Panel , It makes it easier to navigate around the profile options and provides a way to contact the admin via email.

Credit Goes To Aku ( http://path-to-peace.net ) for the inspiration to create the mod and having the basic coding done to make it possible.</readme>
<modification>modification.xml</modification>
<require-dir name="usercp" destination="$imagesdir" />
<require-file name="usercp.php" destination="$sourcedir" />
<require-file name="usercp.template.php" destination="$themedir" />
</install>

<!-- Don't forget something to make it uninstallable! -->
<uninstall>
<modification reverse="true">modification.xml</modification>
<remove-dir name="usercp" destination="$imagesdir" />
<remove-file name="usercp.php" destination="$sourcedir" />
<remove-file name="usercp.template.php" destination="$themedir" />

</uninstall>
</package-info>


well , that's the package-info.xml but there's no smf version mentioned anywhere !
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on June 30, 2007, 08:06:51 AM
Quote from: MinasC on June 29, 2007, 07:21:16 PM
Quote from: babjusi on June 28, 2007, 08:53:34 PM
add 1.1.3 after 1.1.2 where it says install and uninstall. That means it will be compatible with 1.1.3 as well

<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This is a simplified package manifest for SMF packages.

ATTENTION: If you are trying to install this manually, you should try
the package manager.  If it will not work for you, please take a look
at the following for information on this format:
http://mods.simplemachines.org/docs/manual-install.php

================================================================================

This script can be used to make your package do many different things.
The following documentation should be available on the format of this
file and the things you can do with it:
http://mods.simplemachines.org/docs/package-info.php

Please see the other included file, package-info_advanced.xml, for
a more detailed description of what you can do with this file.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<!-- For the id, always use something unique - put your name, a colon, and then the package name. -->
<id>Alan_S:UserCP</id>
<!-- Below should be the name of this package. -->
<name>User Control Panel By Alan S</name>
<!-- The version of this modification.  Keep it numeric so PHP can tell that old < new. -->
<version>1.1</version>

<!-- Type, one of: modification, avatar, language. -->
<type>modification</type>

<!-- Installation, the key part of this file. -->
<install>
<readme type="inline">This mod replaces the current profile screen with a more colourful User Control Panel , It makes it easier to navigate around the profile options and provides a way to contact the admin via email.

Credit Goes To Aku ( http://path-to-peace.net ) for the inspiration to create the mod and having the basic coding done to make it possible.</readme>
<modification>modification.xml</modification>
<require-dir name="usercp" destination="$imagesdir" />
<require-file name="usercp.php" destination="$sourcedir" />
<require-file name="usercp.template.php" destination="$themedir" />
</install>

<!-- Don't forget something to make it uninstallable! -->
<uninstall>
<modification reverse="true">modification.xml</modification>
<remove-dir name="usercp" destination="$imagesdir" />
<remove-file name="usercp.php" destination="$sourcedir" />
<remove-file name="usercp.template.php" destination="$themedir" />

</uninstall>
</package-info>


well , that's the package-info.xml but there's no smf version mentioned anywhere !

Thats why you do not need to edit it , It will work with 1.1.1.1.1,1.1.2,1.1.3 without any edits to the package.
Quote from: qubbah on June 30, 2007, 01:11:07 AM
after make a hard work.. this msg still on my site

it is still show this error :

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4  500 halaqah.net http://myforum.net/v3/index.php 60.48.64.205 /v3/index.php?action=usercp

Hmmm i actualy do not know what the problem is , I dont see any specific error in that message , Besides a 500 error which is a internal server error which suggests to me that the problem must be with your server and not with the forum or the package.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MinasC on July 01, 2007, 04:00:40 AM
Quote from: Alan S on June 30, 2007, 08:06:51 AMThats why you do not need to edit it , It will work with 1.1.1.1.1,1.1.2,1.1.3 without any edits to the package.

but i get a "test failed" in index.template.php ! (using smf 1.1.3/tp 0.9.8)
any ideas why ?
thnx a lot for the support !
Title: Re: User Control Panel ( User CP ) V3.0
Post by: haschi on July 01, 2007, 07:29:41 AM
To show UserCP on Linktree, open /Source/usercp.php.

find:
global $context, $mbname, $txt;



add:
$context['linktree'][] = array(
'url' => $scripturl . '?action=usercp',
'name' => &$context['page_title'],
);


Very nice Mod! :D
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MinasC on July 03, 2007, 05:53:18 PM
but i cannot install it (returns an error) , how could i do that ?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: JOSHSKORN on July 05, 2007, 06:25:17 AM
I also am having a problem with index.template.php.  It is giving me an error.  I'm hesitant to install it anyway because this is my second time installing my forums.  Under some advice, I've reinstalled my forums w/ the 1.1.3 update.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on July 05, 2007, 07:47:04 AM
V1.2 will be released shortly which should stop the majority of people getting errors in the index.template.php and also clean up the install code a bit.


Title: Re: User Control Panel ( User CP ) V3.0
Post by: Matthew Schenker on July 05, 2007, 11:58:34 AM
Alan,
This looks like a great modification.  Please post the updated version soon which takes care of the index.template.php errors!

Thank you!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MinasC on July 09, 2007, 06:39:55 AM
Quote from: Alan S on July 05, 2007, 07:47:04 AM
V1.2 will be released shortly which should stop the majority of people getting errors in the index.template.php and also clean up the install code a bit.




looking forward to it !!!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on July 09, 2007, 11:22:35 AM
V1.2 Released.

See first post or Mod Site (http://custom.simplemachines.org/mods/index.php?mod=698) for more info.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MinasC on July 10, 2007, 01:38:42 AM
worked great for me , thnx alan ! the only thing is that the cp doesn't show inside a theme frame , but that's about looks , not functionality !
Title: Re: User Control Panel ( User CP ) V3.0
Post by: JOSHSKORN on July 12, 2007, 07:45:28 AM
After installing this mod, I've got a few errors.

First of all, I can't even get to the User CP.  I was under the impression that it created its own "User CP" button on the top menu.  I have to click on something like Admin and manually change the URL to get to it.

Secondly, the last image is missing from the User CP,I think this is for messages.

Third, last time I checked, there were titles and descriptions for each picture in the User CP.  Mine are blank.

Fourth, whenever I run my Forum Error Log, I end up with:

Undefined index: usercp on Line 649 on all of the following files:

Errors.template.php
BoardIndex.template.php
Treasury.english.php
TPortal.template.php
Search.template.php

Can someone help?  Thanks.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on July 12, 2007, 02:05:56 PM
Quote from: JOSHSKORN on July 12, 2007, 07:45:28 AM
After installing this mod, I've got a few errors.

First of all, I can't even get to the User CP.  I was under the impression that it created its own "User CP" button on the top menu.  I have to click on something like Admin and manually change the URL to get to it.

Secondly, the last image is missing from the User CP,I think this is for messages.

Third, last time I checked, there were titles and descriptions for each picture in the User CP.  Mine are blank.

Fourth, whenever I run my Forum Error Log, I end up with:

Undefined index: usercp on Line 649 on all of the following files:

Errors.template.php
BoardIndex.template.php
Treasury.english.php
TPortal.template.php
Search.template.php

Can someone help?  Thanks.

1) That is probably theme related , It modify's the default theme button only.

2) Try reuploading Themes/yourtheme/usercp

3) Copy modifications.english.php from the default theme's languages directory to the themes your using language directory.

4) That's strange since the usercp mod doesnt edit any of those files. , Can you post your boardindex.template.php file please.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: JOSHSKORN on July 12, 2007, 09:06:18 PM
As of right now, I seem to have gotten rid of most of my problems.  A lot of copying and pasting.  Something must be wrong w/ my host, Packages aren't installing properly.  Some files were empty or unchanged and they should've been.  I only see the missing image now, or I guess you can say that I don't see it.  This is when you click on UserCP and see 12 images, I only see 11 along with their descriptions.  I'm missing the Messenger.png button and it's text.

I'll go ahead and post it (BoardIndex.template.php), anyway, along with a few other files that I'm sure you might want to have a look at to help me fix my problems.

FYI I have not installed ANY themes yet.  I have not even changed my theme to Babylon, nor classic.  I've just left it on default.

File: BoardIndex.template.php

<?php
// Version: 1.1; BoardIndex

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

// Show some statistics next to the link tree if SP1 info is off.
echo '
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom">'
theme_linktree(), '</td>
<td align="right">'
;
if (!$settings['show_sp1_info'])
echo '
'
$txt[19], ': '$context['common_stats']['total_members'], ' &nbsp;•&nbsp; '$txt[95], ': '$context['common_stats']['total_posts'], ' &nbsp;•&nbsp; '$txt[64], ': '$context['common_stats']['total_topics'], '
'
, ($settings['show_latest_member'] ? '<br />' $txt[201] . ' <b>' $context['common_stats']['latest_member']['link'] . '</b>' $txt[581] : '');
echo '
</td>
</tr>
</table>'
;

// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
echo '
<table border="0" width="100%" class="tborder" cellspacing="' 
, ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' '0' '" cellpadding="4" style="margin-bottom: 2ex;">
<tr>
<td class="catbg"> &nbsp;'
$txt[102], '</td>
</tr>
<tr>
<td valign="middle" align="center" height="60">'
;

// Prepare all the javascript settings.
echo '
<div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>'
$context['news_lines'][0], '</b></div>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// The fading delay (in ms.)
var smfFadeDelay = '
, empty($settings['newsfader_time']) ? 5000 $settings['newsfader_time'], ';
// Fade from... what text color? To which background color?
var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
// Surround each item with... anything special?
var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

var foreColor, backEl, backColor;

if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
{
foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
backEl = backEl.parentNode;

backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
}
else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
{
foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
backEl = backEl.parentNode;

backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
}

// List all the lines of the news for display.
var smfFadeContent = new Array(
"'
implode('",
"'
$context['fader_news_lines']), '"
);
// ]]></script>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/fader.js"></script>
</td>
</tr>
</table>'
;
}

/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
and boards. (see below.) */
$first true;
foreach ($context['categories'] as $category)
{
echo '
<div class="tborder" style="margin-top: ' 
$first '0;' '1ex;' '' $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' '''">
<div class="catbg'
$category['new'] ? '2' '''" style="padding: 5px 5px 5px 10px;">';
$first false;

// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="'
$category['collapse_href'], '">'$category['collapse_image'], '</a>';

echo '
'
$category['link'], '
</div>'
;

// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 1px;">'
;

/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr>
<td ' 
, !empty($board['children']) ? 'rowspan="2"' '' ' class="windowbg" width="6%" align="center" valign="top"><a href="'$scripturl'?action=unread;board='$board['id'], '.0">';

// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="'$settings['images_url'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="'$settings['images_url'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" />';

echo '</a>
</td>
<td class="windowbg2">
<b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />
'
$board['description'];

// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';

// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
'
$board['posts'], ' '$txt[21], ' <br />
'
$board['topics'],' '$txt[330], '
</span></td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">'
;

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<b>'
$txt[22], '</b>  '$txt[525], ' '$board['last_post']['member']['link'] , '<br />
'
$txt['smf88'], ' '$board['last_post']['link'], '<br />
'
$txt[30], ' '$board['last_post']['time'];
echo '
</span>
</td>
</tr>'
;
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' $child['link'] . '</b>' $child['link'];
}

echo '
<tr>
<td colspan="3" class="windowbg'
, !empty($settings['seperate_sticky_lock']) ? '3' '''">
<span class="smalltext"><b>'
$txt['parent_boards'], '</b>: 'implode(', '$children), '</span>
</td>
</tr>'
;
}
}
echo '
</table>'
;
}
echo '
</div>'
;
}

if ($context['user']['is_logged'])
{
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td align="'
, !$context['right_to_left'] ? 'left' 'right''" class="smalltext">
<img src="' 
$settings['images_url'] . '/new_some.gif" alt="" align="middle" /> '$txt[333], '
<img src="' 
$settings['images_url'] . '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> '$txt[334], '
</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''">';

// Mark read button.
$mark_read_button = array('markread' => array('text' => 452'image' => 'markread.gif''lang' => true'url' => $scripturl '?action=markasread;sa=all;sesc=' $context['session_id']));

// Show the mark all as read button?
if ($settings['show_mark_read'] && !empty($context['categories']))
echo '
<table cellpadding="0" cellspacing="0" border="0" style="position: relative; top: -5px;">
<tr>
 '
template_button_strip($mark_read_button'top'), '
</tr>
</table>'
;
echo '
</td>
</tr>
</table>'
;
}

// Here's where the "Info Center" starts...
echo '<br />
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' '''>
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">
<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="'
$settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
'
$txt[685], '
</div>
<div id="upshrinkHeaderIC"'
, empty($options['collapse_header_ic']) ? '' ' style="display: none;"''>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">'
;

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=recent"><img src="'$settings['images_url'], '/post/xx.gif" alt="'$txt[214], '" /></a>
</td>
<td class="windowbg2">'
;

// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<b><a href="'
$scripturl'?action=recent">'$txt[214], '</a></b>
<div class="smalltext">
'
$txt[234], ' &quot;'$context['latest_post']['link'], '&quot; '$txt[235], ' ('$context['latest_post']['time'], ')<br />
</div>'
;
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="0" width="100%" border="0">'
;

/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td class="middletext" valign="top"><b>'
$post['link'], '</b> '$txt[525], ' '$post['poster']['link'], ' ('$post['board']['link'], ')</td>
<td class="middletext" align="right" valign="top" nowrap="nowrap">'
$post['time'], '</td>
</tr>'
;
echo '
</table>'
;
}
echo '
</td>
</tr>'
;
}

// Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=calendar"><img src="'$settings['images_url'], '/icons/calendar.gif" alt="'$txt['calendar24'], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltext">'
;

// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo '
<span style="color: #'
$modSettings['cal_holidaycolor'], ';">'$txt['calendar5'], ' 'implode(', '$context['calendar_holidays']), '</span><br />';

// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '
<span style="color: #'
$modSettings['cal_bdaycolor'], ';">'$context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
foreach ($context['calendar_birthdays'] as $member)
echo '
<a href="'
$scripturl'?action=profile;u='$member['id'], '">'$member['is_today'] ? '<b>' ''$member['name'], $member['is_today'] ? '</b>' '', isset($member['age']) ? ' (' $member['age'] . ')' '''</a>'$member['is_last'] ? '<br />' ', ';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #'
$modSettings['cal_eventcolor'], ';">'$context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
'
$event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: #FF0000;">*</a> ' ''$event['href'] == '' '' '<a href="' $event['href'] . '">'$event['is_today'] ? '<b>' $event['title'] . '</b>' $event['title'], $event['href'] == '' '' '</a>'$event['is_last'] ? '<br />' ', ';

// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '
(<a href="'
$scripturl'?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">'$txt['calendar_how_edit'], '</a>)';
}
echo '
</span>
</td>
</tr>'
;
}


// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[645], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=stats"><img src="'$settings['images_url'], '/icons/info.gif" alt="'$txt[645], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$context['common_stats']['total_posts'], ' '$txt[95], ' '$txt['smf88'], ' '$context['common_stats']['total_topics'], ' '$txt[64], ' '$txt[525], ' '$context['common_stats']['total_members'], ' '$txt[19], '. '$txt[656], ': <b> '$context['common_stats']['latest_member']['link'], '</b>
<br /> ' 
$txt[659] . ': <b>&quot;' $context['latest_post']['link'] . '&quot;</b>  ( ' $context['latest_post']['time'] . ' )<br />
<a href="'
$scripturl'?action=recent">'$txt[234], '</a>'$context['show_stats'] ? '<br />
<a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</span>
</td>
</tr>'
;
}

// "Users online" - in order of activity.
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[158], '</td>
</tr><tr>
<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' '''<img src="'$settings['images_url'], '/icons/online.gif" alt="'$txt[158], '" />'$context['show_who'] ? '</a>' '''
</td>
<td class="windowbg2" width="100%">'
;

echo '
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' ''$context['num_guests'], ' '$context['num_guests'] == $txt['guest'] : $txt['guests'], ', ' $context['num_users_online'], ' '$context['num_users_online'] == $txt['user'] : $txt['users'];

// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' '$context['num_buddies'] == $txt['buddy'] : $txt['buddies'];

// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' ''$context['num_users_hidden'] . ' ' $txt['hidden'];

echo ')';
}

echo $context['show_who'] ? '</a>' '''
<div class="smalltext">'
;

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
'
$txt[140], ':<br />'implode(', '$context['list_users_online']);

echo '
<br />
'
$context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' $scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</div>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$txt['most_online_today'], ': <b>'$modSettings['mostOnlineToday'], '</b>.
'
$txt['most_online_ever'], ': '$modSettings['mostOnline'], ' (' timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>'
;

// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
 echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[159], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
'
$context['allow_pm'] ? '<a href="' $scripturl '?action=pm">' '''<img src="'$settings['images_url'], '/message_sm.gif" alt="'$txt[159], '" />'$context['allow_pm'] ? '</a>' '''
</td>
<td class="windowbg2" valign="top">
<b><a href="'
$scripturl'?action=pm">'$txt[159], '</a></b>
<div class="smalltext">
'
$txt[660], ' '$context['user']['messages'], ' '$context['user']['messages'] == $txt[471] : $txt[153], '.... '$txt[661], ' <a href="'$scripturl'?action=pm">'$txt[662], '</a> '$txt[663], '
</div>
</td>
</tr>'
;
}

// Show the login bar. (it's only true if they are logged out anyway.)
if ($context['show_login_bar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[34], ' <a href="'$scripturl'?action=reminder" class="smalltext">(' $txt[315] . ')</a></td>
</tr>
<tr>
<td class="windowbg" width="20" align="center">
<a href="'
$scripturl'?action=login"><img src="'$settings['images_url'], '/icons/login.gif" alt="'$txt[34], '" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>
<td valign="middle" align="left">
<label for="user"><b>'
$txt[35], ':</b><br />
<input type="text" name="user" id="user" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="passwrd"><b>'
$txt[36], ':</b><br />
<input type="password" name="passwrd" id="passwrd" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="cookielength"><b>'
$txt[497], ':</b><br />
<input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="'
$modSettings['cookieTime'], '" /></label>
</td>
<td valign="middle" align="left">
<label for="cookieneverexp"><b>'
$txt[508], ':</b><br />
<input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="'
$txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>'
;
}

echo '
</table>
</div>
</div>'
;
}

?>



usercp.template.php

<?php
/*
UserCp Created By Alan S
Original Code By Aku
Designed For SMF 1.1 +
UserCP V 1.2 9/July/2007
*/

 
function template_main()

{

global $scripturl$webmaster_email$txt$modSettings$context$settings$ID_MEMBER;



if (
$context['user']['is_logged'])
if (
$context['allow_edit_profile'])
echo
'
<table border="0" width="100%" id="table1" cellspacing="1" style="border-collapse: collapse">
<center>' 
$txt['usercp_welcome'] , '<b>'$context['user']['name'] , '</b> <br></center>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=account"><img border="0" src="',$settings['images_url'],'/usercp/ksysguard.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=theme"><img border="0" src="',$settings['images_url'],'/usercp/kivio.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=theme;sa=pick;u='$ID_MEMBER';sesc='$context['session_id'], '"><img border="0" src="',$settings['images_url'],'/usercp/blockdevice.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=forumProfile"><img border="0" src="',$settings['images_url'],'/usercp/kuser.png" width="80" height="80"></a></font></td>
</tr>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=account"><b>',$txt['usercp_account_info'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_account_info_summary'],'</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=theme"><b>',$txt['usercp_look_and_layout'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_look_and_layout_summary'],'</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"> <a href="'
$scripturl'?action=theme;sa=pick;u='$ID_MEMBER';sesc='$context['session_id'], '"><b>',$txt['usercp_my_theme'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_my_theme_summary'],'</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=forumProfile"><b>',$txt['usercp_my_profile'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_my_profile_summary'],'</font></td>
</tr>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=statPanel"><img border="0" src="',$settings['images_url'],'/usercp/kwalletmanager.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=showPosts"><img border="0" src="',$settings['images_url'],'/usercp/kedit.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=notification"><img border="0" src="',$settings['images_url'],'/usercp/mailreminder.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=editBuddies"><img border="0" src="',$settings['images_url'],'/usercp/kdmconfig.png" width="80" height="80"></a></font></td>
</tr>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=statPanel"><b>',$txt['usercp_my_stats'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_my_stats_summary'],'</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl,'?action=profile;u='$ID_MEMBER';sa=showPosts"><b>',$txt['usercp_my_posts'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_my_posts_summary'],'</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=notification"><b>',$txt['usercp_my_notifications'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_my_notifications_summary'],'</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=editBuddies"><b>',$txt['usercp_buddies'] ,'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_buddies_summary'],'</font></td>
</tr>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=pmprefs"><img border="0" src="',$settings['images_url'],'/usercp/mail.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<a href="'
$scripturl'?action=search"><img border="0" src="',$settings['images_url'],'/usercp/find.png" width="80" height="80"></a></td>
<td align="center" width="25%" valign="top">
<a href="mailto:'
$webmaster_email ,'"><img border="0" src="',$settings['images_url'],'/usercp/agent.png" width="80" height="80"></a></td>
</tr>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=pmprefs"><b>',$txt['usercp_message_options'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_message_options_summary'],'</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl'?action=search"><b>',$txt['usercp_search'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_search_summary'],'</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="mailto:'
$webmaster_email ,'"><b>',$txt['usercp_contact_admin'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_contact_admin_summary'],'</font></td>
</tr>
</table>
<br>
<center><font size="1pt"><a href="mailto:[email protected]">'
,$txt['usercp_copyright'],'</a></font></center>';

      if (
$context['user']['is_guest'])
      echo 
'
      
      <center><b>'
,$txt['usercp_guest'],' <a href="',$scripturl,'?action=login">',$txt['usercp_login'],'</a> ',$txt['usercp_or'],' <a href="',$scripturl,'?action=register">',$txt['usercp_register'],'</a></b></center>';
}

?>



Modifications.english.php

<?php
// Version: 1.1; Modifications

//Begin Profile Comments Text Strings

//Permissions
$txt['permissiongroup_pcomments'] = 'Profile Comments';
$txt['permissionname_pcomments_view'] = 'View Comments';
$txt['permissionhelp_pcomments_view'] = 'If the user is allowed to view user comments.';
$txt['permissionname_pcomments_add'] = 'Allow add Comments';
$txt['permissionhelp_pcomments_add'] = 'If the user is allowed to enter comments in others profile.';
$txt['permissionname_pcomments_edit_own'] = 'Edit own comment.';
$txt['permissionhelp_pcomments_edit_own'] = 'Allows the user to edit their own comments.';
$txt['permissionname_pcomments_edit_any'] = 'Edit any comment';
$txt['permissionhelp_pcomments_edit_any'] = 'Allows the user to edit any comments.';
$txt['permissionname_pcomments_delete_own'] = 'Delete own comment.';
$txt['permissionhelp_pcomments_delete_own'] = 'Allows the user to delete their own comments.';
$txt['permissionname_pcomments_delete_any'] = 'Delete any comment';
$txt['permissionhelp_pcomments_delete_any'] = 'Allows the user to delete any comments.';
$txt['cannot_pcomments_add'] = 'You are not allowed to add comments.';
$txt['cannot_pcomments_edit_own'] = 'You are not allowed to edit your own comment.';
$txt['cannot_pcomments_edit_any'] = 'You are not allowed to edit any comment.';
$txt['cannot_pcomments_delete_own'] = 'You are not allowed to delete own comment.';
$txt['cannot_pcomments_delete_any'] = 'You are not allowed to delete any comment.';
//END Profile Comments Text Strings

//START UserCP Text Strings
$txt['usercp'] = 'User CP';
$txt['usercp_account_info'] = 'My Account Info';
$txt['usercp_account_info_summary'] = 'Click here if you want to change your account related information such as username, email, password or other sensitive details.';
$txt['usercp_look_and_layout'] = 'Look & Layout Options';
$txt['usercp_look_and_layout_summary'] = 'Click here to change the way the forum looks for you, options include the look and layout for the boards and posts.';
$txt['usercp_my_theme'] = 'My Theme';
$txt['usercp_my_theme_summary'] = 'This screen will allow you to set your default theme which you wish to use every time you login.';
$txt['usercp_my_profile'] = 'My Profile';
$txt['usercp_my_profile_summary'] = 'Click here to change the way your profile looks and appears to everyone.';
$txt['usercp_my_stats'] = 'My Stats';
$txt['usercp_my_stats_summary'] = 'Here you can check how many posts you have made and other activity related info.';
$txt['usercp_my_posts'] = 'My Posts';
$txt['usercp_my_posts_summary'] = 'This option will show you all the posts you have made since you became a member of this site.';
$txt['usercp_my_notifications'] = 'My Notifications';
$txt['usercp_my_notifications_summary'] = 'This screen will allow you to change the type and frequency of notifications you get via e-mail when participating in threads.';
$txt['usercp_buddies'] = 'Buddies';
$txt['usercp_buddies_summary'] = 'This screen will allow you to select buddies to add to your list.';
$txt['usercp_message_options'] = 'My Message Options';
$txt['usercp_message_options_summary'] = 'This screen will allow you to set your preferences for PMs received on the board and also allow you to ignore people you do not wish to receive PMs from.';
$txt['usercp_search'] = 'Search';
$txt['usercp_search_summary'] = 'This screen will allow you to search for posts made in the board.';
$txt['usercp_contact_admin'] = 'Contact Admin';
$txt['usercp_contact_admin_summary'] = 'Confused? or have a quirey? Contact the admin via email at this screen';
$txt['usercp_guest'] = 'Sorry , Guest , You are not allowed to access the User CP , Please';
$txt['usercp_login'] = 'Login';
$txt['usercp_or'] = 'or';
$txt['usercp_register'] = 'Register';
$txt['usercp_copyright'] = 'User Cp V1.2 | Created By Alan S';
$txt['usercp_welcome'] = 'Welcome ';
//END UserCP Text Strings


//Begin SMF Treasury Text
$txt['treasury_menu'] = 'Treasury';
$txt['treasury_admin'] = 'Treasury';
$txt['permissiongroup_treasury'] = 'Treasury';
$txt['permissionname_view_treasury'] = 'View Treasury';
$txt['permissionhelp_view_treasury'] = 'Sets if the user can view Treasury.';
$txt['cannot_view_treasury'] = 'You can not view Treasury.';
$txt['permissionname_admin_treasury'] = 'Administer Treasury';
$txt['permissionhelp_admin_treasury'] = 'If the user is allowed to administer Treasury';
$txt['cannot_admin_treasury'] = 'You can not administer Treasury.';
$txt['show_donations'] = 'Show Donations';
//End SMF Treasury Text

?>

Title: Re: User Control Panel ( User CP ) V3.0
Post by: Virtual Hero on July 13, 2007, 12:09:27 AM
I tried installing it on a custom theme 1.13 and I don't get any errors. However, when I go to the User Control Panel it still looks the same. Thanks in advance!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: JOSHSKORN on July 13, 2007, 12:12:51 AM
Quote from: Virtual Hero on July 13, 2007, 12:09:27 AM
I tried installing it on a custom theme 1.13 and I don't get any errors. However, when I go to the User Control Panel it still looks the same. Thanks in advance!

what do you mean?  same images on your theme as on default?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Virtual Hero on July 13, 2007, 12:41:30 AM
Not the default because it's a custom theme, but yes, something similar to the default.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: JOSHSKORN on July 13, 2007, 01:08:51 AM
Quote from: Virtual Hero on July 13, 2007, 12:41:30 AM
Not the default because it's a custom theme, but yes, something similar to the default.

You'd have to make your own images, if I'm not mistaken.  How?  Maybe try Photoshop, MSPaint, Gimp, there's a ton of programs out there.  Then create a folder named usercp inside Themes/yourthemedirectory/images with your own pictures.  I believe you also need to copy over usercp.template.php as well.  If you don't copy it over, it will use use the original images found in Themes/default/images/usercp.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Virtual Hero on July 13, 2007, 01:18:17 AM
Thanks!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on July 13, 2007, 08:24:43 AM
Quote from: JOSHSKORN on July 12, 2007, 09:06:18 PM
As of right now, I seem to have gotten rid of most of my problems.  A lot of copying and pasting.  Something must be wrong w/ my host, Packages aren't installing properly.  Some files were empty or unchanged and they should've been.  I only see the missing image now, or I guess you can say that I don't see it.  This is when you click on UserCP and see 12 images, I only see 11 along with their descriptions.  I'm missing the Messenger.png button and it's text.

I'll go ahead and post it (BoardIndex.template.php), anyway, along with a few other files that I'm sure you might want to have a look at to help me fix my problems.

FYI I have not installed ANY themes yet.  I have not even changed my theme to Babylon, nor classic.  I've just left it on default.

File: BoardIndex.template.php

<?php
// Version: 1.1; BoardIndex

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

// Show some statistics next to the link tree if SP1 info is off.
echo '
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom">'
theme_linktree(), '</td>
<td align="right">'
;
if (!$settings['show_sp1_info'])
echo '
'
$txt[19], ': '$context['common_stats']['total_members'], ' &nbsp;•&nbsp; '$txt[95], ': '$context['common_stats']['total_posts'], ' &nbsp;•&nbsp; '$txt[64], ': '$context['common_stats']['total_topics'], '
'
, ($settings['show_latest_member'] ? '<br />' $txt[201] . ' <b>' $context['common_stats']['latest_member']['link'] . '</b>' $txt[581] : '');
echo '
</td>
</tr>
</table>'
;

// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
echo '
<table border="0" width="100%" class="tborder" cellspacing="' 
, ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' '0' '" cellpadding="4" style="margin-bottom: 2ex;">
<tr>
<td class="catbg"> &nbsp;'
$txt[102], '</td>
</tr>
<tr>
<td valign="middle" align="center" height="60">'
;

// Prepare all the javascript settings.
echo '
<div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>'
$context['news_lines'][0], '</b></div>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// The fading delay (in ms.)
var smfFadeDelay = '
, empty($settings['newsfader_time']) ? 5000 $settings['newsfader_time'], ';
// Fade from... what text color? To which background color?
var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
// Surround each item with... anything special?
var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

var foreColor, backEl, backColor;

if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
{
foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
backEl = backEl.parentNode;

backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
}
else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
{
foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
backEl = backEl.parentNode;

backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
}

// List all the lines of the news for display.
var smfFadeContent = new Array(
"'
implode('",
"'
$context['fader_news_lines']), '"
);
// ]]></script>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/fader.js"></script>
</td>
</tr>
</table>'
;
}

/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
and boards. (see below.) */
$first true;
foreach ($context['categories'] as $category)
{
echo '
<div class="tborder" style="margin-top: ' 
$first '0;' '1ex;' '' $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' '''">
<div class="catbg'
$category['new'] ? '2' '''" style="padding: 5px 5px 5px 10px;">';
$first false;

// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="'
$category['collapse_href'], '">'$category['collapse_image'], '</a>';

echo '
'
$category['link'], '
</div>'
;

// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 1px;">'
;

/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr>
<td ' 
, !empty($board['children']) ? 'rowspan="2"' '' ' class="windowbg" width="6%" align="center" valign="top"><a href="'$scripturl'?action=unread;board='$board['id'], '.0">';

// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="'$settings['images_url'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="'$settings['images_url'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" />';

echo '</a>
</td>
<td class="windowbg2">
<b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />
'
$board['description'];

// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';

// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
'
$board['posts'], ' '$txt[21], ' <br />
'
$board['topics'],' '$txt[330], '
</span></td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">'
;

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<b>'
$txt[22], '</b>  '$txt[525], ' '$board['last_post']['member']['link'] , '<br />
'
$txt['smf88'], ' '$board['last_post']['link'], '<br />
'
$txt[30], ' '$board['last_post']['time'];
echo '
</span>
</td>
</tr>'
;
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' $child['link'] . '</b>' $child['link'];
}

echo '
<tr>
<td colspan="3" class="windowbg'
, !empty($settings['seperate_sticky_lock']) ? '3' '''">
<span class="smalltext"><b>'
$txt['parent_boards'], '</b>: 'implode(', '$children), '</span>
</td>
</tr>'
;
}
}
echo '
</table>'
;
}
echo '
</div>'
;
}

if ($context['user']['is_logged'])
{
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td align="'
, !$context['right_to_left'] ? 'left' 'right''" class="smalltext">
<img src="' 
$settings['images_url'] . '/new_some.gif" alt="" align="middle" /> '$txt[333], '
<img src="' 
$settings['images_url'] . '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> '$txt[334], '
</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''">';

// Mark read button.
$mark_read_button = array('markread' => array('text' => 452'image' => 'markread.gif''lang' => true'url' => $scripturl '?action=markasread;sa=all;sesc=' $context['session_id']));

// Show the mark all as read button?
if ($settings['show_mark_read'] && !empty($context['categories']))
echo '
<table cellpadding="0" cellspacing="0" border="0" style="position: relative; top: -5px;">
<tr>
 '
template_button_strip($mark_read_button'top'), '
</tr>
</table>'
;
echo '
</td>
</tr>
</table>'
;
}

// Here's where the "Info Center" starts...
echo '<br />
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' '''>
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">
<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="'
$settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
'
$txt[685], '
</div>
<div id="upshrinkHeaderIC"'
, empty($options['collapse_header_ic']) ? '' ' style="display: none;"''>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">'
;

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=recent"><img src="'$settings['images_url'], '/post/xx.gif" alt="'$txt[214], '" /></a>
</td>
<td class="windowbg2">'
;

// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<b><a href="'
$scripturl'?action=recent">'$txt[214], '</a></b>
<div class="smalltext">
'
$txt[234], ' &quot;'$context['latest_post']['link'], '&quot; '$txt[235], ' ('$context['latest_post']['time'], ')<br />
</div>'
;
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="0" width="100%" border="0">'
;

/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td class="middletext" valign="top"><b>'
$post['link'], '</b> '$txt[525], ' '$post['poster']['link'], ' ('$post['board']['link'], ')</td>
<td class="middletext" align="right" valign="top" nowrap="nowrap">'
$post['time'], '</td>
</tr>'
;
echo '
</table>'
;
}
echo '
</td>
</tr>'
;
}

// Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=calendar"><img src="'$settings['images_url'], '/icons/calendar.gif" alt="'$txt['calendar24'], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltext">'
;

// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo '
<span style="color: #'
$modSettings['cal_holidaycolor'], ';">'$txt['calendar5'], ' 'implode(', '$context['calendar_holidays']), '</span><br />';

// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '
<span style="color: #'
$modSettings['cal_bdaycolor'], ';">'$context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
foreach ($context['calendar_birthdays'] as $member)
echo '
<a href="'
$scripturl'?action=profile;u='$member['id'], '">'$member['is_today'] ? '<b>' ''$member['name'], $member['is_today'] ? '</b>' '', isset($member['age']) ? ' (' $member['age'] . ')' '''</a>'$member['is_last'] ? '<br />' ', ';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #'
$modSettings['cal_eventcolor'], ';">'$context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
'
$event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: #FF0000;">*</a> ' ''$event['href'] == '' '' '<a href="' $event['href'] . '">'$event['is_today'] ? '<b>' $event['title'] . '</b>' $event['title'], $event['href'] == '' '' '</a>'$event['is_last'] ? '<br />' ', ';

// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '
(<a href="'
$scripturl'?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">'$txt['calendar_how_edit'], '</a>)';
}
echo '
</span>
</td>
</tr>'
;
}


// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[645], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=stats"><img src="'$settings['images_url'], '/icons/info.gif" alt="'$txt[645], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$context['common_stats']['total_posts'], ' '$txt[95], ' '$txt['smf88'], ' '$context['common_stats']['total_topics'], ' '$txt[64], ' '$txt[525], ' '$context['common_stats']['total_members'], ' '$txt[19], '. '$txt[656], ': <b> '$context['common_stats']['latest_member']['link'], '</b>
<br /> ' 
$txt[659] . ': <b>&quot;' $context['latest_post']['link'] . '&quot;</b>  ( ' $context['latest_post']['time'] . ' )<br />
<a href="'
$scripturl'?action=recent">'$txt[234], '</a>'$context['show_stats'] ? '<br />
<a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</span>
</td>
</tr>'
;
}

// "Users online" - in order of activity.
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[158], '</td>
</tr><tr>
<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' '''<img src="'$settings['images_url'], '/icons/online.gif" alt="'$txt[158], '" />'$context['show_who'] ? '</a>' '''
</td>
<td class="windowbg2" width="100%">'
;

echo '
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' ''$context['num_guests'], ' '$context['num_guests'] == $txt['guest'] : $txt['guests'], ', ' $context['num_users_online'], ' '$context['num_users_online'] == $txt['user'] : $txt['users'];

// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' '$context['num_buddies'] == $txt['buddy'] : $txt['buddies'];

// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' ''$context['num_users_hidden'] . ' ' $txt['hidden'];

echo ')';
}

echo $context['show_who'] ? '</a>' '''
<div class="smalltext">'
;

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
'
$txt[140], ':<br />'implode(', '$context['list_users_online']);

echo '
<br />
'
$context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' $scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</div>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$txt['most_online_today'], ': <b>'$modSettings['mostOnlineToday'], '</b>.
'
$txt['most_online_ever'], ': '$modSettings['mostOnline'], ' (' timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>'
;

// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
 echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[159], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
'
$context['allow_pm'] ? '<a href="' $scripturl '?action=pm">' '''<img src="'$settings['images_url'], '/message_sm.gif" alt="'$txt[159], '" />'$context['allow_pm'] ? '</a>' '''
</td>
<td class="windowbg2" valign="top">
<b><a href="'
$scripturl'?action=pm">'$txt[159], '</a></b>
<div class="smalltext">
'
$txt[660], ' '$context['user']['messages'], ' '$context['user']['messages'] == $txt[471] : $txt[153], '.... '$txt[661], ' <a href="'$scripturl'?action=pm">'$txt[662], '</a> '$txt[663], '
</div>
</td>
</tr>'
;
}

// Show the login bar. (it's only true if they are logged out anyway.)
if ($context['show_login_bar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[34], ' <a href="'$scripturl'?action=reminder" class="smalltext">(' $txt[315] . ')</a></td>
</tr>
<tr>
<td class="windowbg" width="20" align="center">
<a href="'
$scripturl'?action=login"><img src="'$settings['images_url'], '/icons/login.gif" alt="'$txt[34], '" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>
<td valign="middle" align="left">
<label for="user"><b>'
$txt[35], ':</b><br />
<input type="text" name="user" id="user" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="passwrd"><b>'
$txt[36], ':</b><br />
<input type="password" name="passwrd" id="passwrd" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="cookielength"><b>'
$txt[497], ':</b><br />
<input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="'
$modSettings['cookieTime'], '" /></label>
</td>
<td valign="middle" align="left">
<label for="cookieneverexp"><b>'
$txt[508], ':</b><br />
<input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="'
$txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>'
;
}

echo '
</table>
</div>
</div>'
;
}

?>



usercp.template.php

<?php
/*
UserCp Created By Alan S
Original Code By Aku
Designed For SMF 1.1 +
UserCP V 1.2 9/July/2007
*/

 
function template_main()

{

global $scripturl$webmaster_email$txt$modSettings$context$settings$ID_MEMBER;



if (
$context['user']['is_logged'])
if (
$context['allow_edit_profile'])
echo
'
<table border="0" width="100%" id="table1" cellspacing="1" style="border-collapse: collapse">
<center>' 
$txt['usercp_welcome'] , '<b>'$context['user']['name'] , '</b> <br></center>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=account"><img border="0" src="',$settings['images_url'],'/usercp/ksysguard.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=theme"><img border="0" src="',$settings['images_url'],'/usercp/kivio.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=theme;sa=pick;u='$ID_MEMBER';sesc='$context['session_id'], '"><img border="0" src="',$settings['images_url'],'/usercp/blockdevice.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=forumProfile"><img border="0" src="',$settings['images_url'],'/usercp/kuser.png" width="80" height="80"></a></font></td>
</tr>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=account"><b>',$txt['usercp_account_info'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_account_info_summary'],'</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=theme"><b>',$txt['usercp_look_and_layout'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_look_and_layout_summary'],'</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"> <a href="'
$scripturl'?action=theme;sa=pick;u='$ID_MEMBER';sesc='$context['session_id'], '"><b>',$txt['usercp_my_theme'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_my_theme_summary'],'</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=forumProfile"><b>',$txt['usercp_my_profile'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_my_profile_summary'],'</font></td>
</tr>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=statPanel"><img border="0" src="',$settings['images_url'],'/usercp/kwalletmanager.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=showPosts"><img border="0" src="',$settings['images_url'],'/usercp/kedit.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=notification"><img border="0" src="',$settings['images_url'],'/usercp/mailreminder.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=editBuddies"><img border="0" src="',$settings['images_url'],'/usercp/kdmconfig.png" width="80" height="80"></a></font></td>
</tr>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=statPanel"><b>',$txt['usercp_my_stats'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_my_stats_summary'],'</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl,'?action=profile;u='$ID_MEMBER';sa=showPosts"><b>',$txt['usercp_my_posts'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_my_posts_summary'],'</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=notification"><b>',$txt['usercp_my_notifications'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_my_notifications_summary'],'</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=editBuddies"><b>',$txt['usercp_buddies'] ,'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_buddies_summary'],'</font></td>
</tr>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=pmprefs"><img border="0" src="',$settings['images_url'],'/usercp/mail.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<a href="'
$scripturl'?action=search"><img border="0" src="',$settings['images_url'],'/usercp/find.png" width="80" height="80"></a></td>
<td align="center" width="25%" valign="top">
<a href="mailto:'
$webmaster_email ,'"><img border="0" src="',$settings['images_url'],'/usercp/agent.png" width="80" height="80"></a></td>
</tr>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl'?action=profile;u='$ID_MEMBER';sa=pmprefs"><b>',$txt['usercp_message_options'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_message_options_summary'],'</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="'
$scripturl'?action=search"><b>',$txt['usercp_search'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_search_summary'],'</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="mailto:'
$webmaster_email ,'"><b>',$txt['usercp_contact_admin'],'</a><br>
</b></font><font face="Verdana" size="1">'
,$txt['usercp_contact_admin_summary'],'</font></td>
</tr>
</table>
<br>
<center><font size="1pt"><a href="mailto:[email protected]">'
,$txt['usercp_copyright'],'</a></font></center>';

      if (
$context['user']['is_guest'])
      echo 
'
      
      <center><b>'
,$txt['usercp_guest'],' <a href="',$scripturl,'?action=login">',$txt['usercp_login'],'</a> ',$txt['usercp_or'],' <a href="',$scripturl,'?action=register">',$txt['usercp_register'],'</a></b></center>';
}

?>



Modifications.english.php

<?php
// Version: 1.1; Modifications

//Begin Profile Comments Text Strings

//Permissions
$txt['permissiongroup_pcomments'] = 'Profile Comments';
$txt['permissionname_pcomments_view'] = 'View Comments';
$txt['permissionhelp_pcomments_view'] = 'If the user is allowed to view user comments.';
$txt['permissionname_pcomments_add'] = 'Allow add Comments';
$txt['permissionhelp_pcomments_add'] = 'If the user is allowed to enter comments in others profile.';
$txt['permissionname_pcomments_edit_own'] = 'Edit own comment.';
$txt['permissionhelp_pcomments_edit_own'] = 'Allows the user to edit their own comments.';
$txt['permissionname_pcomments_edit_any'] = 'Edit any comment';
$txt['permissionhelp_pcomments_edit_any'] = 'Allows the user to edit any comments.';
$txt['permissionname_pcomments_delete_own'] = 'Delete own comment.';
$txt['permissionhelp_pcomments_delete_own'] = 'Allows the user to delete their own comments.';
$txt['permissionname_pcomments_delete_any'] = 'Delete any comment';
$txt['permissionhelp_pcomments_delete_any'] = 'Allows the user to delete any comments.';
$txt['cannot_pcomments_add'] = 'You are not allowed to add comments.';
$txt['cannot_pcomments_edit_own'] = 'You are not allowed to edit your own comment.';
$txt['cannot_pcomments_edit_any'] = 'You are not allowed to edit any comment.';
$txt['cannot_pcomments_delete_own'] = 'You are not allowed to delete own comment.';
$txt['cannot_pcomments_delete_any'] = 'You are not allowed to delete any comment.';
//END Profile Comments Text Strings

//START UserCP Text Strings
$txt['usercp'] = 'User CP';
$txt['usercp_account_info'] = 'My Account Info';
$txt['usercp_account_info_summary'] = 'Click here if you want to change your account related information such as username, email, password or other sensitive details.';
$txt['usercp_look_and_layout'] = 'Look & Layout Options';
$txt['usercp_look_and_layout_summary'] = 'Click here to change the way the forum looks for you, options include the look and layout for the boards and posts.';
$txt['usercp_my_theme'] = 'My Theme';
$txt['usercp_my_theme_summary'] = 'This screen will allow you to set your default theme which you wish to use every time you login.';
$txt['usercp_my_profile'] = 'My Profile';
$txt['usercp_my_profile_summary'] = 'Click here to change the way your profile looks and appears to everyone.';
$txt['usercp_my_stats'] = 'My Stats';
$txt['usercp_my_stats_summary'] = 'Here you can check how many posts you have made and other activity related info.';
$txt['usercp_my_posts'] = 'My Posts';
$txt['usercp_my_posts_summary'] = 'This option will show you all the posts you have made since you became a member of this site.';
$txt['usercp_my_notifications'] = 'My Notifications';
$txt['usercp_my_notifications_summary'] = 'This screen will allow you to change the type and frequency of notifications you get via e-mail when participating in threads.';
$txt['usercp_buddies'] = 'Buddies';
$txt['usercp_buddies_summary'] = 'This screen will allow you to select buddies to add to your list.';
$txt['usercp_message_options'] = 'My Message Options';
$txt['usercp_message_options_summary'] = 'This screen will allow you to set your preferences for PMs received on the board and also allow you to ignore people you do not wish to receive PMs from.';
$txt['usercp_search'] = 'Search';
$txt['usercp_search_summary'] = 'This screen will allow you to search for posts made in the board.';
$txt['usercp_contact_admin'] = 'Contact Admin';
$txt['usercp_contact_admin_summary'] = 'Confused? or have a quirey? Contact the admin via email at this screen';
$txt['usercp_guest'] = 'Sorry , Guest , You are not allowed to access the User CP , Please';
$txt['usercp_login'] = 'Login';
$txt['usercp_or'] = 'or';
$txt['usercp_register'] = 'Register';
$txt['usercp_copyright'] = 'User Cp V1.2 | Created By Alan S';
$txt['usercp_welcome'] = 'Welcome ';
//END UserCP Text Strings


//Begin SMF Treasury Text
$txt['treasury_menu'] = 'Treasury';
$txt['treasury_admin'] = 'Treasury';
$txt['permissiongroup_treasury'] = 'Treasury';
$txt['permissionname_view_treasury'] = 'View Treasury';
$txt['permissionhelp_view_treasury'] = 'Sets if the user can view Treasury.';
$txt['cannot_view_treasury'] = 'You can not view Treasury.';
$txt['permissionname_admin_treasury'] = 'Administer Treasury';
$txt['permissionhelp_admin_treasury'] = 'If the user is allowed to administer Treasury';
$txt['cannot_admin_treasury'] = 'You can not administer Treasury.';
$txt['show_donations'] = 'Show Donations';
//End SMF Treasury Text

?>



Hmmm , All the files look correct

Try installing it manualy , As in uninstall it and then modify all the files manualy and upload the images and usercp files manualy.

You can see what modifications need to be made and where the files need to be uploaded via the package parser , available here
http://modparser.dev.dansoftaustralia.net/
Title: Re: User Control Panel ( User CP ) V3.0
Post by: 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 (http://custom.simplemachines.org/mods/index.php?action=download;mod=698;id=32143;image).  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.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: dualster on July 24, 2007, 06:44:50 PM
Hi,

I have just installed it on my backup forum, and the mod installs with no errors. But when you click on the User CP link I get a 406 not acceptable error.

Can anybody help please.

:D
Title: Re: User Control Panel ( User CP ) V3.0
Post by: dl75 on July 30, 2007, 07:23:45 PM
Quote from: Alan S on April 30, 2007, 05:01:42 PM
If you have ftp access try this ,

Download FileZilla (http://filezilla.sourceforge.net)

Install it and connect to your server , Go to Themes/helios/images , Create a new directory called usercp , Upload all the images from the mod usercp directory to it , Then right click on the usercp folder in ftp and set the file permissions to 777.

I had the same problem. I did all of this, changed the permission, and I still have the red ex's instead of images. Any ideas of what to do now?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: dl75 on July 30, 2007, 10:51:56 PM
Sorry for doublepost- Just wanted to let you know I fixed it- and it's working great!!! Thanks so much for this mod- It's great. :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Elora on August 01, 2007, 03:25:09 AM
Quote from: dualster on July 24, 2007, 06:44:50 PM
Hi,

I have just installed it on my backup forum, and the mod installs with no errors. But when you click on the User CP link I get a 406 not acceptable error.

Can anybody help please.

:D

I am getting the same error message.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Elora on August 01, 2007, 03:29:47 AM
Quote from: Elora on August 01, 2007, 03:25:09 AM
Quote from: dualster on July 24, 2007, 06:44:50 PM
Hi,

I have just installed it on my backup forum, and the mod installs with no errors. But when you click on the User CP link I get a 406 not acceptable error.

Can anybody help please.

:D

I am getting the same error message.

DOH!!!

Okay add an ; at the end of the usercp and it works.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: gheybo on August 02, 2007, 05:48:21 AM
Sorry but I have SMF 1.1.3 and the theme Dilber MC. Sadly this mod somehow didn't work on my forum and there was no error at all. i tried to find the code to replace it as Alan S had stated da "a href=".... txt 79" thing but it wasn't there.

Further more there was no index.template.php file at all =(
Title: Re: User Control Panel ( User CP ) V3.0
Post by: TheWrath! on August 02, 2007, 06:41:50 AM
change your theme to the default one. can you see it there?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 02, 2007, 06:07:32 PM
Quote from: gheybo on August 02, 2007, 05:48:21 AM
Sorry but I have SMF 1.1.3 and the theme Dilber MC. Sadly this mod somehow didn't work on my forum and there was no error at all. i tried to find the code to replace it as Alan S had stated da "a href=".... txt 79" thing but it wasn't there.

Further more there was no index.template.php file at all =(

I created a dilber mc addon a while back , install the attached package and it should work.

If theres no index.template in dilber delete the theme and install it again because there should be a index.template.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: gheybo on August 03, 2007, 10:44:45 AM
Thank you so much. Now it works perfectly ^__^
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bigdove1 on August 05, 2007, 01:45:30 PM
Good evening.

I has just installed with interest your MOD. no error detected on my version 1.1.3. problem the automatic installation does not function. no the creation of the file image usercp and not of works on modification-english.php not engrave I use your bond for the parser. do installation ok I have the bond but when I click error 403 you do not have the rights.??? I have to seek in the topic but nothing to help me I use last version 1.2. have an idea of the problem?

thank you
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 05, 2007, 06:18:15 PM
I dont really understand but create the usercp directory in your forum root and upload the images included in the package there. As for the 403 error try chmoding the directory its trying to edit to 777
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bigdove1 on August 06, 2007, 09:35:14 AM
Hello,

alan, I am sorry but I has just installed your MOD on very new a Smf forum in version 1.1.3
I have to look at the files after installation and has share the part is unaware of which nevertheless is installation in the file index-template.php, anything has to say moreover.

QuoteForbidden
You don't have permission to access /Bmtsy/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I have to test on two base of given new also of which one in UTF8 but nothing always the same error.

know of or can come this problem because I dry.

thank you

Ps: the files and directory as 777 chmod after installation
Title: Re: User Control Panel ( User CP ) V3.0
Post by: maxdg on August 09, 2007, 07:11:30 PM
Fine, I like it.

I have slightly modified the ITALIAN translation, more compact, quite correct.. ;)

$txt['usercp'] = 'Profilo';
$txt['usercp_account_info'] = 'Informazioni Personali';
$txt['usercp_account_info_summary'] = 'Modifica le informazioni del tuo account quali: nickname, email, password e altri dettagli importanti.';
$txt['usercp_look_and_layout'] = 'Visualizzazione e Grafica';
$txt['usercp_look_and_layout_summary'] = 'Modifica il modo di visualizzare il forum, inclusa la grafica e l\'aspetto delle sezioni e dei posts.';
$txt['usercp_my_theme'] = 'Tema Personale';
$txt['usercp_my_theme_summary'] = 'Seleziona il Tema che desideri usare ogni volta accedi al Forum.';
$txt['usercp_my_profile'] = 'Profilo Personale';
$txt['usercp_my_profile_summary'] = 'Personalizza l\'aspetto del tuo profilo, per te e tutti gli altri utenti.';
$txt['usercp_my_stats'] = 'Statistiche Personali';
$txt['usercp_my_stats_summary'] = 'Accedi alle tue statistiche personali, il numero dei tuoi posts, le tue attività con relative informazioni.';
$txt['usercp_my_posts'] = 'Miei Posts';
$txt['usercp_my_posts_summary'] = 'Vedi tutti i messaggi che hai postato dalla tua iscrizione.';
$txt['usercp_my_notifications'] = 'Notifiche Personali';
$txt['usercp_my_notifications_summary'] = 'Regola la frequenza e il tipo di notifiche che desideri ricevere via e-mail rispetto ai Topics a cui partecipi.';
$txt['usercp_buddies'] = 'Amici';
$txt['usercp_buddies_summary'] = 'Gestisci la lista dei tuoi amici.';
$txt['usercp_message_options'] = 'Opzioni Personali';
$txt['usercp_message_options_summary'] = 'Modifica le preferenze per i tuoi PM ed escludi gli utenti dai quali non vuoi ricevere messaggi personali.';
$txt['usercp_search'] = 'Ricerca';
$txt['usercp_search_summary'] = 'Questa opzione di permetterà di ricercare ogni Post fatto nel Forum.';
$txt['usercp_contact_admin'] = 'Contatta Amministratore';
$txt['usercp_contact_admin_summary'] = 'Sei confuso? Hai un dubbio? Contatta l\'Amministratore via email';
$txt['usercp_guest'] = 'Spiacenti, Visitatore, non sei abilitato ad accedere al Pannello di Controllo utente, Perfavore';
$txt['usercp_login'] = 'Login';
$txt['usercp_or'] = 'o';
$txt['usercp_register'] = 'Registrati';
$txt['usercp_copyright'] = 'User Cp V1.2 | Created By Alan S';
$txt['usercp_welcome'] = 'Benvenuto ';
Title: Re: User Control Panel ( User CP ) V3.0
Post by: 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 originally had a few themes and had allowed members to change their own themes, and everything worked OK.  I have since removed the option for users to change their own themes, but the "My Themes" icon still shows up in the Control Panel.  Members can click on the themes icon, and it takes them to the themes selection , but some themes do not show the thumbnails properly.  Attempting to select a theme 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 have theme changing permission, then the "my Theme" icon should not be displayed IMO.

Thanks in Advance
Title: Re: User Control Panel ( User CP ) V3.0
Post by: 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.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Ashdaw on August 14, 2007, 06:21:47 AM
Thanks Alan S :D
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bigdove1 on August 14, 2007, 04:12:37 PM
hello alan.
still not of does solutions have my problem it refuses to function at home, have address of forum or your MOD functions?

thank you
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Vinspire on August 15, 2007, 09:26:26 PM
I just checked out the screen shot. The mod is looking great :)

Will get this mod for my forum once my forum is stable.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: 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.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: 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.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ***Teh GodFather*** on August 16, 2007, 07:03:30 PM
When installing on Dilber MC, you need to upload images manually or it wont work...
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bigdove1 on August 17, 2007, 04:03:33 AM
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
Title: Re: User Control Panel ( User CP ) V3.0
Post by: dl75 on August 17, 2007, 10:58:42 AM
Go on the previous page, and read about changing permission. That worked for me fine.

Bigdove1 what do you want the screenshot of??
Title: Re: User Control Panel ( User CP ) V3.0
Post by: 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
Title: Re: User Control Panel ( User CP ) V3.0
Post by: tatore on August 18, 2007, 03:43:13 PM
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.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 18, 2007, 05:49:24 PM
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.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 18, 2007, 06:08:30 PM
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.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: tatore on August 20, 2007, 02:35:52 AM
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 (http://custom.simplemachines.org/mods/index.php?action=download;mod=698;id=32143;image).  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-
Title: Re: User Control Panel ( User CP ) V3.0
Post by: 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.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 30, 2007, 02:00:58 PM
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.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: HuRRR on September 04, 2007, 07:15:39 PM
Wonderfull MOD. Thanks very much :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: GrnEyedDvl on September 07, 2007, 10:58:30 PM
Will this work with Tiny Portal?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Neorics on September 16, 2007, 01:06:07 PM
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
Title: Re: User Control Panel ( User CP ) V3.0
Post by: catchpen on September 19, 2007, 01:58:45 AM
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!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: asdas2 on September 23, 2007, 12:35:38 AM
ok great mod... but in the navigation bar it says USERCP can  i change that to Profile ....
i  m using dilber mc ... any idea
Title: Re: User Control Panel ( User CP ) V3.0
Post by: 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';
;)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: 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] , '
Title: Re: User Control Panel ( User CP ) V3.0
Post by: 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.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on September 24, 2007, 01:37:03 PM
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
Title: Re: User Control Panel ( User CP ) V3.0
Post by: asdas2 on September 25, 2007, 12:31:59 AM
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
Title: Re: User Control Panel ( User CP ) V3.0
Post by: goranbaxy on October 06, 2007, 06:02:23 AM
great mod, just what I needed, thanks!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: cerberos on October 14, 2007, 07:32:33 AM
Hello, i have just installed it but i cant see anything:( Do i have to check any option at admincp?

Ty
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on October 14, 2007, 08:13:19 AM
No you do not need to tick anything , Are you using a custom theme?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: cerberos on October 14, 2007, 10:13:17 AM
Yes, though i have set it as a default to the forum.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Tidea on October 14, 2007, 03:16:06 PM
hi, what do I have to do to get this to work for a custom theme?

Thanks. I'm using Scribbles2
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on October 14, 2007, 04:48:57 PM
Quote from: Tidea on October 14, 2007, 03:16:06 PM
hi, what do I have to do to get this to work for a custom theme?

Thanks. I'm using Scribbles2

See here (http://www.simplemachines.org/community/index.php?topic=167975.msg1073991#msg1073991)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: cerberos on October 15, 2007, 02:16:48 AM
Ty, worked as a charm:)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: TOOMUCH4MOST on October 15, 2007, 09:52:11 PM
Quick question....I have a dark background and on the default theme the USERCP has no background to match the default theme.  Is this because i am using TP?  If so, what modification do you recommend to a the background manually?

Great Mod !!

Gema
Title: Re: User Control Panel ( User CP ) V3.0
Post by: DeMar on October 19, 2007, 08:30:17 AM
Hello Alan,

I have a croatian language for you if you need.

Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on October 19, 2007, 11:26:47 AM
Sure , Post it and i'll add it and credits to the front page.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: DeMar on October 19, 2007, 12:39:46 PM
Here's the string


$txt['usercp'] = 'Profil';
$txt['usercp_account_info'] = 'Korisnički račun';
$txt['usercp_account_info_summary'] = 'Odaberite ovu opciju kako bi promijenili osobne informacije profila, kao korisničko ime, email, lozinku ili druge slićne detalje.';
$txt['usercp_look_and_layout'] = 'Izgled Foruma';
$txt['usercp_look_and_layout_summary'] = 'Izmjena postavki trenutne teme ili odabir druge teme foruma.';
$txt['usercp_my_theme'] = 'Teme foruma';
$txt['usercp_my_theme_summary'] = 'Odabir teme za prikaz foruma.';
$txt['usercp_my_profile'] = 'Moj Profil';
$txt['usercp_my_profile_summary'] = 'Odabir postavki za prikaz profila ostalim korisnicima.';
$txt['usercp_my_stats'] = 'Moja Statistika';
$txt['usercp_my_stats_summary'] = 'Postovi, teme i ostala statistika.';
$txt['usercp_my_posts'] = 'Moji postovi';
$txt['usercp_my_posts_summary'] = 'Pregled svih postova koje ste upisali od kada ste korisnik ovoga foruma.';
$txt['usercp_my_notifications'] = 'Moje obavijesti';
$txt['usercp_my_notifications_summary'] = 'Postavke obavijesti foruma. Pretplate i e-mail';
$txt['usercp_buddies'] = 'Prijatelji';
$txt['usercp_buddies_summary'] = 'Postavke odabira prijatelja na forumu i formiranje liste.';
$txt['usercp_message_options'] = 'Privatne Poruke';
$txt['usercp_message_options_summary'] = 'Izmjenite postavke privatnih poruka ili napravite listu ignoriranih korisnika.';
$txt['usercp_search'] = 'Pretraga';
$txt['usercp_search_summary'] = 'Pretraga foruma';
$txt['usercp_contact_admin'] = 'Kontaktirajte Administratora';
$txt['usercp_contact_admin_summary'] = 'Imate pitanje ili trebate pomoć? Kontaktirajte administratora putem e-maila';
$txt['usercp_guest'] = 'Žao nam je, gosti ne mogu pristupiti korisnickom racunu';
$txt['usercp_login'] = 'Prijava';
$txt['usercp_or'] = 'ili';
$txt['usercp_register'] = 'Registracija';
$txt['usercp_copyright'] = 'User Cp V1.2 | Created By Alan S |Translated By Dean B. (MojAkvarij.org)';
$txt['usercp_welcome'] = 'Pozdravljamo Vas ';
Title: Re: User Control Panel ( User CP ) V3.0
Post by: DeMar on October 19, 2007, 12:42:01 PM
Just one question!
In my "Modifications.croatian.php" I have only this:

<?php
// Version: 1.1; Modifications

?>


Where should I copy the string and need I anything else?
Thanks
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 19, 2007, 01:27:22 PM
additions to modifications.language.php are always made just before the ?>
Title: Re: User Control Panel ( User CP ) V3.0
Post by: DeMar on October 19, 2007, 01:30:30 PM
Thanks I will try this
Title: Re: User Control Panel ( User CP ) V3.0
Post by: DeMar on October 19, 2007, 01:47:31 PM
It is working now. But only for croatian language.
What have I to change so it will work also for english language.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 19, 2007, 03:47:40 PM
add the english tranlations into modifications.english.php
(or the utf-8 version if you are using english-utf-8
Title: Re: User Control Panel ( User CP ) V3.0
Post by: DeMar on October 20, 2007, 03:07:21 AM
only this file I have to configure???
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on October 20, 2007, 07:58:05 AM
Since the default language for the UserCP is english , The english text should already be in modifications.english.php ,
Title: Re: User Control Panel ( User CP ) V3.0
Post by: NEMINI on October 20, 2007, 08:11:28 PM
I like this mod except, if you have a mod that adds its own page to the profile section with this mod it gets lost.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: DeMar on October 21, 2007, 09:57:03 AM
Quote from: Alan S on October 20, 2007, 07:58:05 AM
Since the default language for the UserCP is english , The english text should already be in modifications.english.php ,

no it is not. I have copy the text inside the modifications.english

Thanks
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 21, 2007, 10:52:28 AM
Quote from: NEMINI on October 20, 2007, 08:11:28 PM
I like this mod except, if you have a mod that adds its own page to the profile section with this mod it gets lost.

well, obviously... if you modified the profiles with additional sub-menus, then you will need to add additional icons yourself...   How is the mod supposed to know if you have made other modifications?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: DeMar on October 21, 2007, 02:58:25 PM
I sloved everything.
Thanks to all
Title: Re: User Control Panel ( User CP ) V3.0
Post by: examino on October 24, 2007, 06:36:06 PM
That' s a great mod. Is it or will it be available for SMF 1.1.4? I updated SMF and can't use it right now. Thanks for your reply.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on October 25, 2007, 11:20:46 AM
I have not had time to update it to 1.1.4 , And to be honest i kinda forgot aswell :P , I will do it later tonight when i get a free minute or two.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: examino on October 25, 2007, 05:04:08 PM
Thanks ALAN S... on behalf of everybody here i think. Be well.

I' ll check later then.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: examino on October 27, 2007, 05:18:05 PM
ALAN S, sorry to bother you again, i don't meen to put pressure on you or anything. Any news on that conversion?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on October 27, 2007, 06:53:05 PM
Quote from: examino on October 27, 2007, 05:18:05 PM
ALAN S, sorry to bother you again, i don't meen to put pressure on you or anything. Any news on that conversion?

Updated to work with 1.1.4 , Also added fix for 403 errors.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: examino on October 27, 2007, 07:46:03 PM
That' s great Alan S. Looking forward to updates. Great work!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: searchgr on October 29, 2007, 01:08:21 PM
I have installed it (smf 1.1.4) but i can't see anything. Do i have to enable something?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: searchgr on October 29, 2007, 02:56:44 PM
Problem resolved
Title: Re: User Control Panel ( User CP ) V3.0
Post by: the lion on November 03, 2007, 08:13:41 AM
Quote from: Alan S on May 19, 2007, 08:11:18 AM
Quote from: the lion on May 19, 2007, 02:44:17 AM
Quote from: Alan S on April 29, 2007, 09:03:46 AM
Quote from: the lion on April 29, 2007, 08:36:44 AM
i have a sm1.1.1 board and i have instal 1.1.2 to my computer
how to instal it to my board ?
the link o my board:
osamajo.smfhost.com
Quote from: the lion on April 29, 2007, 08:36:44 AM
i have a sm1.1.1 board and i have instal 1.1.2 to my computer
how to instal it to my board ?
the link o my board:
osamajo.smfhost.com

Download The Package From Here (http://custom.simplemachines.org/mods/index.php?mod=698)

Then go to the forum admin panel  -> Packages -> Download packages

Upload the usercp zip file and then apply the package.


thanks alan s but when i open Packages -> Download packages it show me this:                                               "This feature has been disabled" 


Hmmm , I've never seen that error before , Well trying going to Packages -> Options and making sure ftp info is in place and that files are writable

i still have the same problem
look at this picture
(http://francesports.googlepages.com/jgggfrjfgfghj.png)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on November 03, 2007, 01:19:42 PM
Are you on a free host by any chance?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Sacrifist on November 05, 2007, 01:04:54 AM
Im continuously getting this error whenever someone clicks on the usercp link button
File:public_html/forums/Themes/default/usercp.template.php (main sub template - eval?)
Line: 73
What's causing this?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: falguni1 on November 05, 2007, 03:49:08 AM
Quote from: Dean B on October 19, 2007, 12:39:46 PM
Here's the string


$txt['usercp'] = 'Profil';
$txt['usercp_account_info'] = 'Korisnički račun';
$txt['usercp_account_info_summary'] = 'Odaberite ovu opciju kako bi promijenili osobne informacije profila, kao korisničko ime, email, lozinku ili druge slićne detalje.';
$txt['usercp_look_and_layout'] = 'Izgled Foruma';
$txt['usercp_look_and_layout_summary'] = 'Izmjena postavki trenutne teme ili odabir druge teme foruma.';
$txt['usercp_my_theme'] = 'Teme foruma';
$txt['usercp_my_theme_summary'] = 'Odabir teme za prikaz foruma.';
$txt['usercp_my_profile'] = 'Moj Profil';
$txt['usercp_my_profile_summary'] = 'Odabir postavki za prikaz profila ostalim korisnicima.';
$txt['usercp_my_stats'] = 'Moja Statistika';
$txt['usercp_my_stats_summary'] = 'Postovi, teme i ostala statistika.';
$txt['usercp_my_posts'] = 'Moji postovi';
$txt['usercp_my_posts_summary'] = 'Pregled svih postova koje ste upisali od kada ste korisnik ovoga foruma.';
$txt['usercp_my_notifications'] = 'Moje obavijesti';
$txt['usercp_my_notifications_summary'] = 'Postavke obavijesti foruma. Pretplate i e-mail';
$txt['usercp_buddies'] = 'Prijatelji';
$txt['usercp_buddies_summary'] = 'Postavke odabira prijatelja na forumu i formiranje liste.';
$txt['usercp_message_options'] = 'Privatne Poruke';
$txt['usercp_message_options_summary'] = 'Izmjenite postavke privatnih poruka ili napravite listu ignoriranih korisnika.';
$txt['usercp_search'] = 'Pretraga';
$txt['usercp_search_summary'] = 'Pretraga foruma';
$txt['usercp_contact_admin'] = 'Kontaktirajte Administratora';
$txt['usercp_contact_admin_summary'] = 'Imate pitanje ili trebate pomoć? Kontaktirajte administratora putem e-maila';
$txt['usercp_guest'] = 'Žao nam je, gosti ne mogu pristupiti korisnickom racunu';
$txt['usercp_login'] = 'Prijava';
$txt['usercp_or'] = 'ili';
$txt['usercp_register'] = 'Registracija';
$txt['usercp_copyright'] = 'User Cp V1.2 | Created By Alan S |Translated By Dean B. (MojAkvarij.org)';
$txt['usercp_welcome'] = 'Pozdravljamo Vas ';


can someone translate this to english I want that
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on November 05, 2007, 10:03:05 AM
???

The mod installs in English by default.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Chopper on November 08, 2007, 05:45:59 PM
Hi,

I get this error message when attempting to access User CP

"An Error Has Occurred!
Unable to load the 'usercp' template."

Any ideas?

Thanks 
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Chopper on November 09, 2007, 07:51:37 AM
Anyone any ideas about my error message?

"Unable to load the 'usercp' template."

Thanks again.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: LinkinParkBoy on November 10, 2007, 05:17:37 PM
And portuguese translation Please? :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on November 10, 2007, 05:32:48 PM
No one has submitted a Portuguese translation yet , Feel free to do so if you wish.

English language strings that should be translated on main page here (http://www.simplemachines.org/community/index.php?topic=167975.0)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: LinkinParkBoy on November 10, 2007, 05:49:54 PM
Quote from: Alan S on November 10, 2007, 05:32:48 PM
No one has submitted a Portuguese translation yet , Feel free to do so if you wish.

English language strings that should be translated on main page here (http://www.simplemachines.org/community/index.php?topic=167975.0)

I know but i cant speak very well english :( and i cannot translate.

Nice mod ;)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: LinkinParkBoy on November 10, 2007, 08:05:03 PM
Afterall´s i did get the translation from a friend  :D

have it right down:
Quote$txt['usercp'] = 'Perfil';
$txt['usercp_account_info'] = 'Configurações da Conta';
$txt['usercp_account_info_summary'] = 'Clique aqui se desejar alterar informaçoes como o seu username, e-mail, password ou outros dados da sua conta.';
$txt['usercp_look_and_layout'] = 'Preferências do Layout';
$txt['usercp_look_and_layout_summary'] = 'Clique aqui para alterar a forma como o fórum surge no seu ecra, opçoes como o aspecto e layout dos quadros e mensagens';
$txt['usercp_my_theme'] = 'Os meus Temas';
$txt['usercp_my_theme_summary'] = 'Este ecra vai permitir-lhe definir o seu tema por defeito sempre que se autenticar.';
$txt['usercp_my_profile'] = 'O meu Perfil';
$txt['usercp_my_profile_summary'] = 'Clique aqui para alterar o aspecto como o seu perfil irá parecer a todos.';
$txt['usercp_my_stats'] = 'Ver Estatísticas';
$txt['usercp_my_stats_summary'] = 'Aqui poderá verificar o numero de mensagem que possui e outros dados relativos à actividade no forum.';
$txt['usercp_my_posts'] = 'Ver Mensagens';
$txt['usercp_my_posts_summary'] = 'Esta opção vai mostrar todos os post que já fizeste desde que te tornaste membro do site.';
$txt['usercp_my_notifications'] = 'Notificações e Email';
$txt['usercp_my_notifications_summary'] = 'Este ecra vai permitir que mude o tipo e frequencia das notificações que recebes via email quando participas nos topicos.';
$txt['usercp_buddies'] = 'Lista de Amigos';
$txt['usercp_buddies_summary'] = 'Este ecra vai permitir que tu escolhas os amigos a adicionar à tua lista.';
$txt['usercp_message_options'] = 'Opções das Mensagens Pessoais';
$txt['usercp_message_options_summary'] = 'Este ecra vai permite modificares as preferencias das tuas mensagens privadas e tambem escolheres de quem não quem queres receber.';
$txt['usercp_search'] = 'Procurar';
$txt['usercp_search_summary'] = 'Este ecra vai permitir que tu procures as tuas mensagens no Fórum.';
$txt['usercp_contact_admin'] = 'Contact Admin';
$txt['usercp_contact_admin_summary'] = 'Confuso? Ou tem alguma duvida? Contacte o admininstrador via email neste ecran.';
$txt['usercp_guest'] = 'Desculpa Visitante, não tens permissão para aceder ao teu Perfil;
$txt['usercp_login'] = 'Entrar';
$txt['usercp_or'] = 'ou';
$txt['usercp_register'] = 'Registar';
$txt['usercp_copyright'] = 'User Cp V1.3 | Created By Alan S';
$txt['usercp_welcome'] = 'Bem Vindo ';


I did copy&past the code to /Themes/default/languages/modifications.portuguese.php on is way have already a SMF arcade code, i drag it and didnt work, I get an error!!  :(

The error is, the translated code appears in the index of forum  :'(


Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on November 11, 2007, 09:21:41 AM
you have to put it before the closing ?>
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on November 13, 2007, 11:27:23 AM
Yes , the modifications.portugese.php  , Go down to the very end and place the text strings before ?>
Title: Re: User Control Panel ( User CP ) V3.0
Post by: LinkinParkBoy on November 13, 2007, 12:23:37 PM
It's already working, my bad lol here's a better Pt traduction:


Quote$txt['usercp'] = 'Perfil';
$txt['usercp_account_info'] = 'Meu Perfil';
$txt['usercp_account_info_summary'] = 'Clique aqui se desejar alterar informacoes como o seu username, e-mail, password ou outros dados da sua conta.';
$txt['usercp_look_and_layout'] = 'Preferencias do Layout';
$txt['usercp_look_and_layout_summary'] = 'Alterar forma de visualizacao do Forum, topicos e mensagens.';
$txt['usercp_my_theme'] = 'Os meus Temas';
$txt['usercp_my_theme_summary'] = 'Escolher tema por defeito, se desactivado pela administracao nao podes efectuar nehuma alteracao.';
$txt['usercp_my_profile'] = 'Meu Perfil';
$txt['usercp_my_profile_summary'] = 'Alterar perfil visivel.';
$txt['usercp_my_stats'] = 'Ver Estatisticas';
$txt['usercp_my_stats_summary'] = 'Tuas estatisticas gerais no Forum.';
$txt['usercp_my_posts'] = 'Ver Mensagens';
$txt['usercp_my_posts_summary'] = 'Mostra as tuas mensagens colocadas neste Forum.';
$txt['usercp_my_notifications'] = 'Notificacoes e Email';
$txt['usercp_my_notifications_summary'] = 'Esta pagina vai permitir-lhe mudar o tipo e frequencia das notificacoes que recebes via email quando participas nos topicos.';
$txt['usercp_buddies'] = 'Lista de Amigos';
$txt['usercp_buddies_summary'] = 'Esta pagina vai permitir-lhe que escolhas os amigos a adicionar a tua lista.';
$txt['usercp_message_options'] = 'Opcoes das Mensagens Pessoais';
$txt['usercp_message_options_summary'] = 'Esta pagina permite que modifiques as tuas preferencias para PMs recebidas e tambem para ignorar pessoas que nao desejes receber PMs.';
$txt['usercp_search'] = 'Procurar';
$txt['usercp_search_summary'] = 'Esta pagina ira permitir que efectues uma busca por mensagens criadas neste Forum.';
$txt['usercp_contact_admin'] = 'Contactar Administracao';
$txt['usercp_contact_admin_summary'] = 'Confuso? Ou tem alguma duvida? Contacte o Admininstrador via email aqui';
$txt['usercp_guest'] = 'Desculpa Visitante, nao tens permissao para aceder ao teu Perfil';
$txt['usercp_login'] = 'Entrar';
$txt['usercp_or'] = 'our';
$txt['usercp_register'] = 'Registar-se';
$txt['usercp_copyright'] = 'User Cp V1.3 | Created By Alan S';
$txt['usercp_welcome'] = 'Bem Vindo ';



Nice mod man, u rox  ;)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on November 13, 2007, 04:52:55 PM
Thanks for the translation , has been added to the front page.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: iyeru42 on November 15, 2007, 11:25:12 PM
This won't work with the scribbles theme, due to the below code
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>

changing to

<a href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a>

Not obeyed. (Instead, it uses $current_action=='profile', even if I change it to usercp, nothing will change.)

And on the SAF Multi-Color Theme, the profile link is replaced with blank text, and all of the images are blank. All the UserCP images are blank for the Christmas Season 1.1 skin as well. It seems, the images only work on the SMF Core theme >>; Even the Babylon Theme shows blank images.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Snow Wolf on December 05, 2007, 10:49:16 AM
I flipped through all 10 pages and if I missed this question then I am sorry for asking.

I have my own custom theme, I followed the directions and got the User CP up and going. My problem is with my forum background the text in the CP is hard to read. Is there an easy way to say fill in the background of the text with a solid color?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 05, 2007, 01:32:08 PM
Well you could try to add <font> tags to the url code.

so it would be like

<a href="' , $scripturl ,'?action=usercp"><font color="yourcolour">User CP</font></a>

Or instead of using hardcoded text you could try the font tags with the $txt string. I am not sure if those tags will work though , The other option would be to edit the stylesheet , but then you would have to change the colour for all the links.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Snow Wolf on December 05, 2007, 01:48:59 PM
Quote from: Alan S on December 05, 2007, 01:32:08 PM
Well you could try to add <font> tags to the url code.

so it would be like

<a href="' , $scripturl ,'?action=usercp"><font color="yourcolour">User CP</font></a>

Or instead of using hardcoded text you could try the font tags with the $txt string. I am not sure if those tags will work though , The other option would be to edit the stylesheet , but then you would have to change the colour for all the links.

But isn't that for the main link to GET to the CP? I'm talking about editing the text once your in the CP. The following is to hard to read on my forum because of my background. I wanted to know where the tag is so I could do a <style="background-color:#whatEver;"> so the text has its own background and is easy to read. My problem is I am not sure where the "container" is that formats the text.

Example of what I cant read because of my background:

QuoteClick here if you want to change your account related information such as username, email, password or other sensitive details.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on December 05, 2007, 05:12:18 PM
I suggest that you install Firefox with the web developer toolbar. This lets you display the exact CSS container(s) that any element is in...
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Snow Wolf on December 05, 2007, 10:55:02 PM
Quote from: Kindred on December 05, 2007, 05:12:18 PM
I suggest that you install Firefox with the web developer toolbar. This lets you display the exact CSS container(s) that any element is in...

I just tried that and it does not seem to be pulling from a style sheet. Maybe its pulling from the index.template.php file?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 06, 2007, 04:47:03 AM
Quote from: Snow Wolf on December 05, 2007, 10:55:02 PM
Quote from: Kindred on December 05, 2007, 05:12:18 PM
I suggest that you install Firefox with the web developer toolbar. This lets you display the exact CSS container(s) that any element is in...

I just tried that and it does not seem to be pulling from a style sheet. Maybe its pulling from the index.template.php file?

Its not pulling from a stylesheet , it uses the default stylesheet. I am at school now , When i get home in 6 hours or so i will explain in further detail.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Snow Wolf on December 07, 2007, 08:16:11 AM
Quote from: Alan S on December 06, 2007, 04:47:03 AM
Quote from: Snow Wolf on December 05, 2007, 10:55:02 PM
Quote from: Kindred on December 05, 2007, 05:12:18 PM
I suggest that you install Firefox with the web developer toolbar. This lets you display the exact CSS container(s) that any element is in...

I just tried that and it does not seem to be pulling from a style sheet. Maybe its pulling from the index.template.php file?

Its not pulling from a stylesheet , it uses the default stylesheet. I am at school now , When i get home in 6 hours or so i will explain in further detail.


Just a reminder that you were going to tell me how it works. Sorry, I say that because you said 6 hours and its been 15. Just thought that maybe you forgot, I mean 6 hours is a long time and sometimes I forget what I had for breakfast.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 07, 2007, 03:44:26 PM
LOl sorry i was busy.


The user cp uses the same stylesheet as all the other files , If you wanted to edit the colour of the tables , You could try adding a div instead of a td.

Please Note , This has NOT been tested , Backup files before trying this.

So in the style.css ( Themes/yourtheme/style.css )

Add this to the top of the file ( obviously using your own background colour )

#usercp1 {
background-color: #000000;
font-family: Verdana, Helvetica, Arial, geneva, sans-serif;
padding: 0;
margin: 100px 0 10px 0;
text-align: left;
}


And then in the usercp.template.php , Find the td of what you want to change the background colour of.

It would be something like

<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=', $ID_MEMBER, ';sa=theme"><img border="0" src="',$settings['images_url'],'/usercp/kivio.png" width="80" height="80"></a></font></td>


Replace it with

<div id="usercp1"><a href="', $scripturl, '?action=profile;u=', $ID_MEMBER, ';sa=theme"><img border="0" src="',$settings['images_url'],'/usercp/kivio.png" width="80" height="80"></a></div>

So you basicaly remove the

<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">


And replace it with

<div id="usercp1">

And then remove this code at the end

</font></td>

And replace it with

</div>

And that should work. Please get back to me if it doesn't. I might include its own stylesheet in the next version ( 1.4 ) for ease of colour customisation.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Snow Wolf on December 07, 2007, 11:27:38 PM
...well it worked....for the picture not the text. I tried putting what looks like the text portion in the div tag but it did nothing.

<div id="usercp1">


<td align="center" width="25%" valign="top">

<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=', $ID_MEMBER, ';sa=account"><b>',$txt['usercp_account_info'],'</a><br>

</b></font><font face="Verdana" size="1">',$txt['usercp_account_info_summary'],'</font></td>


</div>
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 08, 2007, 10:01:03 AM
That code wont work , your using <td> and <div>

Try this.


<div id="usercp1">
<a href="', $scripturl, '?action=profile;u=', $ID_MEMBER, ';sa=account"><b>',$txt['usercp_account_info'],'</a><br>
</b>',$txt['usercp_account_info_summary'],'
</div>
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Snow Wolf on December 08, 2007, 11:21:25 PM
Nope, not working. That just made the text vanish. Like there was a "frame" hiding it.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Matthew Schenker on December 10, 2007, 09:45:31 AM
This modification looks very interesting!  I've been wanting to simplify and organize the member area of my forum for a while now.
Can anyone comment on how well this works in 1.1.4?  Also, is this going to be a basic feature of 2.0?
Thanks,
Matt
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Snow Wolf on December 10, 2007, 12:30:33 PM
Quote from: Matthew Schenker on December 10, 2007, 09:45:31 AM
This modification looks very interesting!  I've been wanting to simplify and organize the member area of my forum for a while now.
Can anyone comment on how well this works in 1.1.4?  Also, is this going to be a basic feature of 2.0?
Thanks,
Matt

Well, I can tell you I use it for smf 1.1.4 and it works wonderfully. Ignore the problems I am having, its all due to my custom theme, on a solid background color it works great as you can read the text.

No idea about the 2.0 but I hope so.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Webbyman on December 10, 2007, 01:47:00 PM
Yep, works a treat in 1.1.4, and adding new buttons is easy.

Thumbs up to the creator.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 11, 2007, 09:16:24 AM
No , it will not be a default feature of SMF 2.0 , SMF 2.0 is in beta now , as most people now , so all the main features are after being added. Do not worry though , I have updated the UserCP to work with 2.0 ( I used to be a Charter Member ) , And i will continue to support it for 2.0 for as long as i am able.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Snow Wolf on December 11, 2007, 11:36:06 AM
Did you ever figure out the answer to my question?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 14, 2007, 04:32:50 PM
Update : Version 1.4 Released  See main page here (http://www.simplemachines.org/community/index.php?topic=167975.0) for more details.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Matthew Schenker on December 15, 2007, 08:46:25 AM
I installed this modification (version 1.4) on my test site, and it looks great, except for one thing: the "Contact Admin" button does not work.  I had version 1.3 installed before, and the "Contact Admin" was working, so it seems something went wrong in the update.

Thanks for the great work!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 15, 2007, 09:22:51 AM
It works okay for me , And i check with a friend aswell and he said it works?

What browser are you using?

If its IE , Go to tools -> options -> programs and make sure you have a default email client selected ( Usualy Outlook Express )

If its firefox , Firefox uses the XP default email program , So go to Start -> Control Panel -> Add/Remove Programs -> Set program access defaults -> Custom  , And under choose my default email program select one ( usualy outlook express )
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on December 15, 2007, 11:44:41 AM
actually, as a possible addition for the next version, I'd like to see an option that can be set for the "contact":   allow us to set email or PM.   In general, we don't allow/want users contacting us directly in email, so I changed 1.3 to send a PM instead of an email. :)

Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 15, 2007, 12:25:25 PM
Quote from: Kindred on December 15, 2007, 11:44:41 AM
actually, as a possible addition for the next version, I'd like to see an option that can be set for the "contact":   allow us to set email or PM.   In general, we don't allow/want users contacting us directly in email, so I changed 1.3 to send a PM instead of an email. :)



In the original version of the UserCp where it had to be manualy added to the forum , The contact admin was by PM , However when i started coding it for a mod , I saw no way of defining the user id ( As in ;u=xxx ) for the admin and i could not automatically assume that the admins user id was 1 , Because sometimes people change it from the first account created etc......... So i switched to email , If i found some way to get the user id of a admin easily i would put in in the next version , Along with the option to email.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on December 15, 2007, 01:11:03 PM
(now that you mention it, I actually hard-coded the 4 main admin IDs..)

You could search for the users in the admin usergroup and then build an array of those user IDs...


Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 15, 2007, 02:31:58 PM
Thanks , i will look into it! , Although i have to say i am still only a novice in PHP
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Snow Wolf on December 18, 2007, 04:46:37 PM
This update does not answer my question.......
Title: Re: User Control Panel ( User CP ) V3.0
Post by: writerrobert680 on December 19, 2007, 03:09:03 PM
How can I have this on my other skins besides the default?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 19, 2007, 05:41:50 PM
Quote from: writerrobert680 on December 19, 2007, 03:09:03 PM
How can I have this on my other skins besides the default?


Take a look at this post.

http://www.simplemachines.org/community/index.php?topic=167975.msg1073991#msg1073991
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 19, 2007, 05:42:44 PM
Quote from: Snow Wolf on December 18, 2007, 04:46:37 PM
This update does not answer my question.......

Okay  , i'll try and focus on this now since i know you've been waiting a while , i've just been a bit busy.

First of all , what theme is it your having the problem on?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Snow Wolf on December 21, 2007, 10:12:22 AM
Quote from: Alan S on December 19, 2007, 05:42:44 PM
Quote from: Snow Wolf on December 18, 2007, 04:46:37 PM
This update does not answer my question.......

Okay  , i'll try and focus on this now since i know you've been waiting a while , i've just been a bit busy.

First of all , what theme is it your having the problem on?

Its actually my own custom theme.

www.mythicsoftware.com/forum/

You are welcoem to join and take a look at the User CP yourself and then you will understand why I want to put a solid background color behinf the text. I'm just looking for the place in the code it insert it myself.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 21, 2007, 11:41:03 AM
Yeah , I see what you mean , the links are hard to read , Well i've tried and tested the use of a usercp style sheet and i am pleased to say it can be done. This is what you need to do.


Open notepad and paste this code into it.

/* User Cp CSS Stylesheet */

/* Normal, standard links. */
a:link
{
color: #FFFFFF;
text-decoration: none;
}
a:visited
{
color: #FF0000;
text-decoration: none;
}
a:hover
{
text-decoration: underline;
}

body, td, th , tr
{
color: #000000;
font-size: small;
font-family: verdana, sans-serif;
}


You can edit the values

a:link
{
color: #FFFFFF;
text-decoration: none;
}


^^ Edit the #FFFFFF here to control the colour of a link in the UserCP


a:visited
{
color: #FF0000;
text-decoration: none;
}


^^ Edit the #FF0000 to edit the colour of a visted link in the UserCP


body, td, th , tr
{
color: #000000;
font-size: small;
font-family: verdana, sans-serif;
}


^^ Edit the #000000 to change the colour of the rest of the text in the usercp ( IE the summary text )


Then go to file  -> save as , select all files and save it as usercpstyle.css and upload it to /Themes/default/ ( The default themes directory )


Now ,we have to tell the User Cp to include the stylesheet , So download and open up usercp.template.php

Find

global $scripturl, $webmaster_email, $txt, $context, $settings, $ID_MEMBER;


Add after

// Include The Stylesheet
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/usercpstyle.css?fin11" />';

// Start the main template that is , if the user is logged in


Save it and reupload it to /Themes/default


If you want to change the background colour altogether , In the usercp.template.php

Find
<table border="0"

Replace with
<table bgcolor="#000000" border="0"

And replace the #000000 with the background colour of your choice , Save it and reupload it.


This has been tested out with SMF 1.1.4 and User CP 1.4 , Should work with all versions and backup your files just in case.

- Alan
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 22, 2007, 07:26:48 PM
Some Good News

V2.0 is on the way with some big admin side changes in the version! , Enable/Disable usercp , Choose between email contact or pm contact , or even disable to contact feature completely , Ability to add custom fields via admin panel + a small few more!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 23, 2007, 11:43:36 AM
V2.0 has been released!


See http://www.simplemachines.org/community/index.php?topic=167975.0 for the latest info !
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PfalzNacht on December 23, 2007, 01:57:37 PM
Hi!

The MOD doesn't work.

First i installed it with the package manager, and it works.

But i can't see the "User CP" Tab in the "features and options".

Who can help me please.

I think the failure is in the ModSettings.php, but where?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 23, 2007, 02:02:31 PM
Yeah if you have certain mods installed that edit the modsettings.php it will give you a error. Manualy add the ModSettings.php code.

See the end of the page of the User CP mod to get what code to add and where

http://custom.simplemachines.org/mods/index.php?mod=698
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PfalzNacht on December 23, 2007, 02:31:44 PM
Now i can see it in the acp, but when i click on the button "user cp", nothing happens.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 23, 2007, 03:42:41 PM
Hmmmm , Can you post your ModSettings.php file please?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PfalzNacht on December 23, 2007, 03:47:58 PM
I think the Problem is in the index.template.php, because i use a other template, and the codes for the buttons are a bit different.

I post ModSettings.php and index.template.php.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 23, 2007, 03:58:17 PM
Well all the code is in the ModSettings


I edited the index.template.php file to be correct
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PfalzNacht on December 23, 2007, 04:11:13 PM
When i enable UserCP, nothing happens, when i disable usercp, i come to the normal profile.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 23, 2007, 05:02:08 PM
If you have access to phpmyadmin do the following

Go to the SMF database

Go to the table smf_settings and click browse , Go to the last or second last page and see if there is a row called usercp_enable and what is its value ( it should either be 1 , 0 or blank )
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PfalzNacht on December 23, 2007, 05:22:05 PM
I do what you says, but it doesn't change anything. I can change the "enable/diasble" usercp in the acp, that works.

When i enable the usercp and click on "Profile", nothing happens.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 23, 2007, 05:31:41 PM
Yes , but im trying to get you to see if the setting is in the database , If the setting is not in the database then the option wont work.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PfalzNacht on December 23, 2007, 05:53:42 PM
Ok, i know whats's wrong.

The files on server are not the same as in the MOD.

The usercp.template.php on the server is 6kb, but on my computer the file is 14kb.

In the file on server exists only the half.

I upload the new files, and hope it works.  ;)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 23, 2007, 06:20:31 PM
Hmmm thats wierd , Cant think of how or why that would have happened , Anyway that could be your problem! , Hope it works
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PfalzNacht on December 23, 2007, 06:58:36 PM
Ok, i overwrite the files, but nothing changes.

I have no idea what the problem is, because when i enable the usercp, and click on my profile, the url is http://www.domaindomain.de/index.php?action=usercp, but i always come to the home site.

index.template.php is ok, modsettings.php is ok, so where is the problem?

Or i will forget the MOD, and use the normal profile action.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 23, 2007, 07:19:24 PM
Is the usercp.php in the Source directory and is it the proper file
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PfalzNacht on December 23, 2007, 07:27:53 PM
Yes, and yes.

Slowly i'm in despair.  :P
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on December 24, 2007, 09:37:02 AM
Hmmm , If you wish i can take a look at it for you on your forum , You'll have to PM me admin login info and your forum url though.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Snow Wolf on December 24, 2007, 09:37:19 AM
Does what you told me still apply to V2.0? I ask because I can not find usercp.template.php
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Me313 on January 01, 2008, 11:05:52 PM
i have problem with button..cant make usercp for helious to appear properly..help me pls?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 02, 2008, 10:03:13 AM
Quote from: Snow Wolf on December 24, 2007, 09:37:19 AM
Does what you told me still apply to V2.0? I ask because I can not find usercp.template.php
Yes , i have changed around the coding a good bit in the usercp.template.php in V2.0 but the usercp.template.php still exisits and the same code will work.

usercp should be located in /Themes/default

Quote from: Me313 on January 01, 2008, 11:05:52 PM
i have problem with button..cant make usercp for helious to appear properly..help me pls?

You will need to create a button a manually add the code to the helios index.template.php
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Me313 on January 02, 2008, 07:45:44 PM
thank you for ur kind reply..

how can i do that?

forgive me for my ignorance
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 02, 2008, 09:52:53 PM
*** Backup Files Before Trying This ***

Well upload the image attached to the post to /Themes/helios/images/english/ , The image should be called usercp.gif


Next , Open up the helios index.template.php , located in /Themes/helios

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


// UserCP [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="User Control Panel" style="margin: 0px 0;" border="0" />USER CP</a></td>';
// Edit Profile... [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>';


Save and Reupload To /Themes/helios/ , And you should be good to go!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: blondeamon on January 02, 2008, 10:00:48 PM
Hello

First of all excellent MOD , really well done we loved it.


i have SMF 1.1.4 ,Dilber MC Theme and TinyPortal and works like a charm.

But i have 2 drawbacks , 1 major and 1 small but i'll ask in case u can help.


Major: After all the settings and copying/pasting i did something stupid somewhere and now on the admin Panel when i press Features and options it drives me to a blank page.

This is very important to resolve , i cant access this section at all as an admin.

(http://img210.imageshack.us/img210/3156/69622119wd9.jpg)

Minor:
It looks awful with Dilber now because it changed the button it had as a Dilber Mc "Profile" button and has this terrible "Profile" button now.

See for yourselves:

(http://img210.imageshack.us/img210/329/63664335cm3.jpg)


How can i restore the original "Profile" look from Dilber?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 02, 2008, 10:49:25 PM
Okay

1) Do you have any other mods installed , if you do please list ALL of them.

2) In dilbermcs 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, $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>' : '';


^^ From the screenshot that looks like the code that will be there

Replace with


// UserCP... [profile]
if ($context['allow_edit_profile'] && $modSettings['usercp_enable'])
echo'
<td align="center" class="menubg' , $current_action == 'usercp' ? '2' : '' , '">
<a href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a>
</td>';
// Edit Profile... [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>';


Save , Reupload and the button should be fine.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: blondeamon on January 03, 2008, 08:22:13 AM
Profile is restored and everything is working perfectly now.

But on my admin Panel i still cant access "Features and options".


It is disabled somehow from something i did and i cant figure out why....


I Pmed you a demo account to check it out if you have some time Alan.
--------------------------------------------------------------
Mod Name     Version     
1.    TinyPortal    0.983    [ Uninstall ] [ List Files ] [ Delete ]
2.    VisualWarning    1.41    [ Uninstall ] [ List Files ] [ Delete ]
3.    Admin Notepad    1.0    [ Uninstall ] [ List Files ] [ Delete ]
4.    User Control Panel By Alan S    2.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    Auto Embed Video Clips    1.6    [ Uninstall ] [ List Files ] [ Delete ]
6.    Ellow yellow christmas edition smiley set    1.1    [ Uninstall ] [ List Files ] [ Delete ]
7.    Double Post Stopper    1.0.1    [ Uninstall ] [ List Files ] [ Delete ]
8.    audiblepm 1    1.0    [ Uninstall ] [ List Files ] [ Delete ]
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ScoobyDan on January 03, 2008, 08:32:15 AM
Alan S,

I have just upgraded your UserCP from v1.2 to v2.0, and I like the new features, but could you please make the default buttons optional (or dependent on the user's permissions)? The reason I ask this, is because I do not allow my users to change their theme, or to delete their accounts. Having these options available on the UserCP screen confuses my users.

I have manually edited the page to remove those options, but I would rather do this through an Admin option...

Many thanks for your great mod

Daniel
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 03, 2008, 12:23:08 PM
Quote from: ScoobyDan on January 03, 2008, 08:32:15 AM
Alan S,

I have just upgraded your UserCP from v1.2 to v2.0, and I like the new features, but could you please make the default buttons optional (or dependent on the user's permissions)? The reason I ask this, is because I do not allow my users to change their theme, or to delete their accounts. Having these options available on the UserCP screen confuses my users.

I have manually edited the page to remove those options, but I would rather do this through an Admin option...

Many thanks for your great mod

Daniel

Well the problem with adding the option to disable the default icons would be there would be 12 more options in the admin section which would really fill up a page , And also the layout would get messed up.

If you have one of the four custom fields enabled now on the user cp. And you disable the contact admin feature , The custom fields stay in the same place ,they do not move up to fill the space where the admin icon was. Can you imagine what it would look like if 4 of the default icons were disabled?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: blondeamon on January 03, 2008, 04:25:31 PM
Hi again Alan as you mentioned on your pm there must be something wrong on my modsettings.php and i cant see the option "Features and Options" on my admin panel.

Just in case i attached  admin.php too
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 03, 2008, 05:01:39 PM
Quote from: blondeamon on January 03, 2008, 04:25:31 PM
Hi again Alan as you mentioned on your pm there must be something wrong on my modsettings.php and i cant see the option "Features and Options" on my admin panel.

Just in case i attached  admin.php too

Try this one

Title: Re: User Control Panel ( User CP ) V3.0
Post by: blondeamon on January 03, 2008, 05:13:43 PM
Alan i tried this one but nothing changed....i still cant see the "Features and Options" on my admin Panel.


Any idea what else might be the fault?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 03, 2008, 07:02:04 PM
I'm not sure , I mean i tested that modsettings.php on my site and it worked perfectly , You may want to try asking in General Support aswell as they may be able to help more.

Another thing you could do is to try using a default modsettings.php ( IE one that comes directly from the smf install package )

If that ^^ makes no difference its not mod related at all. Its to do with something else.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Me313 on January 03, 2008, 07:07:26 PM
Quote from: Alan S on January 02, 2008, 09:52:53 PM
*** Backup Files Before Trying This ***

Well upload the image attached to the post to /Themes/helios/images/english/ , The image should be called usercp.gif


Next , Open up the helios index.template.php , located in /Themes/helios

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


// UserCP [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="User Control Panel" style="margin: 0px 0;" border="0" />USER CP</a></td>';
// Edit Profile... [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>';


Save and Reupload To /Themes/helios/ , And you should be good to go!

hello again..thank you for ur reply and help..however i keep recieving this error when i want to replace..the second code..

The file you tried to save generated the following error:
Parse error: parse error, unexpected ';' in index.template.php on line 576
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 03, 2008, 07:10:45 PM
What is line 576 of the modified index.template.php?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Me313 on January 04, 2008, 01:57:27 AM
i dont know...here's the helious tp index.template.php file..pls try add the code for me..
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 04, 2008, 09:55:56 AM
This should be the correct file though i did not test it first so make sure to have a backup of the original file.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Me313 on January 04, 2008, 09:20:35 PM
the button works looks well..when i change the edit profile button profile.gif....to usercp gif..but..the appearance didnt show up..the profile section looks just normal.not in usercp  mode
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 04, 2008, 09:57:08 PM
You need to change it to ?action=usercp if you changed the button on the original usercp.

You should know that if you do not use the code i gave in the mod like

if ($modSettings['usercp_enable'])
echo '
// usercp button code

If you turn the usercp off in the admin panel the button wont change , you will have to change it manualy.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Me313 on January 05, 2008, 12:04:46 AM
thank u..^-^ its working well..now..forgive me for troubling u a lot..
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Jade Elizabeth on January 06, 2008, 05:14:18 PM
Quote from: Alan S on May 01, 2007, 03:17:40 PM
To Add A Extra Button To The UserCP

Open up usercp.template.php

<find>

<a href="mailto:', $webmaster_email ,'"><img border="0" src="',$settings['images_url'],'/usercp/agent.png" width="80" height="80"></a></td>


<add after>

<a href="' , $scripturl ,'?action=xxxx"><img border="0" src="',$settings['images_url'],'/usercp/image.png/gif/jpg" width="80" height="80"></a></td>


<find>
<font face="Verdana" size="1">',$txt['usercp_contact_admin_summary'],'</font></td>

<add after>

<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="' , $scripturl ,'?action=xxxx'"><b>BUTTON TITLE</a><br>
</b></font><font face="Verdana" size="1">BUTTON SUMMARY</font></td>



There are things you need to edit.

First of all , Get your button image or icon ( Good ones at http://www.crystalxp.net/ ) , name it and upload it to /Themes/themeurl/images/usercp/

Then replace , In the button code above

'?action=xxxx   with '?action=youraction

',$settings['images_url'],'/usercp/image.png/gif/jpg with ',$settings['images_url'],'/usercp/yourimage.extenison

BUTTON TITLE with Your Button Title Such As WishList

BUTTON SUMMARY with The Summary Of The Button Function

when i follow this, without editing your code i get this error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/jade/public_html/forums/Themes/default/usercp.template.php on line 100

which is
</b></font><font face="Verdana" size="1">BUTTON SUMMARY</font></td>
that line :)
i tried the text string thing and it went to line 99 :( its being picky i guess.

can anyone help?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 07, 2008, 11:40:21 AM
If your using V2.0 you can add custom icons via the admin panel , No manual editing is required.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Jade Elizabeth on January 07, 2008, 01:27:01 PM
Quote from: Alan S on January 07, 2008, 11:40:21 AM
If your using V2.0 you can add custom icons via the admin panel , No manual editing is required.

really?
wow. maybe im running an old version :(

lmao try 1.2 lmao...yeah ill go back to my hole now lol/me goes off to upgrade
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Jade Elizabeth on January 07, 2008, 01:35:46 PM
:( i deleted the zip ages ago (from my package folder-i dont have much web space)....it was the first mod i installed :( does anyone have the old version?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 07, 2008, 02:03:16 PM
Here it is V1.2 ( Upload the zip to /Packages , You'd be better off uninstalling V1.2 and installing V2.0 from scratch )

Title: Re: User Control Panel ( User CP ) V3.0
Post by: Jade Elizabeth on January 07, 2008, 02:06:46 PM
Quote from: Alan S on January 07, 2008, 02:03:16 PM
Here it is V1.2 ( Upload the zip to /Packages , You'd be better off uninstalling V1.2 and installing V2.0 from scratch )



THANKYOU!!
:D
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Jade Elizabeth on January 07, 2008, 04:17:22 PM
);

// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];


it says to find that and put
// --- Begin modification - SMFBlog ---
'usercp' => 'ModifyUserCPSettings',
// --- End modification ---

after it

but it wont work. i have the ultimate profile mod installed too so i guess it wont work with that? heres that lovely block of code :)

// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];

loadLanguage('CustomProfile');
// Load up all the tabs...
$context['admin_tabs'] = array(
'title' => &$txt['modSettings_title'],
'help' => 'modsettings',
'description' => $txt['smf3'],
'tabs' => array(
'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl . '?action=featuresettings;sa=basic;sesc=' . $context['session_id'],
),
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),

'ultprofile' => array(
'title' => $txt['ultimate_profile'],
'href' => $scripturl . '?action=featuresettings;sa=ultprofile;sesc=' . $context['session_id'],
),

'sbox' => array(
'title' => $txt['sbox_ModTitle'],
'href' => $scripturl . '?action=featuresettings;sa=sbox;sesc=' . $context['session_id'],
),
'profile' => array(
'title' => $txt['cp_cpfields'],
'href' => $scripturl . '?action=featuresettings;sa=profile;sesc=' . $context['session_id'],
),
'MemberColorLinks' => array(
'title' => $txt['MemberColorLinkHeadline'],
'href' => $scripturl . '?action=featuresettings;sa=MemberColorLinks;sesc=' . $context['session_id'],
),
'googlebot' => array(
'title' => $txt['ob_googlebot_modname'],
'href' => $scripturl . '?action=featuresettings;sa=googlebot;sesc=' . $context['session_id'],
),
                        'websiteButton' => array(
                                'title' => $txt['websiteButton_title'],
                                'href' => $scripturl . '?action=featuresettings;sa=websiteButton;sesc=' . $context['session_id'],                       
),
// --- Begin modification - SMFBlog ---
'blog' => array(
'title' => $txt['blog_settings'],
'href' => $scripturl . '?action=featuresettings;sa=blog;sesc=' . $context['session_id'],
),
// --- End modification ---

'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
),
// --- Begin modification - UserCP ---
'usercp' => array(
'title' => $txt['usercp'],
'href' => $scripturl . '?action=featuresettings;sa=usercp;sesc=' . $context['session_id'],
),
// --- End modification ---
'aeiou' => array(
'title' => $txt['aeiou'],
'href' => $scripturl . '?action=featuresettings;sa=aeiou;sesc=' . $context['session_id'],
),
'sig' => array(
'title' => $txt['signature_settings'],
'description' => $txt['signature_settings_desc'],
'href' => $scripturl . '?action=featuresettings;sa=sig;sesc=' . $context['session_id'],
'is_last' => true,
),
),
);


i can see the admin button....but when i click it it takes me to basic features....
i did try uninstall/reinstall.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 07, 2008, 05:01:29 PM
You add it BEFORE the code not after it , For some reason in xml , after means before and before means after , i dont really get it but thats just the way it is!

So its

Find

);

// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];



Add Before
// --- Begin modification - SMFBlog ---
'usercp' => 'ModifyUserCPSettings',
// --- End modification ---
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Jade Elizabeth on January 07, 2008, 05:04:11 PM
lmao
ive done nothing but embarrass myself all day :(

thankyou lol
/me stumbles off all embarrassed
Title: Re: User Control Panel ( User CP ) V3.0
Post by: catchpen on January 09, 2008, 03:10:51 AM
Thanks for the update, good to have with the "ultimate profile" mod (in beta if anyone is searching for it)

and great support BTW - I don't think there's one post unanswered on this topic  8)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 09, 2008, 08:54:49 AM
LOL thanks , I dont like to see people without help , I know what it feels like and i dont want users of my mod to be without help.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 09, 2008, 09:11:18 AM
Dammit , looking at your site , catchpen , I just realised that i left something out of the update package , I forgot to add the code to change the version number , Dont worry nothing will be effected by this if you have already installed it.

I have uploaded a new update package to the mod site which includes updating the version number.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: catchpen on January 10, 2008, 04:07:14 AM
Quote from: Alan S on January 09, 2008, 09:11:18 AM
Dammit , looking at your site , catchpen , I just realised that i left something out of the update package , I forgot to add the code to change the version number , Dont worry nothing will be effected by this if you have already installed it.

I have uploaded a new update package to the mod site which includes updating the version number.

Yea I noticed that but I thought it was because I manually installed it. I thought I screwed up at first but everything was working. cool.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Jade Elizabeth 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 :(
Title: Re: User Control Panel ( User CP ) V3.0
Post by: falguni1 on January 10, 2008, 10:00:01 AM
Quote from: Alan S on January 09, 2008, 08:54:49 AM
LOL thanks , I dont like to see people without help , I know what it feels like and i dont want users of my mod to be without help.

will you provide support for other mods where there is no support.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 10, 2008, 11:11:42 AM
Not in this topic. I am always browsing the forum ( Though i dont have as much time as i used to ) and if i see a topic that i can help someone with i will post.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: [кѕ]ваηε-σ on January 10, 2008, 11:43:30 AM
i'm using the Aa New Damage theme and can't get the user CP to show in this theme even after i edited the index.tempate.php in the Aa New Damage theme like instructed to in the mod description. The User CP does work in the SMF default themed though.

i've attached my original index.template.php for the Aa New Damage theme and posted it below:


<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
 
echo '
  <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';


/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
<script language="javascript" type="text/javascript" src="'
$settings['images_url'], '/preloader.js"></script>
</head>
<body>'
;
// header goes below here
echo '
<!-- Added Header -->
<a name="top"></a>
<div align="center">
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="45" height="192"><img src="'
$settings['images_url'], '/forum_body_01.jpg" width="45" height="192" alt="" /></td>
<td width="910" height="192" align="left" valign="top">
<table width="910" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="910" height="139" background="'
$settings['images_url'], '/forum_body_02.jpg" align="center" valign="bottom">
<div class="title-text" style="padding:0 0 18px 0;">'
'</div>
</td>
</tr>
<tr>
<td width="910" height="18" align="left" valign="middle" background="'
$settings['images_url'], '/forum_body_04.jpg">
'
template_menu();
echo 
'
</td>
</tr>
<tr>
<td width="910" height="35"><img src="'
$settings['images_url'], '/forum_body_05.jpg" width="910" height="35" alt="0" /></td>
</tr>
</table>
</td>
<td width="45" height="192"><img src="'
$settings['images_url'], '/forum_body_03.jpg" width="45" height="192" alt="" /></td>
</tr>
</table>
<!-- END header -->
<!-- BEGIN content sections -->
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="1000" align="center" valign="top" class="content-bg">
<!-- End added header -->
<table width="860" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="860" align="left" valign="top">
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>';


// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>'
;

if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> '
$txt['hello_member_ndt'], ' <b>'$context['user']['name'] , '</b></span>
</td>'
;

// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' 
$context['current_time'], '</span>';

// this is the upshrink button for the user info section
echo '
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<td valign="top" colspan="2">
<table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
<tr>'
;

if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">'
$context['user']['avatar']['image'], '</td>';

echo '
<td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">'
;

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';
}

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
{
echo ((isset($current_action) && $curent_action == 'pm') || $context['browser']['is_ie4']) ? '' '' '
<span class="smalltext"><a href="'
$scripturl'?action=pm">Private Messages</a>: '$context['user']['unread_messages'], ' Unread, '$context['user']['messages'], ' Total.</span><br />';
}

// Otherwise they're a guest - send them a lovely greating...
else
echo $txt['welcome_guest'];

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" class="input1" value="Username" onBlur="if(this.value==\'\') this.value=\'Username\';" onFocus="if(this.value==\'Username\') this.value=\'\';" /> <input type="password" name="passwrd" class="input1" value="password" onBlur="if(this.value==\'\') this.value=\'password\';" onFocus="if(this.value==\'password\') this.value=\'\';" />
<select name="cookielength" class="input1">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input class="button" type="submit" value="'
$txt[34], '" /><br />
<span class="middletext">'
$txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}

echo '
</td>
</tr>
</table>
</td>
</tr>
</table>'
;

echo '
<table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ' style="display: none;"'' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>'
;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>'
$txt[102], '</b>: '$context['random_news_line'], '</span>
</td>'
;
echo '
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input class="input1" type="text" name="search" onBlur="if(this.value==\'\') this.value=\'Search...\';" onFocus="if(this.value==\'Search...\') this.value=\'\';" value="Search..." style="width: 190px;" />&nbsp;
<input class="button" type="submit" name="submit" value="'
$txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
</td>
</tr>
</table>
</div>'
;




// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">'
;
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

echo '
</div>'
;
if (function_exists('smfshout'))
smfshout();

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="left">
Theme by <a href="http://www.m3talc0re.com/" target="_blank" style="font-size:10px;">m3talc0re</a>.
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
'
theme_copyright(), '
</td>
<td width="28%" valign="middle" align="right">
<a href="http://www.mysql.com/" target="_blank" style="font-size:10px;">MySQL</a>&nbsp;|&nbsp;<a href="http://www.php.net/" target="_blank" style="font-size:10px;">PHP</a>&nbsp;|&nbsp;<a href="http://validator.w3.org/check/referer" target="_blank" style="font-size:10px;">XHTML</a>&nbsp;|&nbsp;<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank" style="font-size:10px;">CSS</a>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;

window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>
<!-- Added footer -->
</td>
</tr>
</table>
<table width="900" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="855" height="25" align="left" valign="middle" id="copyright-text">
</td>
<td rowspan="2" width="45" height="50" align="right" valign="top">
<a href="#top"><img src="'
$settings['images_url'], '/header_09.jpg" width="45" height="47" alt="Back To Top" title="Back To Top" /></a></td>
</tr>
<tr>
<td width="855" height="20" align="left" valign="middle" id="legal-text">
</td>
</tr>
</table>
<!-- END Legal -->
</td>
</tr>
</table>
<!-- END content sections -->
<!-- BEGIN footer -->
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="500" height="81" align="left" valign="top">
<img src="'
$settings['images_url'], '/header_11.jpg" width="500" height="81" alt="" /></td>
<td width="500" height="81" align="left" valign="top">
<img src="'
$settings['images_url'], '/header_12.jpg" width="500" height="81" alt="" /></td>
</tr>
</table>
<!-- END footer -->
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</body></html>'
;
}

// Footer goes above here
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex; padding-left:8px; padding-right:8px;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;&raquo;&nbsp;';
}

echo '</div>';
}

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

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<ul class="main-navigation">'
;

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '' '' '
<li class="mainNav-home"><a href="'
$scripturl'">' $txt[103] , '</a></li>' $current_action == 'home' '' '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '' '' '
<li class="mainNav-help"><a href="'
$scripturl'?action=help">' $txt[119] , '</a></li>' $current_action == 'help' '' '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '' '' '
<li class="mainNav-search"><a href="'
$scripturl'?action=search">' $txt[182] , '</a></li>' $current_action == 'search' '' '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '' '' '
<li class="mainNav-admin"><a href="'
$scripturl'?action=admin">' $txt[2] , '</a></li>' $current_action == 'admin' '' '';

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

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '' '' '
<li class="mainNav-messages"><a href="'
$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a></li>' $current_action == 'pm' '' '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '' '' '
<li class="mainNav-calendar"><a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a></li>' $current_action == 'calendar' '' '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '' '' '
<li class="mainNav-members"><a href="'
$scripturl'?action=mlist">' $txt[331] , '</a></li>' $current_action == 'mlist' '' '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '' '' '
<li class="mainNav-login"><a href="'
$scripturl'?action=login">' $txt[34] , '</a></li>' $current_action == 'login' '' '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '' '' '
<li class="mainNav-register"><a href="'
$scripturl'?action=register">' $txt[97] , '</a></li>' $current_action == 'register' '' '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '' '' '
<li class="mainNav-logout"><a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a></li>' $current_action == 'logout' '' '';

// The end of tab section.
echo '</ul>';

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>



if some one could help me that would be great. i really like the way this mod looks and i think it would be benificial to our forum.



Thx,
Brandon
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 10, 2008, 12:19:27 PM
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


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


Also

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, $modSettings;


Save it and reupload and your good to go
Title: Re: User Control Panel ( User CP ) V3.0
Post by: [кѕ]ваηε-σ on January 10, 2008, 04:17:32 PM
k thanks now the link buttons up top aren't broken like they used to be, but i get the following error:


Forbidden
You don't have permission to access /forums/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/1.3.37 Server at www.killerswarm.clanservers.com Port 80



any idea what went wrong?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: [кѕ]ваηε-σ on January 10, 2008, 06:31:07 PM
ok sorry to double post, but i just found something out. when i go to

Admin-->Features and Options-->User CP

and try to save any of the settings, it also takes me to that same error screen. it doesn't matter wether or not i'm using the SMF default theme or the Aa New Damage theme, they both give me the same error page.

Again, I had to manually edit the /Sources/ModSettings.php file to how it was explained on this mods download page. I'll attach that file to this post, it will be the version after I modified.

I also did what you said and modified the index.template.php file that was in the Aa New Damage theme. I have attached that below, named accordingly, as well .


I belive that there may be an error in the ModSettings.php file that is what is returning the errors. But that doesn't explain why the error page shows up when I click the profile button on the Aa New Damage theme.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: orca8767 on January 10, 2008, 09:17:06 PM
Could you help me with two of my index.template.php's?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: [кѕ]ваηε-σ on January 10, 2008, 10:21:43 PM
Me or Alan?

And where did those index.template.php files come from?  The SMF default theme or a different theme?

Whats the differnce between the two .php files?

What do you need help with?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: orca8767 on January 11, 2008, 06:48:12 PM
1. Doesn't matter to me who modifies them
2. The index.template.php is from the theme "TP XD-Obtuse" on tinyportalmedia.com The index.template1.php is from the theme "TP XD-Reborn," also from tinyportalmedia.com.
3. Explained above. I just needed to rename one to upload them in same post.
4. Adding in this modification please.

The two templates that I told you the names of might be switched.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Webbyman on January 13, 2008, 06:22:00 PM
Just checked back to this thread as I see its been updated.

With running ultimate profile alongside, does this new version cater for that. Always wanted to add a link from this to there, but saw it was dependant on the user_id, so awkward to add a picture link from it.

Also, to update, does it mean I have to uninstall old version, I've added to it(links), so wanted to avoid that really?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Jade Elizabeth on January 13, 2008, 06:26:49 PM
Quote from: Webbyman on January 13, 2008, 06:22:00 PM
Just checked back to this thread as I see its been updated.

With running ultimate profile alongside, does this new version cater for that. Always wanted to add a link from this to there, but saw it was dependant on the user_id, so awkward to add a picture link from it.

Also, to update, does it mean I have to uninstall old version, I've added to it(links), so wanted to avoid that really?

yeah you do :(

assuming you have both the latest of ultimate profile and the user CP, do this to make them work together:
http://www.simplemachines.org/community/index.php?topic=183574.msg1379008#msg1379008
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Webbyman on January 13, 2008, 06:34:26 PM
ah thanks very much, just what I need Alundra.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 14, 2008, 12:53:52 PM
Been a bit busy lately , I will try to look into the problems later on. Also i do NOT have time to manualy edit everyone's index.template.php to work with there theme so i will just post the code for different themes and people can use that as a guide to do it themselves.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: orca8767 on January 16, 2008, 07:22:33 PM
The theme I use is completely different though...
Title: Re: User Control Panel ( User CP ) V3.0
Post by: 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.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Jade Elizabeth on January 17, 2008, 11:57:41 AM
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.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 17, 2008, 12:23:40 PM
http://dev.corkthings.com/usercp/index.php

Username : testw
Password : test
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 17, 2008, 12:45:54 PM
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 (http://xs223.xs.to/xs223/08034/helios827.gif) 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
Title: Re: User Control Panel ( User CP ) V3.0
Post by: 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?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Jade Elizabeth on January 17, 2008, 04:57:58 PM
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)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: [кѕ]ваηε-σ 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
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 19, 2008, 06:54:21 AM
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.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: [кѕ]ваηε-σ on January 19, 2008, 02:30:47 PM
download link on the mod page doesn't work
Title: Re: User Control Panel ( User CP ) V3.0
Post by: nick09 on January 19, 2008, 02:40:44 PM
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.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: [кѕ]ваηε-σ on January 19, 2008, 03:16:24 PM
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.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: au8ust on January 27, 2008, 11:41:48 AM
File corrupted. Re-upload please :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on January 27, 2008, 04:47:25 PM
Reuploaded
Title: Re: User Control Panel ( User CP ) V3.0
Post by: au8ust on January 30, 2008, 07:42:09 PM
Quote from: Alan S on January 27, 2008, 04:47:25 PM
Reuploaded
Thanks! gonna install it now :D
Title: Re: User Control Panel ( User CP ) V3.0
Post by: LLStarks on February 03, 2008, 07:24:28 PM
FYI. V2.0 does not work with a fresh SMF 2.0 install.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on February 04, 2008, 07:23:02 AM
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.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Apllicmz on February 04, 2008, 01:08:31 PM
nice work
man nice Mod
Title: Re: User Control Panel ( User CP ) V3.0
Post by: 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
Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on February 11, 2008, 01:09:24 PM
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?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bigguy on February 11, 2008, 01:30:22 PM
Have you asked your host about this.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on February 11, 2008, 02:13:06 PM
yes I have. :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bigguy on February 11, 2008, 02:14:09 PM
What did they say ??? That all was fine on their end. ???
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on February 11, 2008, 02:16:36 PM
Never seen that before. Ever , I actually have no clue whats wrong? All i could say , aswell , would be ask your host.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on February 11, 2008, 02:42:49 PM
ok, thanks.  I will go check again for their reply.  They wanted me to check with the mod author first.

Thanks
Title: Re: User Control Panel ( User CP ) V3.0
Post by: cecilgoode on February 21, 2008, 11:34:07 PM
Fatal error: Cannot redeclare template_moderatorsettings() (previously declared in /home/content/c/e/c/cecilgoode1/html/Forumz/Sources/Load.php(1726) : eval()'d code:2720) in /home/content/c/e/c/cecilgoode1/html/Forumz/Sources/Load.php(1726) : eval()'d code on line 2883.... someone help!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on February 22, 2008, 07:20:04 AM
looks like you installed the mod multiple times.

You will have to manually remove the duplicate code.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: cecilgoode on February 22, 2008, 09:48:25 AM
more help please!

My load.php does not have a range of 2720 or 2883 anywhere
>:(

if I go to members and click a username I get this

Fatal error: Cannot redeclare template_customized() (previously declared in /home/content/c/e/c/cecilgoode1/html/Forumz/Sources/Load.php(1726) : eval()'d code:1866) in /home/content/c/e/c/cecilgoode1/html/Forumz/Sources/Load.php(1726) : eval()'d code on line 2104
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Nibogo on February 22, 2008, 01:31:44 PM
i make a manual install and works great

but i think of you can do a v3 with the usercp like icy phoenix ;)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: cecilgoode on February 22, 2008, 01:37:00 PM
please explain?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on February 22, 2008, 01:41:55 PM
Quote from: cecilgoode on February 22, 2008, 09:48:25 AM<br />more help please!<br /><br />My load.php does not have a range of 2720 or 2883 anywhere<br /><img src="http://www.simplemachines.org/community/Smileys/simple/angry.gif" border="0" alt="" title="" onresizestart="return false;" id="smiley_1_angry.gif" style="padding-left: 6px;" /><br /><br />if I go to members and click a username I get this<br /><br />Fatal error: Cannot redeclare template_customized() (previously declared in /home/content/c/e/c/cecilgoode1/html/Forumz/Sources/Load.php(1726) : eval()'d code:1866) in /home/content/c/e/c/cecilgoode1/html/Forumz/Sources/Load.php(1726) : eval()'d code on line 2104<br />


Quote from: Kindred on February 22, 2008, 07:20:04 AM
looks like you installed the mod multiple times.

You will have to manually remove the duplicate code.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: cecilgoode on February 22, 2008, 02:15:01 PM
thanks for the help! ::)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kimmie on February 22, 2008, 02:26:14 PM
can you update your images on the mod page? All I get when I try to view them in both IE and FF is a bunch of garbled code.

(http://www.fileupyours.com/files/138165/garbled%20code.jpg)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: cecilgoode on February 22, 2008, 02:31:58 PM
the images are there well way under a bunch of stuff about the usercp mod but when you click on the pic say for my profile it comes up with a blank screen with that error message...it says something about my load.php but restored backup replaced with original...tried NO LUCK ...


help my users need a profile page and whatnot.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bigguy on February 22, 2008, 03:45:57 PM
You are going to have to go through all the files that that mod edits and remove any duplicate code that it has put in. The error is not necessarily in your Load.php file as I see it says eval; which means the error is being generated from another file.

The best way to find all the edits that this mod does to SMF is to run it through a package parser; search for the code in the files it lists and remove the duplicate entries.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: cecilgoode on February 22, 2008, 04:31:32 PM
Thank You....Will do


Got It!...
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on February 22, 2008, 07:14:01 PM
Glad you sorted  it out , I only read this topic now so sorry i couldn't help.

@ Kimmie , I have reuploaded the pictures , Dont know what caused them to dissappear but anyway!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: cecilgoode on February 22, 2008, 07:20:09 PM
thanks
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kimmie on February 23, 2008, 01:11:52 AM
Quote from: Alan S on February 22, 2008, 07:14:01 PM
@ Kimmie , I have reuploaded the pictures , Dont know what caused them to dissappear but anyway!

Thanks and pics look really good. Nice job on the new profile page. Will give it a try in a few days. :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: jusplay77 on February 27, 2008, 09:10:47 PM
I have a question about the Custom Made Entries.  I am trying to add one for Awards and Pets, but the URL contains a variable:

http://......./smf/index.php?action=profile;u=1;sa=showPets
http://......./smf/index.php?action=profile;u=1;sa=awards

How would I add those?  As the 'u=1' is a variable.  Each member has their own ID (obviously)..

Please help
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on February 28, 2008, 11:14:29 AM
The variable your looking for is $ID_MEMBER

So for the link it would be

<a href="' , $scripturl, '?action=profile;u=' , $ID_MEMBER, ';sa=awards">Name of link</a>
Title: Re: User Control Panel ( User CP ) V3.0
Post by: jusplay77 on February 28, 2008, 02:26:35 PM
Well, I was hoping $ID_MEMBER would work in the Features & Options custom-made text box's.. but unfortunately they did not.. so do I add:

<a href="' , $scripturl, '?action=profile;u=' , $ID_MEMBER, ';sa=awards">My Awards</a>

<a href="' , $scripturl, '?action=profile;u=' , $ID_MEMBER, ';sa=showPets">My Pets</a>

in the Modifications.english.php section? Or is there more to it than that
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on February 28, 2008, 03:14:18 PM
Well i have instructions posted here on how to add a new section to the user cp which is what your looking for

http://www.simplemachines.org/community/index.php?topic=167975.msg1076838#msg1076838
Title: Re: User Control Panel ( User CP ) V3.0
Post by: jusplay77 on February 28, 2008, 03:43:00 PM
Thank you, although I am a bit confused on how it looks (looks jarbled).. Could someone look over this source code real quick:

usercp.template.php:

<a href="mailto:', $webmaster_email ,'"><img border="0" src="',$settings['images_url'],'/usercp/agent.png" width="80" height="80"></a></td>
<a href="' , $scripturl ,'?action=profile;u=' , $ID_MEMBER, ';sa=awards"><img border="0" src="',$settings['images_url'],'/usercp/awards.png" width="80" height="80"></a></td>
<a href="' , $scripturl ,'?action=profile;u=' , $ID_MEMBER, ';sa=showPets"><img border="0" src="',$settings['images_url'],'/usercp/pets.png" width="80" height="80"></a></td>
';




// Use this code if they want to use pms
if ($modSettings['usercp_usepm'] && $modSettings['usercp_enablecontactadmin'] && $context['user']['is_logged'] && $context['allow_edit_profile'] && $modSettings['usercp_enable'])
echo '
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="' ,$scripturl, '?action=pm;sa=send;u=' ,$modSettings['usercp_adminid'], '"><b>',$txt['usercp_contact_admin'],'</a><br>
</b></font><font face="Verdana" size="1">',$txt['usercp_contact_admin_summary'],'</font></td>

<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="' , $scripturl ,'?action=profile;u=' , $ID_MEMBER, ';sa=awards'"><b>My Awards</a><br>
</b></font><font face="Verdana" size="1">Awards</font></td>

<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="' , $scripturl ,'?profile;u=' , $ID_MEMBER, ';sa=showPets'"><b>My Pets</a><br>
</b></font><font face="Verdana" size="1">My Pets</font></td>';

Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on February 28, 2008, 04:02:50 PM
What version of the UserCP are you using?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: jusplay77 on February 28, 2008, 04:31:38 PM
SMF 1.1.4
UserCP v2.0
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on February 28, 2008, 04:32:57 PM
Okay , Give me 5 min , That tutorial is for UserCP V 1.4 , I will create another tutorial for 2.0 since the code changed a lot since the 1.X series.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on February 28, 2008, 04:43:03 PM
UserCP V2.0 - How To Add Custom Fields

* Please Note , This will remove the functionality of the 1st Custom UserCP field. *

usercp.template.php

<Find>

// Custom UserCP Field Image 1
if($modSettings['usercp_field1enable'] && $modSettings['usercp_enable'])
echo '
<tr><td align="center" width="25%" valign="top">
<a href="', $modSettings['usercp_field1url'],'"><img border="0" src="',$modSettings['usercp_field1image'],'" width="80" height="80"></a></td>';


<replace with>


// Custom UserCP Field 1
if($modSettings['usercp_enable'])
echo '
<tr><td align="center" width="25%" valign="top">
<a href="yourlinkhere"><img border="0" src="yourimageurl" width="80" height="80"></a></td>';


^ Fill in the link and image url with your values.

<find>

//Custom UserCP Field 1 Text
if($modSettings['usercp_field1enable'] && $modSettings['usercp_enable'])
echo '
<font face="Verdana" size="2"><a href="', $modSettings['usercp_field1url'],'"><b>',$modSettings['usercp_field1maintext'],'</a><br>
</b></font><font face="Verdana" size="1">',$modSettings['usercp_field1summary'],'</font></td>';


<replace with>


//Custom UserCP Field 1 Text
if($modSettings['usercp_enable'])
echo '
<font face="Verdana" size="2"><a href="yourlinkhere"><b>Maintext here</a><br>
</b></font><font face="Verdana" size="1">Summary here</font></td>';


^ Fill in the link , The Maintext and the summary with your values.

Save the file , Reupload it and your custom field should now appear.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on February 28, 2008, 04:43:36 PM
^^ Tutorial Added Above , Any questions feel free to ask away.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: jusplay77 on February 28, 2008, 08:14:48 PM
Perfect!  You sir, are a gentleman and a scholar!  Thanks much!

For those that would like to use the buttons I created for my custom actions (for Awards Mod, Pets Mod, & Living Avatars Mod), here they are:


/____________________________/


UserCP Awards Mod Button:
(http://img249.imageshack.us/img249/9923/awardsui0.png)
http://img249.imageshack.us/img249/9923/awardsui0.png

UserCP SMF Shop Pets Mod Button:
(http://img86.imageshack.us/img86/1043/petsew3.png)
http://img86.imageshack.us/img86/1043/petsew3.png

UserCP Living Avatars Mod Button:
(http://img261.imageshack.us/img261/9841/livingavatarsw3.png)
http://img261.imageshack.us/img261/9841/livingavatarsw3.png


/____________________________/

Title: Re: User Control Panel ( User CP ) V3.0
Post by: Metorks on March 01, 2008, 03:25:20 AM
Okay, I've got the mod installed and it the tab is displayed on the menu bar.  However, when I click the profile tab, the Home button remains highlighted as the active tab.  The theme I am using is Outline by DzinerStudio (http://www.dzinerstudio.com/index.php?topic=233.0)

Here are some snippets of what I believe to be relevant code:
Code (CSS) Select

#topmenu {
margin: 0;
padding: 0;
font-family: tahoma, sans-serif;
font-size: 11px;
}

#topmenu ul {
padding: 0 0 0 5px;
margin: 0;
list-style-type: none;
width: auto;
float: left;
}

#topmenu ul li {
margin: 0;
padding: 0;
display: inline;
}

#topmenu ul li a {
float: left;
display: block;
margin: 0 0 0 2px;
padding: 0 0 0 10px;
text-decoration: none;
line-height: 30px;
color: #fcfcfc;
background: #a90329 url(images/custom/topmenu-l.gif) 0 0 no-repeat;
}

#topmenu ul li a span {
float: left;
display: block;
padding: 0 15px 0 7px;
cursor: pointer;
background: #a90329 url(images/custom/topmenu-r.gif) 100% 0 no-repeat;
}

#topmenu ul li a.current {
color: #000;
font-weight: bold;
background: #fff url(images/custom/topmenu-active-l.gif) 0 0 no-repeat;
}

#topmenu ul li a.current span {
display: block;
width: auto;
background: #fff url(images/custom/topmenu-active-r.gif) 100% 0 no-repeat;
}

#topmenu ul li a:hover {}

#topmenu ul li a:hover span {
text-decoration: underline;
display: block;
width: auto;
}


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

// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';

if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum', 'tpadmin')))
$current_action = $context['current_action'];

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

if (isset($_GET['dl']))
$current_action = 'dlmanager';

if (isset($_GET['board']) || isset($_GET['topic']))
$current_action = 'forum';

if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

if ($context['current_action'] == 'chat')
$current_action = 'chat';

if ($context['current_action'] == 'events')
$current_action = 'events';

if ($context['current_action'] == 'gallery' || $context['current_action'] == 'creategalaccount')
$current_action = 'gallery';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first = 'last';
$last = 'first';
}
else
{
$first = 'first';
$last = 'last';
}

// Show the start of the tab section.
echo '
  <div id="topmenu">
  <ul>';
  // Show the [home] button.
echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';


  if($settings['TPortal_front_type']!='boardindex')

  // Show the [forum] button.
echo '<li><a' , $current_action=='forum' ? ' class="current"' : '' , ' href="', $scripturl, '?action=forum"><span>' , $txt['tp-forum'] , '</span></a></li>';

  // The [calendar]!
if ($context['allow_calendar'])
echo '<li><a' , $current_action=='calendar' ? ' class="current"' : '' , ' href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';

  // FlashChat
//if ($context['user']['is_logged'])
echo '<li><a' , $current_action == 'chat' ? ' class="current"' : '', ' href="', $scripturl, '?action=chat"', (!empty($GLOBALS['modSettings']['fc_newWindow']) ? ' target="_blank"' : ''), '><span>', $txt['fc_chat'], (!empty($GLOBALS['modSettings']['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</span></a></li>';

// the [member] list button
if ($context['allow_memberlist'])
echo '<li><a ' , $current_action=='mlist' ? ' class="current"' : '' , ' href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span></a></li>';



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


The CSS snippet is the section of style.css that controls the hover/active/plain attitudes of the tabs.



Also, where do I find the UserCP settings in the Admin panel?  I'm lost....
Edit: I redownloaded/installed the package and menu appeared.  I believe that I had an older version or that my previous install was corrupt.  First problem still exists, though.


Thanks in advance!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Metorks on March 01, 2008, 05:08:53 AM
One more question:  How would I go about removing the "My Themes" option from the CP?  I have one theme and do not want users to switch.  The setting in the adminCP is turned off, and when they click on "My Theme" they are not able to change themes, but it does bring up the theme list.  I'd prefer to just nix the option altogether.  I tried searching this thread, but couldn't find the answer.

Thanks again.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on March 01, 2008, 01:03:06 PM
Quote from: perplexed on February 11, 2008, 01:09:24 PM
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?

Quote from: Alan S on February 11, 2008, 02:16:36 PM
Never seen that before. Ever , I actually have no clue whats wrong? All i could say , aswell , would be ask your host.

hi again,  I am checking with the host but meanwhile...


I wondered if anyone who has the mod installed could tell me what page you are taken to once you save the settings in features & options > user cp

For me, once I click on save, I get taken to a page that displays the above error but the page url is:

http://www.mysite/forum/index.php?action=featuresettings2;save;sa=usercp (http://www.mysite/forum/index.php?action=featuresettings2;save;sa=usercp)

does that look right to anyone?  I wondered where the '2' was coming from and whether 'save' was in the right place as it looked wrong to me somehow, and wondered if that was part of the problem ???

Also it doesn't matter what I change in features and options >user cp, or even if I don't change anything at all, as soon as I click on the SAVE button, it throws up that 501 page.


thanks for any help


Title: Re: User Control Panel ( User CP ) V3.0
Post by: syzable on March 01, 2008, 04:15:57 PM
Thanks for this, works great. :)

Although i had to change the spelling of query under the Contact Admin image as it was spelled wrong. Just thought i'd say so you can correct it for any future updates. :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on March 03, 2008, 07:18:55 PM
Quote from: perplexed on March 01, 2008, 01:03:06 PM
Quote from: perplexed on February 11, 2008, 01:09:24 PM
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?

Quote from: Alan S on February 11, 2008, 02:16:36 PM
Never seen that before. Ever , I actually have no clue whats wrong? All i could say , aswell , would be ask your host.

hi again,  I am checking with the host but meanwhile...


I wondered if anyone who has the mod installed could tell me what page you are taken to once you save the settings in features & options > user cp

For me, once I click on save, I get taken to a page that displays the above error but the page url is:

http://www.mysite/forum/index.php?action=featuresettings2;save;sa=usercp (http://www.mysite/forum/index.php?action=featuresettings2;save;sa=usercp)

does that look right to anyone?  I wondered where the '2' was coming from and whether 'save' was in the right place as it looked wrong to me somehow, and wondered if that was part of the problem ???

Also it doesn't matter what I change in features and options >user cp, or even if I don't change anything at all, as soon as I click on the SAVE button, it throws up that 501 page.


thanks for any help


Problem has been solved *yay*  Look forward to testing it out now!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on March 06, 2008, 05:53:59 AM
hi

I have ultimate profile mod installed with this and the buddies work differently, so the buddies link on the User CP was taking me to the wrong place.

I changed the code in usercp.template.php from
<a href="', $scripturl, '?action=profile;u=', $ID_MEMBER, ';sa=editBuddies"><img border="0" src="',$settings['images_url'],'/usercp/kdmconfig.png" width="80" height="80"></a></td>


to
<a href="', $scripturl, '?action=buddies;sa=editBuddies"><img border="0" src="',$settings['images_url'],'/usercp/kdmconfig.png" width="80" height="80"></a></td>

and that works with no errors in the log.  I just want to make sure that I've done it correctly or if I should have done it another way, please let me know

Thanks
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on March 06, 2008, 12:45:07 PM
Quote from: Metorks on March 01, 2008, 03:25:20 AM
Okay, I've got the mod installed and it the tab is displayed on the menu bar.  However, when I click the profile tab, the Home button remains highlighted as the active tab.  The theme I am using is Outline by DzinerStudio (http://www.dzinerstudio.com/index.php?topic=233.0)

Here are some snippets of what I believe to be relevant code:
Code (CSS) Select

#topmenu {

margin: 0;
padding: 0;
font-family: tahoma, sans-serif;
font-size: 11px;
}

#topmenu ul {
padding: 0 0 0 5px;
margin: 0;
list-style-type: none;
width: auto;
float: left;
}

#topmenu ul li {
margin: 0;
padding: 0;
display: inline;
}

#topmenu ul li a {
float: left;
display: block;
margin: 0 0 0 2px;
padding: 0 0 0 10px;
text-decoration: none;
line-height: 30px;
color: #fcfcfc;
background: #a90329 url(images/custom/topmenu-l.gif) 0 0 no-repeat;
}

#topmenu ul li a span {
float: left;
display: block;
padding: 0 15px 0 7px;
cursor: pointer;
background: #a90329 url(images/custom/topmenu-r.gif) 100% 0 no-repeat;
}

#topmenu ul li a.current {
color: #000;
font-weight: bold;
background: #fff url(images/custom/topmenu-active-l.gif) 0 0 no-repeat;
}

#topmenu ul li a.current span {
display: block;
width: auto;
background: #fff url(images/custom/topmenu-active-r.gif) 100% 0 no-repeat;
}

#topmenu ul li a:hover {}

#topmenu ul li a:hover span {
text-decoration: underline;
display: block;
width: auto;
}


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

// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';

if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum', 'tpadmin')))
$current_action = $context['current_action'];

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

if (isset($_GET['dl']))
$current_action = 'dlmanager';

if (isset($_GET['board']) || isset($_GET['topic']))
$current_action = 'forum';

if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

if ($context['current_action'] == 'chat')
$current_action = 'chat';

if ($context['current_action'] == 'events')
$current_action = 'events';

if ($context['current_action'] == 'gallery' || $context['current_action'] == 'creategalaccount')
$current_action = 'gallery';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first = 'last';
$last = 'first';
}
else
{
$first = 'first';
$last = 'last';
}

// Show the start of the tab section.
echo '
  <div id="topmenu">
  <ul>';
  // Show the [home] button.
echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';


  if($settings['TPortal_front_type']!='boardindex')

  // Show the [forum] button.
echo '<li><a' , $current_action=='forum' ? ' class="current"' : '' , ' href="', $scripturl, '?action=forum"><span>' , $txt['tp-forum'] , '</span></a></li>';

  // The [calendar]!
if ($context['allow_calendar'])
echo '<li><a' , $current_action=='calendar' ? ' class="current"' : '' , ' href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';

  // FlashChat
//if ($context['user']['is_logged'])
echo '<li><a' , $current_action == 'chat' ? ' class="current"' : '', ' href="', $scripturl, '?action=chat"', (!empty($GLOBALS['modSettings']['fc_newWindow']) ? ' target="_blank"' : ''), '><span>', $txt['fc_chat'], (!empty($GLOBALS['modSettings']['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</span></a></li>';

// the [member] list button
if ($context['allow_memberlist'])
echo '<li><a ' , $current_action=='mlist' ? ' class="current"' : '' , ' href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span></a></li>';



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


The CSS snippet is the section of style.css that controls the hover/active/plain attitudes of the tabs.



Also, where do I find the UserCP settings in the Admin panel?  I'm lost....
Edit: I redownloaded/installed the package and menu appeared.  I believe that I had an older version or that my previous install was corrupt.  First problem still exists, though.


Thanks in advance!

Well , That theme uses different coding to the default theme so in the index.template.php

<find>

if ($context['current_action'] == 'chat')
$current_action = 'chat';

</find>

<add after>

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

</add after>

And where you have the usercp button , make sure the code for the link part is


echo '<li><a ' , $current_action=='usercp' ? ' class="current"' : '' , ' href="', $scripturl, '?action=usercp"><span>' , $txt['usercp'] , '</span></a></li>';



Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on March 06, 2008, 05:34:46 PM
Will be starting development of UserCP 2.0 for SMF 2.0 Beta2 shortly , Just for those charter members who are waiting for a update.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: cyber2team on March 18, 2008, 03:48:08 PM
i need to the theme ApolloBB-TP (1.1.4) please
Title: Re: User Control Panel ( User CP ) V3.0
Post by: cyber2team on March 19, 2008, 08:45:28 AM
help me pleaase
Title: Re: User Control Panel ( User CP ) V3.0
Post by: NEO-BAHAMUT- on March 19, 2008, 08:02:54 PM
Hi there,

I am currently using the AA New Damage theme on simple machines version 1.1.4 and using your userCP version 2.0. I have manually changed what you have said to change on page 15 on this thread.... Once i have done so, the "profile" button disappears from my tool bar so i cannot actually get in to the profile to see what it looks like. Could you please tell me what is up with this and i'll try and fix it. Here is a copy of my index.template.php for the AA New Damage Theme.

Thanks.
--------------------------------

<?php
// Version: 1.1; index

/*   This template is, perhaps, the most important template in the theme. It
   contains the main template layer that displays the header and footer of
   the forum, namely with main_above and main_below. It also contains the
   menu sub template, which appropriately displays the menu; the init sub
   template, which is there to set the theme up; (init can be missing.) and
   the linktree sub template, which sorts out the link tree.

   The init sub template should load any data and set any hardcoded options.

   The main_above sub template is what is shown above the main content, and
   should contain anything that should be shown up there.

   The main_below sub template, conversely, is shown after the main content.
   It should probably contain the copyright statement and some other things.

   The linktree sub template should display the link tree, using the data
   in the $context['linktree'] variable.

   The menu sub template should display all the relevant buttons the user
   wants and or needs.

   For more information on the templating system, please see the site at:
   http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
   global 
$context$settings$options$txt;

   
/* Use images from default theme when using templates from the default theme?
      if this is 'always', images from the default theme will be used.
      if this is 'defaults', images from the default theme will only be used with default templates.
      if this is 'never' or isn't set at all, images from the default theme will not be used. */
   
$settings['use_default_images'] = 'never';

   
/* What document type definition is being used? (for font size and other issues.)
      'xhtml' for an XHTML 1.0 document type definition.
      'html' for an HTML 4.01 document type definition. */
   
$settings['doctype'] = 'xhtml';

   
/* The version this template/theme is for.
      This should probably be the version of SMF it was created for. */
   
$settings['theme_version'] = '1.1';

   
/* Set a setting that tells the theme that it can render the tabs. */
   
$settings['use_tabs'] = true;

   
/* Use plain buttons - as oppossed to text buttons? */
   
$settings['use_buttons'] = true;

   
/* Show sticky and lock status seperate from topic icons? */
   
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
   global 
$context$settings$options$scripturl$txt$modSettings;

   
// Show right to left and the character set for ease of translating.
   
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
   <meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
   <meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
   <meta name="robots" content="noindex" />'
'
   <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
   <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var smf_theme_url = "'
$settings['theme_url'], '";
      var smf_images_url = "'
$settings['images_url'], '";
      var smf_scripturl = "'
$scripturl'";
      var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
      var smf_charset = "'
$context['character_set'], '";
   // ]]></script>
   <title>'
$context['page_title'], '</title>';

   
// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
    
echo '
   <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
   <link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />
   <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/regbar.css" />';


   
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
      Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
      Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
      Standards compliance mode happens when you use xhtml... */
   
if ($context['browser']['needs_size_fix'])
      echo 
'
   <link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

   
// Show all the relative links, such as help, search, contents, and the like.
   
echo '
   <link rel="help" href="'
$scripturl'?action=help" target="_blank" />
   <link rel="search" href="' 
$scripturl '?action=search" />
   <link rel="contents" href="'
$scripturl'" />';

   
// If RSS feeds are enabled, advertise the presence of one.
   
if (!empty($modSettings['xmlnews_enable']))
      echo 
'
   <link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

   
// If we're viewing a topic, these should be the previous and next topics, respectively.
   
if (!empty($context['current_topic']))
      echo 
'
   <link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
   <link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

   
// If we're in a board, or a topic for that matter, the index will be the board's index.
   
if (!empty($context['current_board']))
      echo 
'
   <link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

   
// We'll have to use the cookie to remember the header...
   
if ($context['user']['is_guest'])
      
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

   
// Output any remaining HTML headers. (from mods, maybe?)
   
echo $context['html_headers'], '

   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

      function shrinkHeader(mode)
      {'
;

   
// Guests don't have theme options!!
   
if ($context['user']['is_guest'])
      echo 
'
         document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
   else
      echo 
'
         smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

   echo 
'
         document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

         document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
         document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

         current_header = mode;
      }
   // ]]></script>'
;

   
// the routine for the info center upshrink
   
echo '
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
         var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

         function shrinkHeaderIC(mode)
         {'
;

   if (
$context['user']['is_guest'])
      echo 
'
            document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
   else
      echo 
'
            smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

   echo 
'
            document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

            document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

            current_header_ic = mode;
         }
      // ]]></script>
<script language="javascript" type="text/javascript" src="'
$settings['images_url'], '/preloader.js"></script>
</head>
<body>'
;
//Display ads on the top of the page
   
if (function_exists("show_topofpageAds"))
   {
      
$ads show_topofpageAds();   
      if(!empty(
$ads))
         if(
$ads['type']==0)
            echo 
$ads['content'];
         else
            eval(
$ads['content']);   
      unset(
$ads);
   }
if(
$context['user']['is_guest'] && $context['current_action'] != 'register')
         echo 
'<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="100%"><div id="infobar"><a href="' $scripturl '?action=register"><p>' $txt['regbar_text'] . '</p></a></div></td>';
                     
//Welcome Ads
                     
if (function_exists("show_welcomeAds"))
                     {
                        
$ads show_welcomeAds();
                        if(!empty(
$ads))
                        {
                           echo 
'<td class="windowbg2">';
                           if(
$ads['type']==0)
                              echo 
$ads['content'];
                           else
                              eval(
$ads['content']);
                           echo 
'</td>';
                        }
                        unset(
$ads);
                     }
                  echo 
'</tr></table>';
// header goes below here
   
echo '
<!-- Added Header -->
<a name="top"></a>
<div align="center">
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="45" height="192"><img src="'
$settings['images_url'], '/forum_body_01.jpg" width="45" height="192" alt="" /></td>
<td width="910" height="192" align="left" valign="top">
<table width="910" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="910" height="139" background="'
$settings['images_url'], '/forum_body_02.jpg" align="center" valign="bottom">
<div class="title-text" style="padding:0 0 18px 0;">'
$context['forum_name'], '</div>
</td>
</tr>
<tr>
<td width="910" height="18" align="left" valign="middle" background="'
$settings['images_url'], '/forum_body_04.jpg">
'
template_menu();
//Below the menu ads
   
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
   {
      
$ads show_indexAds();   
      if(!empty(
$ads))
         if(
$ads['type']==0)
            echo 
$ads['content'];
         else
            eval(
$ads['content']);
      unset(
$ads);

      
//Tower left Ads
      
$ads show_towerleftAds();
      if(!empty(
$ads))
         echo 
'<table><tr><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

      unset(
$ads);
      
//Tower Right Ads
      
$ads show_towerrightAds();   
      if(!empty(
$ads))
         echo 
'<table><tr><td width="100%" valign="top">';
      unset(
$ads);
   }

echo 
'
</td>
</tr>
<tr>
<td width="910" height="35"><img src="'
$settings['images_url'], '/forum_body_05.jpg" width="910" height="35" alt="0" /></td>
</tr>
</table>
</td>
<td width="45" height="192"><img src="'
$settings['images_url'], '/forum_body_03.jpg" width="45" height="192" alt="" /></td>
</tr>
</table>
<!-- END header -->
<!-- BEGIN content sections -->
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="1000" align="center" valign="top" class="content-bg">
<!-- End added header -->
<table width="860" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="860" align="left" valign="top">
   <div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>';


   
// display user name
   
echo '
      <table width="100%" cellpadding="0" cellspacing="0" border="0" >
         <tr>'
;

   if(
$context['user']['is_logged'])
      echo 
'
            <td class="titlebg2" height="32">
               <span style="font-size: 130%;"> '
$txt['hello_member_ndt'], ' <b>'$context['user']['name'] , '</b></span>
            </td>'
;

   
// display the time
   
echo '
            <td class="titlebg2" height="32" align="right">
               <span class="smalltext">' 
$context['current_time'], '</span>';

   
// this is the upshrink button for the user info section
   
echo '
               <a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
            </td>
         </tr>
         <tr id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
            <td valign="top" colspan="2">
               <table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
                  <tr>'
;

   if (!empty(
$context['user']['avatar']))
      echo 
'
                     <td class="windowbg" valign="middle">'
$context['user']['avatar']['image'], '</td>';

   echo 
'
                     <td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">'
;

   
// If the user is logged in, display stuff like their name, new messages, etc.
   
if ($context['user']['is_logged'])
   {
      echo 
'
                        <a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
                        <a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';
   }
   
   
// Go to PM center... [pm]
   
if ($context['user']['is_logged'] && $context['allow_pm'])
   {
      echo ((isset(
$current_action) && $curent_action == 'pm') || $context['browser']['is_ie4']) ? '' '' '
         <span class="smalltext"><a href="'
$scripturl'?action=pm">Private Messages</a>: '$context['user']['unread_messages'], ' Unread, '$context['user']['messages'], ' Total.</span><br />';
   }
   
   
// Otherwise they're a guest - send them a lovely greating...
   
else
      echo 
$txt['welcome_guest'];

   
// Now, onto our second set of info, are they logged in again?
   
if ($context['user']['is_logged'])
   {
      
// Is the forum in maintenance mode?
      
if ($context['in_maintenance'] && $context['user']['is_admin'])
         echo 
'
                        <b>'
$txt[616], '</b><br />';

      
// Are there any members waiting for approval?
      
if (!empty($context['unapproved_members']))
         echo 
'
                        '
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

      
// Show the total time logged in?
      
if (!empty($context['user']['total_time_logged_in']))
      {
         echo 
'
                        '
$txt['totalTimeLogged1'];

         
// If days is just zero, don't bother to show it.
         
if ($context['user']['total_time_logged_in']['days'] > 0)
            echo 
$context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

         
// Same with hours - only show it if it's above zero.
         
if ($context['user']['total_time_logged_in']['hours'] > 0)
            echo 
$context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

         
// But, let's always show minutes - Time wasted here: 0 minutes.
         
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      echo 
'            </span>';
   }
   
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   
else
   {
      echo 
'            </span>
                        <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

                        <form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, '' . $context['session_id'] . '');"' '''>
                           <input type="text" name="user" class="input1" value="Username" onBlur="if(this.value=='') this.value='
Username';" onFocus="if(this.value=='Username') this.value='';" /> <input type="password" name="passwrd" class="input1" value="password" onBlur="if(this.value=='') this.value='password';" onFocus="if(this.value=='password') this.value='';" />
                           <select name="cookielength" class="input1">
                              <option value="60">'
$txt['smf53'], '</option>
                              <option value="1440">'
$txt['smf47'], '</option>
                              <option value="10080">'
$txt['smf48'], '</option>
                              <option value="43200">'
$txt['smf49'], '</option>
                              <option value="-1" selected="selected">'
$txt['smf50'], '</option>
                           </select>
                           <input class="button" type="submit" value="'
$txt[34], '" /><br />
                           <span class="middletext">'
$txt['smf52'], '</span>
                           <input type="hidden" name="hash_passwrd" value="" />
                        </form>'
;
   }

   echo 
'
                     </td>
                  </tr>
               </table>
            </td>
         </tr>
      </table>'
;

   echo 
'
      <table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ' style="display: none;"'' width="100%" cellpadding="4" cellspacing="0" border="0">
         <tr>'
;

   
// Show a random news item? (or you could pick one from news_lines...)
   
if (!empty($settings['enable_news']))
      echo 
'
            <td width="90%" class="titlebg2">
               <span class="smalltext"><b>'
$txt[102], '</b>: '$context['random_news_line'], '</span>
            </td>'
;
   echo 
'
            <td class="titlebg2" align="right" nowrap="nowrap" valign="top">
               <form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
                  <a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
                  <input class="input1" type="text" name="search" onBlur="if(this.value=='') this.value='
Search...';" onFocus="if(this.value=='Search...') this.value='';" value="Search..." style="width: 190px;" />&nbsp;
                  <input class="button" type="submit" name="submit" value="'
$txt[182], '" style="width: 11ex;" />
                  <input type="hidden" name="advanced" value="0" />'
;

   
// Search within current topic?
   
if (!empty($context['current_topic']))
      echo 
'
                  <input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

      
// If we're on a certain board, limit it to this board.
   
elseif (!empty($context['current_board']))
      echo 
'
                  <input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

   echo 
'
               </form>
            </td>
         </tr>
      </table>
   </div>'
;




   
// The main content should go here.
   
echo '
   <div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">'
;
}

function 
template_main_below()
{
   global 
$context$settings$options$scripturl$txt;

   echo 
'
   </div>'
;
//Close table for towerright ads
   
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
   {
      
$ads show_towerrightAds();   
      if(!empty(
$ads))
         echo 
'</td><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td></tr></table>'

      unset(
$ads);
      
//Close table for towerleft ads
      
$ads show_towerleftAds();   
      if(!empty(
$ads))
         echo 
'</td></tr></table>';
      unset(
$ads);

      
//Show ads on the bottom of the page
      
$ads show_bottomAds();
      if(!empty(
$ads))
         if(
$ads['type']==0)
            echo 
$ads['content'];
         else
            eval(
$ads['content']);
      unset(
$ads);
   }
   
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
   
echo '

   <div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
         function smfFooterHighlight(element, value)
         {
            element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
         }
      // ]]></script>
      <table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
         <tr>
            <td width="28%" valign="middle" align="left">
               Theme by <a href="http://www.m3talc0re.com/" target="_blank" style="font-size:10px;">m3talc0re</a>.
            </td>
            <td valign="middle" align="center" style="white-space: nowrap;">
               '
theme_copyright(), '
            </td>
            <td width="28%" valign="middle" align="right">
               <a href="http://www.mysql.com/" target="_blank" style="font-size:10px;">MySQL</a>&nbsp;|&nbsp;<a href="http://www.php.net/" target="_blank" style="font-size:10px;">PHP</a>&nbsp;|&nbsp;<a href="http://validator.w3.org/check/referer" target="_blank" style="font-size:10px;">XHTML</a>&nbsp;|&nbsp;<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank" style="font-size:10px;">CSS</a>
            </td>
         </tr>
      </table>'
;

      
// Show the load time?
   
if ($context['show_load_time'])
      echo 
'
      <span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

   
// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
   
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
   {
      
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
      
echo '
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

      
// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
      
if ($context['browser']['is_safari'])
         echo 
'
         window.addEventListener("load", smf_codeFix, false);

         function smf_codeFix()
         {
            var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

            for (var i = 0; i < codeFix.length; i++)
            {
               if ((codeFix.className == "code" || codeFix.className == "post" || codeFix.className == "signature") && codeFix.offsetHeight < 20)
                  codeFix.style.height = (codeFix.offsetHeight + 20) + "px";
            }
         }'
;
      elseif (
$context['browser']['is_firefox'])
         echo 
'
         window.addEventListener("load", smf_codeFix, false);
         function smf_codeFix()
         {
            var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

            for (var i = 0; i < codeFix.length; i++)
            {
               if (codeFix.className == "code" && (codeFix.scrollWidth > codeFix.clientWidth || codeFix.clientWidth == 0))
                  codeFix.style.overflow = "scroll";
            }
         }'
;
      else
         echo 
'
         var window_oldOnload = window.onload;

         window.onload = smf_codeFix;

         function smf_codeFix()
         {
            var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

            for (var i = codeFix.length - 1; i > 0; i--)
            {
               if (codeFix.currentStyle.overflow == "auto" && (codeFix.currentStyle.height == "" || codeFix.currentStyle.height == "auto") && (codeFix.scrollWidth > codeFix.clientWidth || codeFix.clientWidth == 0) && (codeFix.offsetHeight != 0 || codeFix.className == "code"))
                  codeFix.style.height = (codeFix.offsetHeight + 36) + "px";
            }

            if (window_oldOnload)
            {
               window_oldOnload();
               window_oldOnload = null;
            }
         }'
;

      echo 
'
      // ]]></script>'
;
   }

   echo 
'
   </div>
<!-- Added footer -->
</td>
</tr>
</table>
<table width="900" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="855" height="25" align="left" valign="middle" id="copyright-text">
</td>
<td rowspan="2" width="45" height="50" align="right" valign="top">
<a href="#top"><img src="'
$settings['images_url'], '/header_09.jpg" width="45" height="47" alt="Back To Top" title="Back To Top" /></a></td>
</tr>
<tr>
<td width="855" height="20" align="left" valign="middle" id="legal-text">
</td>
</tr>
</table>
<!-- END Legal -->
</td>
</tr>
</table>
<!-- END content sections -->
<!-- BEGIN footer -->
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="500" height="81" align="left" valign="top">
<img src="'
$settings['images_url'], '/header_11.jpg" width="500" height="81" alt="" /></td>
<td width="500" height="81" align="left" valign="top">
<img src="'
$settings['images_url'], '/header_12.jpg" width="500" height="81" alt="" /></td>
</tr>
</table>
<!-- END footer -->
   </div>'
;

   
// The following will be used to let the user know that some AJAX process is running
   
echo '
   <div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</body></html>'
;
}

// Footer goes above here

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
   global 
$context$settings$options;

   echo 
'<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex; padding-left:8px; padding-right:8px;">';

   
// Each tree item has a URL and name. Some may have extra_before and extra_after.
   
foreach ($context['linktree'] as $link_num => $tree)
   {
      
// Show something before the link?
      
if (isset($tree['extra_before']))
         echo 
$tree['extra_before'];

      
// Show the link, including a URL if it should have one.
      
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

      
// Show something after the link...?
      
if (isset($tree['extra_after']))
         echo 
$tree['extra_after'];

      
// Don't show a separator for the last one.
      
if ($link_num != count($context['linktree']) - 1)
         echo 
'&nbsp;&raquo;&nbsp;';
   }

   echo 
'</div>';
}

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

   
// Work out where we currently are.
   
$current_action 'home';
   if (
in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
      
$current_action 'admin';
   if (
in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
      
$current_action $context['current_action'];
   if (
$context['current_action'] == 'search2')
      
$current_action 'search';
   if (
$context['current_action'] == 'theme')
      
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

   
// Are we using right-to-left orientation?
   
if ($context['right_to_left'])
   {
      
$first 'last';
      
$last 'first';
   }
   else
   {
      
$first 'first';
      
$last 'last';
   }

   
// Show the start of the tab section.
   
echo '
         <ul class="main-navigation">'
;

   
// Show the [home] button.
   
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '' '' '
            <li class="mainNav-home"><a href="'
$scripturl'">' $txt[103] , '</a></li>' $current_action == 'home' '' '';

   
// Show the [help] button.
   
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '' '' '
            <li class="mainNav-help"><a href="'
$scripturl'?action=help">' $txt[119] , '</a></li>' $current_action == 'help' '' '';

   
// How about the [search] button?
   
if ($context['allow_search'])
      echo (
$current_action == 'search' || $context['browser']['is_ie4']) ? '' '' '
            <li class="mainNav-search"><a href="'
$scripturl'?action=search">' $txt[182] , '</a></li>' $current_action == 'search' '' '';

   
// Is the user allowed to administrate at all? ([admin])
   
if ($context['allow_admin'])
      echo (
$current_action == 'admin' || $context['browser']['is_ie4']) ? '' '' '
            <li class="mainNav-admin"><a href="'
$scripturl'?action=admin">' $txt[2] , '</a></li>' $current_action == 'admin' '' '';

   
// 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' ? '' : '';

   // Go to PM center... [pm]
   
if ($context['user']['is_logged'] && $context['allow_pm'])
      echo (
$current_action == 'pm' || $context['browser']['is_ie4']) ? '' '' '
            <li class="mainNav-messages"><a href="'
$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a></li>' $current_action == 'pm' '' '';

   
// The [calendar]!
   
if ($context['allow_calendar'])
      echo (
$current_action == 'calendar' || $context['browser']['is_ie4']) ? '' '' '
            <li class="mainNav-calendar"><a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a></li>' $current_action == 'calendar' '' '';

   
// the [member] list button
   
if ($context['allow_memberlist'])
      echo (
$current_action == 'mlist' || $context['browser']['is_ie4']) ? '' '' '
            <li class="mainNav-members"><a href="'
$scripturl'?action=mlist">' $txt[331] , '</a></li>' $current_action == 'mlist' '' '';


   
// If the user is a guest, show [login] button.
   
if ($context['user']['is_guest'])
      echo (
$current_action == 'login' || $context['browser']['is_ie4']) ? '' '' '
            <li class="mainNav-login"><a href="'
$scripturl'?action=login">' $txt[34] , '</a></li>' $current_action == 'login' '' '';


   
// If the user is a guest, also show [register] button.
   
if ($context['user']['is_guest'])
      echo (
$current_action == 'register' || $context['browser']['is_ie4']) ? '' '' '
            <li class="mainNav-register"><a href="'
$scripturl'?action=register">' $txt[97] , '</a></li>' $current_action == 'register' '' '';


   
// Otherwise, they might want to [logout]...
   
if ($context['user']['is_logged'])
      echo (
$current_action == 'logout' || $context['browser']['is_ie4']) ? '' '' '
            <li class="mainNav-logout"><a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a></li>' $current_action == 'logout' '' '';

   
// The end of tab section.
   
echo '</ul>';

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
   global 
$settings$buttons$context$txt$scripturl;

   
// Create the buttons...
   
foreach ($button_strip as $key => $value)
   {
      if (isset(
$value['test']) && empty($context[$value['test']]))
      {
         unset(
$button_strip[$key]);
         continue;
      }
      elseif (!isset(
$buttons[$key]) || $force_reset)
         
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

      
$button_strip[$key] = $buttons[$key];
   }

   if (empty(
$button_strip))
      return 
'<td>&nbsp;</td>';

   echo 
'
      <td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
      <td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
      <td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>


Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bigguy on March 19, 2008, 08:21:33 PM
Please use code tags around any long code like that.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on March 19, 2008, 08:26:12 PM
@ neo bahamut

Do this.

Find:
Code (index.template.php) Select
// Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
      echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '' : '' , '
            <li class="mainNav-admin"><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></li>' , $current_action == 'admin' ? '' : '';

   // 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' ? '' : '';


Replace with:
// Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
      echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '' : '' , '
            <li class="mainNav-admin"><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></li>' , $current_action == 'admin' ? '' : '';

   // 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' ? '' : '';

Title: Re: User Control Panel ( User CP ) V3.0
Post by: NEO-BAHAMUT- on March 19, 2008, 10:24:55 PM
Bigguy - sorry about that mate... its me being a noob on here.

ccbtimewiz - I have done that and still the profile image is not there........ :(
Title: Re: User Control Panel ( User CP ) V3.0
Post by: NEO-BAHAMUT- on March 20, 2008, 06:23:10 AM
anyone got any ideas?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: NEO-BAHAMUT- on March 20, 2008, 09:51:58 AM
Anybody? I feel that im on the verge of going to have to restore the page otherwise.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on March 20, 2008, 12:22:48 PM
Strange. That should have worked. The template you pasted earlier had the function commented out, so obviously it wouldn't show.

Let me get this straight, you want the "User CP" link to appear with your other links? Such as [HOME] [HELP] [ETC..] ?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on March 20, 2008, 01:43:59 PM
NEO-BAHAMUT-

are you using english?   (not english utf-8, but just plain english?)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: LiamTheDuck on March 20, 2008, 01:51:46 PM
any chance of upgrading to 2.0?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: NEO-BAHAMUT- on March 20, 2008, 03:28:11 PM
Quote from: ccbtimewiz on March 20, 2008, 12:22:48 PM
Strange. That should have worked. The template you pasted earlier had the function commented out, so obviously it wouldn't show.

Let me get this straight, you want the "User CP" link to appear with your other links? Such as [HOME] [HELP] [ETC..] ?


Yes mate that is correct. When i did what it tells me to do on page 15 of this thread it removes the "profile" button from the site so i cannot access it. I then pasted in what you said to do and nothing changed.
Quote from: Kindred on March 20, 2008, 01:43:59 PM
NEO-BAHAMUT-

are you using english?   (not english utf-8, but just plain english?)
Im not sure mate at the mo..... Our server is down so i cannot get to the the site to check. I will let you know asap though.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: [кѕ]ваηε-σ on March 20, 2008, 08:33:57 PM
not sure if it's any help, but the buttons in the Aa_new_Damage theme are controlled by the style.css not just the index.template.php

to make the button redirect you to a different page that what the SMF original, you have to change the style.ccs and/or code in a new button that swithes with the $settings file of wether or not a user has UserCP enabled
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on March 20, 2008, 08:40:22 PM
Sorry i have not replied , I have been on holidays in Spain for the last week so a computer with net access was in scare supply , Meanwhile my eyes are closing now from lack of sleep so i will sort this out first thing tomorrow.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: eslao on March 24, 2008, 11:53:16 AM
for turkish,
modifications.turkish.php de bul
?>

üstüne ekle
$txt['usercp'] = 'Kontrol Paneli';
$txt['usercp_account_info'] = 'Hesap Bilgilerim';
$txt['usercp_account_info_summary'] = 'Eğer kullanıcı adı,e-mail,şifre gibi hesap bilgilerinizi değiştirmek istiyorsanız buraya tıklayınız.';
$txt['usercp_look_and_layout'] = 'Görünüm & Düzen Ayarları';
$txt['usercp_look_and_layout_summary'] = 'Forum Görünümünü Kendinize Göre Ayarlamak İçin Buraya Tıklayınız.';
$txt['usercp_my_theme'] = 'Temam';
$txt['usercp_my_theme_summary'] = 'Bu Ekran Sizin Kullanmak İstediğiniz Varsayılan Temayı Seçmenize Yardımcı Olur.';
$txt['usercp_my_profile'] = 'Profilim';
$txt['usercp_my_profile_summary'] = 'Profilinizin Diğer Üyeler Tarafından Görüntülenme Biçimini Değiştirmek İçin Tıklayınız.';
$txt['usercp_my_stats'] = 'İstatistiklerim';
$txt['usercp_my_stats_summary'] = 'Buradan Ne Kadar Aktif Olduğunuzu ve Kaç Mesajınız Olduğunu Görebilirsiniz.';
$txt['usercp_my_posts'] = 'Konularım';
$txt['usercp_my_posts_summary'] = 'Bu Seçenek,Foruma Kaydolduğunuzdan İtibaren Kaç Konu Açtığınızı Gösterir.';
$txt['usercp_my_notifications'] = 'Uyarılarım';
$txt['usercp_my_notifications_summary'] = 'Abone Olduğunuz Konuları ve Konulardan Haberdar Ediliş Şeklinizi Gösterir.';
$txt['usercp_buddies'] = 'Arkadaş Listem';
$txt['usercp_buddies_summary'] = 'Bu Seçenek Arkadaş Listenizi Oluşturmanızı Sağlar.';
$txt['usercp_message_options'] = 'Mesaj Ayarlarım';
$txt['usercp_message_options_summary'] = 'Bu Seçenekle Özel Mesaj Ayarlarınızı Yapabilirsiniz.';
$txt['usercp_search'] = 'Arama';
$txt['usercp_search_summary'] = 'Bu Seçenekle Forum İçerisinde Arama Yapabilirsiniz.';
$txt['usercp_contact_admin'] = 'Admine Ulaş';
$txt['usercp_contact_admin_summary'] = 'Kafan mı Karıştı,Sorun Mu Var? Admine Ulaş';
$txt['usercp_guest'] = 'Üzgünüm Ziretçi , Bu Sayfayı Görme Yetkiniz Yok , Lütfen';
$txt['usercp_login'] = 'Giriş Yap';
$txt['usercp_or'] = 'veya';
$txt['usercp_register'] = 'Kaydol';
$txt['usercp_copyright'] = 'User Cp V2.0 | Created By Alan S';
$txt['usercp_welcome'] = 'Hoş Geldiniz ';
$txt['usercp_delete_account'] = 'Hesabımı Sil';
$txt['usercp_delete_account_summary'] = 'Bu Siteden Artık Bıktınız mı? Ozaman Hesabınızı Silin :).';
$txt['usercp_error'] = 'Hata!';
$txt['usercp_enable'] = 'Kullanıcı Kontrol Panelini Aktive Et';
$txt['usercp_disabled'] = 'Kullanıcı Kontrol Paneli Aktif Değil';
$txt['usercp_clickhere'] = 'Görmek İçin Buraya Tıkla ';
$txt['usercp_profile'] = 'Profil Ekranı';
$txt['usercp_field1image'] = 'Özel Profil Alanı 1. Resim';
$txt['usercp_field1url'] = 'URL';
$txt['usercp_field1maintext'] = 'Ana Metin';
$txt['usercp_field1summary'] = 'Özet Metni';
$txt['usercp_field1enable'] = '1.Kullanıcı Özel Profil Alanı Aktif ?';
$txt['usercp_field2image'] = 'Özel Profil Alanı 2. Resim';
$txt['usercp_field2url'] = 'URL';
$txt['usercp_field2maintext'] = 'Ana Metin';
$txt['usercp_field2summary'] = 'Özet Metni';
$txt['usercp_field2enable'] = '2.Kullanıcı Özel Profil Alanı Aktif ?';
$txt['usercp_field3image'] = 'Özel Profil Alanı 3 Resim';
$txt['usercp_field3url'] = 'URL';
$txt['usercp_field3maintext'] = 'Ana Metin';
$txt['usercp_field3summary'] = 'Özet Metni';
$txt['usercp_field3enable'] = '3. Kullanıcı Özel Profil Alanı Aktif ?';
$txt['usercp_field4image'] = 'Özel Profil Alanı 4 Resim';
$txt['usercp_field4url'] = 'URL';
$txt['usercp_field4maintext'] = 'Ana Metin';
$txt['usercp_field4summary'] = 'Özet Metni';
$txt['usercp_field4enable'] = '4. Kullanıcı Özel Profil Alanı Aktif ?';
$txt['usercp_usepm'] = 'Admin İletişiminde Mail Yerine Özel Mesaj Kullanılsın ?';
$txt['usercp_adminid'] = 'Admin IDsini Buraya Giriniz';
$txt['usercp_switchview'] = 'Üyeler İsterlerse Normal Profile Geçebilsinler ?';
$txt['usercp_enablecontactadmin'] = 'Kontrol Panelinden Adminle İletişimi Aç ? ';
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on March 24, 2008, 03:14:44 PM
Quote from: NEO-BAHAMUT- on March 19, 2008, 10:24:55 PM
Bigguy - sorry about that mate... its me being a noob on here.

ccbtimewiz - I have done that and still the profile image is not there........ :(


There shouldnt be a image? It should be a tab like you see on the menu of SM.org?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on March 24, 2008, 03:15:54 PM
Quote from: [●ριмρєя12●] on March 20, 2008, 01:51:46 PM
any chance of upgrading to 2.0?

as in upgrading the UserCP to work with SMF 2.0 ? , If that is the case i have a UserCP mod which works with 2.0 in development.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: chrisb on March 24, 2008, 05:54:15 PM
Errors on install & do i continue with the install or do i stop



Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Themes/default/index.template.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
6.    Extract Tree    ./Themes/default/images/usercp    
7.    Extract File    ./Sources/usercp.php    
8.    Extract File    ./Themes/default/usercp.template.php    
9.    Execute Code    install.php
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on March 25, 2008, 08:27:35 AM
if you continue, you will have to manually apply the code changes to the areas where the auto-install failed.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on March 26, 2008, 02:45:27 PM
Hi,

I like your mod  very much. I want to install it, but the only thing is that i am afraid that he does not include some of the extra options that i have by installing other mods (like Ultimate profile and Tiny Portal)

Does UCP automaticly include this extra options or do i have to look what links are missing and that i have to include them myself?

Thanks!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on March 26, 2008, 03:06:20 PM
If I'm right, you can still view the normal profile by attempting to edit.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on March 26, 2008, 03:26:14 PM
Quote from: Lafemme on March 26, 2008, 02:45:27 PM
Hi,

I like your mod  very much. I want to install it, but the only thing is that i am afraid that he does not include some of the extra options that i have by installing other mods (like Ultimate profile and Tiny Portal)

Does UCP automaticly include this extra options or do i have to look what links are missing and that i have to include them myself?

Thanks!

I have Tiny Portal, Ultimate Profile and User control panel all installed on my site with no problems.    You might have to change some of the links in user control panel to link to the correct places because of the Ultimate profile mod, but it is not too difficult :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on March 26, 2008, 04:24:40 PM
Thanks!
I will try to do that then.. :D
how can you tell for shure that all the options have been submitted?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on March 26, 2008, 06:41:21 PM
Make the manual edits to the usercp.template.php in /Themes/default/ so that the links are changed to work with the Ultimate Profile Mod ( i am not sure of the links as i do not use that mod ) , Once the edits have been made , reupload the new usercp.template.php to the same directory , go to the usercp page any any changes you made to the links should appear on the page.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on March 26, 2008, 07:07:55 PM
Oke.. great! The only thing is that it's all hocus pocus for me :D
I do not know how to add new edits. All i know is html and a bit of css.. i'm mostly a designer than a coder.

I also read that the program has 4 customized fields, and what i am counting, i have alot more options, 19 to be exact. Please see the attachted file.

And, in the CP admin page, What does the textbox mean:     Enter id of Admin here ( Look at a link in your profile to find it , ?action=profile;u=x)  I can not find it.

Title: Re: User Control Panel ( User CP ) V3.0
Post by: chrisb on March 29, 2008, 04:35:33 AM
I am getting the following errror message on the forum using the default theme


nstalling this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Themes/default/index.template.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
6.    Extract Tree    ./Themes/default/images/usercp    
7.    Extract File    ./Sources/usercp.php    
8.    Extract File    ./Themes/default/usercp.template.php    
9.    Execute Code    install.php
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on March 29, 2008, 07:24:59 AM
this has been covered (why don't people read the previous posts?)

What this means is that the mod can not automatically install itself into modsettings.php. If you go ahead with the installation, you will have to manually apply the mod into that file.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on March 29, 2008, 08:57:37 AM
lol Kindred I wonder sometimes too

Quote from: Lafemme on March 26, 2008, 07:07:55 PM
Oke.. great! The only thing is that it's all hocus pocus for me :D
I do not know how to add new edits. All i know is html and a bit of css.. i'm mostly a designer than a coder.

I also read that the program has 4 customized fields, and what i am counting, i have alot more options, 19 to be exact. Please see the attachted file.

And, in the CP admin page, What does the textbox mean:     Enter id of Admin here ( Look at a link in your profile to find it , ?action=profile;u=x)  I can not find it.



Hi Lafemme you are looking in the wrong place.  You are looking in your profile, the 4 fields in question are in admin > features and options > user CP

Do you see when you go to your own User CP tab, there are a lot of icons to take you to various parts of your profile?  Well these 4 extra fields are so that you can add some of your own if you want to link to other things.  For example if you had the Member Awards Mod installed, you might want a direct link to Member Awards etc


'Enter Id of Admin here' is so that members can contact the Administrator via the icon/link on their User CP.  If you are the Admin your id is probably 1.  You can find out by holding your cursor over your user name and it will say u=  whatever number you are.  Or to make it easier go to your own User CP page and scroll down to the bottom of the screen, and it will tell you what your user Id is.

As for the edits you talked about above, I think only one has to be changed - the one for buddies.  I posted in this thread what I changed mine to in order for it to work. 
Title: Re: User Control Panel ( User CP ) V3.0
Post by: darkelhaym on April 02, 2008, 12:54:37 PM
This error occures each time I try to access Features and Options in the admin panel:

Fatal error: Cannot redeclare modifyusercpsettings() (previously declared in /web/htdocs/www.evoyugi.com/home/Sources/ModSettings.php:405) in /web/htdocs/www.evoyugi.com/home/Sources/ModSettings.php on line 457

I've attached the ModSettings.php . Can someone help?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 02, 2008, 01:59:59 PM
you seem to have installed the mod twice. 
This error is only a symptom of a larger problem that you have created.

You will have to manually go through ALL of the files affected by this mod to remove the duplicate code.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on April 02, 2008, 03:32:15 PM
Yeah , duplicate code , use the package parser ( http://sleepycode.com , click on Dans package parser ) , to find out the edits made to the files , there will be 2 of every bit of code , remove 1 of those duplicate bits of code.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: technstuff on April 02, 2008, 06:54:57 PM
I have tried everything but I can not get it to show up. I am using smf current, tiny portal current and blue skies theme current
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 03, 2008, 12:06:36 AM
once again...   if you are using any language other than English (english utf-8 if different from english) and any theme other than the default theme, you will have to manually install parts of this mod into your language/them files.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on April 05, 2008, 03:06:43 PM
Hi Perplex,

Thanks for teh reply.

I know that i can insert 4 buttons if I want to at admin > features and options > user CP  but i think do not have enought at 4 buttons, since i have installed Ulitimate MOD and Tiny Portal. I also do not know, if i want to make a link to the photo's of the profile, what link i should include, sinds al the profiles are offcourse unique.

As for:
Quote from: technstuff on April 02, 2008, 06:54:57 PM
I have tried everything but I can not get it to show up. I am using smf current, tiny portal current and blue skies theme current

You can install Load Standard Language & Language File Compare MOD. This works great for me! Someone else tipt me off for those mods.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on April 05, 2008, 04:49:35 PM
Quote from: Lafemme on April 05, 2008, 03:06:43 PM
Hi Perplex,

Thanks for teh reply.

I know that i can insert 4 buttons if I want to at admin > features and options > user CP  but i think do not have enought at 4 buttons, since i have installed Ulitimate MOD and Tiny Portal. I also do not know, if i want to make a link to the photo's of the profile, what link i should include, sinds al the profiles are offcourse unique.

As for:
Quote from: technstuff on April 02, 2008, 06:54:57 PM
I have tried everything but I can not get it to show up. I am using smf current, tiny portal current and blue skies theme current

You can install Load Standard Language & Language File Compare MOD. This works great for me! Someone else tipt me off for those mods.


If 4 is not enough , you will have to add the other buttons into your theme manually ( Guide : http://www.simplemachines.org/community/index.php?topic=167975.msg1445809#msg1445809 )

As for the user avatar , First you would have to find ( in usercp.template.php )

global

^^ That should be within the first 10 lines

and replace that with

global $message,

Then , Insert

$message['member']['avatar']['image']

in the usercp.template.php where ever you want the avatar to show (p.s i have not tried this so backup the file first )

if you want to use the avatar code in html , you would use this code

' ,  $message['member']['avatar']['image'] , '

so it would be something like


<table cellpadding="3" cellspacing="0" border="0">
<tr>
<td>' ,  $message['member']['avatar']['image'] , '</td>
</tr>
</table>
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on April 05, 2008, 05:01:54 PM
Oke thanks!  But what do you mean with : As for the user avatar

Does the User CP not let the avatar show?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Islander_IBG on April 05, 2008, 05:19:35 PM
hi

i manually edited modsettings.php

and after i installed the mod , features & options tab in admin panel does not open.It just stays blank .

Im using default theme...

help guys fast :)

THX
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on April 05, 2008, 05:37:22 PM
Quote from: Lafemme on April 05, 2008, 05:01:54 PM
Oke thanks!  But what do you mean with : As for the user avatar

Does the User CP not let the avatar show?

By default , it doesnt show the users avatar , but you can edit the file to show the users avatar, i would guess using the code i gave but i have'nt tested it out myself so i cant say it will work. If it does , let me know , if it doesnt , also let me know and i'll try various other methods myself.

Quote from: Islander_IBG on April 05, 2008, 05:19:35 PM
hi

i manually edited modsettings.php

and after i installed the mod , features & options tab in admin panel does not open.It just stays blank .

Im using default theme...

help guys fast :)

THX

Was it as soon as you manualy modified the modsettings.php the features and options tab stays blank or was it like that before you manually modified it?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Islander_IBG on April 05, 2008, 05:42:46 PM
after i modified modsettings.php , its showing blank......
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 05, 2008, 06:03:51 PM
Alan,

the code you gave won't work.   $message is only populated during the display of a post/thread.

For the CURRENT user's avatar, you would use $context['user']['avatar']['image']
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on April 06, 2008, 10:23:24 AM
oke.. thanks! I will try it, and let you know :D
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on April 06, 2008, 12:04:08 PM
Wow.. great that i can add more buttons! I only want to know what link i should fill in for example, my photo's in Ultimate profile. I only know a bit of HTMl and not PHP. And i know that (OFFCOURSE) everyone has there one link to there photoalbum.....
Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on April 06, 2008, 12:23:31 PM
try something like this


http://www.yoursite.com/forum/index.php?action=profile;u=;sa=pictures
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on April 06, 2008, 03:51:44 PM
Quote from: quiteperplexed on April 06, 2008, 12:23:31 PM
try something like this


http://www.yoursite.com/forum/index.php?action=profile;u=;sa=pictures


If thats the actual code of the link to the pictures , In the usercp.template.php the link you would add would be

http://www.yoursite.com/forum/index.php?action=profile;u=' , $ID_MEMBER , ';sa=pictures

That would make the link recognise which user it is and take them to that users gallery.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on April 07, 2008, 02:10:24 PM
oke! Great, thanks...

Should i add that part ( ' , $ID_MEMBER , ' ) in everylink then, that i want to add?

Because i have more links to fill in :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: robbie93 on April 07, 2008, 02:48:59 PM
hi,  alan s,  can this mod be used with gothic_rose ?

thanks.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on April 08, 2008, 12:53:42 PM
Quote from: Lafemme on April 07, 2008, 02:10:24 PM
oke! Great, thanks...

Should i add that part ( ' , $ID_MEMBER , ' ) in everylink then, that i want to add?

Because i have more links to fill in :)

Well the $ID_MEMBER should only be used when you need to get the ID of a member.

Since each user would have a gallery you would need to use the $ID_MEMBER variable to determine which gallery. It depends on what links your adding really.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on April 08, 2008, 01:06:44 PM
Quote from: Alan S on April 06, 2008, 03:51:44 PM
Quote from: quiteperplexed on April 06, 2008, 12:23:31 PM
try something like this


http://www.yoursite.com/forum/index.php?action=profile;u=;sa=pictures


If thats the actual code of the link to the pictures , In the usercp.template.php the link you would add would be

http://www.yoursite.com/forum/index.php?action=profile;u=' , $ID_MEMBER , ';sa=pictures

That would make the link recognise which user it is and take them to that users gallery.



Alan I'm confused, the code I posted is for use in the 4 extra fields in User CP where it asks for an URL.  At least that's what I've been using and it works so why do I still need to add
$ID_MEMBER into the url?

Thanks
Title: Re: User Control Panel ( User CP ) V3.0
Post by: robbie93 on April 08, 2008, 02:24:51 PM
i take it thats a no then...   ::)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on April 08, 2008, 02:44:01 PM
Quote from: Alan S on April 08, 2008, 12:53:42 PM
Quote from: Lafemme on April 07, 2008, 02:10:24 PM
oke! Great, thanks...

Should i add that part ( ' , $ID_MEMBER , ' ) in everylink then, that i want to add?

Because i have more links to fill in :)

Well the $ID_MEMBER should only be used when you need to get the ID of a member.

Since each user would have a gallery you would need to use the $ID_MEMBER variable to determine which gallery. It depends on what links your adding really.

Well , The url you use is leaving the ;u= blank ( which is the ID of a user ) and this isnt the proper format of a link. If you insert $ID_MEMBER , It will give you the member id , resulting in a proper link like

http://www.yoursite.com/forum/index.php?action=profile;u=124;sa=pictures
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on April 08, 2008, 03:34:47 PM
Oh.. oke.. so.. if i use links within smf, then i use the $ID_MEMBER variable.....   see... i'm never to old to learn :D
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 08, 2008, 04:09:31 PM
lafemme,

If you use a link that requires the user ID #, **THAT** is when you need the $ID_MEMBER variable.

Like:
to show this user's profile
to show this user's gallery
to show anything specifically related to THIS PARTICLUAR user.

if you are making a link to something that is not specific to a particular user, then you don't need the ID.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on April 08, 2008, 04:21:36 PM
Oke.. Thanks!  yeah.. i do not know a lot of codinglanguage.. i'm more a designer.. That is what i love. :D
Title: Re: User Control Panel ( User CP ) V3.0
Post by: darkelhaym on April 14, 2008, 04:30:55 AM
Quote from: Alan S on April 02, 2008, 03:32:15 PM
Yeah , duplicate code , use the package parser ( http://sleepycode.com , click on Dans package parser ) , to find out the edits made to the files , there will be 2 of every bit of code , remove 1 of those duplicate bits of code.

Thanks, in fact I had duplicate code from a previous installation, I removed it manually and now everything is working as it should. Thanks for the great mod. :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: mlthmp on April 17, 2008, 09:49:08 PM
Hello.. I have a few questions.

I tried installing this mod in a forum thats fairly heavily altered (Info Center and Header removed, and the forum displays inside a CMS.. MKportal) When I install the mod I don't get any errors, but when I refresh the forum, all the text code is shown above the CMS/forum. Then, when I try to view the usercp the images are there, and the functions work but there is no text to tell you what does this and what does that (I believe thats what the text seen at the top of the forum is suppose to be)

I have since uninstalled this mod until I can figure out whats going on.. lol

Any suggestions?

*EDIT*

Sorry! forgot.. im using SMF 1.1.4 inside MKportal..
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 18, 2008, 12:39:22 AM
check modifications.english.php
it sounds like the closing ?> of your file got misplaced.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: mlthmp on April 18, 2008, 01:39:20 PM
Quote from: Kindred on April 18, 2008, 12:39:22 AM
check modifications.english.php
it sounds like the closing ?> of your file got misplaced.

Could you please tell me where to find this file? I know I've seen it before, but now that im looking for it.. I cant find it =(

*EDIT*

Im so sorry.. lol im a dummy :P

Found it.. thank you VERY much! that fixed it! I appreciate it
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Marcus Forsberg on April 19, 2008, 01:29:57 PM
Sry for my bad english, hope you understand:

When clicking on User CP in the menu, will I come to something like index.php?action=cpanel, or to a modified verision of index.php?action=profile?

Couse if I come to index.php?action=cpanel (or similar), and the profile page remains unedited, it will work whit the Ultimate profile mod, but if it edits the profilepage, it won't.

Hope u understood.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on April 19, 2008, 02:01:01 PM
The link is index.php?action=cpanel , The profile remains intact , Its only when viewing your own profile you see the usercp , If you look at someone elses profile you would see the normal profile screen.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Marcus Forsberg on April 19, 2008, 02:03:36 PM
So the Ultimate Profile Mod (http://www.simplemachines.org/community/index.php?topic=183574.%25d) will work whit this installed?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 19, 2008, 02:05:56 PM
MTF:   You are about the 20th person to ask.  This has been answered a number of times in this very thread.

Yes, with some minor tweaks, the UCP and UP mods will work
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Marcus Forsberg on April 19, 2008, 02:08:17 PM
Quote from: Kindred on April 19, 2008, 02:05:56 PM
MTF:   You are about the 20th person to ask.  This has been answered a number of times in this very thread.

Yes, with some minor tweaks, the UCP and UP mods will work

Sry, didn't know that.

Great that it works, my user's gonna like this!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Marcus Forsberg on April 19, 2008, 02:44:37 PM
BTW, did you make the icons your self?
If so, could you create a icon whit a cup, or something else suitable for awards?

And also, I would like a icon for SMF Gallery, like a album ors omething.

It would be were nice of you.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on April 19, 2008, 03:45:17 PM
I didnt create the icons themseleves , they are from crystalxp.net , If you look through the pages in this thread , someone posted a icon for awards
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on April 24, 2008, 11:42:10 AM
hello,

I have installed User Controle Panel MOD and something took my attention.
see the attached files :D

When i click on the Buddy Icon in the User Controlepanel i can add a friend, but when i click Buddy in the standard view mode, i only see my buddy and i can not add a friend.

Does someone know what it is? 

Thanks!

Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on April 24, 2008, 11:54:56 AM
hi lafemme

I think it has to do with the ultimate profile mod as it treats buddies differently

Here is my post from earlier in this topic which might help you.

Quote from: quiteperplexed on March 06, 2008, 05:53:59 AM
hi

I have ultimate profile mod installed with this and the buddies work differently, so the buddies link on the User CP was taking me to the wrong place.

I changed the code in usercp.template.php from
<a href="', $scripturl, '?action=profile;u=', $ID_MEMBER, ';sa=editBuddies"><img border="0" src="',$settings['images_url'],'/usercp/kdmconfig.png" width="80" height="80"></a></td>


to
<a href="', $scripturl, '?action=buddies;sa=editBuddies"><img border="0" src="',$settings['images_url'],'/usercp/kdmconfig.png" width="80" height="80"></a></td>

and that works with no errors in the log.  I just want to make sure that I've done it correctly or if I should have done it another way, please let me know

Thanks

This is what I am using now, and no one replied to correct me, so I guess it's ok :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on April 24, 2008, 12:23:01 PM
Hi quiteperplexed,

it works great! The only thing is that it deletes the add buddy part, and that is what i do not want :)  I want to add the Add Buddy part to my standard view to :D

Anyway.. thanks for your post :D
Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on April 24, 2008, 12:24:05 PM
yeah I don't think you can do that if you are using UP.  Adding buddy is done differently, that's the problem.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on April 24, 2008, 02:04:11 PM
Quote from: Alan S on April 06, 2008, 03:51:44 PM
Quote from: quiteperplexed on April 06, 2008, 12:23:31 PM
try something like this


http://www.yoursite.com/forum/index.php?action=profile;u=;sa=pictures


If thats the actual code of the link to the pictures , In the usercp.template.php the link you would add would be

http://www.yoursite.com/forum/index.php?action=profile;u=' , $ID_MEMBER , ';sa=pictures

That would make the link recognise which user it is and take them to that users gallery.

I Have tried it, and with the ID Member did not work.. so left it blank and it worked :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on April 24, 2008, 04:18:21 PM
Hi, again :D

I now have added new links in the panel, but is it possible to choose your own order of how it is shown? Because it is no not so organised.  Thanks!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Marcus Forsberg on April 25, 2008, 12:36:23 AM
Swedish translation:

$txt['usercp'] = 'KPanelen';
$txt['usercp_account_info'] = 'Konto Information';
$txt['usercp_account_info_summary'] = 'Här kan du ändra kontoinformation, såsom lösenord, e-postadress och andra viktiga detaljer.';
$txt['usercp_look_and_layout'] = 'Utseende- och layoutinställningar';
$txt['usercp_look_and_layout_summary'] = 'Klicka här för att ställa in hur forumet ser ut för dig.';
$txt['usercp_my_theme'] = 'Mitt Tema';
$txt['usercp_my_theme_summary'] = 'Denhär sidan låter dig välja vilket tema du vill ha på sidan.';
$txt['usercp_my_profile'] = 'Min Profil';
$txt['usercp_my_profile_summary'] = 'Klicka här för att ändra hur din profil ser ut för andra medlemar.';
$txt['usercp_my_stats'] = 'Min Statistik';
$txt['usercp_my_stats_summary'] = 'Här kan du se hur många inlägg du skrivit, samt annan aktivitetsinformation.';
$txt['usercp_my_posts'] = 'Mina Poster';
$txt['usercp_my_posts_summary'] = 'Här kan du se alla inlägg du skrivit sedan du blev medlem.';
$txt['usercp_my_notifications'] = 'Mina underrättelser';
$txt['usercp_my_notifications_summary'] = 'På denhär sidan kan du ändra inställnigarna för dina underrätelser.';
$txt['usercp_buddies'] = 'Kompisar';
$txt['usercp_buddies_summary'] = 'Här kan du lägga till kompisar.';
$txt['usercp_message_options'] = 'Alternativ för Privata meddelanden';
$txt['usercp_message_options_summary'] = 'På denhär sidan kan du ändra inställnigarna för dina personliga meddelanden.';
$txt['usercp_search'] = 'Sök';
$txt['usercp_search_summary'] = 'Här söker du efter inlägg i forumet.';
$txt['usercp_contact_admin'] = 'Kontakta Admin';
$txt['usercp_contact_admin_summary'] = 'Förvirrad? Eller har du nått att påpeka? Kontakta admin på denna sida';
$txt['usercp_guest'] = 'Ledsen Gäst , du har inte tillåtelse att visa Kontrollpanelen. Var god och';
$txt['usercp_login'] = 'logga in';
$txt['usercp_or'] = 'eller';
$txt['usercp_register'] = 'bli medlem';
$txt['usercp_copyright'] = 'Användar KP V2.0 | Skapad av Alan S';
$txt['usercp_welcome'] = 'Välkommen ';
$txt['usercp_delete_account'] = 'Radera mitt konto';
$txt['usercp_delete_account_summary'] = 'Trött på sidan? Använd detta alternativ för att radera ditt konto.';
$txt['usercp_error'] = 'Error!';
$txt['usercp_enable'] = 'Aktivera Användar Kontroll Panelen';
$txt['usercp_disabled'] = 'Användar Kontroll Panelen inaktiverad';
$txt['usercp_clickhere'] = 'Klicka här för att gå till ';
$txt['usercp_profile'] = 'Profil sidan';
$txt['usercp_field1image'] = 'Eget KP fält 1 Bild';
$txt['usercp_field1url'] = 'URL';
$txt['usercp_field1maintext'] = 'Huvudtext ( ex. Mina Poster )';
$txt['usercp_field1summary'] = 'Beskrivning';
$txt['usercp_field1enable'] = 'Aktivera eget KP fält 1';
$txt['usercp_field2image'] = 'Eget KP fält 2 Bild';
$txt['usercp_field2url'] = 'URL';
$txt['usercp_field2maintext'] = 'Huvudtext ( ex. Mina Poster )';
$txt['usercp_field2summary'] = 'Beskrivning';
$txt['usercp_field2enable'] = 'Aktivera eget KP fält 2';
$txt['usercp_field3image'] = 'Eget KP fält 3 Bild';
$txt['usercp_field3url'] = 'URL';
$txt['usercp_field3maintext'] = 'Huvudtext ( ex. Mina Poster )';
$txt['usercp_field3summary'] = 'Beskrivning';
$txt['usercp_field3enable'] = 'Aktivera eget KP fält 3';
$txt['usercp_field4image'] = 'Eget KP fält 4 Bild';
$txt['usercp_field4url'] = 'URL';
$txt['usercp_field4maintext'] = 'Huvudtext ( ex. Mina Poster )';
$txt['usercp_field4summary'] = 'Beskrivning';
$txt['usercp_field4enable'] = 'Aktivera eget KP fält 4';
$txt['usercp_usepm'] = 'Använd PM istället för mail vid Kontakta Admin';
$txt['usercp_adminid'] = 'Skriv admin's ID här ( Kolla på länken i din profil för att hitta den , ?action=profile;u=x )';
$txt['usercp_switchview'] = 'Tillåt medlemar att använda den vanliga profilen istället.';
$txt['usercp_enablecontactadmin'] = 'Aktivera Kontakta Admin';
Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on April 25, 2008, 04:28:14 AM
Quote from: Lafemme on April 24, 2008, 04:18:21 PM
Hi, again :D

I now have added new links in the panel, but is it possible to choose your own order of how it is shown? Because it is no not so organised.  Thanks!

you would have to edit the file and move them about into the order you want.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on April 25, 2008, 07:01:18 AM
oh.. oke.. ehm.. wich file :D   i will also work on the dutch translation then
I can not code.. but i can translate for you guys... my way of saying thank you :D
Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on April 25, 2008, 07:38:20 AM
the usercp.template.php file :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on April 25, 2008, 10:06:22 AM
Ok.. i have looked.. but it's a bit complicated for me.. i think it's better if i leave it untouched :D Well.. thank you all for the support! and ehm.. quiteperplexed, please know i am not stalking you :D
Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on April 25, 2008, 10:10:11 AM
lol you're welcome.  I've never had my own stalker before :D
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on April 25, 2008, 11:08:58 AM
Quote from: Lafemme on April 24, 2008, 04:18:21 PM
Hi, again :D

I now have added new links in the panel, but is it possible to choose your own order of how it is shown? Because it is no not so organised.  Thanks!

Well , you sort of can , UserCP field 1 will come first , followed by UserCP field 3 , so in the admin panel just change links etc to the order you want from 1 to 4
Quote from: MTF95 on April 25, 2008, 12:36:23 AM
Swedish translation:

$txt['usercp'] = 'KPanelen';
$txt['usercp_account_info'] = 'Konto Information';
$txt['usercp_account_info_summary'] = 'Här kan du ändra kontoinformation, såsom lösenord, e-postadress och andra viktiga detaljer.';
$txt['usercp_look_and_layout'] = 'Utseende- och layoutinställningar';
$txt['usercp_look_and_layout_summary'] = 'Klicka här för att ställa in hur forumet ser ut för dig.';
$txt['usercp_my_theme'] = 'Mitt Tema';
$txt['usercp_my_theme_summary'] = 'Denhär sidan låter dig välja vilket tema du vill ha på sidan.';
$txt['usercp_my_profile'] = 'Min Profil';
$txt['usercp_my_profile_summary'] = 'Klicka här för att ändra hur din profil ser ut för andra medlemar.';
$txt['usercp_my_stats'] = 'Min Statistik';
$txt['usercp_my_stats_summary'] = 'Här kan du se hur många inlägg du skrivit, samt annan aktivitetsinformation.';
$txt['usercp_my_posts'] = 'Mina Poster';
$txt['usercp_my_posts_summary'] = 'Här kan du se alla inlägg du skrivit sedan du blev medlem.';
$txt['usercp_my_notifications'] = 'Mina underrättelser';
$txt['usercp_my_notifications_summary'] = 'På denhär sidan kan du ändra inställnigarna för dina underrätelser.';
$txt['usercp_buddies'] = 'Kompisar';
$txt['usercp_buddies_summary'] = 'Här kan du lägga till kompisar.';
$txt['usercp_message_options'] = 'Alternativ för Privata meddelanden';
$txt['usercp_message_options_summary'] = 'På denhär sidan kan du ändra inställnigarna för dina personliga meddelanden.';
$txt['usercp_search'] = 'Sök';
$txt['usercp_search_summary'] = 'Här söker du efter inlägg i forumet.';
$txt['usercp_contact_admin'] = 'Kontakta Admin';
$txt['usercp_contact_admin_summary'] = 'Förvirrad? Eller har du nått att påpeka? Kontakta admin på denna sida';
$txt['usercp_guest'] = 'Ledsen Gäst , du har inte tillåtelse att visa Kontrollpanelen. Var god och';
$txt['usercp_login'] = 'logga in';
$txt['usercp_or'] = 'eller';
$txt['usercp_register'] = 'bli medlem';
$txt['usercp_copyright'] = 'Användar KP V2.0 | Skapad av Alan S';
$txt['usercp_welcome'] = 'Välkommen ';
$txt['usercp_delete_account'] = 'Radera mitt konto';
$txt['usercp_delete_account_summary'] = 'Trött på sidan? Använd detta alternativ för att radera ditt konto.';
$txt['usercp_error'] = 'Error!';
$txt['usercp_enable'] = 'Aktivera Användar Kontroll Panelen';
$txt['usercp_disabled'] = 'Användar Kontroll Panelen inaktiverad';
$txt['usercp_clickhere'] = 'Klicka här för att gå till ';
$txt['usercp_profile'] = 'Profil sidan';
$txt['usercp_field1image'] = 'Eget KP fält 1 Bild';
$txt['usercp_field1url'] = 'URL';
$txt['usercp_field1maintext'] = 'Huvudtext ( ex. Mina Poster )';
$txt['usercp_field1summary'] = 'Beskrivning';
$txt['usercp_field1enable'] = 'Aktivera eget KP fält 1';
$txt['usercp_field2image'] = 'Eget KP fält 2 Bild';
$txt['usercp_field2url'] = 'URL';
$txt['usercp_field2maintext'] = 'Huvudtext ( ex. Mina Poster )';
$txt['usercp_field2summary'] = 'Beskrivning';
$txt['usercp_field2enable'] = 'Aktivera eget KP fält 2';
$txt['usercp_field3image'] = 'Eget KP fält 3 Bild';
$txt['usercp_field3url'] = 'URL';
$txt['usercp_field3maintext'] = 'Huvudtext ( ex. Mina Poster )';
$txt['usercp_field3summary'] = 'Beskrivning';
$txt['usercp_field3enable'] = 'Aktivera eget KP fält 3';
$txt['usercp_field4image'] = 'Eget KP fält 4 Bild';
$txt['usercp_field4url'] = 'URL';
$txt['usercp_field4maintext'] = 'Huvudtext ( ex. Mina Poster )';
$txt['usercp_field4summary'] = 'Beskrivning';
$txt['usercp_field4enable'] = 'Aktivera eget KP fält 4';
$txt['usercp_usepm'] = 'Använd PM istället för mail vid Kontakta Admin';
$txt['usercp_adminid'] = 'Skriv admin's ID här ( Kolla på länken i din profil för att hitta den , ?action=profile;u=x )';
$txt['usercp_switchview'] = 'Tillåt medlemar att använda den vanliga profilen istället.';
$txt['usercp_enablecontactadmin'] = 'Aktivera Kontakta Admin';


Thanks , will add to the main page
Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on April 25, 2008, 11:09:56 AM
Alan I think she wants to move the standard fields not the ones you add yourself
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on April 25, 2008, 11:37:45 AM
Hi There,

i have the dutch translation if you like :D

$txt['usercp'] = 'Profiel beheren';
$txt['usercp_account_info'] = 'Mijn account informatie';
$txt['usercp_account_info_summary'] = 'Klik hier als je jouw accountgerelateerde informatie wilt wijzigen zoals gebruikersnaam, e-mail, password en andere instellingen.';
$txt['usercp_look_and_layout'] = 'Uiterlijk & Layout Opties';
$txt['usercp_look_and_layout_summary'] = 'Klik hier als je het uiterlijk van de forum wilt wijzigen naar jouw smaak. Er staan ook opties vermeld voor de Boards en berichten.';
$txt['usercp_my_theme'] = 'Mijn Thema';
$txt['usercp_my_theme_summary'] = 'Deze scherm zal jouw een opties geven waardoor jij je thema kan aanpassen, waardoor je elke keer als je inlogt jouw thema te zien krijgt.';
$txt['usercp_my_profile'] = 'Mijn profiel';
$txt['usercp_my_profile_summary'] = 'Klik hier als je het uiterlijk en layout van je profiel wilt wijzigen die iedereen tezien krijgt.';
$txt['usercp_my_stats'] = 'Mijn statestieken';
$txt['usercp_my_stats_summary'] = 'Hier kan je kijken hoeveel berichten je hebt geplaatst in het forum en andere gerelateerde info bekijken.';
$txt['usercp_my_posts'] = 'Mijn berichten';
$txt['usercp_my_posts_summary'] = 'Deze optie laat alle berichten zien die jij hebt geplaatst sinds dat jij jezelf hebt aangemeld op het forum.';
$txt['usercp_my_notifications'] = 'Mijn notificaties';
$txt['usercp_my_notifications_summary'] = 'Dit scherm laat jouw toe om de frequentie te wijzigen van het aantal notificaties jij ontvangt via de e-mail als je deelneemt aan een bepaalde topic.';
$txt['usercp_buddies'] = 'Mijn vrienden';
$txt['usercp_buddies_summary'] = 'Deze scherm laat jouw toe om te kijken welke vrienden jij hebt toegevoegd en om vrienden toe te voegen.';
$txt['usercp_message_options'] = 'Mijn bericht opties';
$txt['usercp_message_options_summary'] = 'Dit scherm laat jouw toe om jouw voorkeuren voor ontvangen Persoonlijke berichten te wijzigen en ook mensen invoeren om te negeren waar jij geen persoonlijke berichten van wilt ontvangen.';
$txt['usercp_search'] = 'Zoeken';
$txt['usercp_search_summary'] = 'Dit scherm heeft uitgebreide opties om naar berichten te zoeken die geplaatst zijn in het forum.';
$txt['usercp_contact_admin'] = 'Contact beheerder';
$txt['usercp_contact_admin_summary'] = 'Ben je verward? Heb je een vraag? Wil je iemand aangeven die zich niet aan de regels houdt? Contact de beheerder via dit scherm.';
$txt['usercp_guest'] = 'Sorry gast, je bent niet toegestaan om het Profiel Control Panel, Alstjeblieft';
$txt['usercp_login'] = 'Log in';
$txt['usercp_or'] = 'of';
$txt['usercp_register'] = 'Registreer';
$txt['usercp_copyright'] = 'User Cp V2.0 | Created By Alan S';
$txt['usercp_welcome'] = 'Welkom ';
$txt['usercp_delete_account'] = 'Verwijder mijn account';
$txt['usercp_delete_account_summary'] = 'Ben je de site beu? Gebruik deze optie om een verzoek in te dienen om je account te laten verwijderen.';
$txt['usercp_error'] = 'Fout!';
$txt['usercp_enable'] = 'Schakel User Control Panel in';
$txt['usercp_disabled'] = 'Schakel User Control Panel uit';
$txt['usercp_clickhere'] = 'Klik hier om te gaan naar ';
$txt['usercp_profile'] = 'Profiel scherm';
$txt['usercp_usepm'] = 'Gebruik een Persoonlijk Bericht i.p.v. e-mail om de beheerder te contacten.';
$txt['usercp_adminid'] = 'Vul hier het ID in van de beheerder. (Kijk in de link van jouw profiel om het ID te vinden. ?action=profile;u=x )';
$txt['usercp_switchview'] = 'Sta gebruikers om te schakelen naar standaard profiel mode.';
$txt['usercp_enablecontactadmin'] = 'Schakel Contact beheerder via UserCP in.';


If something is missing.. please let me know :D 
Title: Re: User Control Panel ( User CP ) V3.0
Post by: chrisb on April 26, 2008, 03:32:42 AM
Hi there,

We have been getting this error when we go into features & options on our screen

Fatal error: Cannot redeclare modifyusercpsettings() (previously declared in /home/cxtxtsju/public_html/forum/Sources/ModSettings.php:677) in /home/cxtxtsju/public_html/forum/Sources/ModSettings.php on line 777



Here is as below the mod settings code as well.Can anyone tells us what is going wrong his code here please

<?php
/**********************************************************************************
* ModSettings.php                                                                 *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');

/* This file is here to make it easier for installed mods to have settings
and options.  It uses the following functions:

void ModifyFeatureSettings()
// !!!

void ModifyFeatureSettings2()
// !!!

void ModifyBasicSettings()
// !!!

void ModifyLayoutSettings()
// !!!

void ModifyKarmaSettings()
// !!!

Adding new settings to the $modSettings array:
---------------------------------------------------------------------------
// !!!
*/

/* Adding options to one of the setting screens isn't hard.  The basic format for a checkbox is:
array('check', 'nameInModSettingsAndSQL'),

   And for a text box:
array('text', 'nameInModSettingsAndSQL')
   (NOTE: You have to add an entry for this at the bottom!)

   In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,
   and $helptxt['nameInModSettingsAndSQL'] as the help popup description.

Here's a quick explanation of how to add a new item:

 * A text input box.  For textual values.
ie. array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A text input box.  For numerical values.
ie. array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A text input box.  For floating point values.
ie. array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

         * A large text input box. Used for textual values spanning multiple lines.
ie. array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A check box.  Either one or zero. (boolean)
ie. array('check', 'nameInModSettingsAndSQL', null, &$txt['descriptionOfTheOption'],
'OptionalReferenceToHelpAdmin'),

 * A selection box.  Used for the selection of something from a list.
ie. array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => &$txt['displayedValue']),
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.

 * A password input box. Used for passwords, no less!
ie. array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

For each option:
type (see above), variable name, size/possible values, description, helptext.
OR make type 'rule' for an empty string for a horizontal rule.
OR make type 'heading' with a string for a titled section. */

// This function passes control through to the relevant tab.
function ModifyFeatureSettings()
{
global $context$txt$scripturl$modSettings$sourcedir;

// You need to be an admin to edit settings!
isAllowedTo('admin_forum');

// All the admin bar, to make it right.
adminIndex('edit_mods_settings');
loadLanguage('Help');
loadLanguage('ModSettings');

// Will need the utility functions from here.
require_once($sourcedir '/ManageServer.php');

$context['page_title'] = $txt['modSettings_title'];
$context['sub_template'] = 'show_settings';

$subActions = array(
'invite' => 'ModifyInviteSettings',

'aeiou' => 'ModifyAeiouSettings', 'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
// --- Begin modification - SMFBlog ---
'usercp' => 'ModifyUserCPSettings',
// --- End modification ---

'chatroomButton' => 'ModifyChatroomButtonSettings',

'usercp' => 'ModifyUserCPSettings',

);

// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];

// Load up all the tabs...
$context['admin_tabs'] = array(
'title' => &$txt['modSettings_title'],
'help' => 'modsettings',
'description' => $txt['smf3'],
'tabs' => array(
'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl '?action=featuresettings;sa=basic;sesc=' $context['session_id'],
),
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl '?action=featuresettings;sa=layout;sesc=' $context['session_id'],
),

'invite' => array(
'title' => $txt['invite_title'],
'href' => $scripturl '?action=featuresettings;sa=invite;sesc=' $context['session_id'],
),
                        
'chatroomButton' => array(
                                
'title' => $txt['chatroomButton_title'],
                                
'href' => $scripturl '?action=featuresettings;sa=chatroomButton;sesc=' $context['session_id'],
),
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl '?action=featuresettings;sa=karma;sesc=' $context['session_id'],
),
'aeiou' => array(
'title' => $txt['aeiou'],
'href' => $scripturl '?action=featuresettings;sa=aeiou;sesc=' $context['session_id'],
'is_last' => true,
),
),
);

// Select the right tab based on the sub action.
if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
$context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;

// Call the right function for this sub-acton.
$subActions[$_REQUEST['sa']]();
}

// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{
global $context$txt$scripturl$modSettings$sourcedir;

isAllowedTo('admin_forum');
loadLanguage('ModSettings');

// Quick session check...
checkSession();

require_once($sourcedir '/ManageServer.php');

$subActions = array(
'invite' => 'ModifyInviteSettings',

'aeiou' => 'ModifyAeiouSettings', 'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
// --- Begin modification - UserCP ---
'usercp' => 'ModifyUserCPSettings',
// --- End modification ---

'chatroomButton' => 'ModifyChatroomButtonSettings',

// --- Begin modification - UserCP ---
'usercp' => 'ModifyUserCPSettings',
// --- End modification ---

);

// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

// Actually call the saving function.
$subActions[$_REQUEST['sa']]();
}

function 
ModifyBasicSettings()
{
global $txt$scripturl$context$settings$sc$modSettings;

$config_vars = array(
// Big Options... polls, sticky, bbc....
array('select''pollMode', array(&$txt['smf34'], &$txt['smf32'], &$txt['smf33'])),
'',
// Basic stuff, user languages, titles, flash, permissions...
array('check''allow_guestAccess'),
array('check''userLanguage'),
array('check''allow_editDisplayName'),
array('check''allow_hideOnline'),
array('check''allow_hideEmail'),
array('check''guest_hideContacts'),
array('check''titlesEnable'),
array('check''enable_buddylist'),
array('text''default_personalText'),
array('int''max_signatureLength'),
'',
// MCLegendII
array('text''arrange_mclegend'),
'',
// Badge abd stars
array('text''badge_ownline'),
'',
// Stats, compression, cookies.... server type stuff.
array('text''time_format'),
array('select''number_format', array('1234.00' => '1234.00''1,234.00' => '1,234.00''1.234,00' => '1.234,00''1 234,00' => '1 234,00''1234,00' => '1234,00')),
array('float''time_offset'),
array('int''failed_login_threshold'),
array('int''lastActive'),
array('check''trackStats'),
array('check''hitStats'),
array('check''enableErrorLogging'),
array('check''securityDisable'),
'',
// Related Topics
array('check''relatedTopicsEnabled'),
array('int''relatedTopicsCount'),
array('select''relatedMethod', array('fulltext' => &$txt['relatedFulltext'], 'custom' => &$txt['relatedCustom'])),

'',
// Reactive on email, and approve on delete
array('check''send_validation_onChange'),
array('check''approveAccountDeletion'),
'',
// Option-ish things... miscellaneous sorta.
array('check''allow_disableAnnounce'),
array('check''disallow_sendBody'),
array('check''modlog_enabled'),
array('check''queryless_urls'),
'',
array('check''sitemap_xml'),
array('int''sitemap_topic_count'),
array('check''sitemap_collapsible'),
'',
// Width/Height image reduction.
array('int''max_image_width'),
array('int''max_image_height'),
'',
// Topic Member Count Settings.
array('check''topiccountAllowGuests'),
array('check''topiccountMemberColorLink'),
array('int''topiccountWindowWidth'),
array('int''topiccountWindowHeight'),
array('check''topiccountDisableTableCache'),
array('int''topiccountTableCacheUpdate'),
array('int''topiccountMaxRepliesLimit'),
'',
// Reporting of personal messages?
array('check''enableReportPM'),
);

// Saving?
if (isset($_GET['save']))
{
// Fix PM settings.
$_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];
$save_vars $config_vars;
$save_vars[] = array('text''pm_spam_settings');

saveDBSettings($save_vars);

writeLog();
redirectexit('action=featuresettings;sa=basic');
}

// Hack for PM spam settings.
list ($modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(','$modSettings['pm_spam_settings']);
$config_vars[] = array('int''max_pm_recipients');
$config_vars[] = array('int''pm_posts_verification');
$config_vars[] = array('int''pm_posts_per_hour');

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=basic';
$context['settings_title'] = $txt['mods_cat_features'];

prepareDBSettingContext($config_vars);
}

function 
ModifyLayoutSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Compact pages?
array('check''compactTopicPagesEnable'),
array('int''compactTopicPagesContiguous'null$txt['smf235'] . '<div class="smalltext">' str_replace(' ''&nbsp;''"3" ' $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' str_replace(' ''&nbsp;''"5" ' $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
'',
// Stuff that just is everywhere - today, search, online, etc.
array('select''todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),
array('check''topbottomEnable'),
array('check''onlineEnable'),
array('check''enableVBStyleLogin'),
'',
// Pagination stuff.
array('int''defaultMaxMembers'),
'',
// This is like debugging sorta.
array('check''timeLoadPageEnable'),
array('check''disableHostnameLookup'),
'',
// Who's online.
array('check''who_enabled'),
'',
// Sitepreview service.
array('check''sitepreview_disabled'),
array('select''sitepreview_select', array($txt['sitepreview_art'],$txt['sitepreview_web'],$txt['sitepreview_snap'],$txt['sitepreview_iweb'],$txt['sitepreview_seekxl'],$txt['sitepreview_thumb'])),
array('select''sitepreview_bubble', array($txt['sitepreview_bubble_white'],$txt['sitepreview_bubble_grey'],$txt['sitepreview_bubble_black'])),
'',
// Avatar on board.
array('check''disable_avatar'),
array('int''board_avatar_width'),
array('int''board_avatar_height'),
array('check''display_childboards'),
'',

'',
// Board Viewers By HarzeM
array('check''enable_board_viewers'),
array('check''boardViewersGuestsMembers'),
array('check''boardViewersClickable'),
array('check''countChildPosts'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=layout');

loadUserSettings();
writeLog();
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=layout';
$context['settings_title'] = $txt['mods_cat_layout'];

prepareDBSettingContext($config_vars);
}

// Invite MOD
function ModifyInviteSettings()
{
global $sourcedir;
require_once($sourcedir '/Invite.php');
InviteSettings();
}


function 
ModifyChatroomButtonSettings()
{
global $txt$scripturl$context$settings$sc;

// WebsiteButton 1.0 Settings
$config_vars = array(
array('select''chatroomButton_ga', array(
=> &$txt['chatroom_disabled'],
=> &$txt['chatroom_enabled'],
)),
array('text''chatroomButton_url'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=chatroomButton');
}

        
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=chatroomButton';
        
$context['settings_title'] = isset($txt['chatroomButton_title']) ? $txt['chatroomButton_title'] : 'Chatroom';

prepareDBSettingContext($config_vars);
}
function 
ModifyKarmaSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Karma - On or off?
array('select''karmaMode'explode('|'$txt['smf64'])),
'',
// Who can do it.... and who is restricted by time limits?
array('int''karmaMinPosts'),
array('float''karmaWaitTime'),
array('check''karmaTimeRestrictAdmins'),
'',
// What does it look like?  [smite]?
array('text''karmaLabel'),
array('text''karmaApplaudLabel'),
array('text''karmaSmiteLabel'),
'',
array('check''karma_on_topic'),
array('int''karma_count_on_topic'),
array('check''karma_on_post'),
array('int''karma_count_on_post'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=karma');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];

prepareDBSettingContext($config_vars);
}

function 
ModifyAeiouSettings()
{
global $txt$scripturl$context$settings$sc$db_prefix$modSettings;

// If the mod is enabled and we're not saving, query for mod status information
if (!isset($_GET['save']) && $modSettings['aeiou_enable'])
{
// Current time
$time time();

// Get the delete band
$request db_query("
SELECT count(*)
FROM 
{$db_prefix}members
WHERE lastLogin < "
. ($time 1814400) ."
AND aeiou_email < "
. ($time 1814400) ."
AND aeiou_count > 1
AND posts <= "
. (int) $modSettings['aeiou_underposts']. "
"
__FILE____LINE__);
list($deletion) = mysql_fetch_row($request);

// Create an array for the bands, with default values of 0
$temp = array(=> 0=> 0=> (int) $deletion);

// Tidy up
unset($deletion);
mysql_free_result($request);

// Get the email bands
$request db_query("
SELECT count(*) as no, aeiou_count
FROM 
{$db_prefix}members
WHERE lastLogin < "
. ($time 1814400) ."
AND aeiou_email < "
. ($time 1814400) ."
AND aeiou_count < 2
AND is_activated < 10
AND is_activated != 0
AND is_activated != 4
GROUP BY aeiou_count
ORDER BY aeiou_count ASC
"
__FILE____LINE__);

// No further emails, if not set already, stop the mod until tomorrow
if(mysql_num_rows($request) == 0)
{
// If not already, tell the mod to stop
if(!empty($modSettings['aeiou_stop']))
aeiou_update(array('stop' => 1));
// Change the variable for the remainder of this page
$modSettings['aeiou_stop'] = 1;
}
else
{
// Store the bands in the array created earlier
while($row mysql_fetch_assoc($request))
$temp[$row['aeiou_count']] = $row['no'];
// Tidy up
unset($row);

// The mod is set as stopped, but we discovered some emails, so re-activate us
if(!empty($modSettings['aeiou_stop']))
{
aeiou_update(array('stop' => 0));
// Change the variable for the remainder of this page
$modSettings['aeiou_stop'] = 0;
$reactivated 1;
}
}

// Prepare rows for the stats table
$items = array();

// Last ran
$items['aeiou_last_ran'] = ($modSettings['aeiou_locktimestamp'] == 0) ? $txt['aeiou_never'] : timeformat($modSettings['aeiou_locktimestamp'], true) ;

$again = ($modSettings['aeiou_locktimestamp'] == 0) ? $time $modSettings['aeiou_locktimestamp'];
// But if reached daily limit or is stopped we will start/check again tomorrow
if($modSettings['aeiou_day_max'] <= $modSettings['aeiou_day_sent'] || $modSettings['aeiou_stop'] == 1)
{
$date explode('-'date('Y-m-d'$again));
$tomorrow mktime(000$date[1], $date[2], $date[0]) + (60*60*24);
$items['aeiou_starts_again'] = timeformat($tomorrowtrue);
unset($date$tomorrow);

}
elseif($modSettings['aeiou_hour_max'] <= $modSettings['aeiou_hour_sent'])
{
// Or reached hourly limit we will start/check again next hour
$date explode('-'date('Y-m-d-h'$again));
$nexthour mktime($date[3], 00$date[1], $date[2], $date[0]) + (60*60);
$items['aeiou_starts_again'] = timeformat($nexthourtrue);
unset($date$nexthour);
}
else
// Else Can start again from previous + 5mins
$items['aeiou_starts_again'] = timeformat($again 300true) ;

// Emailed today with max in parenthesis
$items['aeiou_sent_day'] = $modSettings['aeiou_day_sent']
.' <span style="font-weight:normal;font-style:italic">('.$txt['aeiou_max'].': '.$modSettings['aeiou_day_max'].')</span>';
// Emailed this hour with max in parenthesis
$items['aeiou_sent_hour'] = $modSettings['aeiou_hour_sent']
.' <span style="font-weight:normal;font-style:italic">('.$txt['aeiou_max'].': '.$modSettings['aeiou_hour_max'].')</span>';

// Now setup the stats about no.s of email etc
$items['aeiou_awaiting_total'] = $temp[0] + $temp[1];
$items['aeiou_awaiting_initial_email'] = $temp[0];
$items['aeiou_awaiting_final_email'] = $temp[1];
$items['aeiou_awaiting_deletion'] = $temp[2] . (empty($modSettings['aeiou_delete']) ? ' <span style="color:red">'.$txt['aeiou_disabled'].'</span>' '' ) ; 

// Reasons for inactive
if(!empty($modSettings['aeiou_stop']))
$status $txt['aeiou_nofurtheremails'];
elseif($modSettings['aeiou_day_max'] <= $modSettings['aeiou_day_sent'])
$status $txt['aeiou_reacheddailylimit'];
elseif($modSettings['aeiou_hour_max'] <= $modSettings['aeiou_hour_sent'])
$status $txt['aeiou_reachedhourlylimit'];

// Is the mod Active? (even if enabled, it might not be active)
// If the mod was stopped, but on loading this page, we discovered more emails, show as re-activated
if(!empty($reactivated))
$status '<span style="color:darkgreen">'.$txt['aeiou_reactivated'].'</span>';
elseif(empty($status))
$status '<span style="color:darkgreen">'.$txt['aeiou_active'].'</span>';
else
// Inactive 
$status '<span style="color:maroon">'.$txt['aeiou_stopped'].'</span> - '$status;

// Header of the stats chunk and status
$chunk '<table cellpadding="1" cellspacing="0" border="0" width="100%" class="tborder">
<tr class="titlebg"><td colspan="2">'
.$txt['aeiou_status'].': '.$status.'</td></tr>';

// Now build the chunk of html of our stats
foreach($items as $string => $value)
{
// Less emphasis on the sub-totals
$italic = ($string == 'aeiou_awaiting_initial_email' || $string == 'aeiou_awaiting_final_email') ? ;
// Add more rows to the existing chunk
$chunk .= '<tr class="windowbg"><td'.($italic ' style="font-weight:normal;font-style:italic"' '').' >'.$txt[$string].':</td><td'.($italic ' style="font-weight:normal;font-style:italic"' '').'>'.$value.'</td></tr>';
}
$chunk .= '</table><br />';


// Now for the last 10 people emailed
$request db_query("
SELECT ID_MEMBER, memberName, aeiou_email, aeiou_count
FROM 
{$db_prefix}members
WHERE aeiou_email != 0
ORDER BY aeiou_email DESC
LIMIT 10
"
__FILE____LINE__);

$chunk2 '<table cellpadding="1" cellspacing="0" border="0" width="100%" class="tborder">
<tr class="titlebg"><td colspan="3">'
.$txt['aeiou_last10emailed'].'</td></tr>';
if(mysql_num_rows($request) == 0)
$chunk2 .= '<tr class="windowbg"><td colspan="3">'.$txt['aeiou_never'].'</td></tr>';
else
{
// Add each user as a row in the table
while($row mysql_fetch_assoc($request))
$chunk2 .= '<tr class="windowbg"><td><a href="'.$scripturl.'?action=profile;u='.$row['ID_MEMBER'].'">'.$row['memberName'].'</a></td><td style="font-weight:normal;">'.timeformat($row['aeiou_email'], true).'</td><td style="font-weight:normal;">'$txt['aeiou_'.( ($row['aeiou_count'] == 1) ? 'initial' 'final' )].'</td></tr>';
}
$chunk2 .= '</table><br />';

}
else
// If the mod is not enabled, don't show either as chunks.  use a space to prevent it being shown as a delimiter
$chunk $chunk2 ' ';

// Compile/Build some language strings/add to
// Avoids using html in the language files
$temp = array('initial_subject' => 'subject''initial_message' => 'message''final_subject' => 'subject''final_message' => 'message');
$add '<div class="smalltext">'.$txt['aeiou_email_desc1'].'<br />'.$txt['aeiou_email_desc2'].'<br />'.$txt['aeiou_email_desc3'].'</div>';
foreach($temp as $a => $b)
{
// Add the descriptions to the txt string
$txt['aeiou_'.$a] .= $add;
// Use the default message if we don't have a custom one saved
if(empty($modSettings['aeiou_'.$a]))
$modSettings['aeiou_'.$a] = !empty($txt['aeiou_default_'.$b]) ? $txt['aeiou_default_'.$b] : '' ;
}
// Tidy up
unset($temp$add$a);

// More descriptions to add with html
$temp = array('delete''underposts''hour_max''day_max''chunksize');
foreach($temp as $a)
$txt['aeiou_'.$a] .= '<div class="smalltext">'.$txt['aeiou_'.$a.'_desc'] .'</div>';

// Now the warning chunk.  Comprises of 4 parts.
$txt['aeiou_warning'] .= '<div class="smalltext">'$txt['aeiou_warning2'] .'<br />'.$txt['aeiou_warning3'].'<br />'.$txt['aeiou_warning4'].'</div>';

// The important array
$config_vars = array(
$chunk,
array('check''aeiou_enable'),
array('text''aeiou_initial_subject''30" style="width:95%'),
array('large_text''aeiou_initial_message''5" style="width:95%'),
array('text''aeiou_final_subject''30" style="width:95%'),
array('large_text''aeiou_final_message''5" style="width:95%'),
'',
array('check''aeiou_delete'),
array('int''aeiou_underposts'),
'',
$txt['aeiou_warning'],
array('int''aeiou_hour_max'),
array('int''aeiou_day_max'),
array('int''aeiou_chunksize'),
$chunk2,
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=aeiou');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=aeiou';
$context['settings_title'] = $txt['aeiou_title'];

prepareDBSettingContext($config_vars);
}

// --- Begin modification - UserCP ---
function ModifyUserCPSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
array('check''usercp_enable'),
           array (
'check''usercp_enablecontactadmin'),
           array(
'check''usercp_switchview'),
           array(
'check''usercp_usepm'),
           array(
'int''usercp_adminid'),
            
'',
             array(
'text''usercp_field1image'),
             array(
'text''usercp_field1url'),
             array(
'text''usercp_field1maintext'),
             array(
'text''usercp_field1summary'),
             array(
'check''usercp_field1enable'),
             
'',
             array(
'text''usercp_field2image'),
             array(
'text''usercp_field2url'),
             array(
'text''usercp_field2maintext'),
             array(
'text''usercp_field2summary'),
             array(
'check''usercp_field2enable'),
             
'',
             array(
'text''usercp_field3image'),
             array(
'text''usercp_field3url'),
             array(
'text''usercp_field3maintext'),
             array(
'text''usercp_field3summary'),
             array(
'check''usercp_field3enable'),
             
'',
             array(
'text''usercp_field4image'),
             array(
'text''usercp_field4url'),
             array(
'text''usercp_field4maintext'),
             array(
'text''usercp_field4summary'),
             array(
'check''usercp_field4enable'),
             
'',
   
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=usercp');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=usercp';
$context['settings_title'] = $txt['usercp'];

prepareDBSettingContext($config_vars);
}
// --- End modification ---

// --- Begin modification - UserCP ---
function ModifyUserCPSettings()
{
global $txt$scripturl$context$settings$sc;
 
$config_vars = array(
array('check''usercp_enable'),
           array (
'check''usercp_enablecontactadmin'),
           array(
'check''usercp_switchview'),
           array(
'check''usercp_usepm'),
           array(
'int''usercp_adminid'),
            
'',
             array(
'text''usercp_field1image'),
             array(
'text''usercp_field1url'),
             array(
'text''usercp_field1maintext'),
             array(
'text''usercp_field1summary'),
             array(
'check''usercp_field1enable'),
             
'',
             array(
'text''usercp_field2image'),
             array(
'text''usercp_field2url'),
             array(
'text''usercp_field2maintext'),
             array(
'text''usercp_field2summary'),
             array(
'check''usercp_field2enable'),
             
'',
             array(
'text''usercp_field3image'),
             array(
'text''usercp_field3url'),
             array(
'text''usercp_field3maintext'),
             array(
'text''usercp_field3summary'),
             array(
'check''usercp_field3enable'),
             
'',
             array(
'text''usercp_field4image'),
             array(
'text''usercp_field4url'),
             array(
'text''usercp_field4maintext'),
             array(
'text''usercp_field4summary'),
             array(
'check''usercp_field4enable'),
             
'',
 
);
 
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=usercp');
}
 
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=usercp';
$context['settings_title'] = $txt['usercp'];
 
prepareDBSettingContext($config_vars);
}
// --- End modification ---
}
?>



We have checked the coding again and we are now getting this to work on our forum and we find this mod is good for our members

Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on April 26, 2008, 04:23:50 AM
redeclare means declare again, meaning you can't say it twice basically.  Look at the bottom of your file and you will see you have the same identical user cp mod code at line 677 and 777.

// --- Begin modification - UserCP ---
function ModifyUserCPSettings()
{
global $txt, $scripturl, $context, $settings, $sc;

$config_vars = array(
array('check', 'usercp_enable'),
           array ('check', 'usercp_enablecontactadmin'),
           array('check', 'usercp_switchview'),
           array('check', 'usercp_usepm'),
           array('int', 'usercp_adminid'),
            '',
             array('text', 'usercp_field1image'),
             array('text', 'usercp_field1url'),
             array('text', 'usercp_field1maintext'),
             array('text', 'usercp_field1summary'),
             array('check', 'usercp_field1enable'),
             '',
             array('text', 'usercp_field2image'),
             array('text', 'usercp_field2url'),
             array('text', 'usercp_field2maintext'),
             array('text', 'usercp_field2summary'),
             array('check', 'usercp_field2enable'),
             '',
             array('text', 'usercp_field3image'),
             array('text', 'usercp_field3url'),
             array('text', 'usercp_field3maintext'),
             array('text', 'usercp_field3summary'),
             array('check', 'usercp_field3enable'),
             '',
             array('text', 'usercp_field4image'),
             array('text', 'usercp_field4url'),
             array('text', 'usercp_field4maintext'),
             array('text', 'usercp_field4summary'),
             array('check', 'usercp_field4enable'),
             '',

);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=usercp');
}

$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=usercp';
$context['settings_title'] = $txt['usercp'];

prepareDBSettingContext($config_vars);
}
// --- End modification ---


remove one instance of that duplicate code from the bottom of your file
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 26, 2008, 10:36:28 AM
It means that you installed the mod twice.

The code that Perplexed points out is causing the error, but chances are you have other duplicate code as well.  You'll have to go through the mod and check all the changes to make sure you don't have more duplicates.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: prottoy on May 04, 2008, 12:55:58 PM
hi Alan S can u plz help me? i want to do this mod for 'kelo-it' theme...how to do it canu plz give me the instruction....

i try to do as like i do for default theme but i faced a prblm that in the menu top it didnt show  logout,search,calender....this options vanished....so can u give me the full instructions plz...
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Marcus Forsberg on May 04, 2008, 01:17:17 PM
Open Themes/kelo-lt/index.template.php

Then, find

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


And replace it whit

// Edit Profile... [profile] if usercp is enabled
       if ($context['allow_edit_profile'] && $modSettings['usercp_enable'])
echo ($current_action=='profile' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="' , $current_action == 'profile' ? 'current' : '' , '"><a href="', $scripturl, '?action=usercp;u=',$ID_MEMBER,'">' , $txt['usercp'] , '</a></li>';

Title: Re: User Control Panel ( User CP ) V3.0
Post by: prottoy on May 06, 2008, 03:11:35 AM
THX FOR REPLY....i have done this edit....all works fne bt 1 major prblm...there is no 'usercp' option in menu top...all optns are ok like home help search logout but no option for usercp.....how can i make this optn plz plz plz help :(
Title: Re: User Control Panel ( User CP ) V3.0
Post by: perplexed on May 06, 2008, 04:59:23 AM
the edits are all explained here http://custom.simplemachines.org/mods/index.php?mod=698

just click your version and follow the info for the theme edits :)  your edit is most likely in the index.template.php file as it is with the default theme
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on May 06, 2008, 07:48:13 AM
prottoy,

I'll bet that, if you had bothered to read the rest of this thread, you would have noticed about 20 people with the same complaint...   and, invariably, the problem was:  The mod only installs automatically in the default theme and English. (English UTF-8 is different from English).

So... try switching your board over to the default theme and English language.  If it works then... then you will have to manually apply the edits to your custom theme and/or your non-English langauge.

(and before you ask, the description for how to manually apply the mod is linked directly from the mod download page...  that perplexed linked you to.)


Next time, please try reading and/or using search? When a thread is this long, the chances are your question was answered.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on May 07, 2008, 01:35:15 PM
hello,

Is it possible to add a code so that only certain membergroups can view the profile or photo's?
The problem for me is.. that girls on my forum put pictures in, that are sometimes naughty  O:)

So i have made a membergroup VIP members. To become a vipmember the first have to do a camcheck, so that i know that it is a girls behind the profile and not a old men of 77. They do not mind showing the foto's to other girls.. but not dirty old men :D

I know that you can choose only friends.. but... if they can choose a membergroup.. that would be great!

Thanks!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on May 07, 2008, 02:01:13 PM
again...   almost anything is POSSIBLE.
However, this would require some major coding to allow USERS to determine who can view their profile.

On the other hand, in the standard permissions, *YOU* can prevent groups from viewing or allow groups to view profiles
Title: Re: User Control Panel ( User CP ) V3.0
Post by: LLStarks on May 23, 2008, 09:36:16 PM
Any news on a SMF 2.0 version?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: _Anthony_ on May 24, 2008, 03:07:07 AM
Very nice alan
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on May 24, 2008, 11:33:40 AM
Quote from: LLStarks on May 23, 2008, 09:36:16 PM
Any news on a SMF 2.0 version?

Well i had nearly everything done , There was just the admin side and the menu button to do , Unluckly the P.C that contained those files broke a few days ago and i havent had time to retrieve the files yet , So currently i have no ETA on the realse date of a 2.0 version.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: lesmond on May 31, 2008, 08:12:45 PM
Hi I have added this mod to a custom theme, and I am getting these errors..

I am using tp 0.98 and smf 1.1.5 I have added the menu code to the index.template file for the theme.

when you click on the link to the usercp, this is the url   ./index.php?action=usercp;u=  notice no user id #


/index.php?action=viewErrorLog;desc
8: Undefined variable: ID_MEMBER
File: /home/xxxxx/public_html/Themes/default/Login.template.php (main_above sub template - eval?)
Line: 1257

/index.php?action=admin
8: Undefined variable: ID_MEMBER
File: /home/xxxxx/public_html/Themes/default/Errors.template.php (main_above sub template - eval?)
Line: 1257
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on June 01, 2008, 09:07:49 AM
Quote from: lesmond on May 31, 2008, 08:12:45 PM
Hi I have added this mod to a custom theme, and I am getting these errors..

I am using tp 0.98 and smf 1.1.5 I have added the menu code to the index.template file for the theme.

when you click on the link to the usercp, this is the url   ./index.php?action=usercp;u=  notice no user id #


/index.php?action=viewErrorLog;desc
8: Undefined variable: ID_MEMBER
File: /home/xxxxx/public_html/Themes/default/Login.template.php (main_above sub template - eval?)
Line: 1257

/index.php?action=admin
8: Undefined variable: ID_MEMBER
File: /home/xxxxx/public_html/Themes/default/Errors.template.php (main_above sub template - eval?)
Line: 1257


Hey , Well it sounds to me like your missing a global statement ,

Search for this code


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


Directly after the $context, there should be


$ID_MEMBER, $modSettings,


If that is not there add them in so that total line of code should be

global $context, $ID_MEMBER, $modSettings,
Title: Re: User Control Panel ( User CP ) V3.0
Post by: InsaneneSs on July 01, 2008, 12:20:45 AM
Can somewone tell me how do i install this mod on this themes

Outline - http://www.dzinerstudio.com/index.php?action=tpmod;dl=item52

DarkBreack - http://www.dzinerstudio.com/index.php?action=tpmod;dl=item55

thanks
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on July 01, 2008, 07:26:25 AM
run the mod parser (i.e. "manual install instructions") from the mod site where you downloaded this mod.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Lady Night Owl on July 05, 2008, 02:15:13 PM
I'm getting this error on 1.1.5 whenever I try to go to Features/Options:

Parse error: syntax error, unexpected T_DOUBLE_ARROW in Sources/ModSettings.php on line 206

Which keeps pointing to:

// --- Begin modification - SMFBlog ---
'usercp' => 'ModifyUserCPSettings',
// --- End modification ---


:(
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on July 05, 2008, 08:31:10 PM
Quote from: ladynightowl on July 05, 2008, 02:15:13 PM
I'm getting this error on 1.1.5 whenever I try to go to Features/Options:

Parse error: syntax error, unexpected T_DOUBLE_ARROW in Sources/ModSettings.php on line 206

Which keeps pointing to:

// --- Begin modification - SMFBlog ---
'usercp' => 'ModifyUserCPSettings',
// --- End modification ---


:(

Hmmm , Try undoing all the changes to Modsettings.php and add them again manualy

Use the mod parser to get the edits ( http://custom.simplemachines.org/mods/index.php?mod=698  )
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on July 05, 2008, 08:32:43 PM
Quote from: Lafemme on May 07, 2008, 01:35:15 PM
hello,

Is it possible to add a code so that only certain membergroups can view the profile or photo's?
The problem for me is.. that girls on my forum put pictures in, that are sometimes naughty  O:)

So i have made a membergroup VIP members. To become a vipmember the first have to do a camcheck, so that i know that it is a girls behind the profile and not a old men of 77. They do not mind showing the foto's to other girls.. but not dirty old men :D

I know that you can choose only friends.. but... if they can choose a membergroup.. that would be great!

Thanks!


Sorry for a late reply from me , It is possible , but as Kindred said it would require extra coding. If you are still intrested in doing this let me know and i can talk about a few options with you.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: b33z on July 06, 2008, 02:51:11 AM
i installed this manually due to custom theme, with no problems at all! works perfect, looks great! as soon as i installed it, i pm'd another site owner friend of mine who uses smf and told him to check it out. as soon as he did he pm'd me back and absolutely had to have my user cp!! couple more have grabbed it due to our word of mouth. thanks for the works!!!! (and by the works i mean it! you get the works with this mod!!)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: khamseen on July 08, 2008, 01:53:53 AM
Hi there, I like the mod but the problem I'm having is getting it to work with the "Enterprise (http://custom.simplemachines.org/themes/index.php?lemma=43)" theme. My site uses that and I did try manually installing it to the site and got it showing in the admin panel for the settings page and I got it so that if I manually enter the link URL I can see it (Though without any of the images on it).

However, my menu bar at the top of the site shows "Profile" sitting above all the other buttons and it still links to the default profile. Any information on incorporating it to the Enterprise theme?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on July 08, 2008, 08:27:31 AM
you have to modify the button in your theme's index.template.php
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on July 08, 2008, 01:39:24 PM
Enterprise theme code has been added to this post

http://www.simplemachines.org/community/index.php?topic=167975.msg1386370#msg1386370
Title: Re: User Control Panel ( User CP ) V3.0
Post by: khamseen on July 08, 2008, 04:32:35 PM
Quote from: Kindred on July 08, 2008, 08:27:31 AM
you have to modify the button in your theme's index.template.php

Already tried that with the codes listed. :)

Quote from: Alan S on July 08, 2008, 01:39:24 PM
Enterprise theme code has been added to this post

Thanks very much, I shall give it a shot and let you know how it goes. :D
Title: Re: User Control Panel ( User CP ) V3.0
Post by: DareDevil1990 on July 11, 2008, 09:14:09 AM
hi can u please make the edit required for this to installed in mystic jade with smf1.1.4..i have attached all the file that u may need  :)


Thank you  O:)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: b33z on July 11, 2008, 05:17:22 PM
Quote from: keshav on July 11, 2008, 09:14:09 AM
hi can u please make the edit required for this to installed in mystic jade with smf1.1.4..i have attached all the file that u may need  :)


Thank you  O:)

here ya go.. my first attempt at helping add stuff for other people.. but my theme was hard for me to work with, so i learned! hehe....
Title: Re: User Control Panel ( User CP ) V3.0
Post by: DareDevil1990 on July 11, 2008, 11:17:26 PM
Quote from: b33z on July 11, 2008, 05:17:22 PM
Quote from: keshav on July 11, 2008, 09:14:09 AM
hi can u please make the edit required for this to installed in mystic jade with smf1.1.4..i have attached all the file that u may need  :)


Thank you  O:)

here ya go.. my first attempt at helping add stuff for other people.. but my theme was hard for me to work with, so i learned! hehe....

thank for you effort but when i upload the files edited by u i get a template error :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on July 12, 2008, 08:02:30 PM
Here , try these ones.

- Alan
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on July 13, 2008, 07:45:33 PM
SMF 2.0 Support Has Been Added 13/July/2008.

See Page 1 (http://www.simplemachines.org/community/index.php?topic=167975.0) for more info
Title: Re: User Control Panel ( User CP ) V3.0
Post by: AlenNS on July 13, 2008, 08:36:28 PM
serbian translation of mod.
2.0 for now.

$txt['usercp'] = 'Korisnički meni';
$txt['usercp_account_info'] = 'Informacije o nalogu';
$txt['usercp_account_info_summary'] = 'Kliknite ovde ukoliko želite da izmenite korisničko ime, e-mail, &scaron;ifru ili druge slične podatke.';
$txt['usercp_look_and_layout'] = 'Opcije izgleda foruma';
$txt['usercp_look_and_layout_summary'] = 'Kliknite ovde da izmenite izgled foruma. Omogućena je izmena izgleda foruma i poruka.';
$txt['usercp_my_theme'] = 'Moje teme';
$txt['usercp_my_theme_summary'] = 'Ovde možete da izmenite temu koju ćete koristiti svaki put kada se prijavite na forum.';
$txt['usercp_my_profile'] = 'Moj profil';
$txt['usercp_my_profile_summary'] = 'Kliknite ovde da izmenite izgled Va&scaron;eg profila koji je vidljiv ostalim korisnicima.';
$txt['usercp_my_stats'] = 'Moja statistika';
$txt['usercp_my_stats_summary'] = 'Ovde možete da vidite broj Va&scaron;ih poruka i ostale aktivnosti s tim u vezi.';
$txt['usercp_my_posts'] = 'Moje poruke';
$txt['usercp_my_posts_summary'] = 'Ovde možete videti sve poruke koje ste napisali od prvog dana.';
$txt['usercp_my_notifications'] = 'Moja obave&scaron;tenja';
$txt['usercp_my_notifications_summary'] = 'Ovde možete da izmenite vrstu i učestalost obave&scaron;tenja koja dobijate putem e-mail kada učestvujete na forumu.';
$txt['usercp_buddies'] = 'Prijatelji';
$txt['usercp_buddies_summary'] = 'Ovde možete da izaberete prijatelje sa foruma i da ih dodate na listu.';
$txt['usercp_message_options'] = 'Opcije mojih poruka';
$txt['usercp_message_options_summary'] = 'Ovde možete da namestite pode&scaron;avanja privatnih poruka koje primate na forumu, kao i da podesite listu onih članova koje želite da ignori&scaron;ete i da od njih ne primate pp.';
$txt['usercp_search'] = 'Pretraga';
$txt['usercp_search_summary'] = 'Ovde vam je omogućeno da izvr&scaron;ite detaljnu pretragu foruma.';
$txt['usercp_contact_admin'] = 'Kontaktirajte administratora';
$txt['usercp_contact_admin_summary'] = 'Ukoliko imate problem, zahtev, molbu ili slično, ovde možete da se obratite administratoru foruma';
$txt['usercp_guest'] = 'Žao nam je. Vi ste gost , Nije Vam dozvoljeno da pristupite korisničkom meniju , Molimo Vas';
$txt['usercp_login'] = 'prijavite se';
$txt['usercp_or'] = 'ili';
$txt['usercp_register'] = 'se registrujte';
$txt['usercp_copyright'] = 'Korisnički meni V2.0.1 | Created By Alan S';
$txt['usercp_welcome'] = 'Dobrodo&scaron;li! ';
$txt['usercp_delete_account'] = 'Obri&scaron;i nalog?!';
$txt['usercp_delete_account_summary'] = 'Ne želite vi&scaron;e da budete deo on-line zajednice? Ovde možete da obri&scaron;ete Va&scaron; nalog.';
$txt['usercp_error'] = 'Gre&scaron;ka!';
$txt['usercp_enable'] = 'Omogući korisnički meni';
$txt['usercp_disabled'] = 'Korisnički meni onemogućen';
$txt['usercp_clickhere'] = 'Kliknite ovde da pređete na ';
$txt['usercp_profile'] = 'Profil strana';
$txt['usercp_field1image'] = 'Slika prvog polja u korisničkom meniju';
$txt['usercp_field1url'] = 'URL adresa';
$txt['usercp_field1maintext'] = 'Glavni tekst ( npr. Moje poruke )';
$txt['usercp_field1summary'] = 'Detaljnije';
$txt['usercp_field1enable'] = 'Omogući prvo polje u korisničkom meniju';
$txt['usercp_field2image'] = 'Slika drugog polja u korisničkom meniju';
$txt['usercp_field2url'] = 'URL adresa';
$txt['usercp_field2maintext'] = 'Glavni tekst ( npr. Moje poruke )';
$txt['usercp_field2summary'] = 'Detaljnije';
$txt['usercp_field2enable'] = 'Omogući drugo polje u korisničkom meniju';
$txt['usercp_field3image'] = 'Slika trećeg polja u korisničkom meniju';
$txt['usercp_field3url'] = 'URL adresa';
$txt['usercp_field3maintext'] = 'Glavni tekst ( npr. Moje poruke )';
$txt['usercp_field3summary'] = 'Detaljnije';
$txt['usercp_field3enable'] = 'Omogući treće polje u korisničkom meniju';
$txt['usercp_field4image'] = 'Slika četvrtog polja u korisničkom meniju';
$txt['usercp_field4url'] = 'URL adresa';
$txt['usercp_field4maintext'] = 'Glavni tekst ( npr. Moje poruke )';
$txt['usercp_field4summary'] = 'Detaljnije';
$txt['usercp_field4enable'] = 'Omogući četvrto polje u korisničkom meniju';
$txt['usercp_usepm'] = 'Koristi privatnu poruku umesto e-maila za kontaktiranje administratora';
$txt['usercp_adminid'] = 'Unesite ID administratora ovde ( Pogledajte link u profilu , ?action=profile;u=x )';
$txt['usercp_switchview'] = 'Omogućite korisnicima da pređu na standardni pregled profila.';
$txt['usercp_enablecontactadmin'] = 'Omogućite kontaktiranje administratora putem korisničkog menija';
Title: Re: User Control Panel ( User CP ) V3.0
Post by: b33z on July 13, 2008, 08:39:43 PM
Quote from: keshav on July 11, 2008, 11:17:26 PM
Quote from: b33z on July 11, 2008, 05:17:22 PM
Quote from: keshav on July 11, 2008, 09:14:09 AM
hi can u please make the edit required for this to installed in mystic jade with smf1.1.4..i have attached all the file that u may need  :)


Thank you  O:)

here ya go.. my first attempt at helping add stuff for other people.. but my theme was hard for me to work with, so i learned! hehe....

thank for you effort but when i upload the files edited by u i get a template error :)
as i said my first attempt.... sorry.. good luck..
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on July 14, 2008, 10:53:11 AM
Quote from: AlenNS on July 13, 2008, 08:36:28 PM
serbian translation of mod.
2.0 for now.

$txt['usercp'] = 'Korisnički meni';
$txt['usercp_account_info'] = 'Informacije o nalogu';
$txt['usercp_account_info_summary'] = 'Kliknite ovde ukoliko želite da izmenite korisničko ime, e-mail, &scaron;ifru ili druge slične podatke.';
$txt['usercp_look_and_layout'] = 'Opcije izgleda foruma';
$txt['usercp_look_and_layout_summary'] = 'Kliknite ovde da izmenite izgled foruma. Omogućena je izmena izgleda foruma i poruka.';
$txt['usercp_my_theme'] = 'Moje teme';
$txt['usercp_my_theme_summary'] = 'Ovde možete da izmenite temu koju ćete koristiti svaki put kada se prijavite na forum.';
$txt['usercp_my_profile'] = 'Moj profil';
$txt['usercp_my_profile_summary'] = 'Kliknite ovde da izmenite izgled Va&scaron;eg profila koji je vidljiv ostalim korisnicima.';
$txt['usercp_my_stats'] = 'Moja statistika';
$txt['usercp_my_stats_summary'] = 'Ovde možete da vidite broj Va&scaron;ih poruka i ostale aktivnosti s tim u vezi.';
$txt['usercp_my_posts'] = 'Moje poruke';
$txt['usercp_my_posts_summary'] = 'Ovde možete videti sve poruke koje ste napisali od prvog dana.';
$txt['usercp_my_notifications'] = 'Moja obave&scaron;tenja';
$txt['usercp_my_notifications_summary'] = 'Ovde možete da izmenite vrstu i učestalost obave&scaron;tenja koja dobijate putem e-mail kada učestvujete na forumu.';
$txt['usercp_buddies'] = 'Prijatelji';
$txt['usercp_buddies_summary'] = 'Ovde možete da izaberete prijatelje sa foruma i da ih dodate na listu.';
$txt['usercp_message_options'] = 'Opcije mojih poruka';
$txt['usercp_message_options_summary'] = 'Ovde možete da namestite pode&scaron;avanja privatnih poruka koje primate na forumu, kao i da podesite listu onih članova koje želite da ignori&scaron;ete i da od njih ne primate pp.';
$txt['usercp_search'] = 'Pretraga';
$txt['usercp_search_summary'] = 'Ovde vam je omogućeno da izvr&scaron;ite detaljnu pretragu foruma.';
$txt['usercp_contact_admin'] = 'Kontaktirajte administratora';
$txt['usercp_contact_admin_summary'] = 'Ukoliko imate problem, zahtev, molbu ili slično, ovde možete da se obratite administratoru foruma';
$txt['usercp_guest'] = 'Žao nam je. Vi ste gost , Nije Vam dozvoljeno da pristupite korisničkom meniju , Molimo Vas';
$txt['usercp_login'] = 'prijavite se';
$txt['usercp_or'] = 'ili';
$txt['usercp_register'] = 'se registrujte';
$txt['usercp_copyright'] = 'Korisnički meni V2.0.1 | Created By Alan S';
$txt['usercp_welcome'] = 'Dobrodo&scaron;li! ';
$txt['usercp_delete_account'] = 'Obri&scaron;i nalog?!';
$txt['usercp_delete_account_summary'] = 'Ne želite vi&scaron;e da budete deo on-line zajednice? Ovde možete da obri&scaron;ete Va&scaron; nalog.';
$txt['usercp_error'] = 'Gre&scaron;ka!';
$txt['usercp_enable'] = 'Omogući korisnički meni';
$txt['usercp_disabled'] = 'Korisnički meni onemogućen';
$txt['usercp_clickhere'] = 'Kliknite ovde da pređete na ';
$txt['usercp_profile'] = 'Profil strana';
$txt['usercp_field1image'] = 'Slika prvog polja u korisničkom meniju';
$txt['usercp_field1url'] = 'URL adresa';
$txt['usercp_field1maintext'] = 'Glavni tekst ( npr. Moje poruke )';
$txt['usercp_field1summary'] = 'Detaljnije';
$txt['usercp_field1enable'] = 'Omogući prvo polje u korisničkom meniju';
$txt['usercp_field2image'] = 'Slika drugog polja u korisničkom meniju';
$txt['usercp_field2url'] = 'URL adresa';
$txt['usercp_field2maintext'] = 'Glavni tekst ( npr. Moje poruke )';
$txt['usercp_field2summary'] = 'Detaljnije';
$txt['usercp_field2enable'] = 'Omogući drugo polje u korisničkom meniju';
$txt['usercp_field3image'] = 'Slika trećeg polja u korisničkom meniju';
$txt['usercp_field3url'] = 'URL adresa';
$txt['usercp_field3maintext'] = 'Glavni tekst ( npr. Moje poruke )';
$txt['usercp_field3summary'] = 'Detaljnije';
$txt['usercp_field3enable'] = 'Omogući treće polje u korisničkom meniju';
$txt['usercp_field4image'] = 'Slika četvrtog polja u korisničkom meniju';
$txt['usercp_field4url'] = 'URL adresa';
$txt['usercp_field4maintext'] = 'Glavni tekst ( npr. Moje poruke )';
$txt['usercp_field4summary'] = 'Detaljnije';
$txt['usercp_field4enable'] = 'Omogući četvrto polje u korisničkom meniju';
$txt['usercp_usepm'] = 'Koristi privatnu poruku umesto e-maila za kontaktiranje administratora';
$txt['usercp_adminid'] = 'Unesite ID administratora ovde ( Pogledajte link u profilu , ?action=profile;u=x )';
$txt['usercp_switchview'] = 'Omogućite korisnicima da pređu na standardni pregled profila.';
$txt['usercp_enablecontactadmin'] = 'Omogućite kontaktiranje administratora putem korisničkog menija';


Thanks , Added to main page.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: DareDevil1990 on July 17, 2008, 01:45:56 AM
Quote from: Alan S on July 12, 2008, 08:02:30 PM
Here , try these ones.

- Alan

http://img242.imageshack.us/img242/7498/errorwa3.jpg

when i upload your mod settings.php the mod installds but when i try to acces Features and Options i get the error as shown in the pic above :((
Title: Re: User Control Panel ( User CP ) V3.0
Post by: nopity4u on July 23, 2008, 01:16:48 AM
Hey Alan, Thanks for the great mod. But what I am trying to do is have the ability for custom fields to be membergroup based so that not everyone will see the icon/summary. Mainly using this to link them to a form and not everyone has access to it. Thanks. I have tried editing usercp.template.php to do this to no avail.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on July 23, 2008, 07:26:43 PM
Quote from: nopity4u on July 23, 2008, 01:16:48 AM
Hey Alan, Thanks for the great mod. But what I am trying to do is have the ability for custom fields to be membergroup based so that not everyone will see the icon/summary. Mainly using this to link them to a form and not everyone has access to it. Thanks. I have tried editing usercp.template.php to do this to no avail.

That wouldnt be a problem to do. Backup your files before trying this though since i have not tested in in the UserCP

Say its the 1st Custom field you want to display to certain membergroups

You would find in the usercp.template.php


// Custom UserCP Field Image 1
if($modSettings['usercp_field1enable'] && $modSettings['usercp_enable'])
echo '
<tr><td align="center" width="25%" valign="top">
<a href="', $modSettings['usercp_field1url'],'"><img border="0" src="',$modSettings['usercp_field1image'],'" width="80" height="80"></a></td>';


and replace it with


  // Custom UserCP Field Image 1
global $user_info;

     $cool_groups = array(1,2,35,37); // exempted groups

if (!array_intersect($user_info['groups'], $cool_groups) != Array() && $modSettings['usercp_field1enable'] && $modSettings['usercp_enable'])
echo '
<tr><td align="center" width="25%" valign="top">
<a href="', $modSettings['usercp_field1url'],'"><img border="0" src="',$modSettings['usercp_field1image'],'" width="80" height="80"></a></td>';


In the modified code then you can edit


$cool_groups = array(1,2,35,37); // exempted groups


You can modifiy the numbers with the ID(s) of the group(s) you DONT want to show the button to


After you have done that , you would need to find


//Custom UserCP Field 1 Text
if($modSettings['usercp_field1enable'] && $modSettings['usercp_enable'])
echo '
<font face="Verdana" size="2"><a href="', $modSettings['usercp_field1url'],'"><b>',$modSettings['usercp_field1maintext'],'</a><br>
</b></font><font face="Verdana" size="1">',$modSettings['usercp_field1summary'],'</font></td>';


and replace it with



//Custom UserCP Field 1 Text
global $user_info;

     $cool_groups = array(1,2,35,37); // exempted groups

if (!array_intersect($user_info['groups'], $cool_groups) != Array() && $modSettings['usercp_field1enable'] && $modSettings['usercp_enable'])
echo '
<font face="Verdana" size="2"><a href="', $modSettings['usercp_field1url'],'"><b>',$modSettings['usercp_field1maintext'],'</a><br>
</b></font><font face="Verdana" size="1">',$modSettings['usercp_field1summary'],'</font></td>';



Again editing the $cool_groups array with the membergroup(s) ID(s) who you DONT want to display the button to.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: AlenNS on July 23, 2008, 08:57:05 PM
Alan, I've translated your great mod again because of characters. I mean I've just changed č, ć, š, đ, ž with HTML entities which wont make a strange signs.

$txt['usercp'] = 'Korisni&#269;ki meni';
$txt['usercp_account_info'] = 'Informacije o nalogu';
$txt['usercp_account_info_summary'] = 'Kliknite ovde ukoliko &#382;elite da izmenite korisni&#269;ko ime, e-mail, &scaron;ifru ili druge sli&#269;ne podatke.';
$txt['usercp_look_and_layout'] = 'Opcije izgleda foruma';
$txt['usercp_look_and_layout_summary'] = 'Kliknite ovde da izmenite izgled foruma. Omogu&#263;ena je izmena izgleda foruma i poruka.';
$txt['usercp_my_theme'] = 'Moje teme';
$txt['usercp_my_theme_summary'] = 'Ovde mo&#382;ete da izmenite temu koju &#263;ete koristiti svaki put kada se prijavite na forum.';
$txt['usercp_my_profile'] = 'Moj profil';
$txt['usercp_my_profile_summary'] = 'Kliknite ovde da izmenite izgled Va&scaron;eg profila koji je vidljiv ostalim korisnicima.';
$txt['usercp_my_stats'] = 'Moja statistika';
$txt['usercp_my_stats_summary'] = 'Ovde mo&#382;ete da vidite broj Va&scaron;ih poruka i ostale aktivnosti s tim u vezi.';
$txt['usercp_my_posts'] = 'Moje poruke';
$txt['usercp_my_posts_summary'] = 'Ovde mo&#382;ete videti sve poruke koje ste napisali od prvog dana.';
$txt['usercp_my_notifications'] = 'Moja obave&scaron;tenja';
$txt['usercp_my_notifications_summary'] = 'Ovde mo&#382;ete da izmenite vrstu i u&#269;estalost obave&scaron;tenja koja dobijate putem e-mail kada u&#269;estvujete na forumu.';
$txt['usercp_buddies'] = 'Prijatelji';
$txt['usercp_buddies_summary'] = 'Ovde mo&#382;ete da izaberete prijatelje sa foruma i da ih dodate na listu.';
$txt['usercp_message_options'] = 'Opcije mojih poruka';
$txt['usercp_message_options_summary'] = 'Ovde mo&#382;ete da namestite pode&scaron;avanja privatnih poruka koje primate na forumu, kao i da podesite listu onih &#269;lanova koje &#382;elite da ignori&scaron;ete i da od njih ne primate pp.';
$txt['usercp_search'] = 'Pretraga';
$txt['usercp_search_summary'] = 'Ovde vam je omogu&#263;eno da izvr&scaron;ite detaljnu pretragu foruma.';
$txt['usercp_contact_admin'] = 'Kontaktirajte administratora';
$txt['usercp_contact_admin_summary'] = 'Ukoliko imate problem, zahtev, molbu ili sli&#269;no, ovde mo&#382;ete da se obratite administratoru foruma';
$txt['usercp_guest'] = '&#381;ao nam je. Vi ste gost , Nije Vam dozvoljeno da pristupite korisni&#269;kom meniju , Molimo Vas';
$txt['usercp_login'] = 'prijavite se';
$txt['usercp_or'] = 'ili';
$txt['usercp_register'] = 'se registrujte';
$txt['usercp_copyright'] = 'Korisni&#269;ki meni V2.0.1 | Created By Alan S';
$txt['usercp_welcome'] = 'Dobrodo&scaron;li! ';
$txt['usercp_delete_account'] = 'Obri&scaron;i nalog?!';
$txt['usercp_delete_account_summary'] = 'Ne &#382;elite vi&scaron;e da budete deo on-line zajednice? Ovde mo&#382;ete da obri&scaron;ete Va&scaron; nalog.';
$txt['usercp_error'] = 'Gre&scaron;ka!';
$txt['usercp_enable'] = 'Omogu&#263;i korisni&#269;ki meni';
$txt['usercp_disabled'] = 'Korisni&#269;ki meni onemogu&#263;en';
$txt['usercp_clickhere'] = 'Kliknite ovde da pre&#273;ete na ';
$txt['usercp_profile'] = 'Profil strana';
$txt['usercp_field1image'] = 'Slika prvog polja u korisni&#269;kom meniju';
$txt['usercp_field1url'] = 'URL adresa';
$txt['usercp_field1maintext'] = 'Glavni tekst ( npr. Moje poruke )';
$txt['usercp_field1summary'] = 'Detaljnije';
$txt['usercp_field1enable'] = 'Omogu&#263;i prvo polje u korisni&#269;kom meniju';
$txt['usercp_field2image'] = 'Slika drugog polja u korisni&#269;kom meniju';
$txt['usercp_field2url'] = 'URL adresa';
$txt['usercp_field2maintext'] = 'Glavni tekst ( npr. Moje poruke )';
$txt['usercp_field2summary'] = 'Detaljnije';
$txt['usercp_field2enable'] = 'Omogu&#263;i drugo polje u korisni&#269;kom meniju';
$txt['usercp_field3image'] = 'Slika tre&#263;eg polja u korisni&#269;kom meniju';
$txt['usercp_field3url'] = 'URL adresa';
$txt['usercp_field3maintext'] = 'Glavni tekst ( npr. Moje poruke )';
$txt['usercp_field3summary'] = 'Detaljnije';
$txt['usercp_field3enable'] = 'Omogu&#263;i tre&#263;e polje u korisni&#269;kom meniju';
$txt['usercp_field4image'] = 'Slika &#269;etvrtog polja u korisni&#269;kom meniju';
$txt['usercp_field4url'] = 'URL adresa';
$txt['usercp_field4maintext'] = 'Glavni tekst ( npr. Moje poruke )';
$txt['usercp_field4summary'] = 'Detaljnije';
$txt['usercp_field4enable'] = 'Omogu&#263;i &#269;etvrto polje u korisni&#269;kom meniju';
$txt['usercp_usepm'] = 'Koristi privatnu poruku umesto e-maila za kontaktiranje administratora';
$txt['usercp_adminid'] = 'Unesite ID administratora ovde ( Pogledajte link u profilu , ?action=profile;u=x )';
$txt['usercp_switchview'] = 'Omogu&#263;ite korisnicima da pre&#273;u na standardni pregled profila.';
$txt['usercp_enablecontactadmin'] = 'Omogu&#263;ite kontaktiranje administratora putem korisni&#269;kog menija';


This will work fine, I'm using it on my live forum.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: nopity4u on July 24, 2008, 01:54:50 AM
Wow, Thanks! Very detailed and precise. Thanks Alan.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on July 24, 2008, 11:31:48 AM
Found one text problem in English:

$txt['usercp_contact_admin_summary'] = 'Confused? or have a quirey? Contact the admin at this screen';

This should be:

$txt['usercp_contact_admin_summary'] = 'Confused? Or have a query? Contact an admin at this screen';

:-X
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on July 24, 2008, 12:21:29 PM
Quote from: AlenNS on July 23, 2008, 08:57:05 PM
Alan, I've translated your great mod again because of characters. I mean I've just changed č, ć, š, đ, ž with HTML entities which wont make a strange signs.

$txt['usercp'] = 'Korisnički meni';
$txt['usercp_account_info'] = 'Informacije o nalogu';
$txt['usercp_account_info_summary'] = 'Kliknite ovde ukoliko želite da izmenite korisničko ime, e-mail, &scaron;ifru ili druge slične podatke.';
$txt['usercp_look_and_layout'] = 'Opcije izgleda foruma';
$txt['usercp_look_and_layout_summary'] = 'Kliknite ovde da izmenite izgled foruma. Omogućena je izmena izgleda foruma i poruka.';
$txt['usercp_my_theme'] = 'Moje teme';
$txt['usercp_my_theme_summary'] = 'Ovde možete da izmenite temu koju ćete koristiti svaki put kada se prijavite na forum.';
$txt['usercp_my_profile'] = 'Moj profil';
$txt['usercp_my_profile_summary'] = 'Kliknite ovde da izmenite izgled Va&scaron;eg profila koji je vidljiv ostalim korisnicima.';
$txt['usercp_my_stats'] = 'Moja statistika';
$txt['usercp_my_stats_summary'] = 'Ovde možete da vidite broj Va&scaron;ih poruka i ostale aktivnosti s tim u vezi.';
$txt['usercp_my_posts'] = 'Moje poruke';
$txt['usercp_my_posts_summary'] = 'Ovde možete videti sve poruke koje ste napisali od prvog dana.';
$txt['usercp_my_notifications'] = 'Moja obave&scaron;tenja';
$txt['usercp_my_notifications_summary'] = 'Ovde možete da izmenite vrstu i učestalost obave&scaron;tenja koja dobijate putem e-mail kada učestvujete na forumu.';
$txt['usercp_buddies'] = 'Prijatelji';
$txt['usercp_buddies_summary'] = 'Ovde možete da izaberete prijatelje sa foruma i da ih dodate na listu.';
$txt['usercp_message_options'] = 'Opcije mojih poruka';
$txt['usercp_message_options_summary'] = 'Ovde možete da namestite pode&scaron;avanja privatnih poruka koje primate na forumu, kao i da podesite listu onih članova koje želite da ignori&scaron;ete i da od njih ne primate pp.';
$txt['usercp_search'] = 'Pretraga';
$txt['usercp_search_summary'] = 'Ovde vam je omogućeno da izvr&scaron;ite detaljnu pretragu foruma.';
$txt['usercp_contact_admin'] = 'Kontaktirajte administratora';
$txt['usercp_contact_admin_summary'] = 'Ukoliko imate problem, zahtev, molbu ili slično, ovde možete da se obratite administratoru foruma';
$txt['usercp_guest'] = 'Žao nam je. Vi ste gost , Nije Vam dozvoljeno da pristupite korisničkom meniju , Molimo Vas';
$txt['usercp_login'] = 'prijavite se';
$txt['usercp_or'] = 'ili';
$txt['usercp_register'] = 'se registrujte';
$txt['usercp_copyright'] = 'Korisnički meni V2.0.1 | Created By Alan S';
$txt['usercp_welcome'] = 'Dobrodo&scaron;li! ';
$txt['usercp_delete_account'] = 'Obri&scaron;i nalog?!';
$txt['usercp_delete_account_summary'] = 'Ne želite vi&scaron;e da budete deo on-line zajednice? Ovde možete da obri&scaron;ete Va&scaron; nalog.';
$txt['usercp_error'] = 'Gre&scaron;ka!';
$txt['usercp_enable'] = 'Omogući korisnički meni';
$txt['usercp_disabled'] = 'Korisnički meni onemogućen';
$txt['usercp_clickhere'] = 'Kliknite ovde da pređete na ';
$txt['usercp_profile'] = 'Profil strana';
$txt['usercp_field1image'] = 'Slika prvog polja u korisničkom meniju';
$txt['usercp_field1url'] = 'URL adresa';
$txt['usercp_field1maintext'] = 'Glavni tekst ( npr. Moje poruke )';
$txt['usercp_field1summary'] = 'Detaljnije';
$txt['usercp_field1enable'] = 'Omogući prvo polje u korisničkom meniju';
$txt['usercp_field2image'] = 'Slika drugog polja u korisničkom meniju';
$txt['usercp_field2url'] = 'URL adresa';
$txt['usercp_field2maintext'] = 'Glavni tekst ( npr. Moje poruke )';
$txt['usercp_field2summary'] = 'Detaljnije';
$txt['usercp_field2enable'] = 'Omogući drugo polje u korisničkom meniju';
$txt['usercp_field3image'] = 'Slika trećeg polja u korisničkom meniju';
$txt['usercp_field3url'] = 'URL adresa';
$txt['usercp_field3maintext'] = 'Glavni tekst ( npr. Moje poruke )';
$txt['usercp_field3summary'] = 'Detaljnije';
$txt['usercp_field3enable'] = 'Omogući treće polje u korisničkom meniju';
$txt['usercp_field4image'] = 'Slika četvrtog polja u korisničkom meniju';
$txt['usercp_field4url'] = 'URL adresa';
$txt['usercp_field4maintext'] = 'Glavni tekst ( npr. Moje poruke )';
$txt['usercp_field4summary'] = 'Detaljnije';
$txt['usercp_field4enable'] = 'Omogući četvrto polje u korisničkom meniju';
$txt['usercp_usepm'] = 'Koristi privatnu poruku umesto e-maila za kontaktiranje administratora';
$txt['usercp_adminid'] = 'Unesite ID administratora ovde ( Pogledajte link u profilu , ?action=profile;u=x )';
$txt['usercp_switchview'] = 'Omogućite korisnicima da pređu na standardni pregled profila.';
$txt['usercp_enablecontactadmin'] = 'Omogućite kontaktiranje administratora putem korisničkog menija';


This will work fine, I'm using it on my live forum.

Thanks , Will add it to the main page


Quote from: ccbtimewiz on July 24, 2008, 11:31:48 AM
Found one text problem in English:

$txt['usercp_contact_admin_summary'] = 'Confused? or have a quirey? Contact the admin at this screen';

This should be:

$txt['usercp_contact_admin_summary'] = 'Confused? Or have a query? Contact an admin at this screen';

:-X

Thanks , I will include it in the next release.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: erisa on July 24, 2008, 11:19:45 PM
Hi,

Can someone help with my button? It doesn't work.

Quote
                    // Show the [shop] button.
                                   echo '<li><a' , $current_action=='shop' ? ' class="current"' : '' , ' href="', $scripturl, '?action=shop"><span>Shop</span></a></li>';
                 
                      // the [staff] list button
                 
   if ($context['allow_view_stafflist'])
                              echo '<li><a ' , $current_action=='staff' ? ' class="current"' : '' , ' href="', $scripturl, '?action=staff"><span>Bingers</span></a></li>';

                       // The [calendar]!
               if ($context['allow_calendar'])
                  echo '<li><a' , $current_action=='calendar' ? ' class="current"' : '' , ' href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';

                       // Is the user allowed to administrate at all? ([admin])
               if ($context['allow_admin'])
                  echo '<li><a' , $current_action=='admin' ? ' class="current"' : '' , ' href="', $scripturl, '?action=admin"><span>' , $txt[2] , '</span></a></li>';


 
  // Edit Profile... [profile] if usercp is enabled
if ($context['allow_edit_profile'] && $modSettings['usercp_enable'])
echo '<li><a ' , $current_action=='profile' ? ' class="current"' : '' , ' href="', $scripturl, '?action==usercp;u=',$ID_MEMBER,'">' , $txt['usercp'] , '</a></li>';

//Edit Profile... [profile] if usercp is disabled 
if ($context['allow_edit_profile'] && !$modSettings['usercp_enable'])
echo '<li><a ' , $current_action=='profile' ? ' class="current"' : '' , ' href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>';
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on July 24, 2008, 11:28:10 PM
can you please be more specific than "it doesn't work"?

WHAT is not working?
Does the button show at all? is it linking to a broken page? is it displaying incorrectly?

Title: Re: User Control Panel ( User CP ) V3.0
Post by: erisa on July 24, 2008, 11:32:20 PM
It didn't display correctly.

www.bingbingboom.com to see.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on July 25, 2008, 05:53:50 PM
ok...   again, NOT ENOUGH INFORMATION.

Your site is in maintenance mode and not visible.

So, either a screen shot or a MORE COMPREHENSIVE, DETAILED explanation is required.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: erisa on July 26, 2008, 06:42:18 AM
Its cool. I decided to reinstall everything back that's why it is under maintenance,. Thanks for replying anyway Kindred
Title: Re: User Control Panel ( User CP ) V3.0
Post by: searchgr on July 28, 2008, 01:21:32 AM
Today the mod is not working.
I select the user cp tab, but nothing happened.

I tried to uninstall it and i get these test errors:

Type Action Description
1. Execute Modification ./index.php Test failed
2. Execute Modification ./Themes/default/index.template.php Test successful
3. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
4. Delete Tree usercp 
5. Delete File usercp.php 
6. Delete File usercp.template.php


Can you please help?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: searchgr on July 28, 2008, 01:45:28 AM
In the index.templete is this command correct?

<a href="', $scripturl, '?action=usercp;u=',$ID_MEMBER,'">' , $txt['usercp'] , '</a>
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on July 28, 2008, 01:46:15 AM
Looks right to me. :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: searchgr on July 28, 2008, 02:06:10 AM
The modifications.english is as below

txt['usercp'] = 'User CP';
$txt['usercp_account_info'] = 'My Account Info';
$txt['usercp_account_info_summary'] = 'Click here if you want to change your account related information such as username, email, password or other sensitive details.';
$txt['usercp_look_and_layout'] = 'Look & Layout Options';
$txt['usercp_look_and_layout_summary'] = 'Click here to change the way the forum looks for you, options include the look and layout for the boards and posts.';
$txt['usercp_my_theme'] = 'My Theme';
$txt['usercp_my_theme_summary'] = 'This screen will allow you to set your default theme which you wish to use every time you login.';
$txt['usercp_my_profile'] = 'My Profile';
$txt['usercp_my_profile_summary'] = 'Click here to change the way your profile looks and appears to everyone.';
$txt['usercp_my_stats'] = 'My Stats';
$txt['usercp_my_stats_summary'] = 'Here you can check how many posts you have made and other activity related info.';
$txt['usercp_my_posts'] = 'My Posts';
$txt['usercp_my_posts_summary'] = 'This option will show you all the posts you have made since you became a member of this site.';
$txt['usercp_my_notifications'] = 'My Notifications';
$txt['usercp_my_notifications_summary'] = 'This screen will allow you to change the type and frequency of notifications you get via e-mail when participating in threads.';
$txt['usercp_buddies'] = 'Buddies';
$txt['usercp_buddies_summary'] = 'This screen will allow you to select buddies to add to your list.';
$txt['usercp_message_options'] = 'My Message Options';
$txt['usercp_message_options_summary'] = 'This screen will allow you to set your preferences for PMs received on the board and also allow you to ignore people you do not wish to receive PMs from.';
$txt['usercp_search'] = 'Search';
$txt['usercp_search_summary'] = 'This screen will allow you to search for posts made in the board.';
$txt['usercp_contact_admin'] = 'Contact Admin';
$txt['usercp_contact_admin_summary'] = 'Confused? or have a quirey? Contact the admin via email at this screen';
$txt['usercp_guest'] = 'Sorry , Guest , You are not allowed to access the User CP , Please';
$txt['usercp_login'] = 'Login';
$txt['usercp_or'] = 'or';
$txt['usercp_register'] = 'Register';
$txt['usercp_copyright'] = 'User Cp V1.3 | Created By Alan S';
$txt['usercp_welcome'] = 'Welcome ';$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';
Title: Re: User Control Panel ( User CP ) V3.0
Post by: searchgr on July 28, 2008, 02:56:11 AM
ok, i found the backup file of the index.php, applied it and now the mod works.

Still have the following error when i try to uninstall:

Execute Modification ./Themes/default/languages/Modifications.english.php Test failed

Title: Re: User Control Panel ( User CP ) V3.0
Post by: AlenNS on July 28, 2008, 06:13:37 AM
So what? Uninstall it and remove manually all the usercp modifications for that file? ;)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: searchgr on July 28, 2008, 06:19:20 AM
Yes, i will do.

Thanks
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PAPABEAR on July 29, 2008, 11:50:35 AM
Where can I download v1.2 of this mod?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: jeremycollins on July 29, 2008, 01:37:05 PM
I am trying to add a custom profile field, however I cannot get it to work.  My SMF version is 1.1.5, and using core default theme.

I need to add a custom profile field that leads to the Paid Subscriptions page (using paid subscriptions mod). I can add everything in the admin control panel, however I cannot get the URL to work.  I need it to take the logged in user to the paid subscriptions page, but it needs to be for their ID. How can I accomplish this?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on July 29, 2008, 01:51:10 PM
Wow...   Your explanation included everything you want it to do, but was still incredibly cryptic.

What do you want the user to enter into the Custom field?
What code are you USING for your CPF?
Where do you want the CPF to link to?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: God Of Mana on July 29, 2008, 01:55:18 PM
I keep on getting a unexpected double arrow error in modsettings.php when i edit it

Error is in this:


// --- Begin modification - UserCP ---
'usercp' => 'ModifyUserCPSettings',     
// --- End modification ---


But i dont see it...
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on July 29, 2008, 01:57:18 PM
Quote from: God Of Mana on July 29, 2008, 01:55:18 PM
I keep on getting a unexpected double arrow error in modsettings.php when i edit it

Error is in this:


// --- Begin modification - UserCP ---
'usercp' => 'ModifyUserCPSettings',     
// --- End modification ---


But i dont see it...


Can you show us more code?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: God Of Mana on July 29, 2008, 02:11:14 PM
Quote from: ccbtimewiz on July 29, 2008, 01:57:18 PM
Quote from: God Of Mana on July 29, 2008, 01:55:18 PM
I keep on getting a unexpected double arrow error in modsettings.php when i edit it

Error is in this:


// --- Begin modification - UserCP ---
'usercp' => 'ModifyUserCPSettings',     
// --- End modification ---


But i dont see it...


Can you show us more code?

The entire thing:

<?php
/**********************************************************************************
* ModSettings.php                                                                 *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');

/* This file is here to make it easier for installed mods to have settings
and options.  It uses the following functions:

void ModifyFeatureSettings()
// !!!

void ModifyFeatureSettings2()
// !!!

void ModifyBasicSettings()
// !!!

void ModifyLayoutSettings()
// !!!

void ModifyKarmaSettings()
// !!!

Adding new settings to the $modSettings array:
---------------------------------------------------------------------------
// !!!
*/

/* Adding options to one of the setting screens isn't hard.  The basic format for a checkbox is:
array('check', 'nameInModSettingsAndSQL'),

   And for a text box:
array('text', 'nameInModSettingsAndSQL')
   (NOTE: You have to add an entry for this at the bottom!)

   In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,
   and $helptxt['nameInModSettingsAndSQL'] as the help popup description.

Here's a quick explanation of how to add a new item:

 * A text input box.  For textual values.
ie. array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A text input box.  For numerical values.
ie. array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A text input box.  For floating point values.
ie. array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

         * A large text input box. Used for textual values spanning multiple lines.
ie. array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A check box.  Either one or zero. (boolean)
ie. array('check', 'nameInModSettingsAndSQL', null, &$txt['descriptionOfTheOption'],
'OptionalReferenceToHelpAdmin'),

 * A selection box.  Used for the selection of something from a list.
ie. array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => &$txt['displayedValue']),
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.

 * A password input box. Used for passwords, no less!
ie. array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

For each option:
type (see above), variable name, size/possible values, description, helptext.
OR make type 'rule' for an empty string for a horizontal rule.
OR make type 'heading' with a string for a titled section. */

// This function passes control through to the relevant tab.
function ModifyFeatureSettings()
{
global $context$txt$scripturl$modSettings$sourcedir;

// You need to be an admin to edit settings!
isAllowedTo('admin_forum');

// All the admin bar, to make it right.
adminIndex('edit_mods_settings');
loadLanguage('Help');
loadLanguage('ModSettings');

// Will need the utility functions from here.
require_once($sourcedir '/ManageServer.php');

$context['page_title'] = $txt['modSettings_title'];
$context['sub_template'] = 'show_settings';

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
'profile' => 'ModifyProfileSettings',
'sig' => 'ModifySignatureSettings',
// --- Begin modification - SMFBlog ---
'usercp' => 'ModifyUserCPSettings',
// --- End modification ---

// --- Begin modification - SMFBlog ---
'usercp' => 'ModifyUserCPSettings',
      
// --- End modification ---

);

// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];

loadLanguage('CustomProfile');
// Load up all the tabs...
$context['admin_tabs'] = array(
'title' => &$txt['modSettings_title'],
'help' => 'modsettings',
'description' => $txt['smf3'],
'tabs' => array(
'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl '?action=featuresettings;sa=basic;sesc=' $context['session_id'],
),
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl '?action=featuresettings;sa=layout;sesc=' $context['session_id'],
),
'profile' => array(
'title' => $txt['cp_cpfields'],
'href' => $scripturl '?action=featuresettings;sa=profile;sesc=' $context['session_id'],
),

// --- Begin modification - UserCP ---
         
'usercp' => array(
            
'title' => $txt['usercp'],
            
'href' => $scripturl '?action=featuresettings;sa=usercp;sesc=' $context['session_id'],
         ),
         
// --- End modification ---

'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl '?action=featuresettings;sa=karma;sesc=' $context['session_id'],
),
'sig' => array(
'title' => $txt['signature_settings'],
'description' => $txt['signature_settings_desc'],
'href' => $scripturl '?action=featuresettings;sa=sig;sesc=' $context['session_id'],
'is_last' => true,
),
),
);

// Select the right tab based on the sub action.
if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
$context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;

// Call the right function for this sub-acton.
$subActions[$_REQUEST['sa']]();
}

// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{
global $context$txt$scripturl$modSettings$sourcedir;

isAllowedTo('admin_forum');
loadLanguage('ModSettings');

// Quick session check...
checkSession();

require_once($sourcedir '/ManageServer.php');

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
'profile' => 'ModifyProfileSettings',
'sig' => 'ModifySignatureSettings',
// --- Begin modification - UserCP ---
'usercp' => 'ModifyUserCPSettings',
// --- End modification ---

);

// --- Begin modification - UserCP ---
'usercp' => 'ModifyUserCPSettings',      
// --- End modification ---
// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

// Actually call the saving function.
$subActions[$_REQUEST['sa']]();
}

function 
ModifyBasicSettings()
{
global $txt$scripturl$context$settings$sc$modSettings;

$config_vars = array(
// Big Options... polls, sticky, bbc....
array('select''pollMode', array(&$txt['smf34'], &$txt['smf32'], &$txt['smf33'])),
'',
// Basic stuff, user languages, titles, flash, permissions...
array('check''allow_guestAccess'),
array('check''userLanguage'),
array('check''allow_editDisplayName'),
array('check''allow_hideOnline'),
array('check''allow_hideEmail'),
array('check''guest_hideContacts'),
array('check''titlesEnable'),
array('check''enable_buddylist'),
array('text''default_personalText'),
array('int''award_max_width'),
array('int''award_max_height'),
'',
// Badge abd stars
array('text''badge_ownline'),
'',
// Stats, compression, cookies.... server type stuff.
array('text''time_format'),
array('select''number_format', array('1234.00' => '1234.00''1,234.00' => '1,234.00''1.234,00' => '1.234,00''1 234,00' => '1 234,00''1234,00' => '1234,00')),
array('float''time_offset'),
array('int''failed_login_threshold'),
array('int''lastActive'),
array('check''trackStats'),
array('check''hitStats'),
array('check''enableErrorLogging'),
array('check''securityDisable'),
'',
// Reactive on email, and approve on delete
array('check''send_validation_onChange'),
array('check''approveAccountDeletion'),
'',
// Option-ish things... miscellaneous sorta.
array('check''allow_disableAnnounce'),
array('check''disallow_sendBody'),
array('check''modlog_enabled'),
array('check''queryless_urls'),
'',
// Width/Height image reduction.
array('int''max_image_width'),
array('int''max_image_height'),
'',
// Reporting of personal messages?
array('check''enableReportPM'),
);

// Saving?
if (isset($_GET['save']))
{
// Fix PM settings.
$_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];
$save_vars $config_vars;
$save_vars[] = array('text''pm_spam_settings');

saveDBSettings($save_vars);

writeLog();
redirectexit('action=featuresettings;sa=basic');
}

// Hack for PM spam settings.
list ($modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(','$modSettings['pm_spam_settings']);
$config_vars[] = array('int''max_pm_recipients');
$config_vars[] = array('int''pm_posts_verification');
$config_vars[] = array('int''pm_posts_per_hour');

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=basic';
$context['settings_title'] = $txt['mods_cat_features'];

prepareDBSettingContext($config_vars);
}

function 
ModifyLayoutSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Compact pages?
array('check''compactTopicPagesEnable'),
array('int''compactTopicPagesContiguous'null$txt['smf235'] . '<div class="smalltext">' str_replace(' ''&nbsp;''"3" ' $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' str_replace(' ''&nbsp;''"5" ' $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
'',
// Stuff that just is everywhere - today, search, online, etc.
array('select''todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),
array('check''topbottomEnable'),
array('check''onlineEnable'),
array('check''enableVBStyleLogin'),
'',
// Pagination stuff.
array('int''defaultMaxMembers'),
'',
// This is like debugging sorta.
array('check''timeLoadPageEnable'),
array('check''disableHostnameLookup'),
'',
// Who's online.
array('check''who_enabled'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=layout');

loadUserSettings();
writeLog();
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=layout';
$context['settings_title'] = $txt['mods_cat_layout'];

prepareDBSettingContext($config_vars);
}

function 
ModifyProfileSettings()
{
global $sourcedir;
require_once($sourcedir '/CustomProfile.php');
CustomFieldSettings();
}

function 
ModifyKarmaSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Karma - On or off?
array('select''karmaMode'explode('|'$txt['smf64'])),
'',
// Who can do it.... and who is restricted by time limits?
array('int''karmaMinPosts'),
array('float''karmaWaitTime'),
array('check''karmaTimeRestrictAdmins'),
'',
// What does it look like?  [smite]?
array('text''karmaLabel'),
array('text''karmaApplaudLabel'),
array('text''karmaSmiteLabel'),
'',
array('check''karma_on_topic'),
array('int''karma_count_on_topic'),
array('check''karma_on_post'),
array('int''karma_count_on_post'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=karma');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];

prepareDBSettingContext($config_vars);
}

// You'll never guess what this function does...
function ModifySignatureSettings()
{
global $context$txt$modSettings$db_prefix$sig_start;

// Applying to ALL signatures?!!
if (isset($_GET['apply']))
{
$sig_start time();
// This is horrid - but I suppose some people will want the option to do it.
$_GET['step'] = isset($_GET['step']) ? (int) $_GET['step'] : 0;
list ($sig_limits$sig_bbc) = explode(':'$modSettings['signature_settings']);
$sig_limits explode(','$sig_limits);
$disabledTags = !empty($sig_bbc) ? explode(','$sig_bbc) : array();
$done false;

$request db_query("
SELECT MAX(ID_MEMBER)
FROM 
{$db_prefix}members"__FILE____LINE__);
list ($context['max_member']) = mysql_fetch_row($request);
mysql_free_result($request);

while (!$done)
{
$changes = array();

$request db_query("
SELECT ID_MEMBER, signature
FROM 
{$db_prefix}members
WHERE ID_MEMBER BETWEEN 
$_GET[step] AND $_GET[step] + 49"__FILE____LINE__);
while ($row mysql_fetch_assoc($request))
{
// Apply all the rules we can realistically do.
$sig strtr($row['signature'], array('<br />' => "\n"));

// Max characters...
if (!empty($sig_limits[1]))
$sig substr($sig0$sig_limits[1]);
// Max lines...
if (!empty($sig_limits[2]))
{
$count 0;
for ($i 0$i strlen($sig); $i++)
{
if ($sig{$i} == "\n")
{
$count++;
if ($count $sig_limits[2])
$sig substr($sig0$i) . strtr(substr($sig$i), array("\n" => ' '));
}
}
}
// Max font size...
if (!empty($sig_limits[7]) && preg_match_all('~\[size=(\d+)~i'$sig$matches) !== false && isset($matches[1]))
{
foreach ($matches[1] as $key => $size)
if ($size $sig_limits[7])
{
$sig str_replace($matches[0][$key], '[size=' $sig_limits[7], $sig);
}
}

// Stupid images - this is stupidly, stupidly challenging.
if ((!empty($sig_limits[3]) || !empty($sig_limits[5]) || !empty($sig_limits[6])))
{
$replaces = array();
$img_count 0;
// Try to find all the images!
if (preg_match_all('~\[img(\s+width=([\d]+))?(\s+height=([\d]+))?(\s+width=([\d]+))?\s*\](?:<br />)*([^<">]+?)(?:<br />)*\[/img\]~i'$sig$matches) !== false)
{
foreach ($matches[0] as $key => $image)
{
$width = -1$height = -1;
$img_count++;
// Too many images?
if (!empty($sig_limits[3]) && $img_count $sig_limits[3])
{
$replaces[$image] = '';
break;
}

// Does it have predefined restraints? Width first.
if ($matches[6][$key])
$matches[2][$key] = $matches[6][$key];
if ($matches[2][$key] && $sig_limits[5] && $matches[2][$key] > $sig_limits[5])
{
$width $sig_limits[5];
$matches[4][$key] = $matches[4][$key] * ($width $matches[2][$key]);
}
elseif ($matches[2][$key])
$width $matches[2][$key];
// ... and height.
if ($matches[4][$key] && $sig_limits[6] && $matches[4][$key] > $sig_limits[6])
{
$height $sig_limits[6];
if ($width != -1)
$width $width * ($height $matches[4][$key]);
}
elseif ($matches[4][$key])
$height $matches[4][$key];

// If the dimensions are still not fixed - we need to check the actual image.
if (($width == -&& $sig_limits[5]) || ($height == -&& $sig_limits[6]))
{
$sizes url_image_size($matches[7][$key]);
if (is_array($sizes))
{
// Too wide?
if ($sizes[0] > $sig_limits[5] && $sig_limits[5])
{
$width $sig_limits[5];
$sizes[1] = $sizes[1] * ($width $sizes[0]);
}
// Too high?
if ($sizes[1] > $sig_limits[6] && $sig_limits[6])
{
$height $sig_limits[6];
if ($width == -1)
$width $sizes[0];
$width $width * ($height $sizes[1]);
}
elseif ($width != -1)
$height $sizes[1];
}
}

// Did we come up with some changes? If so remake the string.
if ($width != -|| $height != -1)
$replaces[$image] = '[img' . ($width != -' width=' round($width) : '') . ($height != -' height=' round($height) : '') . ']' $matches[7][$key] . '[/img]';
}
if (!empty($replaces))
$sig str_replace(array_keys($replaces), array_values($replaces), $sig);
}
}
// Try to fix disabled tags.
if (!empty($disabledTags))
{
$sig preg_replace('~\[(' implode('|'$disabledTags) . ').+?\]~i'''$sig);
$sig preg_replace('~\[/(' implode('|'$disabledTags) . ')\]~i'''$sig);
}

$sig strtr($sig, array("\n" => '<br />'));
if ($sig != $row['signature'])
$changes[$row['ID_MEMBER']] = addslashes($sig);
}
if (mysql_num_rows($request) == 0)
$done true;
mysql_free_result($request);

// Do we need to delete what we have?
if (!empty($changes))
{
foreach ($changes as $id => $sig)
db_query("
UPDATE 
{$db_prefix}members
SET signature = '
$sig'
WHERE ID_MEMBER = 
$id
LIMIT 1"
__FILE____LINE__);
}

$_GET['step'] += 50;
if (!$done)
pauseSignatureApplySettings();
}
}

// Setup the template.
$context['sub_template'] = 'edit_signature_settings';
$context['page_title'] = $txt['signature_settings'];

// Load all the signature settings.
list ($sig_limits$sig_bbc) = explode(':'$modSettings['signature_settings']);
$sig_limits explode(','$sig_limits);
$disabledTags = !empty($sig_bbc) ? explode(','$sig_bbc) : array();

$context['signature_settings'] = array(
'enabled' => isset($sig_limits[0]) ? $sig_limits[0] : 0,
'max_length' => isset($sig_limits[1]) ? $sig_limits[1] : 0,
'max_lines' => isset($sig_limits[2]) ? $sig_limits[2] : 0,
'max_images' => isset($sig_limits[3]) ? $sig_limits[3] : 0,
'max_smileys' => isset($sig_limits[4]) ? $sig_limits[4] : 0,
'max_image_width' => isset($sig_limits[5]) ? $sig_limits[5] : 0,
'max_image_height' => isset($sig_limits[6]) ? $sig_limits[6] : 0,
'max_font_size' => isset($sig_limits[7]) ? $sig_limits[7] : 0,
);

// Ask parse_bbc() for its bbc code list.
$temp parse_bbc(false);
$bbcTags = array();
foreach ($temp as $tag)
$bbcTags[] = $tag['tag'];

$bbcTags array_unique($bbcTags);
$totalTags count($bbcTags);

// The number of columns we want to show the BBC tags in.
$numColumns 3;

// In case we're saving.
if (isset($_POST['save_settings']))
{
checkSession();

if ( !isset($_POST['enabledTags']) )
$_POST['enabledTags'] = array();
elseif ( !is_array($_POST['enabledTags']) )
$_POST['enabledTags'] = array($_POST['enabledTags']);

$sig_limits = array();
foreach ($context['signature_settings'] as $key => $value)
$sig_limits[] = !empty($_POST[$key]) ? max(1, (int) $_POST[$key]) : 0;

$sig_settings implode(','$sig_limits) . ':' implode(','array_diff($bbcTags$_POST['enabledTags']));

// Update the actual setting.
updateSettings(array(
'signature_settings' => $sig_settings,
));

redirectexit('action=featuresettings;sa=sig');
}

$context['bbc_columns'] = array();
$tagsPerColumn ceil($totalTags $numColumns);

$col 0;
$i 0;
foreach ($bbcTags as $tag)
{
if ($i $tagsPerColumn == && $i != 0)
$col++;

$context['bbc_columns'][$col][] = array(
'tag' => $tag,
'is_enabled' => !in_array($tag$disabledTags),
// !!! 'tag_' . ?
'show_help' => isset($helptxt[$tag]),
);

$i++;
}

$context['bbc_all_selected'] = empty($disabledTags);
}

// Just pause the signature applying thing.
function pauseSignatureApplySettings()
{
global $context$txt$sig_start;

// Try get more time...
@set_time_limit(600);
if (function_exists('apache_reset_timeout'))
apache_reset_timeout();

// Have we exhausted all the time we allowed?
if (time() - array_sum(explode(' '$sig_start)) < 3)
return;

$context['continue_get_data'] = '?action=featuresettings;sa=sig;apply;step=' $_GET['step'];
$context['page_title'] = $txt['not_done_title'];
$context['continue_post_data'] = '';
$context['continue_countdown'] = '2';
$context['sub_template'] = 'not_done';

// Specific stuff to not break this template!
$context['admin_tabs']['tabs']['sig']['is_selected'] = true;

// Get the right percent.
$context['continue_percent'] = round(($_GET['step'] / $context['max_member']) * 100);

// Never more than 100%!
$context['continue_percent'] = min($context['continue_percent'], 100);

obExit();
}


// --- Begin modification - UserCP ---
function ModifyUserCPSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
array('check''usercp_enable'),
           array (
'check''usercp_enablecontactadmin'),
           array(
'check''usercp_switchview'),
           array(
'check''usercp_usepm'),
           array(
'int''usercp_adminid'),
            
'',
             array(
'text''usercp_field1image'),
             array(
'text''usercp_field1url'),
             array(
'text''usercp_field1maintext'),
             array(
'text''usercp_field1summary'),
             array(
'check''usercp_field1enable'),
             
'',
             array(
'text''usercp_field2image'),
             array(
'text''usercp_field2url'),
             array(
'text''usercp_field2maintext'),
             array(
'text''usercp_field2summary'),
             array(
'check''usercp_field2enable'),
             
'',
             array(
'text''usercp_field3image'),
             array(
'text''usercp_field3url'),
             array(
'text''usercp_field3maintext'),
             array(
'text''usercp_field3summary'),
             array(
'check''usercp_field3enable'),
             
'',
             array(
'text''usercp_field4image'),
             array(
'text''usercp_field4url'),
             array(
'text''usercp_field4maintext'),
             array(
'text''usercp_field4summary'),
             array(
'check''usercp_field4enable'),
             
'',
   
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=usercp');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=usercp';
$context['settings_title'] = $txt['usercp'];

prepareDBSettingContext($config_vars);
}
// --- End modification ---

// --- Begin modification - UserCP ---
function ModifyUserCPSettings()
{
   global 
$txt$scripturl$context$settings$sc;
 
   
$config_vars = array(
         array(
'check''usercp_enable'),
           array (
'check''usercp_enablecontactadmin'),
           array(
'check''usercp_switchview'),
           array(
'check''usercp_usepm'),
           array(
'int''usercp_adminid'),
            
'',
             array(
'text''usercp_field1image'),
             array(
'text''usercp_field1url'),
             array(
'text''usercp_field1maintext'),
             array(
'text''usercp_field1summary'),
             array(
'check''usercp_field1enable'),
             
'',
             array(
'text''usercp_field2image'),
             array(
'text''usercp_field2url'),
             array(
'text''usercp_field2maintext'),
             array(
'text''usercp_field2summary'),
             array(
'check''usercp_field2enable'),
             
'',
             array(
'text''usercp_field3image'),
             array(
'text''usercp_field3url'),
             array(
'text''usercp_field3maintext'),
             array(
'text''usercp_field3summary'),
             array(
'check''usercp_field3enable'),
             
'',
             array(
'text''usercp_field4image'),
             array(
'text''usercp_field4url'),
             array(
'text''usercp_field4maintext'),
             array(
'text''usercp_field4summary'),
             array(
'check''usercp_field4enable'),
             
'',
   
);
 
   
// Saving?
   
if (isset($_GET['save']))
   {
      
saveDBSettings($config_vars);
      
redirectexit('action=featuresettings;sa=usercp');
   }
 
   
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=usercp';
   
$context['settings_title'] = $txt['usercp'];
 
   
prepareDBSettingContext($config_vars);
}
// --- End modification ---

?>

Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on July 29, 2008, 02:26:00 PM
I fixed it all up, you had SMF Blogs in the way.

I've attached the file you need.  ;)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: God Of Mana on July 29, 2008, 02:42:25 PM
Quote from: ccbtimewiz on July 29, 2008, 02:26:00 PM
I fixed it all up, you had SMF Blogs in the way.

I've attached the file you need.  ;)

You sure? Because the origional file name was modsettings. That was the file i posted as a code.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on July 29, 2008, 03:02:19 PM
Opps... sorry, that IS modsettings.php, I just named it wrong. Sorry, I've been editing like 200 index.template.php files today. ^^;;
Title: Re: User Control Panel ( User CP ) V3.0
Post by: God Of Mana on July 29, 2008, 03:04:15 PM
Quote from: ccbtimewiz on July 29, 2008, 03:02:19 PM
Opps... sorry, that IS modsettings.php, I just named it wrong. Sorry, I've been editing like 200 index.template.php files today. ^^;;

Thats ok, almost replaced the real index.template.php with it. lol
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on July 29, 2008, 03:06:12 PM
I updated the name of the file in my post above. Does the fix work?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: God Of Mana on July 29, 2008, 03:10:36 PM
Quote from: ccbtimewiz on July 29, 2008, 03:06:12 PM
I updated the name of the file in my post above. Does the fix work?


Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/brandon/public_html/forums/Sources/ModSettings.php on line 403
Sighs...what now
Title: Re: User Control Panel ( User CP ) V3.0
Post by: God Of Mana on July 29, 2008, 03:27:28 PM
I uninstalled and reinstalled it:

QuoteExecute Modification     ./index.php     Test successful
2.    Execute Modification    ./Themes/default/index.template.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
6.    Extract Tree    ./Themes/default/images/usercp    
7.    Extract File    ./Sources/usercp.php    
8.    Extract File    ./Themes/default/usercp.template.php    
9.    Execute Code    install.php

Installed sucessfully but in the option is not there:

* Basic Features | Layout and Options |  | Karma 
                                                      ^
                                                      |
Nothing!!------------------------------|
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on July 29, 2008, 03:42:17 PM
God of Mana, please make sure all your txt[] installed correctly. Look in modifications.english.php.

Also make sure your forum is set to "english" and not "utf8-english".
Title: Re: User Control Panel ( User CP ) V3.0
Post by: God Of Mana on July 29, 2008, 04:27:10 PM
Quote from: ccbtimewiz on July 29, 2008, 03:42:17 PM
God of Mana, please make sure all your txt[] installed correctly. Look in modifications.english.php.

Also make sure your forum is set to "english" and not "utf8-english".

Here it is I think it is ok.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on July 29, 2008, 04:33:08 PM
Quote from: God Of Mana on July 29, 2008, 04:27:10 PM
Quote from: ccbtimewiz on July 29, 2008, 03:42:17 PM
God of Mana, please make sure all your txt[] installed correctly. Look in modifications.english.php.

Also make sure your forum is set to "english" and not "utf8-english".

Here it is I think it is ok.

Those appear to be fine. However did you set your forum to English and not utf8-english?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: God Of Mana on July 29, 2008, 04:43:47 PM
Quote from: ccbtimewiz on July 29, 2008, 04:33:08 PM
Quote from: God Of Mana on July 29, 2008, 04:27:10 PM
Quote from: ccbtimewiz on July 29, 2008, 03:42:17 PM
God of Mana, please make sure all your txt[] installed correctly. Look in modifications.english.php.

Also make sure your forum is set to "english" and not "utf8-english".

Here it is I think it is ok.

Those appear to be fine. However did you set your forum to English and not utf8-english?

How do i check that?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on July 29, 2008, 04:44:44 PM
Admin > Configuration > Server Settings => Default Forum Language [ENGLISH]
Title: Re: User Control Panel ( User CP ) V3.0
Post by: God Of Mana on July 29, 2008, 04:50:30 PM
Quote from: ccbtimewiz on July 29, 2008, 04:44:44 PM
Admin > Configuration > Server Settings => Default Forum Language [ENGLISH]

Mines in english
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on July 29, 2008, 04:53:29 PM
Are you using the default theme? If not, does your theme have a /languages directory? If so, does that directory contain modifications.english.php?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: God Of Mana on July 29, 2008, 04:57:06 PM
Quote from: ccbtimewiz on July 29, 2008, 04:53:29 PM
Are you using the default theme? If not, does your theme have a /languages directory? If so, does that directory contain modifications.english.php?

Im using kelt it v3, it has a language file.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on July 29, 2008, 04:59:04 PM
Quote from: God Of Mana on July 29, 2008, 04:57:06 PM
Quote from: ccbtimewiz on July 29, 2008, 04:53:29 PM
Are you using the default theme? If not, does your theme have a /languages directory? If so, does that directory contain modifications.english.php?

Im using kelt it v3, it has a language file.

Alright, there's the problem. put modifications.english.php into that language directory.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: God Of Mana on July 29, 2008, 05:02:52 PM
Quote from: ccbtimewiz on July 29, 2008, 04:59:04 PM
Quote from: God Of Mana on July 29, 2008, 04:57:06 PM
Quote from: ccbtimewiz on July 29, 2008, 04:53:29 PM
Are you using the default theme? If not, does your theme have a /languages directory? If so, does that directory contain modifications.english.php?

Im using kelt it v3, it has a language file.

Alright, there's the problem. put modifications.english.php into that language directory.

Dude.... YOU FREAKIN rock! Thanks so much. Hm, where's the +rep button when you need it..
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on July 29, 2008, 05:09:45 PM
Quote from: God Of Mana on July 29, 2008, 05:02:52 PM
Quote from: ccbtimewiz on July 29, 2008, 04:59:04 PM
Quote from: God Of Mana on July 29, 2008, 04:57:06 PM
Quote from: ccbtimewiz on July 29, 2008, 04:53:29 PM
Are you using the default theme? If not, does your theme have a /languages directory? If so, does that directory contain modifications.english.php?

Im using kelt it v3, it has a language file.

Alright, there's the problem. put modifications.english.php into that language directory.

Dude.... YOU FREAKIN rock! Thanks so much. Hm, where's the +rep button when you need it..


Glad to see it working.  :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: God Of Mana on July 29, 2008, 05:16:31 PM
In the screenie preivew, it shows 6 slots, but only 4 are shown, how do i enable more?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on July 29, 2008, 06:36:11 PM
There are only 4 custom fields included.

Use the instructions included here to add extra ones.

http://www.simplemachines.org/community/index.php?topic=167975.msg1445809#msg1445809
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PAPABEAR on July 29, 2008, 10:27:51 PM
Quote from: PAPABEAR on July 29, 2008, 11:50:35 AM
Where can I download v1.2 of this mod?

???
Title: Re: User Control Panel ( User CP ) V3.0
Post by: AlenNS on July 30, 2008, 06:29:37 AM
Probably nowhere if developer don't have a copy or someone else who downloaded earlier.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: searchgr on July 30, 2008, 11:21:06 AM
i have the v1.3 if you are interested.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on July 30, 2008, 11:22:19 AM
Quote from: PAPABEAR on July 29, 2008, 10:27:51 PM
Quote from: PAPABEAR on July 29, 2008, 11:50:35 AM
Where can I download v1.2 of this mod?

???

Why do you want version 1.2 , Its a outdated version of the mod?

I think i may have it on another HDD , i will take a look.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PAPABEAR on July 30, 2008, 12:30:38 PM
I have 1.2 installed on a buddy's 1.1.5 forum and it works great there. I try installing this new version on my 1.1.5 and it fails. That's why.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on July 30, 2008, 12:53:46 PM
Then you need to make manual edits to the file thats fails. There is no point in using a outdated version just because one of the operations fails when you can just use the newest version which has more features by just making a few simple edits which are detailed in the Mod parser on the mod site.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: callteg4 on August 01, 2008, 11:16:33 AM
I get this error when installing 3.     Execute Modification     ./Sources/ModSettings.php     Test failed

it works on my default theme but not on my custom one any ideas
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 01, 2008, 12:40:04 PM
Use the Mod Parser on the mod site ( UserCP Page ) to get the manual edits to modSettings.php

Use this

http://www.simplemachines.org/community/index.php?topic=167975.msg1386370#msg1386370

To see if your themes there and make the edits to it.

If its not give me the name and i will make a guide for it.

Title: Re: User Control Panel ( User CP ) V3.0
Post by: PAPABEAR on August 01, 2008, 02:02:28 PM
I have did the edits for the ModSettings.php shown here (http://custom.simplemachines.org/mods/index.php?mod=698) and still get the "Execute Modification /Sources/ModSettings.php Test failed" error when running the package installer after I have deleted it and reuploaded it again.

What's up?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on August 01, 2008, 02:03:28 PM
Quote from: PAPABEAR on August 01, 2008, 02:02:28 PM
I have did the edits for the ModSettings.php shown here (http://custom.simplemachines.org/mods/index.php?mod=698) and still get the "Execute Modification /Sources/ModSettings.php Test failed" error when running the package installer after I have deleted it and reuploaded it again.

What's up?

You need to install the mod BEFORE making the edits to the files.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: callteg4 on August 01, 2008, 02:13:26 PM
Ok i now have it all working on my site now I just cant get the images to show in the profile page with my theme
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PAPABEAR on August 01, 2008, 02:16:47 PM
Cool...I did that and now it shows nicely on the default theme. I will edit the index.template.php files for my other themes now.

Thanks man.

Pauls: Maybe what I am going to do? On the first page in this thread...it shows this:

Quote from: Alan S on April 29, 2007, 11:35:54 AM
To Make It Work With A Custom Theme

Index.Template.Php

Find
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>

Replace With
<a href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a>

If there is a error on install on index.template.php ......

Install the package anyway , The most likely cause of the error is that you have another mod installed and that a bit of the code was not found , the most likely code will be this so lets fix it manualy.

Index.template.php

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

Add After
'usercp',
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on August 01, 2008, 02:17:23 PM
Quote from: Pauls on August 01, 2008, 02:13:26 PM
Ok i now have it all working on my site now I just cant get the images to show in the profile page with my theme

Make sure all the images are in your /images directory of your theme.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: callteg4 on August 01, 2008, 02:33:04 PM
Quote from: ccbtimewiz on August 01, 2008, 02:17:23 PM
Quote from: Pauls on August 01, 2008, 02:13:26 PM
Ok i now have it all working on my site now I just cant get the images to show in the profile page with my theme

Make sure all the images are in your /images directory of your theme.

Ok this is where i get confussed I know where the image are http://mysite/Themes/default/images/usercp/kivio.png but i dont know how to get the usercp to my theme sorry for being stupid but i am new at all this
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PAPABEAR on August 01, 2008, 02:39:24 PM
The Mod appears to be in place and working but I do have a problem though. Text is missing.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PAPABEAR on August 01, 2008, 02:43:41 PM
Quote from: Pauls on August 01, 2008, 02:33:04 PM
Quote from: ccbtimewiz on August 01, 2008, 02:17:23 PM
Quote from: Pauls on August 01, 2008, 02:13:26 PM
Ok i now have it all working on my site now I just cant get the images to show in the profile page with my theme

Make sure all the images are in your /images directory of your theme.

Ok this is where i get confussed I know where the image are http://mysite/Themes/default/images/usercp/kivio.png but i dont know how to get the usercp to my theme sorry for being stupid but i am new at all this

Pauls. You have the usercp image directory in your package. Extract it onto your desktop or wherever. Then upload that whole usercp directory (the one with all the png files in it) to your Themes/YourThemeName/images/ directory. Do this for each theme you have. It's already in the default theme's image directory as you can see.

ps...when i say directory...I mean folder. We call folders directories.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on August 01, 2008, 02:44:52 PM
You also need to do it using an FTP protocol connection.

How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PAPABEAR on August 01, 2008, 02:48:14 PM
Uht oh! More Problems!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: callteg4 on August 01, 2008, 02:51:04 PM
Quote from: PAPABEAR on August 01, 2008, 02:43:41 PM
Quote from: Pauls on August 01, 2008, 02:33:04 PM
Quote from: ccbtimewiz on August 01, 2008, 02:17:23 PM
Quote from: Pauls on August 01, 2008, 02:13:26 PM
Ok i now have it all working on my site now I just cant get the images to show in the profile page with my theme

Make sure all the images are in your /images directory of your theme.

Ok this is where i get confussed I know where the image are http://mysite/Themes/default/images/usercp/kivio.png but i dont know how to get the usercp to my theme sorry for being stupid but i am new at all this

Pauls. You have the usercp image directory in your package. Extract it onto your desktop or wherever. Then upload that whole usercp directory (the one with all the png files in it) to your Themes/YourThemeName/images/ directory. Do this for each theme you have. It's already in the default theme's image directory as you can see.

ps...when i say directory...I mean folder. We call folders directories.

Thank you so much m8 I did that and i now have my images I am getting good at this thanks again
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PAPABEAR on August 01, 2008, 02:58:33 PM
Here are my problems now:


QuoteI tried

Quote from: Alan S on April 29, 2007, 11:35:54 AM
To Make It Work With A Custom Theme

Index.Template.Php

Find
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>

Replace With
<a href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a>

And it took away my custom profile button up top.

I just replaced it with:
<a href="', $scripturl, '?action=usercp">' , $txt[79] , '</a>
and my custom profile button appeared again.


The Mod appears to be in place and working but I do have a problem though. Text is missing.

(http://i53.photobucket.com/albums/g49/subzbucket/errorucp.jpg)

and...


QuoteNow when I try to goto Admin - Fearures & Settings, I get this: Fatal error: Cannot redeclare modifyusercpsettings() (previously declared in /home/content/m/y/n/myname/html/mysite/Sources/ModSettings.php:700) in /home/content/m/y/n/myname/html/mysite/Sources/ModSettings.php on line 750

Can anybody help me with the above two problems?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on August 01, 2008, 03:31:15 PM
Attach your modsettings.php and modifications.english.php file and I'll fix them.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PAPABEAR on August 01, 2008, 03:38:23 PM
Quote from: ccbtimewiz on August 01, 2008, 03:31:15 PM
Attach your modsettings.php and modifications.english.php file and I'll fix them.

I just copied the modifications.english.php file over to the custom themes and they are now set with the descriptions when at the profile. Silly me...I should have knew that. Thanks.

But the other error is still there when trying to access my Features & Options. Here is my modsettings.php
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on August 01, 2008, 03:40:26 PM
Alright, I've repaired your file. I've attached it.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PAPABEAR on August 01, 2008, 03:55:17 PM
Thanks man. What was it?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on August 01, 2008, 04:27:05 PM
Quote from: PAPABEAR on August 01, 2008, 03:55:17 PM
Thanks man. What was it?

It had duplicate functions. The mod installed twice.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PAPABEAR on August 01, 2008, 10:36:08 PM
thanks
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kylezz on August 02, 2008, 12:45:16 AM
Ok. I am new to this so i do not know what to do. What do i run? I exstract. But then in evrey single time I try it will not work. I don't find the file. I do not know what the name is under. Please tell me.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: foobs on August 02, 2008, 05:58:02 AM
Can you make a guide for this theme please http://custom.simplemachines.org/themes/index.php?lemma=20

Much appreciated
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 03, 2008, 12:44:56 PM
Quote from: Kylezz on August 02, 2008, 12:45:16 AM
Ok. I am new to this so i do not know what to do. What do i run? I exstract. But then in evrey single time I try it will not work. I don't find the file. I do not know what the name is under. Please tell me.

Upload the .Zip file you downloaded via the package manager on your forum.

Quote from: foobs on August 02, 2008, 05:58:02 AM
Can you make a guide for this theme please http://custom.simplemachines.org/themes/index.php?lemma=20

Much appreciated

Saf-Multicolor added

http://www.simplemachines.org/community/index.php?topic=167975.msg1386370#msg1386370
Title: Re: User Control Panel ( User CP ) V3.0
Post by: foobs on August 03, 2008, 01:54:35 PM
Worked perfectly, thanks
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PAPABEAR on August 07, 2008, 05:41:27 PM
If we click the classic view link on the bottom, then how do we get your awesome UserCP back?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 08, 2008, 03:03:19 PM
Quote from: PAPABEAR on August 07, 2008, 05:41:27 PM
If we click the classic view link on the bottom, then how do we get your awesome UserCP back?

The next time you click on the user cp button it should be back to the UserCP view.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: bfeo on August 10, 2008, 10:54:18 PM
I have 1.1.5

Could you add it for me, please?  I tried another Mystic Jade theme in this thread, but it was far different from my settings, and had an arcade without a tinyportal.

Title: Re: User Control Panel ( User CP ) V3.0
Post by: MoreBloodWine on August 11, 2008, 09:11:07 AM
Hey Alan, Great mod but two questions...

1. When the button My Profile is clicked it takes me to index.php?action=profile;u=1;sa=forumProfile ... how can I instead have it take me to index.php?action=profile;u=1;sa=summary

Just makes more sense to me to have the My Profile button take you to the physical profile and not an options page. It seems that most people know how to edit but are to stupid to use the summary link to go back to the profile itself.

2. Is it possible to make the non transparent images transparent like the few that are there now ? Personally images that have a light blue non transparent background (default color) dont sit (look) to well with dark background themes.

Edit:

Coupld of things that I feel should be addressed / looked at...

1. If members dont have the permission to delete their account then the delete my account button should be hidden.

2. Similar to number one, if buddy lists arent enabled the button should be hidden.

3. Similar to one and two, if useres arent allowed to select their own theme the button should be hidden. ( I dont allow users to select a theme on any of my sites so having the button there that takes them right to the theme menu defeats the purpose. )
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 13, 2008, 06:43:19 PM
Quote from: MoreBloodWine on August 11, 2008, 09:11:07 AM
Hey Alan, Great mod but two questions...

1. When the button My Profile is clicked it takes me to index.php?action=profile;u=1;sa=forumProfile ... how can I instead have it take me to index.php?action=profile;u=1;sa=summary

Just makes more sense to me to have the My Profile button take you to the physical profile and not an options page. It seems that most people know how to edit but are to stupid to use the summary link to go back to the profile itself.

2. Is it possible to make the non transparent images transparent like the few that are there now ? Personally images that have a light blue non transparent background (default color) dont sit (look) to well with dark background themes.

Edit:

Coupld of things that I feel should be addressed / looked at...

1. If members dont have the permission to delete their account then the delete my account button should be hidden.

2. Similar to number one, if buddy lists arent enabled the button should be hidden.

3. Similar to one and two, if useres arent allowed to select their own theme the button should be hidden. ( I dont allow users to select a theme on any of my sites so having the button there that takes them right to the theme menu defeats the purpose. )

Hey

1) To change the link to ?action=summary

/Themes/default/usercp.template.php

Find

<a href="', $scripturl, '?action=profile;u=', $ID_MEMBER,';sa=forumProfile">

Replace with

<a href="', $scripturl, '?action=profile;u=', $ID_MEMBER, ';sa=summary">


Save and reupload and the change should be there.

2) To make the images transparent , you would have to open up the images in a photo editor and cut out the background. For now i am not going to change it but in the next release i might include the changed images. The next release probably wont be until SMF 2.0 comes out of beta though unless there are bug fixs to be made.


As for the things you should be addressed.
I am aware of that permissions issue , However it wouldnt be that simple to include those permissions because if one of those options was disabled there would be a big gap in the layout and since the usercp uses tables the images wouldnt align automaticaly the coding would be complex to get it done. It would take a good deal of coding to make the images align correctly if those options were disabled.

Title: Re: User Control Panel ( User CP ) V3.0
Post by: MoreBloodWine on August 14, 2008, 04:42:13 AM
So your saying none of the following is possible them ? I mean it does make perfect sense.

QuoteCoupld of things that I feel should be addressed / looked at...

1. If members dont have the permission to delete their account then the delete my account button should be hidden.

2. Similar to number one, if buddy lists arent enabled the button should be hidden.

3. Similar to one and two, if useres arent allowed to select their own theme the button should be hidden. ( I dont allow users to select a theme on any of my sites so having the button there that takes them right to the theme menu defeats the purpose. )
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 14, 2008, 12:42:09 PM
Quote from: MoreBloodWine on August 14, 2008, 04:42:13 AM
So your saying none of the following is possible them ? I mean it does make perfect sense.

QuoteCoupld of things that I feel should be addressed / looked at...

1. If members dont have the permission to delete their account then the delete my account button should be hidden.

2. Similar to number one, if buddy lists arent enabled the button should be hidden.

3. Similar to one and two, if useres arent allowed to select their own theme the button should be hidden. ( I dont allow users to select a theme on any of my sites so having the button there that takes them right to the theme menu defeats the purpose. )

No i they are perfectly possible , It would just involve a good bit of extra coding so the other icons would arrange to the grid if 1 or more of those options were enabled.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MoreBloodWine on August 14, 2008, 04:43:55 PM
Quote from: Alan S on August 14, 2008, 12:42:09 PM
Quote from: MoreBloodWine on August 14, 2008, 04:42:13 AM
So your saying none of the following is possible them ? I mean it does make perfect sense.

QuoteCoupld of things that I feel should be addressed / looked at...

1. If members dont have the permission to delete their account then the delete my account button should be hidden.

2. Similar to number one, if buddy lists arent enabled the button should be hidden.

3. Similar to one and two, if useres arent allowed to select their own theme the button should be hidden. ( I dont allow users to select a theme on any of my sites so having the button there that takes them right to the theme menu defeats the purpose. )

No i they are perfectly possible , It would just involve a good bit of extra coding so the other icons would arrange to the grid if 1 or more of those options were enabled.
Well hopefully its something you atleast look into as they all make perfect sense ;-)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 14, 2008, 05:45:32 PM
Quote from: MoreBloodWine on August 14, 2008, 04:43:55 PM
Quote from: Alan S on August 14, 2008, 12:42:09 PM
Quote from: MoreBloodWine on August 14, 2008, 04:42:13 AM
So your saying none of the following is possible them ? I mean it does make perfect sense.

QuoteCoupld of things that I feel should be addressed / looked at...

1. If members dont have the permission to delete their account then the delete my account button should be hidden.

2. Similar to number one, if buddy lists arent enabled the button should be hidden.

3. Similar to one and two, if useres arent allowed to select their own theme the button should be hidden. ( I dont allow users to select a theme on any of my sites so having the button there that takes them right to the theme menu defeats the purpose. )

No i they are perfectly possible , It would just involve a good bit of extra coding so the other icons would arrange to the grid if 1 or more of those options were enabled.
Well hopefully its something you atleast look into as they all make perfect sense ;-)

I possibly might , But it wouldnt be until SMF 2.0 comes out of beta since then i could drop new version with support for 1.X and include new features solely for 2.0
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Septimus on August 14, 2008, 11:51:23 PM
On the latest version I get this when searching for settings in the admin panel:

Fatal error: Call to undefined function ModifyUserCPModSettings() in /home/jade/public_html/forums/Sources/Admin.php on line 831

2.0 beta 3.1 public is what I'm running.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on August 15, 2008, 09:32:11 AM
Alan,

You might have figured it out already, but my suggestion for the menu... (especially for 2.0)

Build the permitted options as an array for the user, with text, image, link... (just like the main menu)
then for a for each... of the user's array.   You could even add it to the userinfo or context array, and thus make it available as SSI!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 15, 2008, 05:19:56 PM
Quote from: Kindred on August 15, 2008, 09:32:11 AM
Alan,

You might have figured it out already, but my suggestion for the menu... (especially for 2.0)

Build the permitted options as an array for the user, with text, image, link... (just like the main menu)
then for a for each... of the user's array.   You could even add it to the userinfo or context array, and thus make it available as SSI!

No i actualy havent looked into it that much , but the first thought that came to mind was just displaying the tds/trs using based on if that option was enabled like if users werent allowed to choose a theme using if($context['whatever']) it would display it if they were aloud and if they werent there would be a else if($context['somethingelse']) displaying the option that should come after it in its place and following that pattern on.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Septimus on August 15, 2008, 07:49:44 PM
Can you help me fix my error please?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 15, 2008, 07:54:04 PM
Sorry , Skipped past it when i was reading through the recent posts.

Run this quirey in phpmyadmin


INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);


Try searching again and see if the error has changed , if it has can you post the new error here please.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Septimus on August 16, 2008, 04:43:40 PM
I never turned eval off :)

Fatal error: Call to undefined function ModifyUserCPModSettings() in /home/jade/public_html/forums/Sources/Admin.php on line 831
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 16, 2008, 06:18:45 PM
Can you post line 820 to 845 of Admin.php so i can see the surrounding code aswell please.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Septimus on August 16, 2008, 07:06:20 PM
array('EditSmileySettings', 'area=smileys;sa=settings'),
array('ModifyOtherSettings', 'area=serversettings;sa=other'),
array('ModifyCacheSettings', 'area=serversettings;sa=cache'),
array('ModifyRegistrationSettings', 'area=regcenter;sa=settings'),
array('ManageSearchEngineSettings', 'area=sengines;sa=settings'),
array('ModifySubscriptionSettings', 'area=paidsubscribe;sa=settings'),
);

foreach ($settings_search as $setting_area)
{
// Get a list of their variables.
$config_vars = $setting_area[0](true);

foreach ($config_vars as $var)
{
if (!empty($var[1]) && $var[0] != 'permissions')
$search_data['settings'][] = array($var[1], $setting_area[1]);
}
}

$context['search_results'] = array();
$search_term = strtolower($context['search_term']);
// Go through all the search data trying to find this text!
foreach ($search_data as $section => $data)
{
foreach ($data as $item)
{
$found = false;
if (!is_array($item[0]))
$item[0] = array($item[0]);
foreach ($item[0] as $term)
{
$lc_term = strtolower($term);
if (strpos($lc_term, $search_term) !== false || (isset($txt[$term]) && strpos($txt[$term], $search_term) !== false) || (isset($txt['setting_' . $term]) && strpos($txt['setting_' . $term], $search_term) !== false))
{
$found = $term;
break;
}
}


820-858 because 845 stopped in the middle of a block :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 16, 2008, 08:54:44 PM
On line 826 which is
array('ModifySubscriptionSettings', 'area=paidsubscribe;sa=settings'),

Add after it

array('ModifyUserCPModSettings', 'area=modsettings;sa=usercp'),

That bit of code appears to be missing so that should fix the problem.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Septimus on August 16, 2008, 09:23:17 PM
Lol now it's picking on 832 :(

$config_vars = $setting_area[0](true);

I did clear cache and stuff too :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 17, 2008, 11:39:13 AM
Okay , can you attach your Admin.php file to your next post please.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Septimus on August 17, 2008, 11:23:11 PM
Sure, here it is :)


And thank you for the help so far, it's appreciated :).
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 19, 2008, 12:06:37 PM
Ah , Turns out it was actualy a bad line of code in the mod.

Will be releasing a fix package soon ( In the next couple of hours ) , and a update to the standard package aswell.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 19, 2008, 06:49:17 PM
Okay , Have released the 2 packages , Please see page one of topic for info.


Also Septimus , Use this admin.php file and it should sort your problems
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Septimus on August 19, 2008, 11:37:38 PM
Thank you very much!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Fonzarello on August 24, 2008, 08:59:24 PM
I'm tried to install the UserCP mod to my board. SMF1.1.5. In doing so I get an error that the "ManageSettings.php file cannot be found. I tried to incorporate the mod manually and its right the ManageSetting.php file isnt there.
How can I install the mod?

This is exactly what I see:

1.     Execute Modification     ./index.php     Test successful
2.    Execute Modification    ./Sources/Subs.php    Test failed
3.    Execute Modification    ./Sources/Admin.php    Test failed
4.    Execute Modification    ./Sources/ManageSettings.php    File not found
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
7.    Extract Tree    ./Themes/default/images/usercp    
8.    Extract File    ./Sources/usercp.php    
9.    Extract File    ./Themes/default/usercp.template.php    
10.    Execute Code    install.php

I need this mod badly. What can I do?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 25, 2008, 12:15:11 PM
Quote from: Fonzarello on August 24, 2008, 08:59:24 PM
I'm tried to install the UserCP mod to my board. SMF1.1.5, metrofreshboard.com. In doing so I get an error that the "ManageSettings.php file cannot be found. I tried to incorporate the mod manually and its right the ManageSetting.php file isnt there.
How can I install the mod?

This is exactly what I see:

1.     Execute Modification     ./index.php     Test successful
2.    Execute Modification    ./Sources/Subs.php    Test failed
3.    Execute Modification    ./Sources/Admin.php    Test failed
4.    Execute Modification    ./Sources/ManageSettings.php    File not found
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
7.    Extract Tree    ./Themes/default/images/usercp    
8.    Extract File    ./Sources/usercp.php    
9.    Extract File    ./Themes/default/usercp.template.php    
10.    Execute Code    install.php

I need this mod badly. What can I do?

Your using the wrong version. ManageSettings.php is a file in SMF 2.0 which means your trying to installed UserCPV2.0.2 , Your using SMF 1.1.5 so you need to install SMF UserCP2.0_Install.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=698;id=50002)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Fonzarello on August 27, 2008, 02:08:11 PM
Thanks. I tried installing the other mod for 1.1.5 I still get an error. I looked at manually installation and I didnt see the directions for editing the file that gave me the error. "Number 2. below"

   Type     Action     Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Themes/default/index.template.php    Test failed
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
6.    Extract Tree    ./Themes/default/images/usercp    
7.    Extract File    ./Sources/usercp.php    
8.    Extract File    ./Themes/default/usercp.template.php    
9.    Execute Code    install.php


Do I not need to edit this file if I install it manually? Thanks again for your help.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ccbtimewiz on August 27, 2008, 02:19:08 PM
Quote from: Fonzarello on August 27, 2008, 02:08:11 PM
Thanks. I tried installing the other mod for 1.1.5 I still get an error. I looked at manually installation and I didnt see the directions for editing the file that gave me the error. "Number 2. below"

   Type     Action     Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Themes/default/index.template.php    Test failed
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
6.    Extract Tree    ./Themes/default/images/usercp    
7.    Extract File    ./Sources/usercp.php    
8.    Extract File    ./Themes/default/usercp.template.php    
9.    Execute Code    install.php


Do I not need to edit this file if I install it manually? Thanks again for your help.

Yes you do.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Fonzarello on August 27, 2008, 02:57:01 PM
How do I modify this file:
./Themes/default/index.template.php
The manual installation directions for 1.1.5 do not cover editing this file. This is the only file I get an error with when trying to install the mod thru packages.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 27, 2008, 06:06:59 PM
Here are the edits you need to make on /default/index.template.php

Find

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


Replace with

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


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

Add Before

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


Find

$current_action = 'admin';
if (in_array($context['current_action'], array(


Add after

'usercp',


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>' : '';



If you have a Custom theme look here (http://www.simplemachines.org/community/index.php?topic=167975.msg1386370#msg1386370) to find the edits ( the edits for the default theme are also there )
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Fonzarello on August 27, 2008, 07:24:18 PM
Thanks. I applied the mod anyway with the error and I was going to edit the problem file manually but it seems to be working fine. Should I still edit the file or just let it be?

Also my Default/Theme/index.template.php file looks a little different than the coding that I'm supposed to change. I believe the other mods I added made changes to this file. I'm not sure what to keep and what to actually change so that the other mods continue to work properly, but, all in all it works fine even though I didn't manually edit the file.

Thanks again
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 27, 2008, 07:39:27 PM
You probably should still change it since somethings missing , It could only be a minor thing but i would still recommend changing it.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: swan on August 28, 2008, 09:39:35 AM
Have added that code for dilber and works great the only thing is there are no images showing on it like they do in the default theme can it be sorted?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 29, 2008, 12:56:29 PM
Can you post a screenshot of the problem please? I dont quite get what you mean.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: bullbreedluverz on August 29, 2008, 05:30:50 PM
nice mod, lot cleaner interface for members to use - cheers
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 29, 2008, 06:21:02 PM
Thanks , Glad you like it.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: swan on August 30, 2008, 07:06:12 AM
Quote from: Alan S on August 29, 2008, 12:56:29 PM
Can you post a screenshot of the problem please? I dont quite get what you mean.

Here you go have attached 2 diff ones the way it looks on default and they way it looks on the dilber

Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on August 30, 2008, 09:09:16 AM
That's because you have not copied the images into your alternate theme directory....
Title: Re: User Control Panel ( User CP ) V3.0
Post by: swan on August 30, 2008, 09:30:44 AM
ooo how do i do that?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on August 30, 2008, 11:48:59 AM
ummmmm.... copy the images from the default theme into your theme's image directory?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 30, 2008, 11:50:20 AM
Download a copy of the UserCP , Unzip it to your desktop and upload the /usercp directory to /Themes/dilbermc/images on your server.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: swan on August 31, 2008, 05:26:37 AM
ok thanks for that xx
Title: Re: User Control Panel ( User CP ) V3.0
Post by: bullbreedluverz on September 01, 2008, 12:19:00 PM
Quote from: bullbreedluverz on August 29, 2008, 05:30:50 PM
nice mod, lot cleaner interface for members to use - cheers

spoke to soon, getting a strange error (well seems strange to me) when im in admin CP and try to access Featyres and Options i get the following error

Fatal error: Cannot redeclare modifyusercpsettings() (previously declared in /home/bullbree/public_html/smf/Sources/ModSettings.php:431) in /home/bullbree/public_html/smf/Sources/ModSettings.php on line 531

doesnt do it with anything else just Features and Options
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on September 01, 2008, 02:51:57 PM
you installed the mod twice.

Run through the manual installation instructions, removing all duplicate code...
Title: Re: User Control Panel ( User CP ) V3.0
Post by: chrisb on September 06, 2008, 08:16:56 AM
We had reinstalled the mod, and none of our users can view the usercp, but the admins can view the usercp, We have checked all coding and we are not sure what is causing these issues, we are getting members that are complaing there usercp has gone from the menu.


what has caused these issues
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on September 06, 2008, 04:33:15 PM
possibly a permissions issue?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: chrisb on September 06, 2008, 07:46:24 PM
Quote from: Kindred on September 06, 2008, 04:33:15 PM
possibly a permissions issue?

what permission do we need to change to get all non admins to view the usercp
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on September 06, 2008, 07:59:11 PM
The UserCP goes by the profile access permissions , Check in Admin -> Permissions under normal user groups to make sure that can access and edit there profiles
Title: Re: User Control Panel ( User CP ) V3.0
Post by: robbie93 on September 08, 2008, 07:08:56 PM
alan...   is this mod ok to use with 1.1.6?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on September 09, 2008, 11:40:46 AM
Yes , Its okay to use on 1.1.6 and 2.0 Beta4
Title: Re: User Control Panel ( User CP ) V3.0
Post by: waremock on September 09, 2008, 12:02:28 PM
Nice Mod,

Just have one little request.

I have a dark background and the text below the icons is very hard to see. Is there a way to show the control panel in a table like the rest of the forum. Therefore it won't matter what my background color is.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on September 10, 2008, 08:52:50 AM
There are already 2 available solutions for that you can simply use a UserCP stylesheet.

http://www.simplemachines.org/community/index.php?topic=167975.msg1351974#msg1351974
Title: Re: User Control Panel ( User CP ) V3.0
Post by: waremock on September 10, 2008, 09:04:00 AM
Quote from: Alan S on September 10, 2008, 08:52:50 AM
There are already 2 available solutions for that you can simply use a UserCP stylesheet.

http://www.simplemachines.org/community/index.php?topic=167975.msg1351974#msg1351974

Thank you
Title: Re: User Control Panel ( User CP ) V3.0
Post by: B12 on September 11, 2008, 01:10:46 PM
Here is the dutch translation


$txt['usercp'] = 'User CP';
$txt['usercp_account_info'] = 'Mijn gegevens';
$txt['usercp_account_info_summary'] = 'Klik hier als je je eigen gegevens wilt wijzigen';
$txt['usercp_look_and_layout'] = 'Layout Opties';
$txt['usercp_look_and_layout_summary'] = 'Klik hier voor het aanpassen van de layout van het forum en de opmaak van de berichten.';
$txt['usercp_my_theme'] = 'Mijn thema';
$txt['usercp_my_theme_summary'] = 'Dit scherm geeft je de mogelijkheid om het thema voor het login scherm te wijzigen.';
$txt['usercp_my_profile'] = 'Mijn profiel';
$txt['usercp_my_profile_summary'] = 'Klik hier voor het aanpassen van je profiel zoals anderen dat te zien zullen krijgen.';
$txt['usercp_my_stats'] = 'Mijn statistieken';
$txt['usercp_my_stats_summary'] = 'Hier kan je kontroleren hoeveel berichten je hebt gepost en andere aktiviteiten-gerelateerde informatie.';
$txt['usercp_my_posts'] = 'Mijn berichten';
$txt['usercp_my_posts_summary'] = 'Deze optie laat je alle berichten zien die je gepost hebt sinds je lid bent.';
$txt['usercp_my_notifications'] = 'Mijn waarschuwingen';
$txt['usercp_my_notifications_summary'] = 'Dit scherm geeft je de mogelijkheid om het type en frequentie van de waarschuwingen aan te passen die je ontvangt als je deelneemt in topics.';
$txt['usercp_buddies'] = 'Vrienden';
$txt['usercp_buddies_summary'] = 'In dit scherm kan je je vrienden selecteren en die toevoegen aan je lijst.';
$txt['usercp_message_options'] = 'Mijn berichten-opties';
$txt['usercp_message_options_summary'] = 'In dit scherm kan je je voorkeuren aanpassen voor privéberichten en kan je ook mensen selecteren waarvan je geen privéberichten wenst te ontvangen.';
$txt['usercp_search'] = 'Zoeken';
$txt['usercp_search_summary'] = 'Opzoeken van berichten.';
$txt['usercp_contact_admin'] = 'Contact Beheer';
$txt['usercp_contact_admin_summary'] = 'Vragen? Met dit scherm kan je contact zoeken met de beheerder';
$txt['usercp_guest'] = 'Sorrie gast, je bent niet bevoegd tot het benaderen van het gebruikersdeel';
$txt['usercp_login'] = 'Login';
$txt['usercp_or'] = 'of';
$txt['usercp_register'] = 'Register';
$txt['usercp_copyright'] = 'User Cp V2.0.1 | Created By Alan S';
$txt['usercp_welcome'] = 'Welkom ';
$txt['usercp_delete_account'] = 'Verwijder mijn gegevens';
$txt['usercp_delete_account_summary'] = 'Geen zin meer in deze site? Met deze optie kan je je gegevens verwijderen.';
$txt['usercp_error'] = 'Fout!';
$txt['usercp_enable'] = 'Maak het gebruikerscontrolescherm toegankelijk';
$txt['usercp_disabled'] = 'Gebruikerscontrolescherm uitgeschakeld';
$txt['usercp_clickhere'] = 'Klik hier om te schakelen naar ';
$txt['usercp_profile'] = 'Profielscherm';
$txt['usercp_field1image'] = 'Aangepast UserCP Veld 1 beeld';
$txt['usercp_field1url'] = 'URL';
$txt['usercp_field1maintext'] = 'Hoofdtekst ( zoals Mijn berichten )';
$txt['usercp_field1summary'] = 'Samenvatting';
$txt['usercp_field1enable'] = 'Inschakelen 1e aangepast UserCP veld';
$txt['usercp_field2image'] = 'Aangepast UserCP Veld 2 beeld';
$txt['usercp_field2url'] = 'URL';
$txt['usercp_field2maintext'] = 'Hoofdtekst ( zoals Mijn berichten )';
$txt['usercp_field2summary'] = 'Samenvatting';
$txt['usercp_field2enable'] = 'Inschakelen 2e aangepast UserCP veld';
$txt['usercp_field3image'] = 'Aangepast UserCP Veld 3 beeld';
$txt['usercp_field3url'] = 'URL';
$txt['usercp_field3maintext'] = 'Hoofdtekst ( zoals Mijn berichten )';
$txt['usercp_field3summary'] = 'Samenvatting';
$txt['usercp_field3enable'] = 'Inschakelen 3e aangepast UserCP veld';
$txt['usercp_field4image'] = 'Aangepast UserCP Veld 4 beeld';
$txt['usercp_field4url'] = 'URL';
$txt['usercp_field4maintext'] = 'Hoofdtekst ( zoals Mijn berichten )';
$txt['usercp_field4summary'] = 'Samenvatting';
$txt['usercp_field4enable'] = 'Inschakelen 4e aangepast UserCP veld';
$txt['usercp_usepm'] = 'Gebruik privébericht in plaats van email om met de beheerder contact op te nemen';
$txt['usercp_adminid'] = 'Hier invoeren van het ID van de beheerder (bekijk een link in je profiel om dit te vinden , ?action=profile;u=x )';
$txt['usercp_switchview'] = 'Toestaan van de gebruikers om te schakelen naar de standaard-profiel layout';
$txt['usercp_enablecontactadmin'] = 'Toestaan om met de beheerder contact te zoeken via UserCP';
Title: Re: User Control Panel ( User CP ) V3.0
Post by: robbie93 on September 11, 2008, 02:06:40 PM
cool mod alan  :D

Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on September 18, 2008, 12:48:36 AM
Hey Alan,

I just had the chance to install this on my SMF 2.0 installation.

Very nice.  However, one (relatively) major permissions issue.
On my forum, we don't allow most users to delete their own accounts.
The UserCP mod has no checks in it for delete permissions.

to that end:
change

<!-- Delete Account Image -->

<td align="center" width="25%" valign="top">
<a href="', $scripturl, '?action=profile;u=', $user_info['id'], ';sa=deleteAccount"><img border="0" src="',$settings['images_url'],'/usercp/delete.png" width="80" height="80"></a></td>
</tr>

to

<!-- Delete Account Image -->

<td align="center" width="25%" valign="top">';
if (allowedTo('profile_remove_own') || allowedTo('profile_remove_any'))
echo '<a href="', $scripturl, '?action=profile;u=', $user_info['id'], ';sa=deleteAccount"><img border="0" src="',$settings['images_url'],'/usercp/delete.png" width="80" height="80"></a>';

echo '
</td>
</tr>


and change

<!-- Delete Account Text -->
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=', $user_info['id'], ';sa=deleteAccount"><b>',$txt['usercp_delete_account'],'</a><br>
</b></font><font face="Verdana" size="1">',$txt['usercp_delete_account_summary'],'</font></td>
</tr>

to

<!-- Delete Account Text -->
<td align="center" width="25%" valign="top">';
if (allowedTo('profile_remove_own') || allowedTo('profile_remove_any'))
echo'
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=', $user_info['id'], ';sa=deleteAccount"><b>',$txt['usercp_delete_account'],'</a><br>
</b></font><font face="Verdana" size="1">',$txt['usercp_delete_account_summary'],'</font>';

echo '
</td>
</tr>


this will maintain the layout, but not display the option, if they do not have the permission.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on September 18, 2008, 11:29:27 AM
Thanks , I will try to include that in the next update.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on September 18, 2008, 12:21:52 PM
one more (and this is a LONG standing "bug" for several versions) :)

in contact admin the text reads "... quiry ..."
the correct word is "query"
Title: Re: User Control Panel ( User CP ) V3.0
Post by: mpforum on September 21, 2008, 04:25:56 AM
How do I go about removing items from the User CP area. For example, I don't want to show any options to change themes.
Anyone have any idea?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on September 21, 2008, 09:11:40 AM
For UserCP V 2.X

Usercp.template.php

Find

<!-- Theme Option Image -->

<td align="center" width="25%" valign="top">
<a href="', $scripturl, '?action=theme;sa=pick;u=', $ID_MEMBER, ';sesc=', $context['session_id'], '"><img border="0" src="',$settings['images_url'],'/usercp/blockdevice.png" width="80" height="80"></a></td>


And delete it

Find

<!-- Theme Option Text -->

<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"> <a href="', $scripturl, '?action=theme;sa=pick;u=', $ID_MEMBER, ';sesc=', $context['session_id'], '"><b>',$txt['usercp_my_theme'],'</a><br>
</b></font><font face="Verdana" size="1">',$txt['usercp_my_theme_summary'],'</font></td>


Delete it

Save and reupload and that will remove the Theme option.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on September 21, 2008, 10:10:10 AM
hmmmm... I think the theme section should respect permissions as well

Alan...   I think the best thing to do, if you revise this mod is what we did for the basic menu...   Build an array of menu items that check permissions and set the menu display into the array and then just read out the array.

That way, you get around the problem with tables displaying blank sections, and you avoid problems with sites which have set up restrictive permissions :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Deadfire on September 21, 2008, 11:32:13 AM
Quote from: Kindred on September 21, 2008, 10:10:10 AM
hmmmm... I think the theme section should respect permissions as well

Alan...   I think the best thing to do, if you revise this mod is what we did for the basic menu...   Build an array of menu items that check permissions and set the menu display into the array and then just read out the array.

That way, you get around the problem with tables displaying blank sections, and you avoid problems with sites which have set up restrictive permissions :)

That would a great addition to this mod.

In fact I'm having a little issue with that, on my forum permissions for changing the theme for normal members is not allowed. I've been trying to think of how to fix the code in other to do it

Something like this before displaying.

if (allowedTo('theme_allow') || $context['user']['is_admin'])
echo'


However it seems my php-fi isn't to par as I'm getting a parse error.

is it possible for someone to help me with this?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: mpforum on September 21, 2008, 09:45:42 PM
Great mod Alan, and thanks for the reply before.

Anyway...

I'm getting a lot of errors in the log now which is the following:

http://www.mpforum.com.au/index.php?action=usercp 
8: Undefined index: usercp_field4enable
File: /home/motorcy6/public_html/Themes/default/usercp.template.php (main sub template - eval?)
Line: 247 

http://www.mpforum.com.au/index.php?action=usercp 
8: Undefined index: usercp_field3enable
File: /home/motorcy6/public_html/Themes/default/usercp.template.php (main sub template - eval?)
Line: 241 

http://www.mpforum.com.au/index.php?action=usercp 
8: Undefined index: usercp_field2enable
File: /home/motorcy6/public_html/Themes/default/usercp.template.php (main sub template - eval?)
Line: 235 

http://www.mpforum.com.au/index.php?action=usercp 
8: Undefined index: usercp_field1enable
File: /home/motorcy6/public_html/Themes/default/usercp.template.php (main sub template - eval?)
Line: 230 

http://www.mpforum.com.au/index.php?action=usercp 
8: Undefined index: usercp_field4enable
File: /home/motorcy6/public_html/Themes/default/usercp.template.php (main sub template - eval?)
Line: 220 

http://www.mpforum.com.au/index.php?action=usercp 
8: Undefined index: usercp_field3enable
File: /home/motorcy6/public_html/Themes/default/usercp.template.php (main sub template - eval?)
Line: 215 

http://www.mpforum.com.au/index.php?action=usercp 
8: Undefined index: usercp_field2enable
File: /home/motorcy6/public_html/Themes/default/usercp.template.php (main sub template - eval?)
Line: 210 

http://www.mpforum.com.au/index.php?action=usercp 
8: Undefined index: usercp_field1enable
File: /home/motorcy6/public_html/Themes/default/usercp.template.php (main sub template - eval?)
Line: 205 

http://www.mpforum.com.au/index.php?action=usercp 
8: Undefined index: usercp_usepm
File: /home/motorcy6/public_html/Themes/default/usercp.template.php (main sub template - eval?)
Line: 186 

http://www.mpforum.com.au/index.php?action=usercp 
8: Undefined index: usercp_usepm
File: /home/motorcy6/public_html/Themes/default/usercp.template.php (main sub template - eval?)
Line: 180 

http://www.mpforum.com.au/index.php?action=usercp 
8: Undefined index: usercp_usepm
File: /home/motorcy6/public_html/Themes/default/usercp.template.php (main sub template - eval?)
Line: 148 

http://www.mpforum.com.au/index.php?action=usercp 
8: Undefined index: usercp_usepm
File: /home/motorcy6/public_html/Themes/default/usercp.template.php (main sub template - eval?)
Line: 143 


Is there somthing that I should declare in the usercp.template.php file?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on September 21, 2008, 11:05:23 PM
check that the langauge strings got added to your modifications.YOURLANG.php file
Title: Re: User Control Panel ( User CP ) V3.0
Post by: mpforum on September 21, 2008, 11:39:26 PM
The following were added during installation;

$txt['usercp'] = 'User CP';
$txt['usercp_account_info'] = 'My Account Information';
$txt['usercp_account_info_summary'] = 'Click here if you want to change your account related information such as username, email, password or other sensitive details.';
$txt['usercp_look_and_layout'] = 'Look & Layout Options';
$txt['usercp_look_and_layout_summary'] = 'Click here to change the way the forum looks for you, options include the look and layout for the boards and posts.';
$txt['usercp_my_theme'] = 'My Theme';
$txt['usercp_my_theme_summary'] = 'This screen will allow you to set your default theme which you wish to use every time you login.';
$txt['usercp_my_profile'] = 'My Profile';
$txt['usercp_my_profile_summary'] = 'Click here to change the way your profile looks and appears to everyone.';
$txt['usercp_my_stats'] = 'My Stats';
$txt['usercp_my_stats_summary'] = 'Here you can check how many posts you have made and other activity related info.';
$txt['usercp_my_posts'] = 'My Posts';
$txt['usercp_my_posts_summary'] = 'This option will show you all the posts you have made since you became a member of this site.';
$txt['usercp_my_notifications'] = 'My Notifications';
$txt['usercp_my_notifications_summary'] = 'This screen will allow you to change the type and frequency of notifications you get via e-mail when participating in threads.';
$txt['usercp_buddies'] = 'Buddies';
$txt['usercp_buddies_summary'] = 'This screen will allow you to select buddies to add to your list.';
$txt['usercp_message_options'] = 'My Message Options';
$txt['usercp_message_options_summary'] = 'This screen will allow you to set your preferences for PMs received on the board and also allow you to ignore people you do not wish to receive PMs from.';
$txt['usercp_search'] = 'Search';
$txt['usercp_search_summary'] = 'This screen will allow you to search for posts made in the board.';
$txt['usercp_contact_admin'] = 'Contact Admin';
$txt['usercp_contact_admin_summary'] = 'Confused? or have a quirey? Contact the admin at this screen';
$txt['usercp_guest'] = 'Sorry Guest , You are not allowed to access the User CP , Please';
$txt['usercp_login'] = 'Login';
$txt['usercp_or'] = 'or';
$txt['usercp_register'] = 'Register';
$txt['usercp_copyright'] = 'Created by Tech';
$txt['usercp_welcome'] = 'Welcome ';
$txt['usercp_delete_account'] = 'Delete My Account';
$txt['usercp_delete_account_summary'] = 'Tired of the site? Use this option to delete your member account.';
$txt['usercp_error'] = 'Error!';
$txt['usercp_enable'] = 'Enable User Control Panel';
$txt['usercp_disabled'] = 'User Control Panel Disabled';
$txt['usercp_clickhere'] = 'Click Here To Go To The ';
$txt['usercp_profile'] = 'Profile Screen';
$txt['usercp_field1image'] = 'Custom UserCP Field 1 Image';
$txt['usercp_field1url'] = 'URL';
$txt['usercp_field1maintext'] = 'Main Text ( eg. My Posts )';
$txt['usercp_field1summary'] = 'Summary Text';
$txt['usercp_field1enable'] = 'Enable 1st Custom UserCP Field';
$txt['usercp_field2image'] = 'Custom UserCP Field 2 Image';
$txt['usercp_field2url'] = 'URL';
$txt['usercp_field2maintext'] = 'Main Text ( eg. My Posts )';
$txt['usercp_field2summary'] = 'Summary Text';
$txt['usercp_field2enable'] = 'Enable 2nd Custom UserCP Field';
$txt['usercp_field3image'] = 'Custom UserCP Field 3 Image';
$txt['usercp_field3url'] = 'URL';
$txt['usercp_field3maintext'] = 'Main Text ( eg. My Posts )';
$txt['usercp_field3summary'] = 'Summary Text';
$txt['usercp_field3enable'] = 'Enable 3rd Custom UserCP Field';
$txt['usercp_field4image'] = 'Custom UserCP Field 4 Image';
$txt['usercp_field4url'] = 'URL';
$txt['usercp_field4maintext'] = 'Main Text ( eg. My Posts )';
$txt['usercp_field4summary'] = 'Summary Text';
$txt['usercp_field4enable'] = 'Enable 4th Custom UserCP Field';
$txt['usercp_usepm'] = 'Use PM instead of email to contact admin';
$txt['usercp_adminid'] = 'Enter id of Admin here ( Look at a link in your profile to find it , ?action=profile;u=x )';
$txt['usercp_switchview'] = 'Allow users to switch to standard profile view';
$txt['usercp_enablecontactadmin'] = 'Enable Contacting Of Admin Via UserCP';


Still getting the same errors.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on September 22, 2008, 07:34:21 AM
1- please use code tags.
2- were added where?
3- what language are you running your board in? (note english and english uf8 are different)
4- version?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: mpforum on September 22, 2008, 10:54:51 PM
I'm using 'English' with SMF 2.0 Beta 4


The following code is from Modifications.english.php which is in my /default/languages directory.

<?php
// Version: 2.0 Beta 4; Modifications

// Important! Before editing these language files please read the text at the top of index.english.php.


//Hide SMF Version
$txt['hideVersion'] = 'Hide SMF version from normal users';


//Hide SMF Version
$txt['hideVersion'] = 'Hide SMF version from normal users';

$txt['recent_posters'] = 'Recent posters';
$txt['highest_posters'] = 'Highest posters';

// Highlight Search Keywords Mod Text.
$txt['HighlightSearchKeywords_tab_heading'] = 'Highlight Search Keywords';
$txt['HighlightSearchKeywords_color'] = 'Hexadecimal Color Code';
$txt['HighlightSearchKeywords_heading'] = '<strong><u>Highlight Search Keywords Colors:</u></strong>';
$txt['HighlightSearchKeywords_explanation'] = 'The Highlight Search Keyword Color Codes must be 6 characters long in Hexadecimal with no spaces, using <a href="http://en.wikipedia.org/wiki/Web_colors">RGB Hexadecimal Web Color Codes</a>.';
$txt['HighlightSearchKeywords_save_button'] = 'Save & Add New';


$txt['googleMap'] = 'Member Map';
$txt['googleMappinned'] = 'Member Pins';
$txt['googleMapc'] = 'Member Map Mod by <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Someones Pin';
$txt['googleMapGreenPinNG'] = 'No Gender';
$txt['googleMapBluePin'] = 'Male';
$txt['googleMapRedPin'] = 'Female';
$txt['googleMapPurplePin'] = 'Cluster of pins';
$txt['googleMapAddPinNote'] = '<a href="' $scripturl '?action=profile;sa=forumProfile">Click here to go place your pin if you have not already.</a>';
$txt['googleMapPleaseClick'] = 'Click to place a point or click on your point to remove it.';
$txt['googleMapDisclaimer'] = 'Place your pin as close as you feel comfortable doing so.';
$txt['cannot_googleMap_view'] = 'Sorry, you\'re not allowed to view the Member Map.';
$txt['permissionname_googleMap_view'] = 'View Member Map';
$txt['permissionhelp_googleMap_view'] = 'Allow the people to view the Member Map.  If not set, the people will not see the map.';
$txt['cannot_googleMap_place'] = 'Sorry, you\'re not allowed to place a pin for the Member Map.';
$txt['permissionname_googleMap_place'] = 'Place Pin on Member Map';
$txt['permissionhelp_googleMap_place'] = 'Allow the people place there pin the Member Map.  If not set, the people will not be able to place there pins.';

$txt['googleMap'] = 'Member Map';
$txt['googleMappinned'] = 'Member Pins';
$txt['googleMapc'] = 'Member Map Mod by <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Someones Pin';
$txt['googleMapGreenPinNG'] = 'No Gender';
$txt['googleMapBluePin'] = 'Male';
$txt['googleMapRedPin'] = 'Female';
$txt['googleMapPurplePin'] = 'Cluster of pins';
$txt['googleMapAddPinNote'] = '<a href="' $scripturl '?action=profile;sa=forumProfile">Click here to go place your pin if you have not already.</a>';
$txt['googleMapPleaseClick'] = 'Click to place a point or click on your point to remove it.';
$txt['googleMapDisclaimer'] = 'Place your pin as close as you feel comfortable doing so.';
$txt['cannot_googleMap_view'] = 'Sorry, you\'re not allowed to view the Member Map.';
$txt['permissionname_googleMap_view'] = 'View Member Map';
$txt['permissionhelp_googleMap_view'] = 'Allow the people to view the Member Map.  If not set, the people will not see the map.';
$txt['cannot_googleMap_place'] = 'Sorry, you\'re not allowed to place a pin for the Member Map.';
$txt['permissionname_googleMap_place'] = 'Place Pin on Member Map';
$txt['permissionhelp_googleMap_place'] = 'Allow the people place there pin the Member Map.  If not set, the people will not be able to place there pins.';

$txt['googleMap'] = 'Member Map';
$txt['googleMappinned'] = 'Member Pins';
$txt['googleMapc'] = 'Member Map Mod by <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Someones Pin';
$txt['googleMapGreenPinNG'] = 'No Gender';
$txt['googleMapBluePin'] = 'Male';
$txt['googleMapRedPin'] = 'Female';
$txt['googleMapPurplePin'] = 'Cluster of pins';
$txt['googleMapAddPinNote'] = '<a href="' $scripturl '?action=profile;sa=forumProfile">Click here to go place your pin if you have not already.</a>';
$txt['googleMapPleaseClick'] = 'Click to place a point or click on your point to remove it.';
$txt['googleMapDisclaimer'] = 'Place your pin as close as you feel comfortable doing so.';
$txt['cannot_googleMap_view'] = 'Sorry, you\'re not allowed to view the Member Map.';
$txt['permissionname_googleMap_view'] = 'View Member Map';
$txt['permissionhelp_googleMap_view'] = 'Allow the people to view the Member Map.  If not set, the people will not see the map.';
$txt['cannot_googleMap_place'] = 'Sorry, you\'re not allowed to place a pin for the Member Map.';
$txt['permissionname_googleMap_place'] = 'Place Pin on Member Map';
$txt['permissionhelp_googleMap_place'] = 'Allow the people place there pin the Member Map.  If not set, the people will not be able to place there pins.';
$txt['recent_posters'] = 'Recent posters';
$txt['highest_posters'] = 'Highest posters';

$txt['recent_posters'] = 'Recent posters';
$txt['highest_posters'] = 'Highest posters';


$txt['googleMap'] = 'Member Map';
$txt['googleMappinned'] = 'Member Pins';
$txt['googleMapc'] = 'Member Map Mod by <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Someones Pin';
$txt['googleMapGreenPinNG'] = 'No Gender';
$txt['googleMapBluePin'] = 'Male';
$txt['googleMapRedPin'] = 'Female';
$txt['googleMapPurplePin'] = 'Cluster of pins';
$txt['googleMapAddPinNote'] = '<a href="' $scripturl '?action=profile;sa=forumProfile">Click here to go place your pin if you have not already.</a>';
$txt['googleMapPleaseClick'] = 'Click to place a point or click on your point to remove it.';
$txt['googleMapDisclaimer'] = 'Place your pin as close as you feel comfortable doing so.';
$txt['cannot_googleMap_view'] = 'Sorry, you\'re not allowed to view the Member Map.';
$txt['permissionname_googleMap_view'] = 'View Member Map';
$txt['permissionhelp_googleMap_view'] = 'Allow the people to view the Member Map.  If not set, the people will not see the map.';
$txt['cannot_googleMap_place'] = 'Sorry, you\'re not allowed to place a pin for the Member Map.';
$txt['permissionname_googleMap_place'] = 'Place Pin on Member Map';
$txt['permissionhelp_googleMap_place'] = 'Allow the people place there pin the Member Map.  If not set, the people will not be able to place there pins.';
$txt['recent_posters'] = 'Recent posters';
$txt['highest_posters'] = 'Highest posters';

$txt['custom_copyright_desc'] = 'This will be displayed at the bottom.';
$txt['custom_copyright'] = 'Enter custom copyright:';

// Highlight Search Keywords Mod Text.
$txt['HighlightSearchKeywords_tab_heading'] = 'Highlight Search Keywords';
$txt['HighlightSearchKeywords_color'] = 'Hexadecimal Color Code';
$txt['HighlightSearchKeywords_heading'] = '<strong><u>Highlight Search Keywords Colors:</u></strong>';
$txt['HighlightSearchKeywords_explanation'] = 'The Highlight Search Keyword Color Codes must be 6 characters long in Hexadecimal with no spaces, using <a href="http://en.wikipedia.org/wiki/Web_colors">RGB Hexadecimal Web Color Codes</a>.';
$txt['HighlightSearchKeywords_save_button'] = 'Save & Add New';

$txt['custom_copyright_desc'] = 'This will be displayed at the bottom.';
$txt['custom_copyright'] = 'Enter custom copyright:';


//Hide SMF Version
$txt['hideVersion'] = 'Hide SMF version from normal users';

$txt['usercp'] = 'User CP';
$txt['usercp_account_info'] = 'My Account Information';
$txt['usercp_account_info_summary'] = 'Click here if you want to change your account related information such as username, email, password or other sensitive details.';
$txt['usercp_look_and_layout'] = 'Look & Layout Options';
$txt['usercp_look_and_layout_summary'] = 'Click here to change the way the forum looks for you, options include the look and layout for the boards and posts.';
$txt['usercp_my_theme'] = 'My Theme';
$txt['usercp_my_theme_summary'] = 'This screen will allow you to set your default theme which you wish to use every time you login.';
$txt['usercp_my_profile'] = 'My Profile';
$txt['usercp_my_profile_summary'] = 'Click here to change the way your profile looks and appears to everyone.';
$txt['usercp_my_stats'] = 'My Stats';
$txt['usercp_my_stats_summary'] = 'Here you can check how many posts you have made and other activity related info.';
$txt['usercp_my_posts'] = 'My Posts';
$txt['usercp_my_posts_summary'] = 'This option will show you all the posts you have made since you became a member of this site.';
$txt['usercp_my_notifications'] = 'My Notifications';
$txt['usercp_my_notifications_summary'] = 'This screen will allow you to change the type and frequency of notifications you get via e-mail when participating in threads.';
$txt['usercp_buddies'] = 'Buddies';
$txt['usercp_buddies_summary'] = 'This screen will allow you to select buddies to add to your list.';
$txt['usercp_message_options'] = 'My Message Options';
$txt['usercp_message_options_summary'] = 'This screen will allow you to set your preferences for PMs received on the board and also allow you to ignore people you do not wish to receive PMs from.';
$txt['usercp_search'] = 'Search';
$txt['usercp_search_summary'] = 'This screen will allow you to search for posts made in the board.';
$txt['usercp_contact_admin'] = 'Contact Admin';
$txt['usercp_contact_admin_summary'] = 'Confused? or have a quirey? Contact the admin at this screen';
$txt['usercp_guest'] = 'Sorry Guest , You are not allowed to access the User CP , Please';
$txt['usercp_login'] = 'Login';
$txt['usercp_or'] = 'or';
$txt['usercp_register'] = 'Register';
$txt['usercp_copyright'] = 'Created by Tech';
$txt['usercp_welcome'] = 'Welcome ';
$txt['usercp_delete_account'] = 'Delete My Account';
$txt['usercp_delete_account_summary'] = 'Tired of the site? Use this option to delete your member account.';
$txt['usercp_error'] = 'Error!';
$txt['usercp_enable'] = 'Enable User Control Panel';
$txt['usercp_disabled'] = 'User Control Panel Disabled';
$txt['usercp_clickhere'] = 'Click Here To Go To The ';
$txt['usercp_profile'] = 'Profile Screen';
$txt['usercp_field1image'] = 'Custom UserCP Field 1 Image';
$txt['usercp_field1url'] = 'URL';
$txt['usercp_field1maintext'] = 'Main Text ( eg. My Posts )';
$txt['usercp_field1summary'] = 'Summary Text';
$txt['usercp_field1enable'] = 'Enable 1st Custom UserCP Field';
$txt['usercp_field2image'] = 'Custom UserCP Field 2 Image';
$txt['usercp_field2url'] = 'URL';
$txt['usercp_field2maintext'] = 'Main Text ( eg. My Posts )';
$txt['usercp_field2summary'] = 'Summary Text';
$txt['usercp_field2enable'] = 'Enable 2nd Custom UserCP Field';
$txt['usercp_field3image'] = 'Custom UserCP Field 3 Image';
$txt['usercp_field3url'] = 'URL';
$txt['usercp_field3maintext'] = 'Main Text ( eg. My Posts )';
$txt['usercp_field3summary'] = 'Summary Text';
$txt['usercp_field3enable'] = 'Enable 3rd Custom UserCP Field';
$txt['usercp_field4image'] = 'Custom UserCP Field 4 Image';
$txt['usercp_field4url'] = 'URL';
$txt['usercp_field4maintext'] = 'Main Text ( eg. My Posts )';
$txt['usercp_field4summary'] = 'Summary Text';
$txt['usercp_field4enable'] = 'Enable 4th Custom UserCP Field';
$txt['usercp_usepm'] = 'Use PM instead of email to contact admin';
$txt['usercp_adminid'] = 'Enter id of Admin here ( Look at a link in your profile to find it , ?action=profile;u=x )';
$txt['usercp_switchview'] = 'Allow users to switch to standard profile view';
$txt['usercp_enablecontactadmin'] = 'Enable Contacting Of Admin Via UserCP';
//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'Gallery For SMF';
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_version'] = '2.0 Lite';
$txt['smfgallery_admin'] = 'Gallery Configuration';

//Permissions
$txt['permissiongroup_smfgallery'] = 'SMF Gallery';
$txt['permissiongroup_simple_smfgallery'] = 'Use SMF Gallery.';

$txt['permissionname_smfgallery_view'] = 'View SMF Gallery';
$txt['permissionhelp_smfgallery_view'] = 'Allows the user to view the Gallery';
$txt['cannot_smfgallery_view'] = 'You are not allowed to view the Gallery';

$txt['permissionname_smfgallery_add'] = 'Add Picture';
$txt['permissionhelp_smfgallery_add'] = 'Allows the user to add a picture.';
$txt['cannot_smfgallery_add'] = 'You are not allowed to add a picture.';

$txt['permissionname_smfgallery_edit'] = 'Edit own Picture';
$txt['permissionhelp_smfgallery_edit'] = 'Allows the user to edit a picture.';
$txt['cannot_smfgallery_edit'] = 'You are not allowed to edit a picture.';

$txt['permissionname_smfgallery_delete'] = 'Delete own Picture';
$txt['permissionhelp_smfgallery_delete'] = 'Allows the user to delete a picture.';
$txt['cannot_smfgallery_delete'] = 'You are not allowed to delete a picture.';

$txt['permissionname_smfgallery_comment'] = 'Leave Comments';
$txt['permissionhelp_smfgallery_comment'] = 'Allows the user to leave comments on a picture.';
$txt['cannot_smfgallery_comment'] = 'You are not allowed to leave comments.';

$txt['permissionname_smfgallery_report'] = 'Report Pictures/Comments';
$txt['permissionhelp_smfgallery_report'] = 'Allows the user to report pictures and comments.';
$txt['cannot_smfgallery_report'] = 'You are not allowed to report content.';

$txt['permissionname_smfgallery_autoapprove'] = 'Auto Approve Pictures';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Pictures do not need to wait for approval.';

$txt['permissionname_smfgallery_manage'] = 'Manage Gallery';
$txt['permissionhelp_smfgallery_manage'] = 'Allows the user to add/delete/edit all catagories. Delete Comments, Delete Pictures, Approve Pictures';
$txt['cannot_smfgallery_manage'] = 'You are not allowed to manage gallery.';


$txt['gallery_form_managecats'] = 'Manage Categories';
$txt['gallery_form_approveimages'] = 'Approve Images';
$txt['gallery_form_reportimages'] = 'Reported Images';
$txt['gallery_text_settings'] = 'Settings';

//END SMF Gallery Text Strings

?>


I still can't work out what is going on.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on September 23, 2008, 05:34:10 AM
Login to your servers PhpMyAdmin(?) (http://www.simplemachines.org/community/index.php?topic=21919.0) and run this query on the smf database.


INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);


Then go to the usercp again a few times and check the error log again to see if the error has changed.

Title: Re: User Control Panel ( User CP ) V3.0
Post by: mpforum on September 24, 2008, 11:24:42 PM
Ran the query, bu tstill getting errors.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on September 25, 2008, 06:40:42 AM
Are the errors the same as they were or have they changed? As in is the error message still


8: Undefined index: usercp_field4enable
File: /home/motorcy6/public_html/Themes/default/usercp.template.php (main sub template - eval?)
Line: 247 


Or is it something else?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: mpforum on September 25, 2008, 06:55:01 AM
Same errors Alan.

It's such a cool mod and I don't want to get rid of it for the sake of errors.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on September 25, 2008, 07:56:15 AM
oddly enough, Alan, I am getting the same errors on a 2.0 install as well

(I am actually getting the same sort of error with EACH mod installed into the forum, so I suspect it is something to do with the way language strings were changed in 2.0)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: mpforum on September 28, 2008, 06:47:58 AM
I don't have any other errors with other mods, just this one. But please don't get me wong, I'm still trying to work out what is going on because this is a kick arse mod.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on September 28, 2008, 08:44:11 AM
Hmmm , Just a guess but trying clearing your file cache ( Admin -> Maintenance -> Clear File Cache ) , Since language strings are cached in 2.0 it might have something to do with it.


- Alan
Title: Re: User Control Panel ( User CP ) V3.0
Post by: mpforum on September 29, 2008, 12:42:28 AM
Still the same errors alan. cleared the cache then cleared the error log, went into UserCP then checked the log again. 12 errors. :-\
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bugpac ™ on October 01, 2008, 08:48:51 PM
I have this in 2. beta 4....Is there anyway to remove the delete account icon?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 02, 2008, 08:29:43 PM
Hi,

I am using a custome theme and adjusted index.template.php for custom theme as stated on page one.

My "profile" link goes missing and then it when i click on profile (link is there just not text) it has a link which says switch to standard control panel and thats it, i downloaded UserCPV2.0_Install.zip and uploaded via admin and installed it everything said succesful etc but as stated thats it no fancy control panel? should i be using another version or something? i am using SMF 1.1.6

any help much appreciated.

Thank you,
Mat
Title: Re: User Control Panel ( User CP ) V3.0
Post by: SpectroPro on October 02, 2008, 08:32:46 PM
Hey Alan...  first off.. LOVE this mod!!!!  Thank you for it!  My members have had NOTHING but great things to say since I installed it.. 

That said.. (hehe) I am using 2.0b4.  I had it in 2.0b3.1 as well, but removed it..  and may have to now as well... While it seems to be working fine, and I have had no reports of it not working..and I have not found any problems... my error log is, since yesterday when I installed it, over 130 pages of errors, and all from USERCP...  Which, again, is very odd, since no one sees errors when using it...  But, this is a sample of what my error log looks like..  All 130 pages of it...

---------

Mystycl      Type of error: Undefined
URL http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_field4enable
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 253
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_field3enable
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 247
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_field2enable
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 241
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_field1enable
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 236
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_field4enable
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 226
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_field3enable
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 221
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_field2enable
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 216
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_field1enable
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 211
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_usepm
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 190
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_usepm
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 184

-----

and on and on and on...   Can you help me with this??  Like I said, seems to be working perfectly..  Except my error log is getting slammed!!!

Thanks!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bugpac ™ on October 02, 2008, 11:13:57 PM
Quote from: SpectroPro on October 02, 2008, 08:32:46 PM
Hey Alan...  first off.. LOVE this mod!!!!  Thank you for it!  My members have had NOTHING but great things to say since I installed it.. 

That said.. (hehe) I am using 2.0b4.  I had it in 2.0b3.1 as well, but removed it..  and may have to now as well... While it seems to be working fine, and I have had no reports of it not working..and I have not found any problems... my error log is, since yesterday when I installed it, over 130 pages of errors, and all from USERCP...  Which, again, is very odd, since no one sees errors when using it...  But, this is a sample of what my error log looks like..  All 130 pages of it...

---------

Mystycl      Type of error: Undefined
URL http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_field4enable
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 253
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_field3enable
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 247
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_field2enable
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 241
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_field1enable
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 236
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_field4enable
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 226
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_field3enable
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 221
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_field2enable
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 216
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_field1enable
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 211
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_usepm
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 190
   
.Mystycl    Type of error: Undefined
http://forum.therealityrocks.com/trr/index.php?action=usercp
8: Undefined index: usercp_usepm
File: /home/spectro/public_html/forum/trr/Themes/default/usercp.template.php (main sub template - eval?)
Line: 184

-----

and on and on and on...   Can you help me with this??  Like I said, seems to be working perfectly..  Except my error log is getting slammed!!!

Thanks!

Sorry to hijack, but wich multiplayer did you get to work with beta 4?

I to have 12 errors that pop everytime you click on it....Usercp that is...
Title: Re: User Control Panel ( User CP ) V3.0
Post by: glen88 on October 03, 2008, 12:40:47 AM
I have 1.1.5 and i installed this mod everything looks fine BUT when i go home page i cant find the link to go to it.. like up the top it says Home Help Search Admin Profile etc etc but it dosnt have the mod link.. anybody know why or how to fix it?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: SpectroPro on October 03, 2008, 12:50:33 AM
Quote from: glen88 on October 03, 2008, 12:40:47 AM
I have 1.1.5 and i installed this mod everything looks fine BUT when i go home page i cant find the link to go to it.. like up the top it says Home Help Search Admin Profile etc etc but it dosnt have the mod link.. anybody know why or how to fix it?
In 2.0b4, I actually had the same problem.  It never made the tab for the User CP..   I had to uninstall, and re-install 2 times to get it.. NO clue why.  but that worked..  Was odd...  Actually, ended up later re-installing the entire site again (I like to mess things up..lol) and when I installed it that time, it worked perfectly first time. 

Again, this is in my 2.0b4 site.. Maybe you just need to delete it, and re-install..
Title: Re: User Control Panel ( User CP ) V3.0
Post by: glen88 on October 03, 2008, 01:37:13 AM
Thanks fixed... 1 last thing how come the pictures dont show up? well i guess it dosnt matter at least the links show up i guess.. :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 03, 2008, 05:03:05 AM
Quote from: genieuk on October 02, 2008, 08:29:43 PM
Hi,

I am using a custome theme and adjusted index.template.php for custom theme as stated on page one.

My "profile" link goes missing and then it when i click on profile (link is there just not text) it has a link which says switch to standard control panel and thats it, i downloaded UserCPV2.0_Install.zip and uploaded via admin and installed it everything said succesful etc but as stated thats it no fancy control panel? should i be using another version or something? i am using SMF 1.1.6

any help much appreciated.

Thank you,
Mat

Anyone Please?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 04, 2008, 11:57:48 AM
Can the mod creater please help me?

Really want this mod but read above post to for my problem.

Will give files or ftp details if preferred.

Thank you,
Mat
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 04, 2008, 12:32:37 PM
You need to make sure that a) the langauge strings are added to your modifications.LANGUAGE.php (and note that english is different form english utf-8)

You also need to make sure that the UserCP *IMAGES* are loaded into your custom theme(s) directory as well....
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 04, 2008, 03:01:51 PM
HI,

I selected my version of SMF which is 1.1.6 clicked submit and it gave full instructions i done everything as it stated and still same problem?

Also when it says: (do i put it in public_html and go to my website url foreverlastingfriends.co.cc/install.php to run it? if so, done that correctly as well so not sure what problem is.

install.php
This file should not be able to execute standalone. You may have to run the following queries manually.

Query: [Select]
SELECT value FROM {db_prefix}settings WHERE variable = {string:variable}

Mat

I also understand about english not same as english uft-8.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 04, 2008, 03:09:56 PM
mmm,

I just noticed my managesettings.php file is missing it not in sources/ anymore ?

Is this vital for me website to run as it not there?

Mat
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 04, 2008, 03:22:43 PM
BTW: IF you are running smf 2.0 and getting lots of "undefined index..." errors, then here's what to do:

go into usercp setup
check ON every box
SAVE
then check OFF the features that you don't want.

It seems that, under 2.0 at least, when you install a new mod with options, those option is not actually SET until you manually set it and then "unset" it.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: SpectroPro on October 04, 2008, 03:46:43 PM
seems to have fixed it on my site.. thanks!!!!

- Greg
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 04, 2008, 04:00:02 PM
Quote from: genieuk on October 04, 2008, 03:09:56 PM
mmm,

I just noticed my managesettings.php file is missing it not in sources/ anymore ?

Is this vital for me website to run as it not there?

Mat

Why dont i have managesettings.php file? not in sources/ is it vital to my website etc? worried now
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on October 04, 2008, 04:13:27 PM
Quote from: Kindred on October 04, 2008, 03:22:43 PM
BTW: IF you are running smf 2.0 and getting lots of "undefined index..." errors, then here's what to do:

go into usercp setup
check ON every box
SAVE
then check OFF the features that you don't want.

It seems that, under 2.0 at least, when you install a new mod with options, those option is not actually SET until you manually set it and then "unset" it.

Thanks for that , I will release a package to fix that bug shortly.

Quote from: genieuk on October 04, 2008, 03:01:51 PM
HI,

I selected my version of SMF which is 1.1.6 clicked submit and it gave full instructions i done everything as it stated and still same problem?

Also when it says: (do i put it in public_html and go to my website url foreverlastingfriends.co.cc/install.php to run it? if so, done that correctly as well so not sure what problem is.

install.php
This file should not be able to execute standalone. You may have to run the following queries manually.

Query: [Select]
SELECT value FROM {db_prefix}settings WHERE variable = {string:variable}

Mat

I also understand about english not same as english uft-8.

ManageSettings.php is only in 2.0, Its ModSettings.php in 1.X , You are probably using the wrong package. This (http://custom.simplemachines.org/mods/index.php?action=download;mod=698;id=50002) is the package you should be using.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 04, 2008, 05:35:52 PM
Hi,

It stunning but have one problem.

the User CP button is not right on menu.

please see image for what i mean

How do i rectify ??? , This theme i have seems to be very hard to add buttons to it as i tried on previous occasions but never works for me.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on October 04, 2008, 07:31:24 PM
Quote from: genieuk on October 04, 2008, 05:35:52 PM
Hi,

It stunning but have one problem.

the User CP button is not right on menu.

please see image for what i mean

How do i rectify ??? , This theme i have seems to be very hard to add buttons to it as i tried on previous occasions but never works for me.

Okay see this topic for how to add the button to your theme ( its the last theme currently listed in the post )

http://www.simplemachines.org/community/index.php?topic=167975.msg1386370#msg1386370
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bugpac ™ on October 04, 2008, 08:47:55 PM
Was there anyway to remove the delete account option?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bugpac ™ on October 04, 2008, 08:56:46 PM
Got a few errors to resolve now, i did the check everything uncheck everything as well....

Apply Filter: Only show the errors with the same message
8: Undefined index: usercp_adminid
Apply Filter: Only show the errors from this file
File: /home/bugpac/public_html/index/Themes/default/usercp.template.php (main sub template - eval?)
Line: 149

149 <a href="' ,$scripturl, '?action=pm;sa=send;u=' ,$modSettings['usercp_adminid'], '"><img border="0" src="',$settings['images_url'],'/usercp/agent.png" width="80" height="80"></a></td>';



Apply Filter: Only show the errors with the same message
8: Undefined index: usercp_adminid
Apply Filter: Only show the errors from this file
File: /home/bugpac/public_html/index/Themes/default/usercp.template.php (main sub template - eval?)
Line: 187

187 <font face="Verdana" size="2"><a href="' ,$scripturl, '?action=pm;sa=send;u=' ,$modSettings['usercp_adminid'], '"><b>',$txt['usercp_contact_admin'],'</a><br>
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 04, 2008, 09:21:38 PM
did you even bother to read ANY of the previous messages?

I posted a way to remove the dlete account option based on permissions a few pages back...   and I explained how to get around the undefined index about 10 posts back.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bugpac ™ on October 04, 2008, 09:44:30 PM
Quote from: Bugpac ™ on October 04, 2008, 08:56:46 PM
Got a few errors to resolve now, i did the check everything uncheck everything as well....

Apply Filter: Only show the errors with the same message
8: Undefined index: usercp_adminid
Apply Filter: Only show the errors from this file
File: /home/bugpac/public_html/index/Themes/default/usercp.template.php (main sub template - eval?)
Line: 149

149 <a href="' ,$scripturl, '?action=pm;sa=send;u=' ,$modSettings['usercp_adminid'], '"><img border="0" src="',$settings['images_url'],'/usercp/agent.png" width="80" height="80"></a></td>';



Apply Filter: Only show the errors with the same message
8: Undefined index: usercp_adminid
Apply Filter: Only show the errors from this file
File: /home/bugpac/public_html/index/Themes/default/usercp.template.php (main sub template - eval?)
Line: 187

187 <font face="Verdana" size="2"><a href="' ,$scripturl, '?action=pm;sa=send;u=' ,$modSettings['usercp_adminid'], '"><b>',$txt['usercp_contact_admin'],'</a><br>
Quote from: Kindred on October 04, 2008, 09:21:38 PM


did you even bother to read ANY of the previous messages?

I posted a way to remove the dlete account option based on permissions a few pages back...   and I explained how to get around the undefined index about 10 posts back.

Obviously you didnt read mine either....
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bugpac ™ on October 04, 2008, 09:47:13 PM
Quote from: Kindred on September 18, 2008, 12:48:36 AM
Hey Alan,

I just had the chance to install this on my SMF 2.0 installation.

Very nice.  However, one (relatively) major permissions issue.
On my forum, we don't allow most users to delete their own accounts.
The UserCP mod has no checks in it for delete permissions.

to that end:
change

<!-- Delete Account Image -->

<td align="center" width="25%" valign="top">
<a href="', $scripturl, '?action=profile;u=', $user_info['id'], ';sa=deleteAccount"><img border="0" src="',$settings['images_url'],'/usercp/delete.png" width="80" height="80"></a></td>
</tr>

to

<!-- Delete Account Image -->

<td align="center" width="25%" valign="top">';
if (allowedTo('profile_remove_own') || allowedTo('profile_remove_any'))
echo '<a href="', $scripturl, '?action=profile;u=', $user_info['id'], ';sa=deleteAccount"><img border="0" src="',$settings['images_url'],'/usercp/delete.png" width="80" height="80"></a>';

echo '
</td>
</tr>


and change

<!-- Delete Account Text -->
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=', $user_info['id'], ';sa=deleteAccount"><b>',$txt['usercp_delete_account'],'</a><br>
</b></font><font face="Verdana" size="1">',$txt['usercp_delete_account_summary'],'</font></td>
</tr>

to

<!-- Delete Account Text -->
<td align="center" width="25%" valign="top">';
if (allowedTo('profile_remove_own') || allowedTo('profile_remove_any'))
echo'
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=', $user_info['id'], ';sa=deleteAccount"><b>',$txt['usercp_delete_account'],'</a><br>
</b></font><font face="Verdana" size="1">',$txt['usercp_delete_account_summary'],'</font>';

echo '
</td>
</tr>


this will maintain the layout, but not display the option, if they do not have the permission.

What file do i change?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 05, 2008, 05:49:33 AM
Hi,

Alan S, I sent you a PM regarding my admin panel. its all jibberish on :

Current Theme
and
Themes and Layout

plus the urls look all funny now aswell not sure if they suppose to be like that. Also sent you a PM about doing the button edit for me as a bit of code is not found in file when i do a search on it.

If you of course don't mind in helping me sort this problem

Thanks,
Mathew

I will give FTP details if you prefer as it may be quicker.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 05, 2008, 09:05:49 AM
bugpak....  you modify usercp.template.php

as for the undefined... look at which one it is.
It's not actually a checkbox one. So, extend what I said, and assign an admin ID into the field in usercp setup (the one where you tell the system what userID the admin is for PM/contact)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 05, 2008, 05:19:05 PM
Can someone please help me?

I have custom theme user CP works fine apart from

1) Error Log :

Members Name
IP Address
http://www.foreverlastingfriends.co.cc/index.php?action=usercp;u=1
Undefined variable: user_info
File: /home/sites/foreverlastingfriends.co.cc/public_html/Themes/Simple_Green105/usercp.template.php (eval?)
Line: 207


2) The User CP button is not disaplying properly even thou i followed instructions for the Simple_Green theme, some stuff it asking to find does not exist in my index.template.php file

3) In my admin the "themes and layout" and "current theme" when i click on the links my pages are jibberish since installing User CP


I am so stuck and just not got a clue how to solve this if someone can really help me it would be an honour.

See images for what i mean

If someone want to help i can give login details to do amendments for me if they prefer. It seems to be a problem all the time with the simple_green theme i am using as if you see in first image the treasury mod works great but that button is the same aswell.

Please Someone Help been trying to sort it for a while now an i have given up as tried everything i know and understand, i need a programmer to come to my rescue.

Thank you,
Mathew
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bugpac ™ on October 05, 2008, 05:21:13 PM
I had a similar problem with the language string, in your language selection do you have 2 english selections?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 05, 2008, 05:32:04 PM
Hi when i installed SMF i just choose english nothing else, not sure exactly what you mean sorry.


In themes/Simple_Green 105/Languages/ i got the following files:

Modifications.english.php
Settings.english.php

and in

themes/default/Languages i got the following sort of files

index.english.php
modifications.english.php and so on

I am in a pickle with this, hope someone can help me

Thank you,
Mathew

Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 05, 2008, 07:14:22 PM
Anyone?

Please read above two post and help me am i clueless to sorting this out and need help, i have tried my best but with no luck and need someone who knows what they doing to sort it for me.

Mat
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 05, 2008, 10:30:13 PM
GenieUK...   you've mad 4 posts in under 24 hours. Learn some patience. Not everyone spends all day online and it may take some time for someone who knows what to do to see your message. General rule of thumb is to wait at least 24 hours before posting a bump about the same issue.

why do you have the usercp template in your simplegreen theme directory?  It should only be int he default.

Why do you have a modifications.englisgh.php in your simplegreen theme language directory? That file, too, should only be in the default theme.

also, you don't indicate which version of the mod or which version of SMF that you are running.
Last of all... the usercp mod does not make any changes to the theme admin.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 05, 2008, 11:38:44 PM
Hi,


Sorry.

First simple_green theme came with modifications.english.php file with it it is modded that file., usercp.template well i could remove that

I am using SMF 1.1.6. Oh god what wrong with my admin panel,

Would you want to have a look for me? I will pay if needed so i can sort it out.

Problems i need sorting are:

) Admin Panel 2 of the links as stated previously when clicked are all strange (i think the url might not be rite but not sure as they have all different digits etc on the end of them)

2) Menu button not showing properly (i did follow guide for the simple_theme and still no luck

3) i choose for users not to delete there own accounts but the delete account button shows so i followed the tutorial on this thread and it removes it but a gap remains

4) I only want guests using the one theme only but again it shows so that needs removing to

Sounds alot but the person who knows what they doing probably sort it out very quickly.

I can provide login details etc for ftp or which ever preferred.

Thank you,
Mathew
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 06, 2008, 12:48:47 AM
well, the theme should not have come with that file...   the existence of that file is why nothing will show with the basic installation of this mod.

(sorry, at this time, I do not have time to look into your specific problems...  however, general answers:)

1) As I said, this mod does not change anything in the admin panel for themes. Did you instgall any other mods?

2) I would ask in the thread for that theme regarding the button.

3) Yes, it will leave a gap.  There is more coding than I felt was worth it to remove the gap and collapse the next field up.   So, either it shows or it doesn't, but the space is always there.

4) Sorry...   that is slightly more involved than the removal of the delete account button...   but if you have not given them permission to change themes, then they won;t be able to, even if the button is visible.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 06, 2008, 05:26:58 AM
Hi,

I have a few mods installed but only noticed this problems after installing UserCP, and the buttons is just a problem of needing adjusting. a programmer will probably know which file to look at for the "theme and layout" and "current" theme as when  i click on them the pages are not displayed properly. The buttons are probably a very quick job if someone knows what they are doing.

So if anyone can help i will pay if need to sort these problems please let me know as i do not know who else to ask. ??? ???

these are what the "theme and layout" url looks like,  is it suppose to have all those letters, numbers on the end ???

http://www.foreverlastingfriends.co.cc/index.php?action=theme;sa=admin;sesc=9f05dbbe5f2e915e0f8e91898e8c9057

and the current theme page url looks like this

http://www.foreverlastingfriends.co.cc/index.php?action=theme;sa=settings;th=11;sesc=9f05dbbe5f2e915e0f8e91898e8c9057

Are they normal ??


Thank you,
Mathew
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 06, 2008, 08:16:24 AM
genie...

Those are the session ID and are perfectly correct on the URL.  Is that the problem you werer worried about?

As for the buttons showing...   I already told you, even if the button itself shows, if the usergroup (guest or other) does not have the permission to change the theme, then they can't.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 06, 2008, 08:33:32 AM
Hi,

No i dont mean the URLS, check the attached images below.

Also i dont mena the User CP buttons i am talking about the main menu User CP button including my Donation button that the same.

Images show you what I mean.

Thanks
Mat

UPDATE:

I have installed a fresh install and am now using a completely different theme, I am now wanting to know if someone will do the mod installs for me?

I have MSN if that easier, can provide MSN email address on request, I will pay someone to do it who knows what they are doing.

Also now i have setup my new forum how do i:

My old forum (the one that has caused me more problems than it worth) is at www.foreverlastingfriends.co.cc , when i completely delete that from /public_html/ what do i have to do to transfer my new forum to the /public_html/ directory ???

at the moment my new forum is http://www.foreverlastingfriends.co.cc/foreverlastingfriendstest/index.php

as you can see it in a directory called /foreverlastingfriendstest/

So i need to know how i remove it to the public_html/directory when i remove old forum ???

I know i got to update links not sure if it anything else but not sure how to do that ???

Thanks
Mat
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bugpac ™ on October 06, 2008, 11:23:10 AM
Looks like a language thing to me, i had the same exact thing happen on my forum...
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 06, 2008, 12:27:43 PM
The button/menu issue is because you have not added the button code correctly for your theme.

The missing strings is because your theme incorrectly had modifications.emglish.php in the theme itself rather than depending on the default theme version... (mods only install automatically into the default theme) therefor, the strings did not get added to your theme's modifications.english.php


Also, I split off your other post requesting help with all the other mods, and placed it in the "Help wanted" section.  At this point, we seem to be repeating ourselves on how to "fix" your forum with this mod.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 06, 2008, 12:39:17 PM
Hi,

Just to let you know i have reinstalled SMF and with a new theme which is easy peasy as all mods installed without a hitch via package manager very little edits was required.

Also i am getting help now off F.L.A.M.E.R. Programmer no longer needed.

Thank you,
Mathew
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Mack450 on October 06, 2008, 09:53:38 PM
Hey I seem to have a prob. Mine doesn't show the images



Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bugpac ™ on October 06, 2008, 11:06:02 PM
The images go into the default theme, you likely will have to copy them to the theme you have...I think anyways...
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 07, 2008, 08:21:46 AM
Quote from: Mack450 on October 06, 2008, 09:53:38 PM
Hey I seem to have a prob. Mine doesn't show the images

you did not copy the usercp images directory into your theme directory
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Mack450 on October 07, 2008, 09:09:55 AM
Quote from: Kindred on October 07, 2008, 08:21:46 AM
Quote from: Mack450 on October 06, 2008, 09:53:38 PM
Hey I seem to have a prob. Mine doesn't show the images

you did not copy the usercp images directory into your theme directory
Hi can someone please explain i am kinda new to this.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 07, 2008, 10:47:19 AM
Hi,

As you are using a custom theme you need to move the folder that came with the mod "usercp" (which has the images in to Themes/yourthemename/images/

You need to leave the images in the "usercp" just copy the "usercp" folder to the directory given above and all should be fine.

Hope this helps  :D

Mat
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Mack450 on October 07, 2008, 11:54:27 AM
Quote from: genieuk on October 07, 2008, 10:47:19 AM
Hi,

As you are using a custom theme you need to move the folder that came with the mod "usercp" (which has the images in to Themes/yourthemename/images/

You need to leave the images in the "usercp" just copy the "usercp" folder to the directory given above and all should be fine.

Hope this helps  :D

Mat
Thanks man! That helped!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 08, 2008, 08:05:20 AM
Hi,

I looked at the info "Kindred" gave to remove the themes and delete account option. Now i want to replace the gaps with my own stuff as it not nice seeing gaps.

Basically i want to replace:

<!-- Theme Option Image -->

<td align="center" width="25%" valign="top">
<a href="', $scripturl, '?action=theme;sa=pick;u=', $ID_MEMBER, ';sesc=', $context['session_id'], '"><img border="0" src="',$settings['images_url'],'/usercp/blockdevice.png" width="80" height="80"></a></td>


so i first want to replace the image to my own, to make things easier an neat i will put the new image in usercp folder, what code is it to change it so my own image is shown ???

Also i need to replace this bit:

<!-- Theme Option Text -->

<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"> <a href="', $scripturl, '?action=theme;sa=pick;u=', $ID_MEMBER, ';sesc=', $context['session_id'], '"><b>',$txt['usercp_my_theme'],'</a><br>
</b></font><font face="Verdana" size="1">',$txt['usercp_my_theme_summary'],'</font></td>


Replace that bit above so i can add my own text underneath image. Can anyone give me the code and i can the just fill in the gaps for example fill in gaps for image location and change text ???

Once i am given the info i can use it to do the same for the Delete Account and i can change it accordingly.

Please help me and if you will give me code to replace the above 2 so i can fill in the gaps with my own image and text to make the user cp page neat without gaps.

Thanks
Mathew

Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bugpac ™ on October 08, 2008, 01:47:08 PM
I believe there is 4 user set options in the cp configuration.... goto admin and browse around for the ucp settings, no need to code it in...
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 08, 2008, 01:55:04 PM
Hi,

I know that but it does not fill in the gaps.

When you remove the delete account and theme option you are left with gaps. and when you add new options to the User CP via admin it does not fill in the gaps instead it goes on next row.

I am looking for a way to fill in the gaps with my own text and image so it looks neat and tidy.

Mathew
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 08, 2008, 03:37:25 PM
the way it is currently coded, that would be difficult.

I'm currently working on some coding which may make it easier...  when I have it working for myself, I'll pass it on to Alan...  He can use it or not, since this is his mod.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 08, 2008, 04:00:48 PM
Excellent hopefuly this will be a very soon feature, that when you dont want people to see theme and delete account button you can fill in the blanks via admin or something.

Can't way desperate to get the gaps filled in.

Cheers! :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: SpectroPro on October 14, 2008, 01:23:55 AM
This may seem trivial...but the version changes shows the mod is at 2.0.2.  The version when it is installed shows 2.0.2.  The version listed on the mod at the top of the mod site is "Latest Version:  2.2"

I wasn't paying attention to the revision list, and uninstalled and deleted my 2.0.2 to upgrade to 2.2.   LOL  OOPS!!!!

Anyways, just thought I would mention it if no one else caught it.

- Greg
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on October 14, 2008, 11:41:59 AM
UserCP V2.2 is for SMF 2.0 Beta ONLY! , It wont work on any 1.X forums.

2.0.2 is the latest 1.X version.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: SpectroPro on October 14, 2008, 02:50:37 PM
Quote from: Alan S on October 14, 2008, 11:41:59 AM
UserCP V2.2 is for SMF 2.0 Beta ONLY! , It wont work on any 1.X forums.

2.0.2 is the latest 1.X version.

Then where is the 2.2 version?  I don't see it, so I must be blind..  I am running 2.0b4 of SMF...  Yes, I see the file NAMED 2.2 but when installed, it shows 2.0.2  NOT 2.2.  That's my point.  There is an error apparently (typo) in the package...  No biggie, Just wanted to point it out...  THAT is the version I have, btw.

Greg
Title: Re: User Control Panel ( User CP ) V3.0
Post by: romper on October 14, 2008, 07:42:57 PM
Don't get it, it worked, and then it stopped working....usrcp was seen but when you cliked on it nothing happened, and I had to delete it because my "features and options" didn't work any more....
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on October 15, 2008, 09:00:24 AM
Quote from: SpectroPro on October 14, 2008, 02:50:37 PM
Quote from: Alan S on October 14, 2008, 11:41:59 AM
UserCP V2.2 is for SMF 2.0 Beta ONLY! , It wont work on any 1.X forums.

2.0.2 is the latest 1.X version.

Then where is the 2.2 version?  I don't see it, so I must be blind..  I am running 2.0b4 of SMF...  Yes, I see the file NAMED 2.2 but when installed, it shows 2.0.2  NOT 2.2.  That's my point.  There is an error apparently (typo) in the package...  No biggie, Just wanted to point it out...  THAT is the version I have, btw.

Greg

Ah i see , Thanks for the tip , Have updated the package on the mod site.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: EvilGeneral on October 15, 2008, 10:22:42 AM
"My Groups" panel would be a nice feature. Hm?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Sudhakar Arjunan on October 15, 2008, 12:14:57 PM
Hi Alan S,

Is there any new updated available. I could see the mod updated in the mods page.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 15, 2008, 12:27:10 PM
Quote from: asudhakar on October 15, 2008, 12:14:57 PM
Hi Alan S,

Is there any new updated available. I could see the mod updated in the mods page.

I thought the same but i think it is to do with the second post up from yours.

Mathew
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on October 15, 2008, 12:49:36 PM
No new update , I simply fixed a error in the 2.2 package , The version of the UserCP was displaying wrong.

Quote from: EvilGeneral on October 15, 2008, 10:22:42 AM
"My Groups" panel would be a nice feature. Hm?

Maybe if you explain more i can make it happen.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: machmanx on October 15, 2008, 05:28:29 PM
I second genieuk's idea of allowing us to edit the options shown in the panel.  I'd love that.

Otherwise, can you, Alan S, create a custom edit for us?  I hope I'm not asking too much.

Basically, I want the delete button removed (because user can accidently delete himself)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: SpectroPro on October 15, 2008, 06:15:47 PM
deleting an account doesn't happen with just one click from the user.  And you can easily set the option to require admin approval for all account deletions...  I have this option set.  Then if someone were to accidentally do it, they can just ask me to fix it. 
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 15, 2008, 07:14:53 PM
have you bothered to search?   I posted code that will remove the display of the delete button, if the user doesn't have permission to do so.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 15, 2008, 07:27:30 PM
Hi,

He probably has searched but want the same as me no gaps where we have removed the text and icon.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: SpectroPro on October 15, 2008, 08:40:39 PM
If the space thing is such a HUGE issue for some people, which it apparently is, why not just add a pop up to the mod so that if a user has no permission to delete their own account (really stupid to force people to stay signed up...or make them get permission to leave, unless you only care about numbers) and they click on the delete button, it says:  Sorry, you can't delete your own account!

Course, being the smart ass I am, I would add in there, that they must stay a member because as the owner, I only care about numbers for advertising purposes and so I look bigger than I really am.. 

sorry, that's a sore issue with me when sites make people stay members..  you can leave, but they will never delete your account because advertisers want numbers...

Anyways, seems a nice solution. Then you keep the button, and if the option is off, it does nothing (which it would do nothing now if the option is off anyways, ) and it tells them they can't use it.  This way, no big gap that so many are ******ing about.

- Greg

----------------
Listening to: Led Zeppelin - Bonzo's Montreux (http://www.foxytunes.com/artist/led+zeppelin/track/bonzos+montreux)
via FoxyTunes (http://www.foxytunes.com/signatunes/)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: machmanx on October 16, 2008, 10:18:38 PM
Actually, I did bother to search; I'm no newbie to SMF forums.  The question is, have you bothered to see how accurate the search function is?  I recommend you try it, Kindred.  I searched for "remove delete button" "delete button" and "delete", and the only result I get is your latest post or the one before it.

My advice:  To prevent people from asking about stuff that has already been answered, then the first post of this topic should be edited to include any modifications that have been given to users so that they have NO excuse to ask a question which has already been answered.  That's what I do on my forums, and it works pretty well, no complaints yet.

Now that I know such a modification has been made, I'll have to go through this topic page by page to find what it is I'm looking for, unless you can give me the page or post number in which you have posted such a modification, which would be very helpful.  But anyway, a simple "Yes, such a modification exists" would've been a sufficient answer to my question.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: jdvarner on October 17, 2008, 11:04:10 PM
just tried this on my site. dont see option to of the new user cp? running smf 1.1.6 with tp 1.0.5 and theme dilber mc. mod applied succesffuly but no change was noticed. and did not find any options to modify anything to take advantage of this mod.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 18, 2008, 07:45:55 AM
once again....  mods only install into english and the default theme.
(and english utf-8 is NOT the same as english)

Anything else... (like a different theme) and you will have to manually install this mod into your custom theme files.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on October 19, 2008, 05:46:56 AM
Installed your mod and it's damn good but just noticed this in my error logs

Quotehttp://carbonize.co.uk/Lazarus/Forum/index.php?action=usercp

8: Undefined index: usercp_field1enable

File: /home/xxxxxx/public_html/Lazarus/Forum/Themes/default/usercp.template.php (main sub template - eval?)
Line: 236

That was when a Global Moderator used the CP.

This is on 2 beta 4 and was installed just using the package.

In fact the same error crops up a lot when he viewed it but with different line numbers each time.

253, 247, 241, 226, 221, 216 and 211,.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on October 19, 2008, 05:52:35 AM
Me again. Some different errors I just found from when the admin (ie myself) used the User CP.

8: Undefined index: usercp_field4enable
File: /home/xxxxx/public_html/Lazarus/Forum/Themes/default/usercp.template.php (main sub template - eval?)
Line: 253

8: Undefined index: usercp_field3enable
File: /home/xxxxx/public_html/Lazarus/Forum/Themes/default/usercp.template.php (main sub template - eval?)
Line: 247

8: Undefined index: usercp_field2enable
File: /home/xxxxx/public_html/Lazarus/Forum/Themes/default/usercp.template.php (main sub template - eval?)
Line: 241

8: Undefined index: usercp_field1enable
File: /home/xxxxx/public_html/Lazarus/Forum/Themes/default/usercp.template.php (main sub template - eval?)
Line: 236

And so on and so forth.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 19, 2008, 09:19:47 AM
looks like your fields did not get properly initialized...

add a space to each field and check "enable" for each... and save... 

then go back and uncheck the enable and clear the spaces.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on October 19, 2008, 10:25:04 AM
If thats aimed at me then I don't know what you're talking about because I just used the package to install this on a upgrade from 1.1.6 to 2.0 beta 4.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on October 19, 2008, 10:36:43 AM
A quick look at the code for usercp.template.php shows me that the errors are referring to the custoom fields for the User CP so obviously the problem only exists if you haven't set these to anything.

I've just commented out he entire fourt row of images section and that seems to have fixed the issue for me. Not like i intend using the custom fields anyway.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: SpectroPro on October 19, 2008, 02:37:13 PM
What he was referring to, is an odd bug in 2.b4 that requires changes made to options that are 'set' in mods..  In other words, when you install a mod that has options in the admin panel, you need to change the settings of the options (if off, turn on, if on, turn off) and if they have text fields, put something in those fields....  then save your settings.  Now, just go back and set all the options and fields to whatever you want, and save again.  This should eliminate the errors you get in your logs.   

Worked for me with all my errors of that type. 

- Greg

----------------
Greg is currently listening to: Deep Purple - Smoke on the Water (http://www.foxytunes.com/artist/deep+purple/track/smoke+on+the+water)
via FoxyTunes (http://www.foxytunes.com/signatunes/)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on October 19, 2008, 02:55:48 PM
Ah well my fix works for now but will go back and restore the block once this strange bug is quoshed.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: thegcalgary on October 22, 2008, 09:26:57 AM
are you able to make a mod for theme Nostalji?
http://custom.simplemachines.org/themes/index.php?lemma=629 (http://custom.simplemachines.org/themes/index.php?lemma=629)

Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 22, 2008, 11:17:32 AM
carbonize...   the "bug" is gone (without removing code) if you just activate all the fields, save, then deactivate and save.

Calgary, look at the manual install instructions...   apply those changes to your custom theme.   If you plan to run your board in a custom theme, you need to learn how to manually apply mods to that theme. Even in 2.0, not all themes will support automatic installation.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on October 22, 2008, 12:27:08 PM
I know that I just can't be bothered logging in to FTP and removing th eblock quotes. I have no intention of using the custom fields anyway.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: thegcalgary on October 22, 2008, 07:52:02 PM
Quote from: Kindred on October 22, 2008, 11:17:32 AM
carbonize...   the "bug" is gone (without removing code) if you just activate all the fields, save, then deactivate and save.

Calgary, look at the manual install instructions...   apply those changes to your custom theme.   If you plan to run your board in a custom theme, you need to learn how to manually apply mods to that theme. Even in 2.0, not all themes will support automatic installation.

I did. Nothing happened. the UserCP shows in the admin section, but nothing appears in profiles.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 22, 2008, 09:10:02 PM
UserCP does not change the existing profiles.

It makes a new screen called by action=usercp

action=profile still goes to the standard profile
Title: Re: User Control Panel ( User CP ) V3.0
Post by: AlenNS on October 23, 2008, 08:55:57 AM
Can I install this mod on Beta 4?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on October 23, 2008, 10:57:39 AM
Quote from: AlenNS on October 23, 2008, 08:55:57 AM
Can I install this mod on Beta 4?

Yes ,  Use this (http://custom.simplemachines.org/mods/index.php?action=download;mod=698;id=72212) package.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: AlenNS on October 23, 2008, 12:14:45 PM
Thanks!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: thegcalgary on October 23, 2008, 01:42:29 PM
Quote from: Kindred on October 22, 2008, 09:10:02 PM
UserCP does not change the existing profiles.

It makes a new screen called by action=usercp

action=profile still goes to the standard profile

Gotcha...

so I have to manually code in the action=usercp into the...thingy were the links are
Title: Re: User Control Panel ( User CP ) V3.0
Post by: jeddi on October 28, 2008, 05:35:33 PM
I like this mod but it causes errors for me, 12 errors every time I install it.
Any help well appreciated
Im on beta4. and have these mods installed
Mod Name     Version     
1.    YouTube BBCode    2.4
2.    AvatarOnBoard    2.1    
4.    User Control Panel By Alan S    2.2    
5.    Custom Tab    1.11    
6.    Advanced Reputation System    1.5.2    
7.    Ad Managment    2.3.4
8.    Users Online Today    1.5.4
9.    RSS Feed Icon    1.1    
10.    Yarex 2 smiley set


Apply Filter: Only show the error messages of this IP address  81.155.99.22       Apply Filter: Only show the error messages of this session  5d9f6d3a631623f8bc450690b73a7113
     Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL http://www.mysite.com/forum/index.php?action=usercp
Apply Filter: Only show the errors with the same message
8: Undefined index: usercp_field4enable
Apply Filter: Only show the errors from this file
File: /home/atelier/public_html/forum/Themes/default/usercp.template.php (main sub template - eval?)
Line: 226
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 28, 2008, 05:38:43 PM
1- are you running smf 2.0b4?
2- did you try reading through this thread or using search?

I have answered this at least twice in this very thread...
check all of the boxes ON, add a space to all of the text fields, save
then uncheck and delete the spaces. save
Title: Re: User Control Panel ( User CP ) V3.0
Post by: jeddi on October 28, 2008, 05:49:17 PM
yes 2.0beta4
tried the search.

and don't understand the rest of what your saying.

[edit] ok slowly getting there, only 2 errors left:

Apply Filter: Only show the errors with the same message
8: Undefined index: usercp_adminid
Apply Filter: Only show the errors from this file
File: /home/atelier/public_html/forum/Themes/default/usercp.template.php (main sub template - eval?)
Line: 149

No idea what to put there in that box!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 28, 2008, 08:22:42 PM
put your admin user's ID in that box
Title: Re: User Control Panel ( User CP ) V3.0
Post by: jeddi on October 29, 2008, 06:26:39 AM
please excuse my lack of knowledge!

I tried this :
?action=profile;u=1;       (perhaps this is incomplete?)

it doesn't stay in the box after I click save
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 29, 2008, 08:20:41 AM
just the ID...  i.e.   just the number 1
Title: Re: User Control Panel ( User CP ) V3.0
Post by: jeddi on October 29, 2008, 08:26:46 AM
Ahh! that worked!
thanks Kindred
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 30, 2008, 10:02:10 PM
I notice an update has been made, i am running SMF 1.1.6 - User CP version 2.0,

does the upgrade apply to me? if so which do i download now? and what changes are there?

Thank you,
Mathew
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on October 30, 2008, 10:03:33 PM
no... the new version can only be used with SMF 2.0

The menu as an array is a standard feature/design in SMF 2.0, but is not supported in 1.1.x
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on October 30, 2008, 10:07:32 PM
Quote from: Kindred on October 30, 2008, 10:03:33 PM
no... the new version can only be used with SMF 2.0

The menu as an array is a standard feature/design in SMF 2.0, but is not supported in 1.1.x

I will be glad when SMF2 is out of beta so i can install the latest of mods with better features, i am not kean on beta so will have to wait,

also sorry for asking just realised that all the info i just asked was on the mod page.

Mathew
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on October 31, 2008, 05:18:40 AM
Really nice work on 3. You still need to make the contact admin link honour the boards settings of either showing the email address or using the inbuilt mail sending.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on October 31, 2008, 01:36:36 PM
Quote from: carbonize on October 31, 2008, 05:18:40 AM
Really nice work on 3. You still need to make the contact admin link honour the boards settings of either showing the email address or using the inbuilt mail sending.

Thanks , Kindred deserves most of the credit for V3.0 though. The way the usercp is built by arrays is his coding , not mine.

Pity i had'nt thought of that before. That feature will have to wait untill RC1 comes out.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Sudhakar Arjunan on November 01, 2008, 12:32:49 PM
I have installed and it does not show usercp or profile button to all users except admin id.

Is there any permission to be updated in the page.

Using 2.0.4 beta
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on November 01, 2008, 01:07:42 PM
If the UserCP is enabled and the users have permissions to view/edit the normal profile screen the UserCP button should show.

Are you using a custom theme , Were there any errors on installation?


- Alan
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Sudhakar Arjunan on November 01, 2008, 01:17:36 PM
HI Alan, you have supported for the version 1 earlier to my forum.

Thanks for your Active Support to your mod.

Yes am using Custom theme, i used praser and i had added a line inside my custom theme index " loadLanguage('usercp'); "

Now no more big errors, Previously i had got 600 pages of error before doing this mod edit.

Now i got a different error.

Hope bots visiting wap , xml had throwed some error as follow.


http://discuss.itacumens.com/index.php?action=xmlhttp;sa=jumpto;xml
Apply Filter: Only show the errors with the same message
8: Undefined index: usercp
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Sources/Subs.php
Line: 3988

http://discuss.itacumens.com/index.php?topic=24604.0;wap2
Apply Filter: Only show the errors with the same message
8: Undefined index: usercp
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Sources/Subs.php
Line: 3988

http://discuss.itacumens.com/index.php?/topic,18478.0/wap2.html
Apply Filter: Only show the errors with the same message
8: Undefined index: usercp
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Sources/Subs.php
Line: 3988

http://discuss.itacumens.com/index.php?topic=24321.0;wap2
Apply Filter: Only show the errors with the same message
8: Undefined index: usercp
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Sources/Subs.php
Line: 3988


only few pages of error like above.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: genieuk on November 01, 2008, 01:51:13 PM
Yippy!

Since being a member of SMF i have learnt allot from everyone, i have learnt and managed to fill in the gaps for the user cp page. No more gaps  :D

I can now say i love this mod even more now that i filled the horrible gaps in.

Mathew
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on November 01, 2008, 02:43:24 PM
Quote from: A.SK on November 01, 2008, 01:17:36 PM
HI Alan, you have supported for the version 1 earlier to my forum.

Thanks for your Active Support to your mod.

Yes am using Custom theme, i used praser and i had added a line inside my custom theme index " loadLanguage('usercp'); "

Now no more big errors, Previously i had got 600 pages of error before doing this mod edit.

Now i got a different error.

Hope bots visiting wap , xml had throwed some error as follow.


http://discuss.itacumens.com/index.php?action=xmlhttp;sa=jumpto;xml
Apply Filter: Only show the errors with the same message
8: Undefined index: usercp
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Sources/Subs.php
Line: 3988

http://discuss.itacumens.com/index.php?topic=24604.0;wap2
Apply Filter: Only show the errors with the same message
8: Undefined index: usercp
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Sources/Subs.php
Line: 3988

http://discuss.itacumens.com/index.php?/topic,18478.0/wap2.html
Apply Filter: Only show the errors with the same message
8: Undefined index: usercp
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Sources/Subs.php
Line: 3988

http://discuss.itacumens.com/index.php?topic=24321.0;wap2
Apply Filter: Only show the errors with the same message
8: Undefined index: usercp
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Sources/Subs.php
Line: 3988


only few pages of error like above.

Whats line 3988 of subs.php?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Sudhakar Arjunan on November 01, 2008, 03:23:46 PM
Quote from: Alan S on November 01, 2008, 02:43:24 PM
Whats line 3988 of subs.php?

           'usercp' => array(
            'title' => $txt['usercp'],
            'href' => $scripturl . '?action=usercp',    - Line 3988
            'show' => $context['usercp_enable'],
            'sub_buttons' => array(
            ),
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on November 01, 2008, 05:28:54 PM
Hmmm okay its a bug in the mod , will have to work on it to find the source and the fix.

Title: Re: User Control Panel ( User CP ) V3.0
Post by: Sudhakar Arjunan on November 01, 2008, 06:27:41 PM
Quote from: Alan S on November 01, 2008, 05:28:54 PM
Hmmm okay its a bug in the mod , will have to work on it to find the source and the fix.

I have almost deleted many pages of errors created due to google bot.

Help us to fix it soon. Thanks in advance , bye.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on November 02, 2008, 07:37:21 AM
I'm no sure it is a bug in the mod...  I have this installed and have no problems with those errors.

Plus, BOTS should never see the userCP, since it should be retsricted to logged in members only (after all, only members have a profile)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on November 02, 2008, 12:13:01 PM
Quote from: Kindred on November 02, 2008, 07:37:21 AM
I'm no sure it is a bug in the mod...  I have this installed and have no problems with those errors.

Plus, BOTS should never see the userCP, since it should be retsricted to logged in members only (after all, only members have a profile)

Your not using my version of the mod however , I believe your using your own RC1 version of the mod , I made a few changes to your code and made a few addons to the my code aswell.

If your using V3.0 , you will get the error if you vist  action=xmlhttp;sa=jumpto;xml

I was thinking the same thing though , The UserCP doesnt have any RSS feeds sand it has nothing to do with the xml page so i dont know why a error would  be displaying on that action.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on November 02, 2008, 03:57:05 PM
Yup, that is true, but I didn't change THAT part of the code at all. :)

Hmmm....  it might be an incorrectly closed argument before or in (this affecting after) the added code (?)

Can you confirm that
there are three closing parens just before the usercp array (at the end of the profile array)?
there are two closing parens at the end of the usercp array, but before the PM array?



Wait...   in that code that I gave you, did I have you read the menu array into $smcFunc? (or did you change it do this?)

Either that, or it might be the load permissions thing...
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Sudhakar Arjunan on November 08, 2008, 10:43:02 AM
Hey Author,

All errors (28768) - Pages: [1] 2 3 ... 1918

In 1 hour. You have to get yes some codes to rectify the error.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on November 08, 2008, 11:41:16 AM
Quote from: A.SK on November 08, 2008, 10:43:02 AM
Hey Author,

All errors (28768) - Pages: [1] 2 3 ... 1918

In 1 hour. You have to get yes some codes to rectify the error.

And the error message is?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: SISPro on November 08, 2008, 09:59:15 PM
I think this is a problem with this mod cause i am getting this error log and it is filling up the log report

http://freeimageforum.com/index.php?action=jseditor;view=0;sesc;xml
Apply Filter: Only show the errors with the same message
8: Undefined index: usercp
Apply Filter: Only show the errors from this file
File: /home2/ac919h/public_html/Sources/Subs.php
Line: 3971
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Propaganistas on November 10, 2008, 10:29:33 AM
Hiya,

I'd like to have this modification for the theme Ancient and Rusted (http://custom.simplemachines.org/themes/index.php?lemma=100) :)

Thanks in advance,
Propa
Title: Re: User Control Panel ( User CP ) V3.0
Post by: searchgr on November 11, 2008, 01:17:42 AM
I get the following error:

8: Undefined index: thumbnail_href
File: /home/*******/public_html/Themes/default/Themes.template.php (pick sub template - eval?)
Line: 440

which is related to the line 440:

      <td rowspan="2" width="126" height="120"><img src="', $theme['thumbnail_href'], '" alt="" /></td>

The error appears every time a member goes to the UserCP and select 'My Themes'


Can you please help me to fix it?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Tyrsson on November 12, 2008, 02:04:48 AM
Ok folks maybe you can help me with this...

I was using this mod on 2.0 beta 4. It installed with all test passed, but after that it started giving me errors so I tried to uninstall it. I got test failed results on several files.

I made the file edits manually and uninstalled the mod.

The forum is now error free but there is no longer a "Profile" tab in the main menu.....

Can anyone point me in the right direction on how to get the profile tab to show back up on the menu??

Thanks in advance!!!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on November 12, 2008, 12:35:41 PM
Quote from: searchgr on November 11, 2008, 01:17:42 AM
I get the following error:

8: Undefined index: thumbnail_href
File: /home/*******/public_html/Themes/default/Themes.template.php (pick sub template - eval?)
Line: 440

which is related to the line 440:

      <td rowspan="2" width="126" height="120"><img src="', $theme['thumbnail_href'], '" alt="" /></td>

The error appears every time a member goes to the UserCP and select 'My Themes'


Can you please help me to fix it?

That file is unrelated to the UserCP , That file is a part of the SMF Core distribution , I would ask in the SMF 1X or 2.X support forums.

Quote from: SISPro on November 08, 2008, 09:59:15 PM
I think this is a problem with this mod cause i am getting this error log and it is filling up the log report

http://freeimageforum.com/index.php?action=jseditor;view=0;sesc;xml
Apply Filter: Only show the errors with the same message
8: Undefined index: usercp
Apply Filter: Only show the errors from this file
File: /home2/ac919h/public_html/Sources/Subs.php
Line: 3971


Yes it is a bug in V3.0 , Working on it but my time is very limited lately.

Quote from: Tyrsson on November 12, 2008, 02:04:48 AM
Ok folks maybe you can help me with this...

I was using this mod on 2.0 beta 4. It installed with all test passed, but after that it started giving me errors so I tried to uninstall it. I got test failed results on several files.

I made the file edits manually and uninstalled the mod.

The forum is now error free but there is no longer a "Profile" tab in the main menu.....

Can anyone point me in the right direction on how to get the profile tab to show back up on the menu??

Thanks in advance!!!

In your Subs.php file , find ( should be somewhere in within lines 3700 to 3800 depending on any mods you have installed.


'calendar' => array (


Add before it


'profile' => array(
'title' => $txt['profile'],
'href' => $scripturl . '?action=profile',
'show' => $context['allow_edit_profile'],
'sub_buttons' => array(
'summary' => array(
'title' => $txt['summary'],
'href' => $scripturl . '?action=profile',
'show' => true,
),
'account' => array(
'title' => $txt['account'],
'href' => $scripturl . '?action=profile;sa=account',
'show' => allowedTo(array('profile_identity_any', 'profile_identity_own', 'manage_membergroups')),
),
'profile' => array(
'title' => $txt['forumProfile'],
'href' => $scripturl . '?action=profile;sa=forumProfile',
'show' => allowedTo(array('profile_extra_any', 'profile_extra_own')),
),
),


And that should display your profile button.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Tyrsson on November 12, 2008, 12:41:17 PM
Thank you for the reply. I have it fixed!!!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: searchgr on November 12, 2008, 12:41:41 PM
Any clue why this icon is missing?

(http://www.simplemachines.org/community/index.php?action=dlattach;topic=167975.0;attach=75436;image)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Tyrsson on November 12, 2008, 12:48:59 PM
Quote from: Kindred on November 02, 2008, 03:57:05 PM
Yup, that is true, but I didn't change THAT part of the code at all. :)

Hmmm....  it might be an incorrectly closed argument before or in (this affecting after) the added code (?)

Can you confirm that
there are three closing parens just before the usercp array (at the end of the profile array)?
there are two closing parens at the end of the usercp array, but before the PM array?



Wait...   in that code that I gave you, did I have you read the menu array into $smcFunc? (or did you change it do this?)

Either that, or it might be the load permissions thing...

Quotethere are two closing parens at the end of the usercp array, but before the PM array?
I can't swear to this but when I was having trouble with this mod I think this was an issue... Best I can remember there were three....
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on November 13, 2008, 04:55:00 PM
Quote from: searchgr on November 12, 2008, 12:41:41 PM
Any clue why this icon is missing?

(http://www.simplemachines.org/community/index.php?action=dlattach;topic=167975.0;attach=75436;image)

That has nothing to do with the UserCP , but make sure there is a thumbnail.gif image inside that themes images directory
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Sudhakar Arjunan on November 13, 2008, 05:29:12 PM
Hi Author, Any update for the xml link issue Which i have raised and you have confirmed it as a bug on latest version.

I have uninstalled for time being.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: edi67 on November 14, 2008, 09:48:58 AM
I installed this mod, useful thx, but i had a lot of errors Undefined Index: $txt['usercp']

So i changed this line:
'title' => $txt['usercp'],

in this way:
'title' => (!isset($txt['usercp']) ? '' : $txt['usercp']),

and not more errors ;) i wrote this only for know Alan.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on November 14, 2008, 05:25:48 PM
There is a problem with version 3 that stops captcha from working. I just spent effing hours tracking down why captcha wasn't working just to find it was because you had a load of white space after the closing ?> in your language files.

I also turned on error logging and discovered that usercp was creating an error when someone viewed an entry using wap. I fixed it by adding the $txt['usercp'] = 'User CP'; to the wireless language file.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Sudhakar Arjunan on November 14, 2008, 08:31:10 PM
Quote from: carbonize on November 14, 2008, 05:25:48 PM
There is a problem with version 3 that stops captcha from working. I just spent effing hours tracking down why captcha wasn't working just to find it was because you had a load of white space after the closing ?> in your language files.

I also turned on error logging and discovered that usercp was creating an error when someone viewed an entry using wap. I fixed it by adding the $txt['usercp'] = 'User CP'; to the wireless language file.

Yes your right. I had My default captcha broken and its not showing.
I have raised issues in many places and found that one saying . There many be a white spaces on a file .

I have Overridden the error with other mod,
http://www.simplemachines.org/community/index.php?topic=213535.msg1781046#msg1781046

Author informed that error is due to inserted code or other space at the top of your file,
http://www.simplemachines.org/community/index.php?topic=213535.msg1781102#msg1781102

I will uninstall the smf recptcha mod and use it now with default captcha by uninstalling user cp v 3.0.

Quote from: carbonize on November 14, 2008, 05:25:48 PM
I also turned on error logging and discovered that usercp was creating an error when someone viewed an entry using wap. I fixed it by adding the $txt['usercp'] = 'User CP'; to the wireless language file.

Is this a correct solution or temporary solution for wap issue created by bots over my forum.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on November 15, 2008, 06:06:18 AM
It was only bots in my case or rather one particular spider. I have now banned Yahoo! Slurp spider from my forum as I was getting thousands of hits a day from it. The day before I blocked them (using robots.txt) I had over 3000 hits. Yahoo seriously needs to fix it's stuff but as someone who has used Yahoo stuff for years (chat, email, messenger) I don't expect them to fix it anytime soon.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Keith Tysinger on November 20, 2008, 07:56:00 AM
Your suggestion nearly fixed all of my problems, however errors are still generated when a member uses the spell checker or (I believe) post preview.

The $txt['usercp'] must be missing somewhere else besides the wireless language file. Any thoughts?

Quote from: carbonize on November 14, 2008, 05:25:48 PM
There is a problem with version 3 that stops captcha from working. I just spent effing hours tracking down why captcha wasn't working just to find it was because you had a load of white space after the closing ?> in your language files.

I also turned on error logging and discovered that usercp was creating an error when someone viewed an entry using wap. I fixed it by adding the $txt['usercp'] = 'User CP'; to the wireless language file.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on November 20, 2008, 10:54:06 AM
What's the url from the error message?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Keith Tysinger on November 20, 2008, 05:19:00 PM
I am still getting these types of errors:

http://www.mysite.com/forum/index.php?action=spellcheck
8: Undefined index: usercp
File: /var/www/vhosts/mysite.com/httpdocs/forum/Sources/Subs.php
Line: 3969

http://www.mysite.com/forum/index.php?action=register;sa=usernamecheck;xml;username=tutu
8: Undefined index: usercp
File: /var/www/vhosts/mysite.com/httpdocs/forum/Sources/Subs.php
Line: 3969


Here is 3968 in Subs: (second line is problem). 3967 is a blank line, but I guess that is ok?

           'usercp' => array(
            'title' => $txt['usercp'],
            'href' => $scripturl . '?action=usercp',
            'show' => $context['usercp_enable'],
            'sub_buttons' => array(
            ),
               ),'pm' => array(
            'title' => $txt['pm_short'],
            'href' => $scripturl . '?action=pm',
            'show' => $context['allow_pm'],
            'sub_buttons' => array(
               'pm_read' => array(
                  'title' => $txt['pm_menu_read'],
                  'href' => $scripturl . '?action=pm',
                  'show' => allowedTo('pm_read'),
               ),
               'pm_send' => array(
                  'title' => $txt['pm_menu_send'],
                  'href' => $scripturl . '?action=pm;sa=send',
                  'show' => allowedTo('pm_send'),
               ),
            ),
         ),

Also, could someone tell me how to turn on the sub-menu items? I've never seen them. I am using 2.0 B 4.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: BillyBob31 on November 20, 2008, 11:15:27 PM
Are you gonna make this compatible with 1.1.7? I was using it with 1.1.6 and upgraded now it doesn't work on 1.1.7 and im really really bummed about that.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: BillyBob31 on November 21, 2008, 12:54:11 PM
If anyone has gotten this to work for 1.1.7 can someone help me to get it to work on mine. I am using default theme and when i try to install through packages only error that comes up is test failed in file ./sources/ModSettings.php  everything else passes so can anyone help get this to work for me please?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Keith Tysinger on November 23, 2008, 04:03:09 PM
I added $txt['usercp'] to index.english.php and all is well. It is a bug in the install or my permission was not set correctly.

Quote from: kc2002 on November 20, 2008, 05:19:00 PM
I am still getting these types of errors:

http://www.mysite.com/forum/index.php?action=spellcheck
8: Undefined index: usercp
File: /var/www/vhosts/mysite.com/httpdocs/forum/Sources/Subs.php
Line: 3969

http://www.mysite.com/forum/index.php?action=register;sa=usernamecheck;xml;username=tutu
8: Undefined index: usercp
File: /var/www/vhosts/mysite.com/httpdocs/forum/Sources/Subs.php
Line: 3969


Here is 3968 in Subs: (second line is problem). 3967 is a blank line, but I guess that is ok?

           'usercp' => array(
            'title' => $txt['usercp'],
            'href' => $scripturl . '?action=usercp',
            'show' => $context['usercp_enable'],
            'sub_buttons' => array(
            ),
               ),'pm' => array(
            'title' => $txt['pm_short'],
            'href' => $scripturl . '?action=pm',
            'show' => $context['allow_pm'],
            'sub_buttons' => array(
               'pm_read' => array(
                  'title' => $txt['pm_menu_read'],
                  'href' => $scripturl . '?action=pm',
                  'show' => allowedTo('pm_read'),
               ),
               'pm_send' => array(
                  'title' => $txt['pm_menu_send'],
                  'href' => $scripturl . '?action=pm;sa=send',
                  'show' => allowedTo('pm_send'),
               ),
            ),
         ),

Also, could someone tell me how to turn on the sub-menu items? I've never seen them. I am using 2.0 B 4.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: BillyBob31 on November 23, 2008, 06:22:29 PM
Does someone  need my old version from the 1.1.6 smf to be able to edit it to work on 1.1.7? If anyone can do this please tell me. Its only 1 file that fails on the install so it cant be too bad.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Keith Tysinger on November 23, 2008, 09:51:49 PM
A lot of changes are made in the ModSettings.php file. How many errors are you getting in that one file?

The best thing is to install as usual, and then go in and manually do whatever fails. Are all of the changes failing in the modsettings file or just one?

Quote from: BillyBob31 on November 23, 2008, 06:22:29 PM
Does someone  need my old version from the 1.1.6 smf to be able to edit it to work on 1.1.7? If anyone can do this please tell me. Its only 1 file that fails on the install so it cant be too bad.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: BillyBob31 on November 24, 2008, 01:09:02 AM
jsut the modsettings u know when u tell it to install and that warning comes up and shows the problem file modsettings in red ... thats all i went to the mod and click the manual setup say for 1.1.6 and it wouldnt open so i couldnt even do that =/
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on November 24, 2008, 03:12:09 AM
Strange thought but why does SMF load the language files when all it is going to do is display a captcha image? Seems like a waste of resources to me.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Keith Tysinger on November 25, 2008, 04:25:06 PM
Isn't CP 3.0 only for SMF 2.0? Maybe not. But if you will click on install, it will list all of the "Installations actions." Click on the little triangle before each file to see all actions.

Now how many errors are you getting for that one file?

Quote from: BillyBob31 on November 24, 2008, 01:09:02 AM
jsut the modsettings u know when u tell it to install and that warning comes up and shows the problem file modsettings in red ... thats all i went to the mod and click the manual setup say for 1.1.6 and it wouldnt open so i couldnt even do that =/
Title: Re: User Control Panel ( User CP ) V3.0
Post by: BillyBob31 on December 01, 2008, 08:07:24 PM
Quote from: kc2002 on November 25, 2008, 04:25:06 PM
Isn't CP 3.0 only for SMF 2.0? Maybe not. But if you will click on install, it will list all of the "Installations actions." Click on the little triangle before each file to see all actions.

Now how many errors are you getting for that one file?

Quote from: BillyBob31 on November 24, 2008, 01:09:02 AM
jsut the modsettings u know when u tell it to install and that warning comes up and shows the problem file modsettings in red ... thats all i went to the mod and click the manual setup say for 1.1.6 and it wouldnt open so i couldnt even do that =/

This is what i get for Install Actions after Clicking Apply Mod:

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Themes/default/index.template.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
6.    Extract Tree    ./Themes/default/images/usercp   
7.    Extract File    ./Sources/usercp.php   
8.    Extract File    ./Themes/default/usercp.template.php   
9.    Execute Code    install.php
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on December 01, 2008, 09:14:28 PM
I thought that v3.0 was only for SMF 2.0 as well...

but if it fails on one of the files, then take a look at the manual installation instructions for that file and do the changes yourself...

BTW: I'm not sure *WHY* the error is happening with the language files (the usercp should not be called at all from the XML view of the forum), but I now know the easiest way to fix it...   add the error strings into modifications.english.php in addition to usercp.english.php.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: RoH on December 02, 2008, 08:39:52 AM
its a great MOD, can the author please code it to work on NEW 1.1.7 installation please.

Thanks
Title: Re: User Control Panel ( User CP ) V3.0
Post by: BillyBob31 on December 02, 2008, 01:51:06 PM
Just got it to work on 1.1.7  I went and said install (even tho i had that 1 error) then i went and edited that 1 error file modsettings.php manually went to the manual install and found the part for that file and i went and seen what the auto install didnt edit and put in and with a lil common sense and search i edited it and got it to work took maybe 15 min of editing. So it does work on 1.1.7!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: taha116 on December 28, 2008, 05:17:12 PM
Please make a version that will work for 1.1.7 I do know how to edit but i do not want to take any risks, Once i spent hours and hours for weeks and when my site was complete I was still unsatisfied (big mistake) I edited a little and mus have forgoten a tag here or there and bam, whole theme got jacked up and I could not find the tiniest little issue
Title: Re: User Control Panel ( User CP ) V3.0
Post by: magarto on December 30, 2008, 10:37:46 AM
I have found a bug. Please check the whole thread: http://www.simplemachines.org/community/index.php?topic=282853.msg1858365#msg1858365
BR
Title: Re: User Control Panel ( User CP ) V3.0
Post by: taha116 on December 30, 2008, 10:47:46 AM
Looking for a manual edit for V3.... I need to modify my subs.php file to install this can anyone do it?

       Type     Action     Description
*    1.    Execute Modification    ./index.php    Test successful
      1.    Add Before    ./index.php    Test successful
*    2.    Execute Modification    ./Themes/default/index.template.php    Test successful
      1.    Add After    ./Themes/default/index.template.php    Test successful
*    3.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Replace    ./Sources/Subs.php    Test failed

      2.    Add Before    ./Sources/Subs.php    Test successful
*    4.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Add After    ./Sources/Admin.php    Test successful
      2.    Add Before    ./Sources/Admin.php    Test successful
*    5.    Execute Modification    ./Sources/ManageSettings.php    Test successful
      1.    Add After    ./Sources/ManageSettings.php    Test successful
      2.    Add Before    ./Sources/ManageSettings.php    Test successful
   6.    Extract Tree    ./Themes/default/images/usercp    
   7.    Extract File    ./Sources/usercp.php    
   8.    Extract File    ./Themes/default/usercp.template.php    
   9.    Extract File    ./Themes/default/languages/usercp.english.php    
   10.    Extract File    ./Themes/default/languages/usercp.english-utf8.php    
   11.    Execute Code    install.php

As you can see only one part failed in subs.php


Find [Select]

// Set up the menu privileges.
$context['allow_search'] = allowedTo('search_posts');
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
$context['allow_edit_profile'] = !$user_info['is_guest'] && allowedTo(array('profile_view_own', 'profile_view_any', 'profile_identity_own', 'profile_identity_any', 'profile_extra_own', 'profile_extra_any', 'profile_remove_own', 'profile_remove_any', 'moderate_forum', 'manage_membergroups'));

Replace [Select]

// Set up the menu privileges.
$context['allow_search'] = allowedTo('search_posts');
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
$context['usercp_enable'] = !$user_info['is_guest'] && $modSettings['usercp_enable'] && allowedTo(array('profile_view_own', 'profile_view_any', 'profile_identity_own', 'profile_identity_any', 'profile_extra_own', 'profile_extra_any', 'profile_remove_own', 'profile_remove_any', 'moderate_forum', 'manage_membergroups'));
  $context['allow_edit_profile'] = !$user_info['is_guest'] && !$modSettings['usercp_enable'] && allowedTo(array('profile_view_own', 'profile_view_any', 'profile_identity_own', 'profile_identity_any', 'profile_extra_own', 'profile_extra_any', 'profile_remove_own', 'profile_remove_any', 'moderate_forum', 'manage_membergroups'));

Title: Re: User Control Panel ( User CP ) V3.0
Post by: LadyC on January 04, 2009, 11:29:30 AM
i'd like to add a custom field to view reputation, which is (of course) user specific. i found the instructions for doing this manually for version 2.0, but i'm using the 3.0. could someone point me to some updated instructions if they've been posted?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on January 04, 2009, 04:07:19 PM
LadyC, Are you running SMF 2.0?

The updated list of functions is listed as an array in UserCP.php.
Just like every other menu in SMF 2.0, the display is built from the related array, so copy a section, and add in your values.

You'll also need to copy a section into the admin section for the "show/don't show checkbox.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: LadyC on January 04, 2009, 05:58:52 PM
yep, using smf 2b4... thanks for the info!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ke4obt on January 09, 2009, 07:54:08 AM
Hello there,

Quick question, I am putting a site together for a very wide range of people, young and old, hard of hearing as well as visually impared people and a multitude of other disabilities.
I've found a small "very small" problem I need some help with.

Out of the box, there are four custom link fields, when I've filled them in and then go to use them with a screen-reader, it reads out the link as well as, "USER CP FIELD X", where X= the field number. I only get this in the image and link areas. Please, oh pretty please,  :(   would you be so kind as to let me know where to go and fix this little, "huge", problem.
This is the only problem I'm having right now.

Ooops, almost forgot - I'm running SMF 2.0 Beta 4 and User CP 3.0.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on January 09, 2009, 08:11:11 AM
i think you'd have to update usercp.template.php...   but I think it should be pulling in the title that you used for each of the fields.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: SilverKnight on January 09, 2009, 09:34:26 AM
Does it work with ultimate profile?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ke4obt on January 16, 2009, 11:21:29 PM
Quote from: Kindred on January 09, 2009, 08:11:11 AM
i think you'd have to update usercp.template.php...   but I think it should be pulling in the title that you used for each of the fields.


sorry for taking so long to reply, got busy with a computer acting up.
however, it DOES pull the title in, but also the screen reader reads/"sees" the USERFIELD_X. I (Mickey) don't see it, but the screen reader says it's there.
I'll have to check out the usercp.template.php file and see what, if anything, I can find there.

Thanks,
Mickey
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Ashdaw on February 12, 2009, 07:20:16 AM
I tried to add this to an install of SMF 2.0 RC1 and it would NOT let me through package manager? are you planning an update? :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on February 12, 2009, 05:28:18 PM
Yes , But i cannot say when it will be , I am very busy at the moment.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Ashdaw on February 13, 2009, 05:43:44 AM
Thanks for the answer. I use your CP mod on my main site using 1.1.8 and the members love it. Thanks for making it available and I can understand that it would be a big task rewriting it:) I can wait.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on February 13, 2009, 03:16:31 PM
Given that you mostly use your own page I doubt there is a lot, if anything, you have to change for it to work with RC1.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on February 13, 2009, 07:18:25 PM
you have to change all of the links for all of the functions because the profile actions have changed.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on February 14, 2009, 05:16:02 AM
Ah ok but nothing overly complex then. Something I can possibly do myself I suppose.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: wilsy on February 21, 2009, 09:38:51 AM
Quote from: carbonize on February 14, 2009, 05:16:02 AM
Ah ok but nothing overly complex then. Something I can possibly do myself I suppose.

Do you have TP installed?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on February 21, 2009, 10:21:20 AM
No as I prefer to have full control over the things on my site (except the forum of course).
Title: Re: User Control Panel ( User CP ) V3.0
Post by: harmsway on February 23, 2009, 05:20:04 PM
I don't know if this has already been posted, so sorry if it has. I tried installing this onto my forums, and I'm using the theme Manuscript. I tried entering the custom codes, but it ends up not showing the User CP or anything past "Profile". How do I fix this? What am I doing wrong?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on February 25, 2009, 01:13:08 PM
What SMF version and what UserCP version are you using?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: harmsway on February 25, 2009, 07:46:53 PM
Oops, sorry! I'm using 1.17
Title: Re: User Control Panel ( User CP ) V3.0
Post by: AlenNS on March 02, 2009, 05:37:47 PM
When will be update for RC1? :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bass_Chaz on March 06, 2009, 07:37:49 PM
Great Mod BTW
1.1.8
Was wondering about Custom fields.
Can I add one to direct a user to the Paid Subscriptions page?
This way, it would be easy and more visible way to point members to a subscription.
What would I put in the URL field?
Thanks in advance..
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on March 07, 2009, 07:51:20 AM
you would put whatever the url is for your paid subscription page
Title: Re: User Control Panel ( User CP ) V3.0
Post by: AlenNS on March 11, 2009, 09:57:54 PM
Quote from: AlenNS on March 02, 2009, 05:37:47 PM
When will be update for RC1? :)
Bump
Title: Re: User Control Panel ( User CP ) V3.0
Post by: GKDantas on March 22, 2009, 11:29:36 PM
Just a question about using CP:

1 - I want to use the custom field to redirect to User Gallery (Using SMF Gallery Pro), so I need to use the following code in the URL:

http://carraralounge.com/index.php?action=gallery;su=user;u='$ID_MEMBER'

But I get the follow message: No user selected.

Someone can help me? Using SMF 1.1.8; CP 2.0

http://carraralounge.com
Title: Re: User Control Panel ( User CP ) V3.0
Post by: DareDevil1990 on March 22, 2009, 11:59:47 PM
will this work with smf 1.1.8?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on March 23, 2009, 03:33:30 PM
Sorry GKD...  you can not use variables in the URL.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on March 23, 2009, 04:01:49 PM
Quote from: GKDantas on March 22, 2009, 11:29:36 PM
Just a question about using CP:

1 - I want to use the custom field to redirect to User Gallery (Using SMF Gallery Pro), so I need to use the following code in the URL:

http://carraralounge.com/index.php?action=gallery;su=user;u='$ID_MEMBER'

But I get the follow message: No user selected.

Someone can help me? Using SMF 1.1.8; CP 2.0

http://carraralounge.com

You will have to manualy add another field. See here (http://www.simplemachines.org/community/index.php?topic=167975.msg1445809#msg1445809)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Realinfo on March 31, 2009, 10:14:13 AM
2.   Execute Modification   .\Themes\default/index.template.php   Test failed
3.   Execute Modification   .\Sources/ModSettings.php   Test failed


Help to slove that............ I have 1.1.8
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on March 31, 2009, 05:40:55 PM
you will need to manually apply the mod to those files. (and probably to your custom theme files as well, since you are on 1.1.x)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Realinfo on March 31, 2009, 09:58:52 PM
Quote from: Kindred on March 31, 2009, 05:40:55 PM
you will need to manually apply the mod to those files. (and probably to your custom theme files as well, since you are on 1.1.x)

So Please gide me.. what i have to add manually in those files................ and where I have to do........... and is it possible that u will do it for me.............
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bec on March 31, 2009, 10:42:52 PM
have tried to use package parser but its coming up saying its corrupted. would someone please mind posting the manual edits here (pretty please)

thanks :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: nukinfuts on April 01, 2009, 05:54:10 PM
any chance to get this working on 2.0rc1?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: b0dyr0ck2006 on April 04, 2009, 05:39:02 PM
What would be the process to get this working in 2.0RC1? I will happily do the edits myself.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 04, 2009, 05:56:15 PM
you have to modify the action url strings in the usercp.php source file
Title: Re: User Control Panel ( User CP ) V3.0
Post by: b0dyr0ck2006 on April 04, 2009, 06:03:55 PM
No problem, so just to clarify then. which of the many downloads should I use for 2.0RC1?

Thanks for your help.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 04, 2009, 11:52:56 PM
use the 2.0 beta 4 download and modify each of the action urls in the usercp.php file
Title: Re: User Control Panel ( User CP ) V3.0
Post by: [unplugged] on April 05, 2009, 12:04:07 AM
Hello. I was sorting out some errors in my error log and noticed an undefined index: usercp_copyright. I checked all of my files and sure enough, the $txt is missing. Can someone please tell me what it is so I can add it back to the usercp.english.php?  :P
Title: Re: User Control Panel ( User CP ) V3.0
Post by: b0dyr0ck2006 on April 05, 2009, 06:08:32 AM
So I would change this:
Quote'account' => array(
            'title' => $txt['usercp_account_info'],
            'href' => $scripturl . '?action=profile;u=' . $user_info['id'] . ';sa=account',
            'img' => $settings['images_url'].'/usercp/ksysguard.png',
            'txt' => $txt['usercp_account_info_summary'],
            'show' => !empty($modSettings['usercp_enable_account']),
         ),

To this:
Quote'account' => array(
            'title' => $txt['usercp_account_info'],
            'href' => $scripturl . '?action=profile;area=account;u=' . $user_info['id'],
            'img' => $settings['images_url'].'/usercp/ksysguard.png',
            'txt' => $txt['usercp_account_info_summary'],
            'show' => !empty($modSettings['usercp_enable_account']),
         ),
Is that right?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 05, 2009, 08:35:37 AM
that looks correct
Title: Re: User Control Panel ( User CP ) V3.0
Post by: b0dyr0ck2006 on April 05, 2009, 12:32:44 PM
Well I made all the edits that you recommended uploaded and installed the new RC1 version and.....

It didn't work!!

Very odd as everything is looking at the correct place.

Any ideas? I can add the files if needed.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bec on April 05, 2009, 06:01:43 PM
Quote from: Bec on March 31, 2009, 10:42:52 PM
have tried to use package parser but its coming up saying its corrupted. would someone please mind posting the manual edits here (pretty please)

thanks :)

would appreciate some help :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 05, 2009, 08:14:25 PM
look in the XML file. all of the edits are listed in there
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bec on April 05, 2009, 11:31:18 PM
what file do I need to edit to change this

"Confused? or have a quirey? Contact the admin at this screen"

just looks very unprofessional to have spelling mistakes in there!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 06, 2009, 06:34:23 AM
usercp.english.php
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Realinfo on April 06, 2009, 10:27:45 PM
Quote from: Realinfo on March 31, 2009, 09:58:52 PM
Quote from: Kindred on March 31, 2009, 05:40:55 PM
you will need to manually apply the mod to those files. (and probably to your custom theme files as well, since you are on 1.1.x)

So Please gide me.. what i have to add manually in those files................ and where I have to do........... and is it possible that u will do it for me.............


BUMP...........
Title: Re: User Control Panel ( User CP ) V3.0
Post by: [unplugged] on April 06, 2009, 10:35:27 PM
Anyone have this info for me? It can't be that difficult.  :P
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Bec on April 07, 2009, 11:18:57 AM
Quote from: Kindred on April 06, 2009, 06:34:23 AM
usercp.english.php

where would I find the file? Had a look in my default - languages folder and its not there....



*** its actually in /default/languages/Modifications.english.php
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 07, 2009, 11:28:17 AM
oh...you're using 1.1.x
Title: Re: User Control Panel ( User CP ) V3.0
Post by: b0dyr0ck2006 on April 08, 2009, 05:00:44 PM
OK got it working on 2.0RC1, had to use the UserCPV2.2_SMF2.X file instead for some reason.

Went away did some theme edits and now i've lost the link on the menu bar??

Any Ideas?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: b0dyr0ck2006 on April 10, 2009, 05:28:58 PM
How would I change the title on the menu bar from usercp to profile?

I'm using 2.0RC1 with an edited Dilber theme and UserCPV2.2_SMF2.X edited with the correct url strings.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Chit-Chat ChatterBox Boss on April 19, 2009, 09:34:17 PM
SMF 2.0 RC1 and UserCP 3.0 (edited the install files to allow to install on 2.0 RC1).


8: Undefined index: usercp_usepm
File: /home/XXXXXXX/public_html/Sources/usercp.php
Line: 115 
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Chit-Chat ChatterBox Boss on April 28, 2009, 07:59:51 PM
Quote from: cafontaine on April 19, 2009, 09:34:17 PM
SMF 2.0 RC1 and UserCP 3.0 (edited the install files to allow to install on 2.0 RC1).


8: Undefined index: usercp_usepm
File: /home/XXXXXX/public_html/Sources/usercp.php
Line: 115 


Bump
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 28, 2009, 08:18:20 PM
this mod will not currently work with 2.0RC1 without modification to the usercp.php file
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Chit-Chat ChatterBox Boss on April 28, 2009, 09:04:34 PM
Quote from: Kindred on April 28, 2009, 08:18:20 PM
this mod will not currently work with 2.0RC1 without modification to the usercp.php file

Everything works except what I posted. Do you know what I have to change for usercp.php to be fully working?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Chit-Chat ChatterBox Boss on April 28, 2009, 09:57:27 PM
Quote from: Kindred on April 28, 2009, 08:18:20 PM
this mod will not currently work with 2.0RC1 without modification to the usercp.php file

I went through usercp.php and changed it. what needed to be edited is where it said like
$user_info['id'] . ';sa=forumProfile'
needed to be changed to
$user_info['id'] . ';area=forumProfile'
and same with the rest like that.


8: Undefined index: usercp_usepm
File: /home/XXXXXXX/public_html/Sources/usercp.php
Line: 115 


Quote
'profile' => array(

            'title' => $txt['usercp_my_profile'],

            'href' => $scripturl . '?action=profile;u=' . $user_info['id'] . ';area=forumProfile',

            'img' => $settings['images_url'].'/usercp/kuser.png',

            'txt' => $txt['usercp_my_profile_summary'],     <----- Line 115

            'show' => !empty($modSettings['usercp_enable_profile']),

         ),

Just so you know what line 115 is
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 29, 2009, 08:01:13 AM
actually, I do not think that is line 115...   

However,   go into your admin for usercp... turn ON all options and save.
then turn OFF the options that you don't want.
Also, if you have the UserCP set to use PM to contact the admin, make sure that you have a userID in the field as well.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Chit-Chat ChatterBox Boss on April 29, 2009, 10:12:08 AM
odd something in doing that seemed to have worked (I also cleared the cache in the admin section which I didnt do since I fixed the usercp.php file). I also had use pm instead of email UNchecked but had a webmaster ID put (now I dont webmaster ID is now 0 and that use pm instead is unchecked.  Everything though now seems to be working. Thanks for the support. I'll report back if I come across anything else.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Chit-Chat ChatterBox Boss on April 29, 2009, 07:04:42 PM
1 Last problem then everything is perfect

my profile setup page is:
http://www.XXXXXX/index.php?action=profile;area=forumprofile;u=1

and with this:
'profile' => array(
'title' => $txt['usercp_my_profile'],
'href' => $scripturl . '?action=profile;u=' . $user_info['id']' . ';area=forumProfile',
'img' => $settings['images_url'].'/usercp/kuser.png',
'txt' => $txt['usercp_my_profile_summary'],
'show' => !empty($modSettings['usercp_enable_profile']),
),

it brings me to:
http://www.XXXXXX/index.php?action=profile;u=1;area=forumProfile

See the "u=1" is in the wrong location. I adjusted all the other to work all I had to change was sa > area  (example sa=account > area=account) in the code. But now all work except profile. How do I get it to do what its supposed to?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 29, 2009, 07:30:21 PM
???    The location of the arguments in a url does not matter...
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Chit-Chat ChatterBox Boss on April 29, 2009, 07:41:06 PM
it does cause this:
http://www.XXXXXXX/index.php?action=profile;u=1;area=forumProfile

brings me to "profile info"

I want this:
http://www.XXXXXXX/index.php?action=profile;area=forumprofile;u=1

brings me to "forum profile" (where you edit your profile)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 30, 2009, 12:17:19 AM
odd... it works for me
but if you insist... just move the u= section....

'href' => $scripturl . '?action=profile;area=forumProfile;u=' . $user_info['id'],
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Chit-Chat ChatterBox Boss on April 30, 2009, 12:38:22 AM
Quote from: Kindred on April 30, 2009, 12:17:19 AM
odd... it works for me
but if you insist... just move the u= section....

'href' => $scripturl . '?action=profile;area=forumProfile;u=' . $user_info['id'],

works but now i ge this error:

http://XXXXXXXX/index.php?action=helpadmin;help=titlesEnable 
8: Undefined index: usercp
File: /home/XXXXXXX/public_html/Sources/Subs.php
Line: 3815 


Quote
'usercp' => array(   
'title' => $txt['usercp'],   <------ LINE 3815         
'href' => $scripturl . '?action=usercp',            
'show' => $context['usercp_enable'],            
'sub_buttons' => array(            
),               
),

EDIT:
I just cleared the site cache and so far no error msg returned. Let me know if you think this fixed it. If not and you know whats causing it let me know.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 30, 2009, 01:38:27 AM
you can add the following line into modifications.english.php

$txt['usercp']='User CP';
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Chit-Chat ChatterBox Boss on April 30, 2009, 09:26:01 AM
Quote from: Kindred on April 30, 2009, 01:38:27 AM
you can add the following line into modifications.english.php

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

thanks everything is good now =D (for now =p)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Realinfo on May 01, 2009, 02:50:07 AM
Quote from: Realinfo on March 31, 2009, 10:14:13 AM
2.   Execute Modification   .\Themes\default/index.template.php   Test failed
3.   Execute Modification   .\Sources/ModSettings.php   Test failed


Help to slove that............ I have 1.1.8


Help.....................
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on May 01, 2009, 08:34:05 AM
that means that some other mod that you have installed is preventing the automatic installation. You will have to manually edit those files
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Realinfo on May 07, 2009, 04:11:12 AM
yes.......... So tell me.......... what I have to add in these two files........... and where I have to add that...................thanks
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on May 07, 2009, 05:37:15 AM
There is a link to Manual installation instructions on each mod download page.  Pick your SMF version and it will tell you what to look for and what edits to make.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: scimmiotto on May 09, 2009, 05:48:10 AM
hi, is it this mod compatible with smf 2.0 rc1?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ysNoi on May 09, 2009, 09:09:05 AM
Nice mood..! Thanks...

How do I add a code so as to enable this mood on one of my themes..?

Here :

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

                             <span class="menu-left"></span>
                             <span class="menu-mid">' , $txt[79] , '</span>
                             <span class="menu-right"></span>
                         </a>
                                 <div class="sub">
                                 <ul>                                                                           
                                         <li><a href="index.php?action=profile;sa=forumProfile">' , $txt['forpro'] , '</a></li>
                                         <li><a href="index.php?action=profile;sa=theme">' , $txt['layout'] , '</a></li>
                                         <li><a href="index.php?action=profile;sa=account">' , $txt['account'] , '</a></li>                                         
                                         <li><a href="index.php?action=profile;sa=notification">' , $txt['notification'] , '</a></li>
                                  </ul>
                                 <div class="btm-bg"></div>
                                  </div>
                          </li>';

Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on May 09, 2009, 09:36:51 AM
scimmiotto, not without some manual edits to the usercp.php file

ysNoi,   what is that ???   The mod replaces the profile link in the topnav menu.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: scimmiotto on May 09, 2009, 01:07:34 PM
k, i'll wait for final release,  i think that if u will update this mod for rc1, it will work on final release too ('cause it's a rc :) ).
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ysNoi on May 09, 2009, 09:13:57 PM
Hi Kindred, thanks for the reply...

Quote from: Alan S on April 29, 2007, 11:35:54 AM
To Make It Work With A Custom Theme

Index.Template.Php

Find
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>

Replace With
<a href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a>

I'm confused with this part where to add this code...! My <a href="', $scripturl, '?action=profile">' , $txt[79] , '</a> is scattered like I posted on my first post of this thread

How do I replace the code to make it work on my custom themes?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ysNoi on May 10, 2009, 12:37:38 AM
Quote from: Alan S on January 17, 2008, 12:45:54 PM
Want A Theme Listed Here? Let me know!

Can I ask to work it on the following themes..?

-- Outline
-- OutlineOmega_TP
-- Orange Luv
-- Enterprise TP
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on May 10, 2009, 07:00:55 AM
ysNoi...

you replace that code in index.template.php, as instructed...

Since it looks like your theme has sub menus, you'll have to be creative, but this is the basic replacement line
<a' , $current_action=='profile' ? ' class="current"' : '' , ' href="', $scripturl, '?action=profile">

Title: Re: User Control Panel ( User CP ) V3.0
Post by: Realinfo on May 13, 2009, 10:44:16 PM
Quote from: Kindred on May 01, 2009, 08:34:05 AM
that means that some other mod that you have installed is preventing the automatic installation. You will have to manually edit those files

Sorry, but this modification does not appear to be compatible with the selected version..............  I have 1.1.8 ver.................... why not it deal with this ver........... most of people have now this ver........... help......................
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on May 14, 2009, 12:31:37 AM
this mod should work jyst fine with 1.1.8.

As I already said, if you are getting failures on certain files, that typically means that something else (another mod?) has modified the code that this mod is looking for, so you will have to MANUALLY apply the changes to those files.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Realinfo on May 14, 2009, 01:33:02 AM
thanks..... It's working ok now............ One thing more................ I MENU Instead of "USER CP".............. I need "CP"............. what and where I have to make changes..................
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on May 14, 2009, 07:48:03 AM
usercp.english.php (and possibly modifications.english.php)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Realinfo on May 14, 2009, 09:03:18 PM
Quote from: Kindred on May 14, 2009, 07:48:03 AM
usercp.english.php (and possibly modifications.english.php)

yes it was in...... modifications.english.php............ But I got one more problem......... in Admin section , I can't able to open FEATURES and OPTIONs.............. when i open it, i got a blank screen.............. see my MODSETTINGs.php ............. I guess there I got something wrong, as i added things mannually.........
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Joe N on May 15, 2009, 09:54:46 AM
Will this work with smf 2.0 RC1?

Which package should I use?

Joe
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on May 15, 2009, 10:22:19 AM
Quote from: Kindred on April 28, 2009, 08:18:20 PM
this mod will not currently work with 2.0RC1 without modification to the usercp.php file

Please READ the previous pages?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Joe N on May 15, 2009, 12:02:31 PM
Can it be for smf 2.0 rc1!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Realinfo on May 15, 2009, 12:18:43 PM
Quote from: Realinfo on May 14, 2009, 09:03:18 PM
Quote from: Kindred on May 14, 2009, 07:48:03 AM
usercp.english.php (and possibly modifications.english.php)

yes it was in...... modifications.english.php............ But I got one more problem......... in Admin section , I can't able to open FEATURES and OPTIONs.............. when i open it, i got a blank screen.............. see my MODSETTINGs.php ............. I guess there I got something wrong, as i added things mannually.........






BUMP..............

Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on May 15, 2009, 01:12:08 PM
that is certainly not right at all.... (and please do not bump like that  especially with attachments)

you have

// --- Begin modification - SMFBlog ---
'usercp' => 'ModifyUserCPSettings',
// --- End modification ---


sitting all by itself....   it needs to be in the admin array


I have no idea what that smfblog comment is...   but the userCP line needs to be up, just above this one...

      'ultprofile' => 'ModifyUltProfileSettings'
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Realinfo on May 15, 2009, 09:38:42 PM
thanks............ problem sloved............
Title: Re: User Control Panel ( User CP ) V3.0
Post by: mattchewone on May 16, 2009, 05:43:42 PM
Does this replace the profile tab? When you click on the images does it take you back to the same old profile page?

Thanks
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on May 16, 2009, 10:00:31 PM
yes and yes
Title: Re: User Control Panel ( User CP ) V3.0
Post by: lazanya on May 21, 2009, 05:30:37 AM
Quote from: Joe N on May 15, 2009, 12:02:31 PM
Can it be for smf 2.0 rc1!

yes, Can it be for smf 2.0 rc1?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on May 21, 2009, 08:37:54 AM
Quote from: Kindred on May 15, 2009, 10:22:19 AM
Quote from: Kindred on April 28, 2009, 08:18:20 PM
this mod will not currently work with 2.0RC1 without modification to the usercp.php file

Please READ the previous pages?

and AGAIN!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: d0brin on May 24, 2009, 09:22:48 AM
can it be made to work on SMF 1.1.9?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Joe N on May 24, 2009, 09:31:57 AM
Quote from: d0brin on May 24, 2009, 09:22:48 AM
can it be made to work on SMF 1.1.9?

It works with me
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on June 18, 2009, 06:14:09 PM
go ahead and find your own and replace it....


I changed most of the icons, creating my own set from some OpenSource graphics lists.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: MissyNL on June 23, 2009, 08:00:10 AM
HI Alan!! I want to ask.. i am now installing a forum for someone else... and i want to install youre awsome mod... :)

But... when it's uploaded, i get the text : There are no install actions defined..

it's for SMF 2... so i used version 3 :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: dzinerfusion on July 02, 2009, 04:53:54 PM
hi i have 2.0rc1-1 and have installed correctly and uploaded the editted user.php or w/e file from the sources, but its not working, the menu does not display the ''use cp''

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /hsphere/local/home/bluesinjid/modernopolis.simgames.net/forum/Sources/usercp.php on line 64

Its here because when i take that out, my usercp works!

'stats' => array(
'title' => $txt['usercp_my_stats'],
'href' => $scripturl . '?action=profile;u=' . $user_info['id'] . ';area=forumProfile'
'img' => $settings['images_url'].'/usercp/kchart.png',
'txt' => $txt['usercp_my_stats_summary'],
'show' => !empty($modSettings['usercp_enable_stats']),
),
Title: Re: User Control Panel ( User CP ) V3.0
Post by: [unplugged] on July 02, 2009, 05:22:34 PM
Looks like you are just missing a comma at the very end of this line:
'href' => $scripturl . '?action=profile;u=' . $user_info['id'] . ';area=forumProfile',  <------

So the whole block should look like this:

'stats' => array(
'title' => $txt['usercp_my_stats'],
'href' => $scripturl . '?action=profile;u=' . $user_info['id'] . ';area=forumProfile',
'img' => $settings['images_url'].'/usercp/kchart.png',
'txt' => $txt['usercp_my_stats_summary'],
'show' => !empty($modSettings['usercp_enable_stats']),
),

Title: Re: User Control Panel ( User CP ) V3.0
Post by: neteater on July 10, 2009, 12:23:00 AM
will it works with 2.0rc1-1
Title: Re: User Control Panel ( User CP ) V3.0
Post by: [unplugged] on July 10, 2009, 01:50:59 AM
Quote from: Kindred on May 21, 2009, 08:37:54 AM
Quote from: Kindred on May 15, 2009, 10:22:19 AM
Quote from: Kindred on April 28, 2009, 08:18:20 PM
this mod will not currently work with 2.0RC1 without modification to the usercp.php file

Please READ the previous pages?

and AGAIN!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: DilSe on July 11, 2009, 05:37:48 AM
hello to all plz anybody help me

I want uninstall this mod.. when I click uninstall it is I don't get any error but when I back home page on my site
it's not working error is coming but when I install again this mod .. site is working good ..

.. I need uninstall this mod. plz help
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on July 11, 2009, 09:34:33 AM
are you running a custom theme?  IN which case you will have to manually UNINSTALL the mod in the same way that you manually INSTALLED the mod.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Shark-Time on July 24, 2009, 08:48:21 AM
im using SMF 1.1.10..is there any way to use this mod in 1.1.10??
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Apllicmz on July 24, 2009, 11:28:08 PM
yes
try to install
Title: Re: User Control Panel ( User CP ) V3.0
Post by: CesarManara on July 28, 2009, 04:12:18 PM
In attach the correct portuguse_brazilian. Please use this.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: robinrobin on August 10, 2009, 07:22:36 AM
I got loads of these in the error log. Another one appear every time someone visits the UCP:

Type of error: Undefined
/index.php?action=usercp
8: Undefined index: usercp_usepm
File: /Sources/usercp.php
Line: 229
229:  'show' => !$modSettings['usercp_usepm'] && !empty($modSettings['usercp_enablecontactadmin']),

UCP 3.0
SMF 2.0 RC1.2
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Shark-Time on August 12, 2009, 02:34:05 AM
ok its working great on default theme.. how to make it work with custom theme??
please reply..
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Shark-Time on August 12, 2009, 04:00:59 AM
ok.. its done just done some changes manually in index.template.php of custom theme and moved the mod images...now its working great..

but still have a little problem? there is option of edit buddies.. when i click it, it gives me error..
see the caps..


(http://i341.photobucket.com/albums/o377/pakistanihaider/1h.jpg)

(http://i341.photobucket.com/albums/o377/pakistanihaider/1i-1.jpg)

Any suggestion how to fix it??
Title: Re: User Control Panel ( User CP ) V3.0
Post by: robinrobin on August 12, 2009, 07:57:32 AM
*Dadada, lala, bad suppoooooort! Da di da da*
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Shark-Time on August 12, 2009, 11:23:03 AM
Quote from: robinrobin on August 12, 2009, 07:57:32 AM
*Dadada, lala, bad suppoooooort! Da di da da*

what does this suppose to mean??
Title: Re: User Control Panel ( User CP ) V3.0
Post by: robinrobin on August 12, 2009, 11:43:57 AM
Keep your expectations down loooow. About as low as that shark probably is swimming.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Shark-Time on August 12, 2009, 12:04:08 PM
hmmm.. well seems to me that shark is not in swimming mood its on hunting mood..hehe..

well please tell me do any one got any idea how to fix my problem??
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on August 13, 2009, 01:21:55 PM
wow robin... obnoxious much?   Your problem is that it looks like the language file was not added for your language.

As for your issue, shark...    either turn off the access to the buddies icon in the usecp controls or turn ON the ability for users to have buddies in your smf admin.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Shark-Time on August 13, 2009, 05:11:41 PM
i have not seen buddies option in my forum..i have searched for buddies option but i could not find it??
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on August 13, 2009, 10:00:01 PM
What version of SMF are you running, Shark?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Shark-Time on August 14, 2009, 02:19:17 AM
im using 1.1.10
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on August 14, 2009, 08:17:20 AM
hmmm... I have been running 2.0 for a while. I am not certain if I remember if 1.1.x allows buddies....   best bet, use the UserCP controls and turn off the buddy icon
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Shark-Time on August 14, 2009, 08:53:14 AM
yup.. sorry to disturb you guys..
yes i found buddies option in Admin>Features and Options>Basic features.. and it was disables..but after enabling it, it is working great...
i was looking for buddies in wrong place.. any way thanks..
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Alan S on August 17, 2009, 06:50:34 PM
Quote from: robinrobin on August 12, 2009, 11:43:57 AM
Keep your expectations down loooow. About as low as that shark probably is swimming.

If you dont like the support , dont use the mod , I've been extremly busy the last few months and barely have time to be on the computer. I'm very grateful to Kindred for helping people out where he can.

Also , as a side note , if i get a bit of free time im planning on releasing a updated version of the mod for SMF 2.0 RC1.2.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: robinrobin on September 07, 2009, 02:06:12 PM
Quote from: Kindred on August 13, 2009, 01:21:55 PM
wow robin... obnoxious much?

What.. you think total silence for weeks equals to good support? I was being honest and was actually trying to be funny about it since it's not a big deal. Nothing personal.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: robinrobin on September 07, 2009, 02:09:32 PM
Quote from: Alan S on August 17, 2009, 06:50:34 PM
If you dont like the support , dont use the mod , I've been extremly busy the last few months and barely have time to be on the computer. I'm very grateful to Kindred for helping people out where he can.

If you don't get support, you can't use the mod in many occasions. I find it irresponsible of a person to just leave and tell people such a thing when he comes back. Others obviously rely on you and there are many other mod-authors who go silent, make people wait for weeks, and then.. nothing. Some of them abandon their mods without saying squat about it. You have a responsibility to your users, whether you make any money out of it or not.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: TheListener on September 12, 2009, 10:50:09 PM
Attachment as requested by Alan
Title: Re: User Control Panel ( User CP ) V3.0
Post by: villano666 on October 15, 2009, 12:33:15 PM
I'm using the simple wave theme, and I cant make it work. In index.template.php says this
   // Edit Profile... [profile]
   if ($context['allow_edit_profile'])
      echo '<li><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>';

How do I modify this in order to make it work?

Thanks
Title: Re: User Control Panel ( User CP ) V3.0
Post by: TheListener on October 15, 2009, 01:14:43 PM
Have you tried the parse instructions?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: villano666 on October 15, 2009, 02:48:23 PM
Yes i replaced these lines with the ones in the instructions but it broke the option Edit Profile in the forum menu leaving it with no CSS
Title: Re: User Control Panel ( User CP ) V3.0
Post by: meehan09 on October 15, 2009, 03:41:10 PM
I have installed this mod and it seemed to install ok, i see the pictures and text saying my posts my theme etc etc etc but when i click any off them apart from my theme has this one works.


Iam being taken to the profile page and not to what its saying? ie My posts its taking me to my profile ???


Search, My Profile, My theme , work the rest seem to take me to profile?


Hope you can help me fix this, and one other thing is what do i add in the custom enables has its showing a error in admin log has they are not enabled???


http://www.exoticforums.co.uk//index.php?action=usercp
Undefined index: usercp_field4enable
File: /home/reptiles/public_html/Themes/default/usercp.template.php
Line: 253

If i enable thease what do i need to add in there? can anyone give me four examples so this error goes away? or can it be stopped without having them enabled?


Hope somone can help me fix this mod, thanks

Paul
Title: Re: User Control Panel ( User CP ) V3.0
Post by: meehan09 on October 15, 2009, 03:42:55 PM
Also find this error : 

http://www.exoticforums.co.uk//index.php?action=usercp
Undefined index: usercp_usepm
File: /home/reptiles/public_html/Themes/default/usercp.template.php
Line: 151


The main problem is the links are linking back to my profile and not to my posts etc etc? but would like to resolve thease errors also.


Thanks,
Paul
Title: Re: User Control Panel ( User CP ) V3.0
Post by: » мιsтєя мιsғιт « on December 02, 2009, 05:18:53 PM
Any chance of an update to RC 2?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Sudhakar Arjunan on December 05, 2009, 07:52:03 PM
Quote from: » мιsтєя мιsғιт « on December 02, 2009, 05:18:53 PM
Any chance of an update to RC 2?

Same - Is that any chance of 2.0 RC 2 version.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Liam. on January 06, 2010, 06:36:26 PM
Chances for an SMF 2.0 RC2 update? Certainly!

The attachment will install for SMF 2.0 RC2.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on January 07, 2010, 04:15:12 AM
Actually that still does not work with SMF2 RC2 has a lot of the links are incorrect. For example the Look & Layout Options points to index.php?action=profile;u=1;sa=theme when in SMF2 RC2 the correct url is index.php?action=profile;area=theme;u=1

I edited my usercp.php file to fix the issue. Just need to change the sa to area.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: scimmiotto on January 07, 2010, 05:22:28 AM
is it possible to have an update for rc2?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Liam. on January 07, 2010, 06:01:30 AM
I noticed that when I installed it on a live site :/
I'll get right on it.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on January 07, 2010, 10:58:39 AM
Just to add that this causes errors to appear in your log when somebody views via wap. I think that SMF2 is not loading the mod language file when the user is requesting the wap version.

Quote
http://xxxxx.co.uk/Lazarus/Forum/index.php?topic=22.0;wap2

8: Undefined index: usercp

File: /home/xxxxx/public_html/xxxxx/Forum/Sources/Subs.php

Line: 3926
Title: Re: User Control Panel ( User CP ) V3.0
Post by: KensonPlays on January 07, 2010, 01:28:50 PM
ERROR INSTALLING (Attachment)

Please, this will make it easier for users used to phpBB (like one member on my site, I think)

Thanks In Advance!

EDIT:
I installed on my test forum, it works fine! (http://www.kcmartz.com/TestForum)

why it not work on my main forum?

EDIT 2:
ACCOUNT TO VIEW:
USER: test
PASS: test
>>>User cannot post on the forum.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on January 07, 2010, 02:37:29 PM
iKorp,  has Alan officially given the mod over to you?
If you plan to make releases of his mod, please get permission from the original author to do so (or make the attempt and the SMF team will validate that the mod was abandoned)

carbonize,

I discovered that the original mod had all strings added in it's own language file.  You need to add the $text['usercp'] to your modifications.english.php. That will solve that error.

iKorp, yes, the original mod didn't fully work with the 2.0 releases because of a change in the url structure of the profile options...

KCmartz,
Did it install fully on your main site or did it give you errors?  Are you using english as a language and the default theme? What version of SMF are you trying to install the mod on?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on January 07, 2010, 02:40:26 PM
My sites only in English so I just hardcoded the text in to subs.php instead of $txt['usercp']. Fixes the issue.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Liam. on January 07, 2010, 04:44:28 PM
It's not an official release, I thought you could make unofficial updates...
Also, the links won't work even if it does install. If it is okay to make an unofficial release, I will update the link structure.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: KensonPlays on January 09, 2010, 02:47:22 AM
@Kindred: Yes it did give me errors... ...don't remember what they are...
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on January 09, 2010, 09:22:30 AM
sorry, just noticed the attachment KCmartz...
well, with that install error, you would have to manually add the language string call... without that, it's not going to display anything in your menu bar.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: KensonPlays on January 11, 2010, 03:42:48 PM
Could you tell me how to do this?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on January 11, 2010, 04:15:05 PM
do exactly what it says...   find that code (or the thing closest to that code, since it's obviously been already modified by another mod) and then add the function call.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on January 11, 2010, 04:48:34 PM
Side note:

attached is the usercp.php file that goes into the sources directory...   this works on my 2.0RC2 site
Title: Re: User Control Panel ( User CP ) V3.0
Post by: kai920 on January 13, 2010, 02:00:07 AM
Quote from: Kindred on January 11, 2010, 04:48:34 PM
Side note:

attached is the usercp.php file that goes into the sources directory...   this works on my 2.0RC2 site


Thanks Kindred, will try this on RC2.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: kai920 on January 13, 2010, 11:35:09 PM
I'm getting a bunch of these errors:

8: Undefined index: usercp
File: /forums/Sources/Subs.php
Line: 4026

Code (line 4026) Select

'title' => $txt['usercp'],


I'm guessing I need to put the language definition into the one of the language files, but which file should I edit? I tried putting it into Modifications.english.php (as well as the utf8 version) but am still getting this error.

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


Most of the IP addresses with this error appear to be from search engine bots.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on January 13, 2010, 11:41:59 PM
adding it to modifications.english.php and resetting the fiel cache (if on smf 2.0) whould fix your errors.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: carbonize on January 14, 2010, 05:50:49 AM
@Kindred - You not get annoyed when people don't use the search function and repost errors you pretty much only just answered a few posts earlier?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: darubillah on January 14, 2010, 06:33:33 AM
please update it for v2.0 RC2
Title: Re: User Control Panel ( User CP ) V3.0
Post by: kai920 on January 14, 2010, 08:20:34 AM
Quote from: Kindred on January 13, 2010, 11:41:59 PM
adding it to modifications.english.php and resetting the fiel cache (if on smf 2.0) whould fix your errors.

Thank you, the file cache was the step I didn't do.

@carbonize - if you read my message carefully, you would have known that I already put the usercp definitions in the language files.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: aessedai03 on March 09, 2010, 01:01:47 PM
I really wish this mod worked for 1.1.11 since my users aren't exactly experts when it comes to message boards. :(
Title: Re: User Control Panel ( User CP ) V3.0
Post by: frenki on March 09, 2010, 03:32:39 PM
Not working on rc 2.0 , i can install it but with every click it returns me to index.php?action=profile
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on March 09, 2010, 04:08:56 PM
Doesn't anyone bother to read the previous messages in the thread?

this mod was designed for beta 4. Since then, the structure of the profile URLs has changed.   I included a revised UserCP.php file for the Sources directory a few pages back.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: TheListener on March 11, 2010, 09:27:22 PM
Kindred sorry for the daft question but is the file you supplied a few posts back what we require ( hopefully) to eradicate the errors coming from sources/subs.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on March 11, 2010, 10:05:29 PM
no, the file I supplied will make the mod work with 2.0 RC2 or RC3

The subs errors should be fix if you add $txt['usercp'] = 'User CP'; in modifications.english.php (and clear your file cache in SMF admin)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: TheListener on March 11, 2010, 10:09:08 PM
Understood.

Thanks.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: TheListener on March 16, 2010, 07:00:13 PM
After installing the mod on MKA everything went ok ( one edit).

The User CP shows everywhere except the main menu tab despite being enabled.

Advice please.

Title: Re: User Control Panel ( User CP ) V3.0
Post by: TheListener on March 21, 2010, 10:11:20 PM
Unfortunately since the previous posts error was corrected I now have User CP AND profile on the menu.

The mod shows in admin except for the tick boxes which are used to show which functions members have.

Any help would be welcome.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Snogmarr on April 09, 2010, 04:55:32 PM
$txt['usercp']

says put this in english language file????????


Where?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 09, 2010, 05:21:39 PM
anywhere in modifications.english.php
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Snogmarr on April 10, 2010, 07:29:20 PM
ty
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Liam. on April 12, 2010, 11:53:46 AM
Simply adding the string to modifications.english.php, and adding the usercp.php file kindly posted here, here is an unofficial package, for the lazy people :P
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 12, 2010, 12:09:12 PM
Liam,

Not to be too much of a stickler... but Alan has not given over control of the mod, so I have removed your attachment.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: B.SkiLLs on May 14, 2010, 09:23:00 AM
Quote from: Shark-Time on August 14, 2009, 02:19:17 AM
im using 1.1.10

anybody using or is it capable of running on 1.1.1 ??

I read a few pages back but didnt see nobody talking about 1x only 2x beside shark

Thxs
Title: Re: User Control Panel ( User CP ) V3.0
Post by: ukhalik2 on May 29, 2010, 02:16:29 AM
very good mod,
but is this compatible with smf 2.0 rc3
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Liam. on May 29, 2010, 05:35:50 AM
Quote from: ukhalik2 on May 29, 2010, 02:16:29 AM
very good mod,
but is this compatible with smf 2.0 rc3

Look through the last few pages, there are fixes for it to work with 2.0 RC2/3. I uploaded a package with it all, but it got removed so you'll have to apply it manually....
Title: Re: User Control Panel ( User CP ) V3.0
Post by: !RFAN on May 29, 2010, 06:19:27 AM
will it work along with Ultimate Profile.. ??
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Liam. on May 29, 2010, 07:14:23 AM
Quote from: amigozone on May 29, 2010, 06:19:27 AM
will it work along with Ultimate Profile.. ??

Yes it will.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: CaSiNo RoYaLe on May 29, 2010, 07:41:12 AM
i try to upload it into my rc3 forum but it isn't compatible with smf 2.0 rc3
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Liam. on May 29, 2010, 08:06:37 AM
Quote from: CaSiNoO on May 29, 2010, 07:41:12 AM
i try to upload it into my rc3 forum but it isn't compatible with smf 2.0 rc3

|
|
V

Quote from: Liam. on May 29, 2010, 05:35:50 AM
Quote from: ukhalik2 on May 29, 2010, 02:16:29 AM
very good mod,
but is this compatible with smf 2.0 rc3

Look through the last few pages, there are fixes for it to work with 2.0 RC2/3. I uploaded a package with it all, but it got removed so you'll have to apply it manually....
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Deezel on October 26, 2010, 12:52:44 PM
2.0 RC3........
Although some of us can figure it out, there are others who can not. I can't believe how harsh some of you are towards some of the members who are simply trying to make a great mod work for them. Reading back on this topic is not only very time consuming but the answers one may need are scattered all over the place.
Is there anyone who can take over this mod if the original creator is okay with it? How does one go about this?

Many SMF users use this software because of the mods created for their needs, not everyone with a forum knows how to get around the .php files. If a mod is no longer being updated then where else should they ask their question?

Anyways, all I am saying is have a little patience with those who just want the mod to work.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: roonekoos on November 06, 2010, 05:28:15 AM
I use 2.0 rc3.

I used the usercp file posted here and added the string to the modification.english but still the links point to the index and not to the files it should go.

I looked to all messages here and did what you guys told ... no result for me  :(

Cache is cleared too.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: !RFAN on November 06, 2010, 09:23:03 AM
^^ same here... no results after taking every necessary step...
Title: Re: User Control Panel ( User CP ) V3.0
Post by: dougiefresh on March 26, 2011, 11:06:24 AM
I've been working on trying to get v2.2 working for 2.0 RC5.  I had to do quite a bit of editing of usercp.template.php file in order to make it work with RC5.  I've posted it as an attachment.  It works for me and hopefully it'll work for you.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: CaSiNo RoYaLe on March 26, 2011, 11:10:34 AM
Thanks dude  ;)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: PS4DEV on April 10, 2011, 06:51:44 AM
Well, i got a Problem , I tried to install it on RC5 but if want to access the USER CP , it splits an error message:  it couldn´t load the main template
how to solve the problem ?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Arantor on April 10, 2011, 07:22:07 AM
Wait for it to be rewritten? It was written for 2.0 beta 4, which is 2+ years old now.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: waruna on April 10, 2011, 09:00:07 AM
Is this mod compatible with RC2? If not, can I emulate to RC3 or can upload it manually ? Please advice.

Thanks in advance
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Arantor on April 10, 2011, 09:03:41 AM
-sigh-

Quote from: Arantor on April 10, 2011, 07:22:07 AM
Wait for it to be rewritten? It was written for 2.0 beta 4, which is 2+ years old now.


That's BEFORE 2.0 RC1. So, no, not compatible.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: waruna on April 10, 2011, 09:26:21 AM
Ok... Ok.. Thanks ;)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on April 10, 2011, 10:09:43 AM
I believe that I posted the corrections needed to make it work on rc3+ a long time ago...  Have it working on rc5
Title: Re: User Control Panel ( User CP ) V3.0
Post by: TheListener on June 18, 2011, 11:24:18 AM
The mod installed on 2.0 with just one file edit required. (Test Forum)

However my error log is now filling up with usercp custom enabled errors.

I have no intention to use these so was wondering if these can be erased from the file somehow.



Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on June 18, 2011, 11:30:13 AM
did you add the userCP text line to modifications.english.php as well?   That was the cause of a majority of my undefined errors when I installed this mod.


Also, The trick for those custom errors is:

Turn all of them ON with some bogus value
Then turn all of them OFF

The on/off cycle will define them in the database settings and will now work without error.
(this was something which should have been fixed in the original settings (as well as retaining the old settings on upgrade, which are actually/currently erased on a reinstall. :(   Actually... this mod needs a quick facelift and tweak to fix the minor issues. If someone can track down and contact the author and get approval to re-release it.....   :D
Title: Re: User Control Panel ( User CP ) V3.0
Post by: TheListener on June 18, 2011, 11:45:38 AM
Did as suggested and no change.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on June 21, 2011, 05:17:57 PM
ok, good news.

I just applied this mod on 2.0 final.
The only change I made was to use my revised version of the Sources/usercp.php which has the correct target urls for RC3 and higher versions of 2.0. I have re-attached it here (because I know people are not going to look back through the thread to find it -- use this in place of the one that the mod installs in the sources directory.)

I had to manually apply one edit to subs.php in the permissions array, because the 2.0 final permissions list has two extra items on the end, which makes the search fail (and when you apply the change, make sure that you keep those two extra permissions)
I also had to add
$txt['usercp'] = 'User CP';
into modifications.english.php in order to avoid the dreaded "undefined" error message one every menu load.

All in all, the mod could stand an update so it doesn't erase your settings every time you install...   but it worked pretty cleanly for such an old mod.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: TheListener on June 21, 2011, 05:25:57 PM
The reason I like the mod is because I find the normal profile to be plain and boring.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: mikedijital on December 13, 2012, 09:12:51 PM
Just wanted to let everyone know that I got this working on 2.0.2 though you will need to manually edit in one error in your subs, at least I did... and the menu icons Action=  commands need to be updated in the sources/usercp.php file  ( because they just take you back to your main OLD profile page, rather than to the sub profile area's theyare supposed to )  but other than that this is a snazzy mod for a boring control panel.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: dimspace on January 18, 2013, 07:18:37 PM
Yeh, i got it working in 2.0.3

Took a few alterations.

Usercp.php needs heavily editing as the urls are in the old format.

corrected array below

$usercp_buttons = array(
'account' => array(
'title' => $txt['usercp_account_info'],
'href' => $scripturl . '?action=profile;area=account;u=' . $user_info['id'],
'img' => $settings['images_url'].'/usercp/ksysguard.png',
'txt' => $txt['usercp_account_info_summary'],
'show' => !empty($modSettings['usercp_enable_account']),
),

'layout' => array(
'title' => $txt['usercp_look_and_layout'],
'href' => $scripturl . '?action=profile;area=theme;u=' . $user_info['id'],
'img' => $settings['images_url'].'/usercp/kivio.png',
'txt' => $txt['usercp_look_and_layout_summary'],
'show' => !empty($modSettings['usercp_enable_layout']),
),
'theme' => array(
'title' => $txt['usercp_my_theme'],
'href' => $scripturl . '?action=theme;sa=pick;u=' . $user_info['id'] . ';sesc=' . $context['session_id'],
'img' => $settings['images_url'].'/usercp/blockdevice.png',
'txt' => $txt['usercp_my_theme_summary'],
'show' => !empty($modSettings['usercp_enable_theme']) && allowedTo(array('profile_extra_any', 'profile_extra_own')),
),

'profile' => array(
'title' => $txt['usercp_my_profile'],
'href' => $scripturl . '?action=profile;area=forumprofile;u=' . $user_info['id'],
'img' => $settings['images_url'].'/usercp/kuser.png',
'txt' => $txt['usercp_my_profile_summary'],
'show' => !empty($modSettings['usercp_enable_profile']),
),

'stats' => array(
'title' => $txt['usercp_my_stats'],
'href' => $scripturl . '?action=profile;area=statistics;u=' . $user_info['id'],
'img' => $settings['images_url'].'/usercp/kchart.png',
'txt' => $txt['usercp_my_stats_summary'],
'show' => !empty($modSettings['usercp_enable_stats']),
),

'contributions' => array(
'title' => $txt['usercp_my_posts'],
'href' => $scripturl . '?action=profile;area=showposts;u=' . $user_info['id'],
'img' => $settings['images_url'].'/usercp/kedit.png',
'txt' => $txt['usercp_my_posts_summary'],
'show' => !empty($modSettings['usercp_enable_contributions']),
),

'notifications' => array(
'title' => $txt['usercp_my_notifications'],
'href' => $scripturl . '?action=profile;area=notification;u=' . $user_info['id'],
'img' => $settings['images_url'].'/usercp/mailreminder.png',
'txt' => $txt['usercp_my_notifications_summary'],
'show' => !empty($modSettings['usercp_enable_notifications']),
),

'buddies' => array(
'title' => $txt['usercp_buddies'],
'href' => $scripturl . '?action=profile;area=lists;u=' . $user_info['id'],
'img' => $settings['images_url'].'/usercp/kdmconfig.png',
'txt' => $txt['usercp_buddies_summary'],
'show' => !empty($modSettings['usercp_enable_buddies']) && !empty($modSettings['enable_buddylist']),
),

'message_options' => array(
'title' => $txt['usercp_message_options'],
'href' => $scripturl . '?action=profile;area=pmprefs;u=' . $user_info['id'],
'img' => $settings['images_url'].'/usercp/mail.png',
'txt' => $txt['usercp_message_options_summary'],
'show' => !empty($modSettings['usercp_enable_message_options']),
),
'search' => array(
'title' => $txt['usercp_search'],
'href' => $scripturl . '?action=search',
'img' => $settings['images_url'].'/usercp/find.png',
'txt' => $txt['usercp_search_summary'],
'show' => !empty($modSettings['usercp_enable_search']),
),

'contact_pm' => array(
'title' => $txt['usercp_contact_admin'],
'href' => $scripturl . '?action=pm;sa=send;u=' . $modSettings['usercp_adminid'],
'img' =>  $settings['images_url'].'/usercp/agent.png',
'txt' => $txt['usercp_contact_admin_summary'],
'show' => !empty($modSettings['usercp_usepm']) && !empty($modSettings['usercp_enablecontactadmin']),
),
'contact_email' => array(
'title' => $txt['usercp_contact_admin'],
'href' => 'mailto:' . $modSettings['usercp_contact_email'],
'img' =>  $settings['images_url'].'/usercp/agent.png',
'txt' => $txt['usercp_contact_admin_summary'],
'show' => !$modSettings['usercp_usepm'] && !empty($modSettings['usercp_enablecontactadmin']),
),

'group_membership' => array(
'title' => $txt['usercp_group_membership'],
'href' => $scripturl . '?action=profile;area=groupmembership;u=' . $user_info['id'],
'img' => $settings['images_url'].'/usercp/kgroup.png',
'txt' => $txt['usercp_group_membership_summary'],
'show' => !empty($modSettings['usercp_enable_group_membership']) &&  !empty($modSettings['show_group_membership']),
),

'ignore_boards' => array(
'title' => $txt['usercp_ignore_boards'],
'href' => $scripturl . '?action=profile;area=ignoreboards;u=' . $user_info['id'],
'img' => $settings['images_url'].'/usercp/kignore.png',
'txt' => $txt['usercp_ignore_boards_summary'],
'show' => !empty($modSettings['usercp_enable_group_ignore_boards']) &&  !empty($modSettings['allow_ignore_boards']),
),
'usercp_field1' => array(
'title' => $modSettings['usercp_field1maintext'],
'href' => $modSettings['usercp_field1url'],
'img' => $modSettings['usercp_field1image'],
'txt' => $modSettings['usercp_field1summary'],
'show' => !empty($modSettings['usercp_field1enable']),
),
'usercp_field2' => array(
'title' => $modSettings['usercp_field2maintext'],
'href' => $modSettings['usercp_field2url'],
'img' => $modSettings['usercp_field2image'],
'txt' => $modSettings['usercp_field2summary'],
'show' => !empty($modSettings['usercp_field2enable']),
),
'usercp_field3' => array(
'title' => $modSettings['usercp_field3maintext'],
'href' => $modSettings['usercp_field3url'],
'img' => $modSettings['usercp_field3image'],
'txt' => $modSettings['usercp_field3summary'],
'show' => !empty($modSettings['usercp_field3enable']),
),
'usercp_field4' => array(
'title' => $modSettings['usercp_field4maintext'],
'href' => $modSettings['usercp_field4url'],
'img' => $modSettings['usercp_field4image'],
'txt' => $modSettings['usercp_field4summary'],
'show' => !empty($modSettings['usercp_field4enable']),
),
);


Didnt have to change anything in subs or the language files.

running into issues with the  loadLanguage('usercp'); line that goes in indextemplate. For some reason it messes all the fonts in the themes up. Thankfully i dont actually use my default theme, so ive left it out of all the other themes indextemplate and it doesnt seem to be causing any problem.

wouldnt take too much for the author to update and re-release this for 2.0.3
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Arantor on January 18, 2013, 07:23:38 PM
Other than the small matter of getting permission from the mod author.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: dimspace on January 18, 2013, 07:54:16 PM
Which i was just about to add. thats the code to make it work anyway.

Going to drop the author a pm and see if he plans to update it. Certainly had no intention of updating myself, which is why I didnt post my php file, just the correct code for the pages.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Arantor on January 18, 2013, 07:55:25 PM
Just before you get too entrenched, the author hasn't been around here for months. :/ Hopefully you'll get a reply though :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: dimspace on January 18, 2013, 07:58:39 PM
yeh, saw he hasnt logged on since october.

took about an hour to rebuild it myself this evening, and added in thank you, drafts, bookmarks and other mods. fairly simple job. Will drop him a pm and see if he gets back to me.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Arantor on January 18, 2013, 08:00:50 PM
Same deal with the other mods, though, if you're adding them in you need permission to redistribute unless they're under a suitable licence. I seem to recall the drafts mod might be, fairly sure I left that as BSD when I released that a couple of years ago, but can't remember for sure (Spoogs now looks after it)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: dimspace on January 18, 2013, 08:01:25 PM
Quote from: Arantor on January 18, 2013, 08:00:50 PM
Same deal with the other mods, though, if you're adding them in you need permission to redistribute unless they're under a suitable licence. I seem to recall the drafts mod might be, fairly sure I left that as BSD when I released that a couple of years ago, but can't remember for sure (Spoogs now looks after it)

really? didnt realise something as simple as adding a link to one mod to another mod was a problem. Just did it so that my drafts was accessible from control panel.. I shall have to look at the mods in question. I only added button links to them on the cp, not including the actual modification.

All very complicated..
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Arantor on January 18, 2013, 08:08:45 PM
Quotereally? didnt realise something as simple as adding a link to one mod to another mod was a problem.

Ah, see, it wasn't clear what you were doing. Checking if it's present and providing a link, that's fine. But it sounded like you were actually trying to integrate those features - which would be a lot more trouble.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: dimspace on January 18, 2013, 08:30:58 PM
Quote from: Arantor on January 18, 2013, 08:08:45 PM
Quotereally? didnt realise something as simple as adding a link to one mod to another mod was a problem.

Ah, see, it wasn't clear what you were doing. Checking if it's present and providing a link, that's fine. But it sounded like you were actually trying to integrate those features - which would be a lot more trouble.

nah, i just added links to them and built it into my copy of the installer so it added them to the settings etc. Like so:

its a nice little mod for new users to forums who get lost easily trying to change their avatar.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Arantor on January 18, 2013, 08:33:17 PM
Sounds good to me :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: dimspace on January 18, 2013, 10:34:15 PM
OP is hoping to update. :D
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on January 18, 2013, 11:41:56 PM
Actually, I think I posted the same list of needed updates to the action list way back with RC3. :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Arantor on January 18, 2013, 11:42:52 PM
I also might have to give this a test drive one of these days, the profile area in SMF 2.0 is not the best.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on January 18, 2013, 11:48:58 PM
I like it and the users over on 40konline like it.
It's nice for a graphically/visually inclined society, but it still allows you to use the old menus as well. :)


BTW: Here is my modified userCP.php file (and  I am including it here is because I actually do have permission from the author to attach it in this specific thread :) )

Anyone who wants can do the normal install and then replace the Sources/usercp.php file with this one... or replace the file in the package before uploading it.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Arantor on January 18, 2013, 11:50:11 PM
Yeah, I can imagine - I know I revamped my admin panel in a similar fashion, and I've been thinking about doing that for the profile area but I want to uproot a lot more than just the interface to it.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on January 19, 2013, 12:08:34 AM
yeah... :)

One thing that I really like about this was the ability to easily control which choices are displayed and to add other icons/links
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Arantor on January 19, 2013, 12:10:32 AM
You know me, I have other needs that must be balanced, but it's likely I'll end up rewriting the entire profile area eventually and this might be the way I start it off, need to give a proper play tomorrow, I think.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: dimspace on January 19, 2013, 10:28:00 AM
Quote from: Arantor on January 19, 2013, 12:10:32 AM
You know me, I have other needs that must be balanced, but it's likely I'll end up rewriting the entire profile area eventually and this might be the way I start it off, need to give a proper play tomorrow, I think.

I would say its the start of a nice idea, at the moment its a nice front end to the user area. Certainly for new members its a lot easier, especially if you have heavily modified menus, users can get a bit lost.

and its nicely written in that its easy enough to add to the array and slip in the db settings.

can also see how it could be more tightly integrated though.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Draffi on May 21, 2013, 07:23:35 PM
Installing v2.2 in SMF 2.0.4

Now i have hundreds of these errors in the error log:

8: Undefined index: usercp_field2enable
Datei: F:/xampp/htdocs/smftest/Themes/default/usercp.template.php
Zeile: 241

(the numbers are changing: field3enable, field4enable....)

I check the languages and all ist there. Somebody an idea?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on May 21, 2013, 07:30:22 PM
Did you look at the attachment just a few posts up? Posted in January, from me (which was a repost as well)? The one wit the updated usercp.php attachment?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: TheListener on May 21, 2013, 07:45:01 PM
Not only that but wasn't 3.0 the ltest update?
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Draffi on May 21, 2013, 08:02:49 PM
QuoteDid you look at the attachment just a few posts up? Posted in January, from me (which was a repost as well)? The one wit the updated usercp.php attachment?

yes, sir - i was doing and override the old one.
(BTW: Thank you for the work...)

QuoteNot only that but wasn't 3.0 the ltest update?

I don`t know why, but i was a little blond and installed v2.2..... :o

Will check v3

Thank you!!!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: electricwildflower on September 05, 2013, 01:32:15 PM
Just wondered if it's been updated or anything to 2.0.5 i uploaded it and it wouldn't let me install as it said not compatible with my version of SMF.

Cool looking mod btw :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on September 05, 2013, 04:13:30 PM
you have to use the emulate feature, under the advanced tab....   it works just fine on 2.0.5 - if you use my corrected version of the usercp.php file (although burkeknight did find one error that I made)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Burke ♞ Knight on September 05, 2013, 04:17:45 PM
Okay, here is a fix for the Ignore Boards button, as it does not show after Kindred's update:

The ignore boards will not show, because the word group inside the call for it.

Sources/usercp.php

Code (Find) Select
'ignore_boards' => array(
'title' => $txt['usercp_ignore_boards'],
'href' => $scripturl . '?action=profile;u=' . $user_info['id'] . ';area=ignoreboards',
'img' => $settings['images_url'].'/usercp/kignore.png',
'txt' => $txt['usercp_ignore_boards_summary'],
'show' => !empty($modSettings['usercp_enable_group_ignore_boards']) &&  !empty($modSettings['allow_ignore_boards']),
),


Code (Replace With) Select
'ignore_boards' => array(
'title' => $txt['usercp_ignore_boards'],
'href' => $scripturl . '?action=profile;u=' . $user_info['id'] . ';area=ignoreboards',
'img' => $settings['images_url'].'/usercp/kignore.png',
'txt' => $txt['usercp_ignore_boards_summary'],
'show' => !empty($modSettings['usercp_enable_ignore_boards']) &&  !empty($modSettings['allow_ignore_boards']),
),
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Burke ♞ Knight on September 05, 2013, 04:29:09 PM
Quote from: Kindred on September 05, 2013, 04:13:30 PM
you have to use the emulate feature, under the advanced tab....   it works just fine on 2.0.5 - if you use my corrected version of the usercp.php file (although burkeknight did find one error that I made)

Took me a bit to find it, too.
Only reason I noticed, is I saw it in control panel, but saw it not show up in UserCP.
Then I went hunting, as I changed a few things for personal use. :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: electricwildflower on September 05, 2013, 04:49:23 PM
Thank you i will play around with it when i get the chance :)
Title: Re: User Control Panel ( User CP ) V3.0
Post by: shadav on June 18, 2020, 12:49:48 AM
I tried to install this onto 2.0.17
no errors....
when I go to admin > configuration > modification settings

I get

Call to undefined function prepareDBSettingContext()
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Kindred on June 18, 2020, 11:55:36 AM
Quote from: Alan S on April 28, 2007, 12:59:54 PM

UserCP V3.0 Released
UserCP V3.0 is for SMF2.0 Beta4 Only!!


that would be your problem, I think....    there were changes to the functions and database since beta4.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: shadav on June 18, 2020, 01:19:38 PM
Quote from: Kindred on June 18, 2020, 11:55:36 AM
Quote from: Alan S on April 28, 2007, 12:59:54 PM

UserCP V3.0 Released
UserCP V3.0 is for SMF2.0 Beta4 Only!!


that would be your problem, I think....    there were changes to the functions and database since beta4.

hm, ok.... yeah that's the one I was trying...

so then I need to use
UserCPV2.2_SMF2.X.zip
for any other 2.x?
I'll try it out later

or do i want to use
UserCPV2.0_Install.zip

after reading the description again it says
UserCP V2.0.2 is for SMF 2.0 Beta releases ONLY

:laugh: i'm confused, but then again that's nothing new
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Arantor on June 18, 2020, 02:02:26 PM
This mod isn't available for your SMF version.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: shadav on June 18, 2020, 02:22:44 PM
Quote from: Arantor on June 18, 2020, 02:02:26 PM
This mod isn't available for your SMF version.

well that sucks
but thank you for stopping me from trying again and getting frustrated ;D
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Shambles on June 18, 2020, 03:39:33 PM
Quote from: shadav
Quote from: Arantor on June 18, 2020, 02:02:26 PM
This mod isn't available for your SMF version.
well that sucks

Well, what "sucks" more is you not reading the application criteria for the mod :P

QuoteUserCP V3.0 is for SMF2.0 Beta4 Only!!
Title: Re: User Control Panel ( User CP ) V3.0
Post by: shadav on June 18, 2020, 03:49:50 PM
Quote from: Shambles on June 18, 2020, 03:39:33 PM
Quote from: shadav
Quote from: Arantor on June 18, 2020, 02:02:26 PM
This mod isn't available for your SMF version.
well that sucks

Well, what "sucks" more is you not reading the application criteria for the mod :P

QuoteUserCP V3.0 is for SMF2.0 Beta4 Only!!

:-[ :laugh: true  :laugh:
assumed that i could use the emulate and install for 2.0 Beta or 2.0 Beta 4
not realizing that it wouldn't work on any 2.0.x
fairly sure I had installed this once on a 2.0.13, but then again, I removed it and don't remember exactly why, this may have been the reason why....  :-\
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Antechinus on June 18, 2020, 06:06:59 PM
Just out of curiosity I took a look at the functions db. That function wasn't in 2.0 b4 either, so must be a custom one. Which is kinda odd, in that if it's a custom one that comes from install.php* or the mod's templates then you'd expect it to be present if you installed the mod without errors.

*I didn't go as far as checking where it was supposed to come from.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Arantor on June 18, 2020, 06:35:45 PM
Not everything was in the function DB, I think the issue is that it's the right function but not called in a way that was expected after 2.0b4, a lot of change happened after that in RC1.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Antechinus on June 18, 2020, 07:05:13 PM
Y'know, just idly looking at the thing, all it's really doing is re-styling the existing menu to take up the whole wrapper and have chunky icons. You could probably do that very simply. Just throw in a test to append a class to the standard menu on the summary page, and do something like {position:absolute;width:100%;) or whatever on the menu (add extra bits depending on what layout and sizing you want) then add chunky icons to your heart's content (could easily be targeted by link href for each menu link).
Title: Re: User Control Panel ( User CP ) V3.0
Post by: Antechinus on June 18, 2020, 07:52:53 PM
Basic proof of concept:

#left_admsection {
width: auto;
float: none;
padding-right: 10px;
}
.adm_section .cat_bar, .left_admmenu li:nth-child(4), .left_admmenu li:nth-child(8) {
display: none;
}
.left_admmenu {
display: inline;
background: transparent;
border: 0;
}
.left_admmenu li {
display: inline-block;
width: 30%;
overflow: hidden;
margin: 1em 1%;
vertical-align: bottom;
padding: 6px 0;
background: #14171B;
border: 1px solid #14171B;
border-top-color: #20272C;
}
.left_admmenu li:after {
display: block;
clear: both;
padding: .7rem;
content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.';
}
.left_admmenu li a, .left_admmenu li strong a,
.left_admmenu li a:hover, .left_admmenu li strong a:hover {
padding-top: 100px;
text-align: center;
background-image: url('https://avatars.simplemachinesweb.com/smf/avatar_129726_1318378297.png');
background-position: 50% 0;
background-repeat: no-repeat;
}


Looks like the shot. Quite good fun. Might play with it a bit. Running it in Stylem as a separate override to the dark theme, so it only applies on the Summary page. Would be easy to do the same with PHP.
Title: Re: User Control Panel ( User CP ) V3.0
Post by: shadav on June 18, 2020, 09:45:12 PM
nice....
:laugh: i was gonna say, you might be able to do that, not me, well not in any reasonable timeframe that is  :laugh:
takes you maybe a few hours of playing would take me a week/month of playing  and cursing at what did i forget and *bleep* semicolon every time :laugh: