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 8952145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:48:41+00:00 2026-06-15T13:48:41+00:00

I have created a theme by copying the boxxie theme folder in the moodle/theme

  • 0

I have created a theme by copying the boxxie theme folder in the moodle/theme folder and renaming it to my theme.
Now I wanted to have my own BEFORE LOGIN front page so in the theme/mytheme/config.php i changed the file for ‘frontpage’ of the $THEME->layouts from ‘frontpage.php’ to ‘index.php’ where index.php is the index page of my custom html theme.

I have put the folders(css, js etc) in the layout folder of the theme and after the selecting the theme from the moodle admin section, its working fine.

Now, the problem is that I am using the same theme for about.php and a few other php pages. Now whenever i open the about.php page from the browser, it displays an error that the $OUTPUT variable is not recognizable as I am using $OUTPUT->login_info() method in all the pages to get the login info of either logged in or not logged in.

Following is the code which is working fine in the theme/mytheme/layout/index.php (as it is being included in the main index.php file) but showing an error in the theme/mytheme/layout/about.php

<span style="font-size: 15px; color: #ffffff;"><?php echo $OUTPUT->login_info(); ?></span>

What have i tried ?

  1. Storing the output in a session variable ($_SESSION[‘myoutputvar’]).

  2. Making a global variable and storing the
    $OUTPUT in that variable.

But none of this worked.
I know the problem but can’t find a solution and after hours of searching, I am finally posting it here.

So, I would be glad to receive any kind of help from you guys.
Thanks in advance.

  • 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-15T13:48:42+00:00Added an answer on June 15, 2026 at 1:48 pm

    You need to check layout config file layout values.

    and also need to set in about.php

    $PAGE->set_pagelayout('frontpage');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a custom theme for my activities that they all use. In
I have created my Portfolio and put there a Google+ button. The page is
I have created a PowerShell script for copying files to a directory, the script,
In Eclipse, I have one existing project, A. Right now, I have just created
I have created the following drop down for my front-end webpage: <select> <option value=All>All</option>
I am working on an application with many html pages. I have created these
I have created a div there are two childs of that div one is
I have created custom cell in which there are n number of image views.
I have created a view in which there is a capture button. When i
I have created a jar file of few of my classes and preverified them

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.