Jump to content
Gee_suss

Home Link Downloads ZIP folder

Recommended Posts

Hi Tim, many thanks for you help it is much appreciated. I am unsure why all of a sudden the HOME link is now pointing to the MALA folder instead of the index page. The contents of the folder are the same as what is included in the main folder (header.php, footer.php, gruntfile.js, index.html & menu_helper.php). Is there a reason why this is happening and pointing to this folder?

 

I have to reconstruct the website that I have downloaded from FTP and make some changes to it and then re-upload. When I open the index page in Dreamweaver it looks nothing like what is presented to you in a web browser.

 

The previous designer has used a splash screen that then takes you to the main site screen and a special menu that appears when you hover over it. Also he has used a special typeface that is remotely linked to the website (MUSEO Sans).

 

Any advice to get the website in order on my machine to make the HOME page link back to the home page and not a folder would be MASSIVELY appreciated.

 

Kind Regards,

Gavin

Share this post


Link to post
Share on other sites

When I open the index page in Dreamweaver it looks nothing like what is presented to you in a web browser.

 

There is no reason why it should. Dreamweaver will only process the files it's able to. This won't include PHP and JS is unlikely to work.

Share this post


Link to post
Share on other sites

Does your home folder have an index.php or index.html file? It's possible your server is doing this because there's no default file it can find. It's still really unusual though, forcing a folder to download is something you tend to code intentionally.

Share this post


Link to post
Share on other sites

Hi Web Guru & Nan. I hope all is well and you are having a splendid week. Many thanks for your time answering my question.

 

"There is no reason why it should. Dreamweaver will only process the files it's able to. This won't include PHP and JS is unlikely to work."

What I need to do is make some changes to the website that as the previous designer has disappeared. I have been given the FTP details and downloaded a program named 'Mountain Duck' to get access to the files. I have some basic web design skills and have always used Adobe Dreamweaver or Muse to create websites. What I thought I could do is download the files via FTP and then open them in Dreamweaver and link certain parts and make the changes in that particular program. I assumed that the previous designer would have used the same program to create the pages. When I open index.html it shows the basics of the page but then I am a little bit lost on how to get all of the different parts linked up. The previous designer has used some techniques that are new to me (splash screen & menu) that I am assuming is js.

 

"Does your home folder have an index.php or index.html file? It's possible your server is doing this because there's no default file it can find. It's still really unusual though, forcing a folder to download is something you tend to code intentionally."

I have downloaded all of the folder content to my machine and there is a index.html file within that folder. The only part that would not download properly is a folder named 'logs' that would not download properly. I was unsure how else to make the changes other than download the web files to my local machine, make the changes, and then re-upload via FTP. It certainly is strange as the company who own the website said this only started happening recently and it had been working fine for a while.

 

Any advice is massively appreciated.

Kind Regards

Share this post


Link to post
Share on other sites

The site is a mix of HTML, CSS, JS and PHP

 

Dreamweaver won't ever work the way you want it to. If you want to make the changes you need to edit the code. You won't be able to use WYSIWYG editor.

 

The logs file you can ignore you don't need it.

Share this post


Link to post
Share on other sites

Good evening,

 

Ah yes OK. I was hoping to make any changes and then test the site before it goes live to avoid any more problems and it getting worse. I am more used to working in a program like Dreamweaver to see what is happening.

 

I am a little unsure what file to edit to make the Home link point to the Home page rather than the MALA folder download.

 

Which program would you recommend to edit the code and which file do I edit with it being the menu at the top?

 

I have a feeling that it is linking to the folder so not to play the splash screen every time you go back to the HOME page? Is this correct?

 

Kind Regards

Edited by Gee_suss

Share this post


Link to post
Share on other sites

I suspect it's in header.php.

 

Look for the home link and delete the /mala and it should work again

 

Dreamweaver will do the job - you just need to switch to code view.

Share this post


Link to post
Share on other sites

Hello,

 

I hope you do not mind but I have attached the header.php as I am not able to see the link for the HOME page.

 

Do you think that the MALA folder is there so that when you are browsing the website and you need to go back to the Home page it does not play the splash screen?

 

So I would edit the file in Dreamweaver and then replace the existing file on the server using FTP?

 

Kind Regards

header.php

Share this post


Link to post
Share on other sites

Change line 54 to:

 

<li class="<?php echo $home; ?> show-for-medium-up"><a href="/">Home</a></li>

Edited by fisicx

Share this post


Link to post
Share on other sites

Hi fisicx,

 

Many thanks for looking at the header file, it is much appreciated!

 

Just to make 100% sure as I am ultra scared about editing a file on the live website. Will the website still open up with the splash screen but when you click the Home page link within the website it will not play the splash screen again?

 

UPDATE: I have just made the change to the header.php and it does indeed play the splash page every time you go to the Home page. Is there a way so that it plays the splash page once and once only and when you navigate to the Home page within the site it does not play it again?

 

Kind Regards

Edited by Gee_suss

Share this post


Link to post
Share on other sites

Probably.

 

I'd need all the site files. Can you zip them up and post here.

 

Why do they even want a splash page? It's a pointless barrier to the website.

Share this post


Link to post
Share on other sites

Hi fisicx,

 

No worries, please find attached. These are the files I have downloaded and not emended the header.php file as I did that live via FTP.

 

I know! I totally agree. But they were very insistent on that splash screen but I will definitely try and advise them not to have it as it only serves to make people wait more time to enter the site!

 

Many thanks once again!

 

Kind Regards,

MALA Website New.zip

Share this post


Link to post
Share on other sites

I've looked at the files and it's not a simple fix. Get rid of the splash page and it becomes a simple fix.

 

If you want me to do the work then I need to charge.

 

As an aside, there are loads of issues with the site apart from the splash page.

Share this post


Link to post
Share on other sites

Can't you just change

<li class="<?php echo $home; ?> show-for-medium-up"><a href="/MALA">Home</a></li>

to just a forward slash and remove the /MALA part? That's why the link is going to that directory.

Share this post


Link to post
Share on other sites

Hi Guys, many thanks for your time to look at my problem.

 

fisicx: I totally agree the splash page serves no purpose and is only making this particular problem worse. Many thanks for taking time to look at the files and I really appreciate it. Hypothetically how would one get rid of the splash page and have the website just go straight to the Home page?

 

Jack: You are totally right and I have done exactly what fisicx and you have suggested so the problem of the folder downloading has now stopped. The new problem is when you first navigate to the website the splash page activates and then takes you to the website. When you are within the website and navigate to the different pages when you go back to the home page the splash page plays when you go back to the Home page. What I would like is that after the first time you see that splash page you do not see it again when navigating within the site. I totally agree with fisicx above saying that the splash page is not needed and only serves to delay accessing the website. I hope that makes sense :)

 

What I have seen is that perhaps a cookie could be used to see if that person has been to the website before. If they are a first time visitor the splash page plays. If they are a returning visitor the cookie identifies this and the splash page does not play.

 

Kind Regards

Edited by Gee_suss

Share this post


Link to post
Share on other sites

What I have seen is that perhaps a cookie could be used to see if that person has been to the website before. If they are a first time visitor the splash page plays. If they are a returning visitor the cookie identifies this and the splash page does not play.

Cookies should achieve what you want, here's one way to implement it.

 

Change index.html to index.php

 

The top of the file should be changed to include this:

<?php
  include('header.php');

  // sets a cookie for the splash page visibility for 10 years
  if( count($_COOKIE) > 0 && !isset($_COOKIE['displaySplash'] ) ){
    setcookie(
      'displaySplash',
      '',
      time() + (10 * 365 * 24 * 60 * 60) 
    );
  };
?>

I'm not actually sure how you would do a never expire cookie in PHP, so I've just it to be 10 years ¯\_(ツ)_/¯

 

The section that includes your splash code page can now have a conditional wrapped around it to check if the cookie exists, if it does then it's ignored.

<?php // check if displaySplash exists - show splash screen if not
  if( !isset($_COOKIE['displaySplash'] )): ?>
  <div class="splash fade-in">
    <h1 class="splash-title fade-in"><img src="img/logo.png" /></h1>
    <a href="#" class="splash-arrow fade-in">skip</a>
  </div>
<?php endif; ?>

I haven't tested any of this, and to be honest you would be better off explaining why this is bad to the client. Even clients that seem stubborn can come around if the negatives are outlined correctly.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • By MegaBrain
      Dear Friend!
      I am writing to you in the hope of receiving an answer to my question. Now I'm starting to study their design and can not solve one task. I hope that you will help me to understand it.
      Unfinished task
       
      The idea of the application: Order of on-demand services
       
      Description of the application:
       
      1). ‘Freelancer’ (gardener, carpenter, electrician, plumber, locksmith and
      etc.) after registration in the app provides the following
      information: credit card details; photo
      the document proving the identity; list of services that
      he can provide.
       
      2). "Сlient" is registered in the same application in order to find who
      could, for example, repair a chandelier in the living room.
       
      3). With the help of the card "Client" finds the nearest electrician (our
      "Freelancer"), looks at his profile, checks his document,
      reads reviews and leaves a request, indicating the address and time,
      when he will be at home and pays for the ordered service (money
      "freeze" on the freelancer account until confirmation).
       
      4). At the appointed time "Freelancer" comes to the «Client" does
      work and requests through the application confirmation
      performance of work at the ‘Client’.
       
      5)."Client" receives notification, opens the application and
      confirms the performance of the work (after that the money transfer to the
      account of "Freelancer") and leaves feedback (if desired). If
      freelancer did not come at the appointed time, money automatically
      return to the Customer and the order is canceled.
       
      The task:
       
      Indicate potential risks and suggest improvement of logic.
       
       
       
    • By Driftwood
      Hi,
       
      I'd like to create a shop for downloadable products. Ideally, the download links for each product should be unique. So customers can't share the link with others. At the same time, I'd like the system to remember which customer has downloaded which products. So that when a customer deletes their product, they can re-download it again.
       
      Has anyone here got experience with this kind of thing?
      Which approach would you recommend?
       
      Thanks a lot!
       
    • By lathiel
      Hello everyone,
      I have problem with local server, I doesn't matter if I use XAMPP or WAMP my website looks different in local than on server. Problem I think is in php include part of my website. On test server in web its looks allright but on local its not so good. I use dreamweaver. In liveview in index.php I have for now only one part in php for news and here is problem I will show you screens
       
      This is how to looks in localhost

       
       
       
      And the same code looks on website server

    • By OctaMax
      Hi all,
       
      I have a SASS snippet that has worked up until version 3.4.3 and I wondered if someone might know the reason.
      I have put the snippet along with the compiled outputs from version 3.4.3(fails) and version 3.3.14(succeeds) on a Codepen blog post:
       
      http://codepen.io/Octavector/blog/sass-problem
       
      I would be really grateful for anyone to have a quick nose, it's probably something painfully obvious.
    • By jokerxfx
      Hi there, I've got a database set up and it connects just fine, but when trying to log into the admin area I was getting about 10 errors, now I've cut it down to the final two but I can't figure it out. So any help would be greatly appriciated!!


      Warning: mysqli_query() expects at least 2 parameters, 1 given in /home/content/12/11792312/html/myshop/storeadmin/admin_login.php on line 17 Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /home/content/12/11792312/html/myshop/storeadmin/admin_login.php on line 19  
      and here is the admin login page:
       
      <?php session_start(); if(isset($_SESSION["manager"])){ header("location:index.php"); exit(); } ?> <?php if(isset($_POST["username"])&& isset($_POST["password"])){ $manager = preg_replace('#[^A_Za-z0-9]#i', ',' , $_POST["manager"]); $password = preg_replace('#[^A_Za-z0-9]#i', ',' , $_POST["password"]); include"../storescripts/connect_to_mysql.php"; $sql = mysqli_query("SELECT * FROM admin WHERE username='$manager' AND password='$password' LIMIT 1"); $existCount = mysqli_num_rows($sql); if($existCount == 1) { while($row = mysqli_fetch_array($sql)){ $id = $row["id"]; } $_SESSION["id"] = $id; $_SESSION["manager"] = $manager; $_SESSION["password"] = $password; header("location:../index.php"); exit(); } else { echo'UberPass Failed - <a href="index.php">Click here</a>'; exit(); } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Admin Homepage</title> <link href="../style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="mainwrapper"> <?php include_once("../template_header.php");?> <div id="maincon"> <form id="form1" name="form1" method="post" action="http://www.uberdelic.com/myshop/storeadmin/admin_login.php"> <p>Username: <input name="username" type="text" id="username" size="40"/> </p> <p>Password: <input name="password" type="password" id="password" size="40"/> </p> <p> <input type="submit" name="button" id="button" value="Log In"/> </p> </form> </div> <?php include_once("../template_footer.php");?> </div> </body> </html>  
  • Recently Browsing

    No registered users viewing this page.

  • Member Statistics

    • Total Members
      57,691
    • Most Online
      4,970

    Newest Member
    yshcherban
    Joined
  • Forum Statistics

    • Total Topics
      65,773
    • Total Posts
      454,575
×