Very cool , Just in case people want to have a custom url and page this is how you do it ( In case you dont understand what i mean , i mean instead of having the index.php?page=XX you can have a index.php?action=usercp with a page to match it.
Backup any files i tell you to edit before trying this.
Open the index.php
Search For
'sticky' => array('LockTopic.php', 'Sticky'),
Add after
'usercp' => array('usercp.php', 'usercp'),
Index.template.php
Search for
// Edit Profile... [profile]
And find this under it
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
Replace that line ^ with
<a href="', $scripturl, '?action=usercp">User CP</a>
Open up the Modifications.english.php file in your languages directory.
Add this after another text string on the page.
$txt['usercp'] = 'User CP';
Then create the usercp.php Page
<?php
if (!defined('SMF'))
die('Hacking attempt...');
function usercp()
{
global $context, $mbname, $txt;
//Load the main usercp template
loadtemplate('usercp');
//Load the main usercp template
$context['sub_template'] = 'main';
//Set the page title
$context['page_title'] = $mbname . ' - ' . $txt['usercp'];
}
?>
Next Create the usercp.template.php page.
<?php
/*
User CP Page
*/
function template_main()
{
global $db_prefix, $scripturl, $txt, $user_info,$settings, $modSettings;
echo'
<table border="0" width="100%" id="table1" cellspacing="1" style="border-collapse: collapse">
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=account"><img border="0" src="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=', $context['member']['id'], ';sa=theme"><img border="0" src="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=', $context['member']['id'], ';sesc=', $context['session_id'], '"><img border="0" src="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=', $context['member']['id'], ';sa=forumProfile"><img border="0" src="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=', $context['member']['id'], ';sa=account"><b>My Account Info</a><br>
</b></font><font face="Verdana" size="1">Click here if you want to
change your account related information such as username, email,
password or other sensitive details.</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=theme"><b>Look & Layout Options</a><br>
</b></font><font face="Verdana" size="1">Click here to change the way
the forum looks for you, options include the look and layout for the
boards and posts.</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=theme;sa=pick;u=', $context['member']['id'], ';sesc=', $context['session_id'], '"><b>My Theme</a><br>
</b></font><font face="Verdana" size="1">This screen will allow you to
set your default theme which you wish to use every time you login.</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=forumProfile"><b>My Profile</a><br>
</b></font><font face="Verdana" size="1">Click here to change the way
your profile looks and appears to everyone.</font></td>
</tr>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=statPanel"><img border="0" src="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=', $context['member']['id'], ';sa=showPosts"><img border="0" src="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=', $context['member']['id'], ';sa=notification"><img border="0" src="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=', $context['member']['id'], ';sa=editBuddies"><img border="0" src="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=', $context['member']['id'], ';sa=statPanel"><b>My Stats</a><br>
</b></font><font face="Verdana" size="1">Here you can check how many
posts you have made, which games you are a champion in and other
activity related info.</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=showPosts"><b>My Posts</a><br>
</b></font><font face="Verdana" size="1">This option will show you all
the posts you have made since you became a member of this site.</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=notification"><b>My Notifications</a><br>
</b></font><font face="Verdana" size="1">This screen will allow you to
change the type and frequency of notifications you get via e-mail when
participating in threads.</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=editBuddies"><b>Buddies</a><br>
</b></font><font face="Verdana" size="1">This screen will allow you to
select buddies to add to your list. </font></td>
</tr>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=pmprefs"><img border="0" src="usercp/mail.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=tpshoutbox"><img border="0" src="usercp/messenger.png" width="80" height="80"></a></td>
<td align="center" width="25%" valign="top">
<a href="', $scripturl, '?action=search"><img border="0" src="usercp/find.png" width="80" height="80"></a></td>
<td align="center" width="25%" valign="top">
<a href="', $scripturl, '?action=pm;sa=send;u=1"><img border="0" src="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=', $context['member']['id'], ';sa=pmprefs"><b>My Messages Options</a><br>
</b></font><font face="Verdana" size="1">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.</font></td>
<td align="center" width="25%" valign="top"><b>
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=tpshoutbox">Show My Shouts</a><br>
</font></b><font face="Verdana" size="1">This screen will show a log of
all the shouts you have made in the shoutbox. (Note: Shouts are deleted
periodically by the admin)</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=search"><b>Search</a><br>
</b></font><font face="Verdana" size="1">This screen will allow you to
search for posts made in the board.</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, 'action=pm;sa=send;u=1"><b>Contact Admin</a><br>
</b></font><font face="Verdana" size="1">Still having problems?<br>
Then contact the admin from here and submit your questions.</font></td>
</tr>
</table>
';
}
?>
usercp.php Goes in the sources directory , usercp.template.php goes in the default themes directory.
Caps or small letters does matter!! if i dont use a capital letter you shouldnt either!!
Hope this is useful to someone.