News:

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

Main Menu

User Control Panel ( User CP ) V3.0

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

Previous topic - Next topic

5cakids


Alan S

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

Shadow Queen

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

qubbah

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

Alan S

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

karenwalkersnipple

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

Shadow Queen


st1905

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

Muppet

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

nerdykit

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.

MinasC

great mod indeed !!! could it be compatible with smf 1.1.3 ?

babjusi

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.

MinasC

change what ? that's the only change needed ? thnx a lot !!!

babjusi

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

Coldfx

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

RiderRaghav

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

Alan S

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

MinasC


MinasC

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 !

Alan S

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

Advertisement: