Log in

View Full Version : Need to modify the User Control Panel & View Profile


suttercain
05-19-2007, 07:57 PM
Hi Guys,

I need to add two links. One to the 'User Control Panel' on the left hand side navigation bar. I would like to add a the link below the 'Settings & Options' settings. I believe this is somewhere in the usercp.php file.

I would like to add the second link to the 'View Profile' page under the 'Additional Info' section.

It's nothing special but I just need to figure out how to add to links.

Has anyone done this or could any suggest anything? I ran a search and came up empty handed.

Thank you in advance.

Michael Biddle
05-19-2007, 10:10 PM
Template: USERCP_SHELL
Template: modifyprofile

suttercain
05-20-2007, 02:45 AM
Where is the USERCP_SHELL located? I can't find a templates folder...

Thanks

Michael Biddle
05-20-2007, 02:49 AM
look under the usercp template group

suttercain
05-20-2007, 02:53 AM
found it.

Michael Biddle
05-20-2007, 02:57 AM
kk, let me know if u need any other help with it

suttercain
05-20-2007, 03:17 AM
Okay I went into modifyprofile and anything I change doesn't show up when I view user's profile... I even deleted eveything from the edit box and it still just showed the user's profile like normal...

I would just like to add a simple link below the Additional information section.

Any suggestions? Thanks

I need to have the change reflected in the member.php page. When someone looks at a user's profile, they will see my custom link below the Additional Information

Michael Biddle
05-20-2007, 03:35 AM
Ok What i did was find:

<tr>
<td class="tcat">$vbphrase[edit_profile]<span class="normal"> $bbuserinfo[username]</span></td>
</tr>

and replace with:

<tr>
<td class="tcat">$vbphrase[edit_profile]<span class="normal"> <a href="$vboptions[bburl]/member.php?u=$bbuserinfo[userid]">$bbuserinfo[username]</a></span></td>
</tr>

Hope this is what you want. It gives a link to the users profile

suttercain
05-20-2007, 03:42 AM
Hi Mike, thanks for the help.

I don't know if I am explaining myself properly.

I need to modify the actual profile for all users and not the section where the user edit their own profile.

Example of the page I need to change:
http://www.supermandatabase.com/forums/member.php?find=lastposter&f=20

To the bottom left there is an Additional Information section. I need to add a GLOBAL link that will show up in eveyone's profile. I don't think modifyprofile is the correct section to alter.

This is the page I am looking for (this is from 2002) not sure if it's still applicable.

{htmldoctype}
<html>
<head>
<title>$bbtitle - Update profile</title>
$headinclude
</head>
<body>
$header

<!-- breadcrumb -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td width="100%"><img src="{imagesfolder}/vb_bullet.gif" align="middle" alt="vBulletin">
<normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> &gt;
<a href="usercp.php?s=$session[sessionhash]">User Control Panel For $bbuserinfo[username]</a> &gt;
Edit Profile</b></normalfont></td>
</tr>
</table>
<!-- /breadcrumb -->

<br>
$cpnav
<br>

<center>$coppatext</center>

<form action="member.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]">

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
<td bgcolor="{categorybackcolor}" colspan="2"><normalfont color="{categoryfontcolor}"><b>Edit Profile - $bbuserinfo[username]</b></normalfont></td>
</tr>
<!-- <tr>
<td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Registration: Required Information</b></normalfont>
<smallfont color="{tableheadtextcolor}" class="thtcolor">All fields are required.</smallfont></td>
</tr>
$parentemail
<tr>
<td bgcolor="{secondaltcolor}"><normalfont><b>Email Address:</b></normalfont></td>
<td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="email" value="$bbuserinfo[email]" size="30" maxlength="150"></normalfont></td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}"><normalfont><b>Confirm Email Address:</b></normalfont></td>
<td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="emailconfirm" value="$bbuserinfo[email]" size="30" maxlength="150"></normalfont></td>
</tr> -->
<tr>
<td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Optional Information</b></normalfont> <smallfont color="{tableheadtextcolor}" class=thtcolor>All information will be viewable by other $bbtitle members.</smallfont></td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}"><b><normalfont>Homepage:</normalfont></b></td>
<td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="homepage" value="$bbuserinfo[homepage]" size="30" maxlength="200"></normalfont></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}"><b><normalfont>ICQ Number:</normalfont></b></td>
<td bgcolor="{firstaltcolor}"><normalfont><input type="text" class="bginput" name="icq" value="$bbuserinfo[icq]" size="30" maxlength="30"></normalfont></td>
</tr>
<tr bgcolor="{secondaltcolor}">
<td><b><normalfont>AOL Instant Messenger Handle:</normalfont></b></td>
<td><normalfont><input type="text" class="bginput" name="aim" value="$bbuserinfo[aim]" size="30" maxlength="30"></normalfont></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}"><b><normalfont>Yahoo Messenger Handle:</normalfont></b></td>
<td bgcolor="{firstaltcolor}"><normalfont><input type="text" class="bginput" name="yahoo" value="$bbuserinfo[yahoo]" size="30" maxlength="30"></normalfont></td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}" valign="top"><b><normalfont>Signature:</normalfont></b><br>
<smallfont>Optional signature you may use to appear at bottom of your posts.</smallfont>
<p><smallfont>HTML code is $htmlonoff<br>
<a href="misc.php?s=$session[sessionhash]&action=bbcode">vB Code</A> is $bbcodeonoff<br>
[img] code is $imgcodeonoff<br>
<a href="misc.php?s=$session[sessionhash]&action=showsmilies">Smilies</a> are $smiliesonoff
</smallfont></p></td>
<td bgcolor="{secondaltcolor}"><textarea name="signature" rows="6" cols="40">$bbuserinfo[signature]</textarea></td>
</tr>
$birthday
$customtext
<tr>
<td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Additional Information</b></normalfont></td>
</tr>
$customfields
</table>
</td></tr></table>

<br>

<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td align="center"><normalfont>
<input type="hidden" name="action" value="updateprofile">
<input type="submit" class="bginput" name="Submit" value="Submit Modifications" accesskey="s">
<input type="reset" class="bginput" name="Reset" value="Reset Fields">
</normalfont></td>
</tr>
</table>

</form>

$footer

</body>
</html>

Michael Biddle
05-20-2007, 03:47 AM
OK I am sorta lost, but its template "MEMBERINFO"

Find: $template_hook[memberinfo_additionalinfo] if on 3.6.6+

Right around their just put a hyperlink and it will be global.

I am off for the night, PM me if you need any other assistance, and ill get when i wake up tommorow. NN Take care