User Control Panel ( User CP ) V3.0

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

Previous topic - Next topic

Alan S

If you have ftp access try this ,

Download FileZilla

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

tallpaul

Quote from: Alan S on April 30, 2007, 05:01:42 PM
If you have ftp access try this ,

Download FileZilla [nofollow]

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

sessus

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

Smith Online

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


Alan S

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

Smith Online



Alan S

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

Pc 1203


qubbah

anybody can help me to adjust manually my index template..

thanks...

Alan S

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

qubbah

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

AKR

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
Жизнь это игра для которой нет tutorial`а.

Alan S

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

the lion

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

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" 

Alan S

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

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

goitalone

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

Alan S

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

goitalone

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

ishan

#38
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 - hxxp:www.justplay.in/forum [nonactive]

What modifications should i do to the template ?

Alan S

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