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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:47:30+00:00 2026-06-14T13:47:30+00:00

I am trying to implement a menu in joomla 1.5 which should be visible

  • 0

I am trying to implement a menu in joomla 1.5 which should be visible only for guest user not for registered user.
For that I made changes in two files, those are administrator/components/com_menus/models/metadata/component.xml
and

modules/mod_mainmenu/helper.php

For the first file, I have added the following code in the line no 20:

<param name="show_to_guest_only" type="radio" default="0" label="Show to Guest only" description="Show menu to guest user only.">
<option value="0">No</option>
<option value="1">Yes</option>
</param>

And for the second file, I have added the following pieces of code just before the line no 50:

$row_params = new JParameter($row->params);
if ($row_params->get('show_to_guest_only') == 1 && $user->id ){
continue;
}

But after doing this also, I am not getting the expected result.
Can you please help me how to solve this issue.

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-14T13:47:32+00:00Added an answer on June 14, 2026 at 1:47 pm

    You shouldn’t hack the core files. If nothing else copy mod_mainmenu to another name like mod_guestmenu and then do your changes there and installing.

    You might want to use one of the advanced module management extensions available at extensions.joomla.org

    MetaMod is one that springs to mind.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to implement a simple horizontal navigation menu that just shows a single
I'm trying to implement Copy as path option in windows context menu ,which copies
I'm trying to implement a custom menu in my joomla template. I added this
I am trying to implement a custom UIView which is basically a pie menu
while i am trying to implement font menu item in notepad , im not
I'm trying to implement a button in WPF which shows a menu when you
I am trying to implement a very simple little dropdown-style mini-menu that will appear
I'm trying to implement a 'preview' scenario when the user hover a menu item.
I'm trying to implement a tab menu just like the one in Stack Overflow.
I'm trying to implement a CSS menu and am having a problem with the

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.