Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8734599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:52:28+00:00 2026-06-13T09:52:28+00:00

I am using joomla 1.5.26 . I can fetch the username and userid within

  • 0

I am using joomla 1.5.26 .

I can fetch the username and userid within the joomla file structure by

$user =& JFactory::getUser(); $user->username;.

Now I have a file which is neither under template folder nor under module folder nor under component folder. This is simply under root folder.

Now how can I fetch the logged in username?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:52:29+00:00Added an answer on June 13, 2026 at 9:52 am

    Try this one create a new file on home page and access the username in this way

     define( '_JEXEC', 1 );
        define('JPATH_BASE', dirname(__FILE__) );
        require_once( JPATH_BASE .'/includes/defines.php' );
        require_once( JPATH_BASE .'/includes/framework.php' );
        $mainframe =& JFactory::getApplication('site'); 
        $user =& JFactory::getUser();
        $user->username;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have following menu structure and using the standard menu joomla module: menu top
I'm using Joomla, and as far as I can tell I have done everything
I can't believe, no one got my problem before. Using joomla 1.5 and VM
I'm using Joomla 1.5.14 and I configured SEO as in the following image Now
I'm using joomla 1.7 and I want for some users to not have the
We are using Joomla 1.5.21 and JCE 1.5.7 and have some trouble with the
I have just launched a site (using Joomla and a custom template), which doesn't
I am new to Joomla. I have created website using Joomla 2.5. I have
I try to fetch my users information using the getUser() function with a php
i'm using joomla and want to restrict the user profile image size(dimension). it is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.