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: 542
  • Total: 542

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.

binkles



bluedevil

Hey Alan whats up man.....

I dloaded your zip and it works good on default theme. However im using DilberMC for the forum default.

When i type the URL (action=usercp) using dilbermc,it works but my question is.... do i change where it says "profile" to "usercp" in this button code to make it work from the nav bar?

// Edit Profile... [profile]
   if ($context['allow_edit_profile'])   
   echo'
            <td align="center" class="menubg' , $current_action == 'profile' ? '2' : '' , '">
               <a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>               
            </td>';

bluedevil

Quote from: bluedevil on March 11, 2007, 02:14:42 PM
Hey Alan whats up man.....

I dloaded your zip and it works good on default theme. However im using DilberMC for the forum default.

When i type the URL (action=usercp) using dilbermc,it works but my question is.... do i change where it says "profile" to "usercp" in this button code to make it work from the nav bar?

// Edit Profile... [profile]
   if ($context['allow_edit_profile'])   
   echo'
            <td align="center" class="menubg' , $current_action == 'profile' ? '2' : '' , '">
               <a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>               
            </td>';

Nevermind....hehehe it worked for dilbermc.

I replaced in the above button code "action=profile" to "action=usercp"  it works now.


Zetan

#205
Don't know if this has been mentioned, or solved.

My Theme takes me to Summary and not Themes.

Look & Layout Options takes me to Look and Layout Options, with the option link to change themes.

ZTN


Zetan

Okay found the problem in my Article.

Find:
if ($modSettings['theme_allow'] || $context['user']['is_admin'])
$cp_entry[] = array('link' => '?action=profile;u='.$ID_MEMBER.';sa=pick;sesc='.$context['session_id'],    'image' => 'usercp/blockdevice.png',    'title' => 'My Theme',
'label' => 'This screen will allow you to set your default theme which you wish to use every time you login.');


In this line change: action=profile
action=profile;u='.$ID_MEMBER.';sa=pick;sesc='.$context

to: action=theme
action=theme;u='.$ID_MEMBER.';sa=pick;sesc='.$context

Easy fix, I'm sure it's been covered already.



ZTN

Shadow

I use this mod and it's throwing out error's on the theme anyone eles is fine...On each theme I'm using...

brianjw

Quote from: Shadow Queen on March 16, 2007, 12:19:12 AM
I use this mod and it's throwing out error's on the theme anyone eles is fine...On each theme I'm using...
Just use the manual one, its the one im  using (akus code) ;)

Shadow

Yea, I unstall that mod from all the forum's i'm using it on.  Few week's back I think.

This website is proudly hosted on Crocweb Cloud Website Hosting.