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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:30:19+00:00 2026-06-10T19:30:19+00:00

An issue with a dropdown menu. The problem isn’t the menu code itself ie

  • 0

An issue with a dropdown menu. The problem isn’t the menu code itself ie ul..etc, but a php chat program im currently embedding. After inserting this code to embed the chat box which appears with no errors the ability to use the ul dropdown link is disabled. The embedded php is in an entirely seperate div from the menu which is located in the #zonebar div.

the embedded code <?php $chat->printChat(); ?> which is in a specific div.

The thing is when i remove this code the dropdown menu buttons work again..

To be more specific the only php code in my html file with appropriate htaccess which allows me to use php in an html document is..

the code below is located at the very top of my page above all tags

<?php

require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["serverid"]       = md5(__FILE__); // calculate a unique id for this chat
$params["title"]          = "A simple chat with user's parameters";

$params["frozen_nick"]    = true;     // do not allow to change the nickname
$params["shownotice"]     = 0;        // 0 = nothing, 1 = just nickname changes, 2 = connect/quit, 3 = nick + connect/quit
$params["max_nick_len"]   = 20;       // nickname length could not be longer than 10 caracteres
$params["max_text_len"]   = 300;      // a message cannot be longer than 50 caracteres
$params["max_channels"]   = 1;        // limit the number of joined channels tab to 3
$params["refresh_delay"]  = 2000;    // chat refresh speed is 10 secondes (10000ms)
$params["max_msg"]        = 15;       // max message in the history is 15 (message seen when reloading the chat)
$params["height"]         = "230px";  // height of chat area is 230px

$params['admins'] = array('daddo'  => '1234', 'berthill' => '1234');
$params["debug"]          = false;     // activate debug console

$chat = new phpFreeChat( $params );

?>

and then the code in the specific div

<?php $chat->printChat(); ?>

link directly the html file without any php content
edited out address after fix

link with the php code embedded

  • 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-10T19:30:21+00:00Added an answer on June 10, 2026 at 7:30 pm

    I am going to wager a guess at this since looking through about a dozen javascript files is not something I really want to do.

    Your dropdown menu uses jQuery… which is great.

    Your chat uses Prototype… also great.

    They are most likely not playing well together. You can try doing this:

    var $j=jQuery.noConflict();
    $j(document).ready(function(){
        $j("#zone-bar li em").click(function() {
            var hidden = $j(this).parents("li").children("ul").is(":hidden");
            $j("#zone-bar>ul>li>ul").hide()
            $j("#zone-bar>ul>li>a").removeClass();
            if (hidden) {
                $j(this)
                .parents("li").children("ul").toggle()
                .parents("li").children("a").addClass("zoneCur");
            }
        });
    });
    

    It may or may not work, but using $j instead of $ may fix the issue.

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

Sidebar

Related Questions

I'm having an issue with a dropdown menu in IE8. Everything looks OK on
I have an issue where the dropdown menu options appear beneath the swfobject which
I am building a small dropdown menu with jQuery, but i am have a
I have built a dropdown menu system, everything works when tested independently, the problem
I'm building a dropdown menu and I've got an issue showed on this img:
I have a problem with getting dropdown menu to appear in Magento when using
I have an issue with a dropdown menu that is appearing too much to
I'm struggling with an issue with my drop-down menu, which is that the dropdown
I have a dropdown menu working great with the following code: $('#menu ul li').mouseenter(function(){
I am currently developing a custom map, but have one issue. I have several

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.