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

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.

RoarinRow

Works great!  I just had to update my index.template.php file to all my 18 or so themes   :uglystupid2:

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

akulion

Quote from: RoarinRow on October 23, 2006, 11:45:30 PM
Works great!  I just had to update my index.template.php file to all my 18 or so themes   :uglystupid2:

u mean u do them manually?
u should get the Global Themes mod :up:

RoarinRow

Quote from: Aku on October 24, 2006, 12:56:52 AM
Quote from: RoarinRow on October 23, 2006, 11:45:30 PM
Works great!  I just had to update my index.template.php file to all my 18 or so themes   :uglystupid2:

u mean u do them manually?
u should get the Global Themes mod :up:

Hahaha, yeah I did them manually.  I'm all done, it wasn't too bad.  Looks great though!   :up:

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

brianjw

Quote from: fb on October 20, 2006, 10:34:26 AM
Quote from: daftdate on October 20, 2006, 09:29:29 AM
Ok at the risk of looking like a complete and utter newbie exactly what do i change with the


Instead of ' , $txt[79] , ' put USER CP


code do i replace the whole of the $txt[79] or part of it cause im doing it wrong.
I need to get some php lessons but have to learn C++ first as its a priority for work, then im going to try to get a life.  :)


You would remove all of it, and replace w/ your text:



<a href="', $scripturl, '?action=profile">USER CP</a>


 
Actually I left it <a href="', $scripturl, '?page=XX">USER CP</a>
never mind. I didnt do much w./ the code but didnt do that^
i changed the link and added 'UserCP'

mandos

it looks great, nice job!

is it possible for USER-CP to be added in the next release of tinyportal?

thanks in advance :)

bloc

No, its already made as a template example in Leviathan theme and thats really where it belongs - as part of a theme. Its just a page of quick-links basically.

Assistance

my error log is getting
"Use of undefined constant UserCP - assumed 'UserCP'"

on every page, using JA's code


jacortina

My code doesn't have a constant (or variable or index) named UserCP.

The only time those characters are used at all (and only in all lowercase) are as part of the image location specifier (the subdir).

Are you sure you didn't change the entry in the index.template.php to something like:
?action=UserCP

jacortina

By the way, I agree completely with Bloc's view on this.

As an article, it's fairly easily customized.

Building it in would make it something of a graphical menu 'block', requiring a chunk of programming for little (if any) gain, while inevitably putting constraints/limitations on what different people might want to do with it.

Assistance

#109
Are you sure you didn't change the entry in the index.template.php to something like:
?action=UserCP

is exactly what i did, the caps is the problem?

edit nope

and the one i am using is the one from your post
With Aku's permission, I'm posting a version of his Control Panel

This website is proudly hosted on Crocweb Cloud Website Hosting.