The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> I need some CSS or Javascript help
stub
post May 30 2016, 04:59 AM
Post #1


Member
***

Group: Members
Posts: 36
Joined: 15-November 12
Member No.: 18,105



Hi,

I need some CSS or Javascript help. I have 2 websites, a development site and a live site with what should be identical content. The live site has a few more tweeks. On the development site www.testingout.com/htmltheme/grayscale/portfolio.php/, when I click search all categories without any search terms I get a pop-up which asks do I really want to list all domains. But when I do the same search on the live website it just goes and lists all the domains. www.selldoms.com/portfolio.php. Both of which load the same template files referred to below. This was developed by a coder, not me.

Any possible page affecting this are identical, /template/default/portfolio.php, /template/default/search.php, /template/default/searchbar.php. So I had to do a little digging. If I compared the two header.php files. The look they same to me except on the live website I've separated the theme from the changes to the theme. But I cannot understand why that should matter. If I just copy the header file over to the live website, the question pops up, but of course the page is messed up. So the answer must be within the header file, somewhere.

My Live Header files looks like this

CODE
<!DOCTYPE html>
    <html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title><?php echo $pagetitle; ?> - <?php echo $title; ?></title>
        <meta name="Author" content="" />
        <meta name="Keywords" content="<?php echo $keywords; ?>" />
        <meta name="Description" content="<?php echo $description; ?>" />
        <meta name="viewport" content="width=device-width, initial-scale=1"/>

        <!-- Custom Fonts -->
        <link rel="stylesheet" type="text/css" href="/font-awesome/css/font-awesome.min.css"  />
        <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic"  />
        <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Montserrat:400,700"  />
        
        <!-- Bootstrap Core CSS -->
        <link rel="stylesheet" href="/css/bootstrap.min.css" />
        <!-- Grayscale Core CSS -->
        <link rel="stylesheet" type="text/css" href="/templates/default/css/grayscale.css" />
        <!-- DNSP Theme CSS -->
        <link rel="stylesheet" type="text/css" href="/templates/default/css/dnsp.css" />        
        <!-- Other Stylesheets -->
        <!-- <link rel="stylesheet" type="text/css" href="/templates/default/css/tcal.css" /> ADMIN ONLY -->

        <!-- JAVASCRIPT -->
        <script type="text/javascript" src="/js/bootstrap.min.js"></script>
        <script type="text/javascript" src="/templates/default/js/jquery-1.12.0.min.js"></script>    
        <!--<script type="text/javascript" src="/templates/default/js/columnizer.js"></script> ADMIN ONLY -->
        <!--<script type="text/javascript" src="/templates/default/js/tcal.js"></script> ADMIN ONLY -->
        
        <!-- Favicon -->
        <link rel="icon" type="image/x-icon" href="http://selldoms.com/favicon.ico" />
        
    </head>


My testsite header file looks like this

CODE
<!DOCTYPE html>
    <html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title><?php echo $pagetitle; ?> - <?php echo $title; ?></title>
        <meta name="Author" content="" />
        <meta name="Keywords" content="<?php echo $keywords; ?>" />
        <meta name="Description" content="<?php echo $description; ?>" />
        <meta name="viewport" content="width=device-width, initial-scale=1"/>

        <!-- Custom Fonts -->
        <link href="./font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <link href="http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" rel="stylesheet" type="text/css" />
        <link href="http://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css" />
        
        <!-- Bootstrap Core CSS -->
        <link href="./css/bootstrap.min.css" rel="stylesheet" />
        
        <!-- <link rel="stylesheet" href="http://testingout.com/htmltheme/grayscale/templates/default/css/screen.css" type="text/css" media="screen" /> -->
        <link rel="stylesheet" href="./templates/default/css/theme.css" type="text/css" />
        <style type="text/css">a {text-decoration: none}</style>


        
        <script type="text/javascript" src="./templates/default/js/jquery-1.12.0.min.js"></script>
        <script type="text/javascript" src="./js/bootstrap.min.js"></script>
        <script type="text/javascript" src="./templates/default/js/columnizer.js"></script>

    </head>


I would guess there is some javascript in the pages which is creating the pop-up. But as I've said, the pages appear to be identical. I even copied them over from the testsite to the livesite.

I am at my wits end to find out why the pop-up isn't working on the livesite. Is this a pathing problem? Any help would be appreciated.

This post has been edited by stub: May 30 2016, 05:13 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post May 30 2016, 05:45 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,650
Joined: 10-August 06
Member No.: 7



QUOTE(stub @ May 30 2016, 11:59 AM) *

If I compared the two header.php files. The look they same to me except on the live website I've separated the theme from the changes to the theme.

Several files are commented out on the live version, including the JS file

CODE
<!--<script type="text/javascript" src="/templates/default/js/columnizer.js"></script> ADMIN ONLY -->

which is used on the test version (I don't know what it's used for).
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 17th April 2024 - 11:24 PM