TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 447
  • Total: 447

USER CP - An alternative to Profile Screen

Started by akulion, October 18, 2006, 07:57:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

akulion

Welcome - I needed it the most lol

u should have seen the amount of PM's I used to get from users asking how to change their theme lool

Nokonium

I've been fiddling with the custom action version I have found an error in the following extra bit, there is an ? missing

Find
<br />
<p align="center"><font face="Verdana" size="2">Do not like this tyle of UserCP? Then use the original one <a href="', $scripturl, 'action=profile"><b>Here</b></a></p>


Replace with
<br />
<p align="center"><font face="Verdana" size="2">Do not like this tyle of UserCP? Then use the original one <a href="', $scripturl, '?action=profile"><b>Here</b></a></p>




A suggested refinement to prevent creating hard coded text.

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

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

Open  Index.english.php 

Find
?>

Add before

// User Control Panel
$txt['cp_user'] = 'User CP';





I am also getting the "Undefined index: member" error.

Raven

Someone say they wanted gifs? I converted and edited them as most people use IE (God knows why) and it can't display .PNG right, feel free to save the images on this page :)
http://www.bzfiend.com/raven/forum/index.php?page=7

Ken.

Mine is throwing the error below;
I’ve been through the whole thread several times but so far am not coming up with what I’m doing wrong.
What needs to be changed to make it right?
Thanksâ€Ã,¦ Ken
Error page: test forum

Parse error: parse error, unexpected '<' in /homepages/46/d100556969/htdocs/mykimbrell/oldFamilyForum/Sources/Load.php(1709) : eval()'d code(225) : eval()'d code on line 1
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

G6Cad

Do you have the <?php and ?> tags left in your article ?

bloc

This is a great idea! Akulion: :up: :up:

I taken the freedom to put this into the actual profile.template of a new theme I will release today. Although the use of article is nice, its really a bit cumbersome - and leaves out the pure SMF users that don't have TP - or even Custom action mod installed.

What I done is to make it so the theme will show the "dashboard" page when adding "dashboard" to the querystring..like so: index.php?action=profile;u=1;sa=summary;dashboard. Also a shortcut to it and a option to make it default - for those that like that. There is in addition a check for permission, as you don't want a lot of error messages when everyone tries to view "your" dashboard. So only those that can manage members and yourself should see and use it.

But more details on it when I upload the theme.

akulion

:D woo hoo

Really looking forward to the theme :D

Ur themes are always the best :up:

Ken.

Quote from: G6 on October 20, 2006, 11:31:04 PM
Do you have the <?php and ?> tags left in your article ?
I don't see them G6, here is all of the code in my php article:
<p>echo&undefined;<br /><table border="0" width="100%" id="table1" cellspacing="1" style="border-collapse: collapse"><br /><span style="white-space: pre" /><tr><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><br /><span style="white-space: pre" /><span style="white-space: pre" /><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=account"><img border="0" src="usercp/ksysguard.png" width="80" height="80"></a></font></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><br /><span style="white-space: pre" /><span style="white-space: pre" /><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=theme"><img border="0" src="usercp/kivio.png" width="80" height="80"></a></font></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><br /><span style="white-space: pre" /><span style="white-space: pre" /><a href="&undefined;, $scripturl, &undefined;?action=theme;sa=pick;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sesc=&undefined;, $context[&undefined;session_id&undefined;], &undefined;"><img border="0" src="usercp/blockdevice.png" width="80" height="80"></a></font></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><br /><span style="white-space: pre" /><span style="white-space: pre" /><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=forumProfile"><img border="0" src="usercp/kuser.png" width="80" height="80"></a></font></td><br /><span style="white-space: pre" /></tr><br /><span style="white-space: pre" /><tr><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=account"><b>My Account Info</a><br><br /><span style="white-space: pre" /><span style="white-space: pre" /></b></font><font face="Verdana" size="1">Click here if you want to <br /><span style="white-space: pre" /><span style="white-space: pre" />change your account related information such as username, email, <br /><span style="white-space: pre" /><span style="white-space: pre" />password or other sensitive details.</font></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=theme"><b>Look & Layout Options</a><br><br /><span style="white-space: pre" /><span style="white-space: pre" /></b></font><font face="Verdana" size="1">Click here to change the way <br /><span style="white-space: pre" /><span style="white-space: pre" />the forum looks for you, options include the look and layout for the <br /><span style="white-space: pre" /><span style="white-space: pre" />boards and posts.</font></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><a href="&undefined;, $scripturl, &undefined;?action=theme;sa=pick;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sesc=&undefined;, $context[&undefined;session_id&undefined;], &undefined;"><b>My Theme</a><br><br /><span style="white-space: pre" /><span style="white-space: pre" /></b></font><font face="Verdana" size="1">This screen will allow you to <br /><span style="white-space: pre" /><span style="white-space: pre" />set your default theme which you wish to use every time you login.</font></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=forumProfile"><b>My Profile</a><br><br /><span style="white-space: pre" /><span style="white-space: pre" /></b></font><font face="Verdana" size="1">Click here to change the way <br /><span style="white-space: pre" /><span style="white-space: pre" />your profile looks and appears to everyone.</font></td><br /><span style="white-space: pre" /></tr><br /><span style="white-space: pre" /><tr><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><br /><span style="white-space: pre" /><span style="white-space: pre" /><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=statPanel"><img border="0" src="usercp/kwalletmanager.png" width="80" height="80"></a></font></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><br /><span style="white-space: pre" /><span style="white-space: pre" /><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=showPosts"><img border="0" src="usercp/kedit.png" width="80" height="80"></a></font></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><br /><span style="white-space: pre" /><span style="white-space: pre" /><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=notification"><img border="0" src="usercp/mailreminder.png" width="80" height="80"></a></font></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><br /><span style="white-space: pre" /><span style="white-space: pre" /><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=editBuddies"><img border="0" src="usercp/kdmconfig.png" width="80" height="80"></a></font></td><br /><span style="white-space: pre" /></tr><br /><span style="white-space: pre" /><tr><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=statPanel"><b>My Stats</a><br><br /><span style="white-space: pre" /><span style="white-space: pre" /></b></font><font face="Verdana" size="1">Here you can check how many <br /><span style="white-space: pre" /><span style="white-space: pre" />posts you have made, which games you are a champion in and other <br /><span style="white-space: pre" /><span style="white-space: pre" />activity related info.</font></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=showPosts"><b>My Posts</a><br><br /><span style="white-space: pre" /><span style="white-space: pre" /></b></font><font face="Verdana" size="1">This option will show you all <br /><span style="white-space: pre" /><span style="white-space: pre" />the posts you have made since you became a member of this site.</font></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=notification"><b>My Notifications</a><br><br /><span style="white-space: pre" /><span style="white-space: pre" /></b></font><font face="Verdana" size="1">This screen will allow you to <br /><span style="white-space: pre" /><span style="white-space: pre" />change the type and frequency of notifications you get via e-mail when <br /><span style="white-space: pre" /><span style="white-space: pre" />participating in threads.</font></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=editBuddies"><b>Buddies</a><br><br /><span style="white-space: pre" /><span style="white-space: pre" /></b></font><font face="Verdana" size="1">This screen will allow you to <br /><span style="white-space: pre" /><span style="white-space: pre" />select buddies to add to your list. </font></td><br /><span style="white-space: pre" /></tr><br /><span style="white-space: pre" /><tr><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><br /><span style="white-space: pre" /><span style="white-space: pre" /><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=pmprefs"><img border="0" src="usercp/mail.png" width="80" height="80"></a></font></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=tpshoutbox"><img border="0" src="usercp/messenger.png" width="80" height="80"></a></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><a href="&undefined;, $scripturl, &undefined;?action=search"><img border="0" src="usercp/find.png" width="80" height="80"></a></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><a href="&undefined;, $scripturl, &undefined;?action=pm;sa=send;u=1"><img border="0" src="usercp/agent.png" width="80" height="80"></a></td><br /><span style="white-space: pre" /></tr><br /><span style="white-space: pre" /><tr><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=pmprefs"><b>My Messages Options</a><br><br /><span style="white-space: pre" /><span style="white-space: pre" /></b></font><font face="Verdana" size="1">This screen will allow you to <br /><span style="white-space: pre" /><span style="white-space: pre" />set your preferences for PMs received on the board and also allow you to <br /><span style="white-space: pre" /><span style="white-space: pre" />ignore people you do not wish to receive PMs from.</font></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><b><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><a href="&undefined;, $scripturl, &undefined;?action=profile;u=&undefined;, $context[&undefined;member&undefined;][&undefined;id&undefined;], &undefined;;sa=tpshoutbox">Show My Shouts</a><br><br /><span style="white-space: pre" /><span style="white-space: pre" /></font></b><font face="Verdana" size="1">This screen will show a log of <br /><span style="white-space: pre" /><span style="white-space: pre" />all the shouts you have made in the shoutbox. (Note: Shouts are deleted <br /><span style="white-space: pre" /><span style="white-space: pre" />periodically by the admin)</font></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><a href="&undefined;, $scripturl, &undefined;?action=search"><b>Search</a><br><br /><span style="white-space: pre" /><span style="white-space: pre" /></b></font><font face="Verdana" size="1">This screen will allow you to <br /><span style="white-space: pre" /><span style="white-space: pre" />search for posts made in the board.</font></td><br /><span style="white-space: pre" /><span style="white-space: pre" /><td align="center" width="25%" valign="top"><br /><span style="white-space: pre" /><span style="white-space: pre" /><font face="Verdana" size="2"><a href="&undefined;, $scripturl, &undefined;?action=pm;sa=send;u=1"><b>Contact Admin</a><br><br /><span style="white-space: pre" /><span style="white-space: pre" /></b></font><font face="Verdana" size="1">Still  having problems?<br><br /><span style="white-space: pre" /><span style="white-space: pre" />Then contact the admin from here and submit your questions.</font></td><br /><span style="white-space: pre" /></tr><br /></table><br />&undefined;;<br /></p>
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

akulion

Ken I think u may be using the "editor" in the article

Turn the editor off from ur TP Settings Screen

And then put follow instructions as in 1st post :up: and all should go well

rctxtreme

#59
I've packaged up this into a handy little mod... though I'm not releasing it without akulion allowing me to...

This website is proudly hosted on Crocweb Cloud Website Hosting.