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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 312
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 296
  • Total: 296

TP 1.0 beta 3 : User Info / Guest Login modification

Started by sputera, April 10, 2009, 02:55:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sputera

Hi all,

Currently I'm using TP 1.0 beta 3 with MysticJade theme.

I want to edit the User Info / Guest Login appearance, but can't find which file.

Basically, User Info / Guest Login was designed to place at right/left panel, so the appearance was in vertical.

But, I want to place the User Info / Guest Login at the upper panel. So, the appearance would be in horizontal.

Instead the position like this :
Hey, [admin/member]

    * PM: 39
    * Show unread
    * Show replies
    * Show own posts
    * Show latest comments
    * Total Logged In:
    * 4d 10h 55m
    * April 10, 2009, 09:50:02 AM
    *
    * Upload file
    * Manage settings
    * Manage blocks
    * Manage articles
    * Manage Files

I want to position to be like this :-
Quote
Hey, [admin/forumer]

    | PM: 39 | Show unread | Show replies | Show own posts | Show latest comments |
                | Total Logged In: 4d 10h 55m,  April 10, 2009, 09:50:02 AM |
-----------------------------------------------------------------------------------------------
    | Upload file | Manage settings | Manage blocks | Manage articles | Manage Files
|

IchBin

You'll have to take the code from the existing block and copy it into a phpbox to customize it like that. Themes/default/TPortalBlocks.template.php file is where you'll find that function.

sputera


sputera

I've try copy and paste the original code, but it comes this message :-

QuoteFatal error: Cannot redeclare tportal_userbox() (previously declared in /home/scramrid/public_html/Sources/Load.php(1741) : eval()'d code:593) in /home/scramrid/public_html/Sources/Load.php(1741) : eval()'d code(48) : eval()'d code on line 135

sputera


sputera

Yup, once the "tportal_userbox()" removed, no error reported. Thx.

sputera


IchBin

No, you don't need to remove it. You just need to rename it. function tportal_userbox2()

And then just call the function in a phpbox. tportal_userbox2();

This way, you're not modifying the source files which will get screwed up when you upgrade.


This website is proudly hosted on Crocweb Cloud Website Hosting.