Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Web Design & Development
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry router security slow software sound toshiba trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Solved: Remove Splash Page

Reply  
Thread Tools
Hughv's Avatar
Computer Specs
Distinguished Member with 8,361 posts.
 
Join Date: Jul 2006
Location: Annapolis, MD
Experience: Intermediate
06-Feb-2010, 11:03 PM #1
Solved: Remove Splash Page
I'm helping a friend with this site:
http://www.celiapearson.com/
Google analytics says she's getting a 25% bounce rate on the page, so we want to delete it and substitute the page you get when you click "Enter".
I thought it would be as simple as removing index.php and renaming index2.php as index.php, but apparently not.
I have a lot of HTML sites, but I don 't know much about Php, obviously.
How do I go about this?
ehymel's Avatar
Senior Member with 660 posts.
 
Join Date: Aug 2007
Location: Texas
07-Feb-2010, 01:42 AM #2
The problem has nothing to do with php, it's all done with the script.aculo.us toggle effect. I think all you have to do is remove the final <div> section within the default page. In other words, delete the following lines:

Code:
<div id="enter">
	<h2>Celia Pearson <span>Photographer</span></h2>
	<p>Thank you for your consideration and respect.<br />
	All photographs appearing in this website are the property of Celia Pearson<br />

	and are protected under United States and International copyright laws.<br />
	&copy; 2009 Celia Pearson. All rights reserved.</p>
	<h3><a href="javascript:Effect.toggle('enter','appear');">Enter</a></h3>
</div>
Hughv's Avatar
Computer Specs
Distinguished Member with 8,361 posts.
 
Join Date: Jul 2006
Location: Annapolis, MD
Experience: Intermediate
07-Feb-2010, 06:26 AM #3
You're definitely on to something, but I have deleted the above <div> from index.php, and it has magically re-appeared on index2.php, which makes me think something else is involved here.
http://www.celiapearson.com/
Also, my friend is using Dreamweaver, which I haven't used in years, and I'm using a standard HTML editor, and the content of these pages pages look different to us. I'm guessing this also has something to do with PHP, which I don't have installed.
Hughv's Avatar
Computer Specs
Distinguished Member with 8,361 posts.
 
Join Date: Jul 2006
Location: Annapolis, MD
Experience: Intermediate
08-Feb-2010, 10:54 AM #4
60 page views and no suggestions?
A little help, please.
ehymel's Avatar
Senior Member with 660 posts.
 
Join Date: Aug 2007
Location: Texas
08-Feb-2010, 04:30 PM #5
Well, it didn't magically re-appear, the same code exists on index2.php, so you have to remove it from that script as well.

You didn't really expect a lot of help on Super Bowl Sunday, did you? :-)
Hughv's Avatar
Computer Specs
Distinguished Member with 8,361 posts.
 
Join Date: Jul 2006
Location: Annapolis, MD
Experience: Intermediate
08-Feb-2010, 05:00 PM #6
But, it doesn't exist on index2.

Here is index2 as it appears on the server:

<!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=iso-8859-1" />
<title>Celia Pearson | Photographer</title>
<meta name="description" content="Celia Pearson Photography, Her Story" />
<meta name="keywords" content="Celia Pearson, photographer, biography, her story" />
<link rel="stylesheet" href="/css/global.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/css/01.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/css/print2.css" type="text/css" media="print" />
<script src="/js/fadeslideshow.js" type="text/javascript"></script>
<script src="/js/protoculous.js" type="text/javascript"></script>
</head>


<body>

<?php include("http://celiapearson.com/includes/header.php"); ?>

<div id="box03">
<div>

<?php include("http://celiapearson.com/homepage.php"); ?>

</div>
</div>

<div id="slideshow"><script type="text/javascript">new fadeshow(fadeimages, 150, 150, 0, 4000, 1, "R");</script></div>

<?php include("http://celiapearson.com/includes/footer.php"); ?>



</body>
</html>

It isn't there, which is why I think this is a php problem. I suspect it involves the "includes", but I have looked closely at those also, and I don't see any reference to the script.

I'm in Maryland. I haven't watched a Super Bowl since those %$#(*&^ left in the middle of the night.
ehymel's Avatar
Senior Member with 660 posts.
 
Join Date: Aug 2007
Location: Texas
08-Feb-2010, 05:17 PM #7
ohhhh.... you didn't mention there were include files!

If you right-click on the page in a web browser, the code I mentioned is definitely there, which is how I knew what to remove.

From what you posted, it looks like you need to edit one of the included files, specifically whichever one contains the code I suggested you remove. I would try the /includes/footer.php script, removing the section of code I suggested.

I'm guessing you were happy to see your old team lose then, eh?
__________________
E.
Hughv's Avatar
Computer Specs
Distinguished Member with 8,361 posts.
 
Join Date: Jul 2006
Location: Annapolis, MD
Experience: Intermediate
08-Feb-2010, 05:21 PM #8
Footer.php:
<p id="webdesign"><a href="http://chestertownwebdesign.com">Site created by Brillworks: Chestertown Web Design</a></p>

<p id="copyright">&copy; 2009 Celia Pearson</p>
<div id="box04">
<ul>
<li id="icon01b"><a href="http://celiapearson.com/herstory/">Her Story</a></li>
<li id="icon02b"><a href="http://celiapearson.com/exhibition/">Exhibition</a></li>
<li id="icon03b"><a href="http://celiapearson.com/news/">News</a></li>
<li id="icon04b"><a href="http://celiapearson.com/portfolios/">Portfolios</a></li>
<li id="icon06b"><a href="http://celiapearson.com/abouttheprints/">About&nbsp;the&nbsp;Prints</a></li>
<li id="icon05b"><a href="http://celiapearson.com/books/">Books</a></li>
<li id="icon07b"><a href="http://celiapearson.com/assignments/">Assignments</a></li>
<li id="icon10b"><a href="http://celiapearson.com/speaking/">Speaking</a></li>
<li id="icon08b"><a href="http://celiapearson.com/purchasing/">Purchasing</a></li>
<li id="icon09b"><a href="http://celiapearson.com/contact/">Contact</a></li>
</ul>
<br />
</div>
<br />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-1892856-10");
pageTracker._trackPageview();
</script>

Header.php:
<div id="box01">
<h1><a href="http://celiapearson.com/index2.php">Celia Pearson <span>Photographer</span></a></h1>
<div id="navigation">
<ul>
<li id="icon01a"><a href="http://celiapearson.com/herstory/">Her Story</a></li>
<li id="icon02a"><a href="http://celiapearson.com/exhibition/">Exhibition</a></li>
<li id="icon03a"><a href="http://celiapearson.com/news/">News</a></li>
<li id="icon04a"><a href="http://celiapearson.com/portfolios/">Portfolios</a></li>
<li id="icon06a"><a href="http://celiapearson.com/abouttheprints/">About&nbsp;the&nbsp;Prints</a></li>
<li id="icon05a"><a href="http://celiapearson.com/books/">Books</a></li>
<li id="icon07a"><a href="http://celiapearson.com/assignments/">Assignments</a></li>
<li id="icon10a"><a href="http://celiapearson.com/speaking/">Speaking</a></li>
<li id="icon08a"><a href="http://celiapearson.com/purchasing/">Purchasing</a></li>
<li id="icon09a"><a href="http://celiapearson.com/contact/">Contact</a></li>
</ul>
</div>
<br />
</div>
<div id="box02">
<div id="icon01"><a href="http://celiapearson.com/facades/"><span>facades</span></a></div>
<div id="icon02"><a href="http://celiapearson.com/nearthesea/"><span>near the sea</span></a></div>
<div id="icon03"><a href="http://celiapearson.com/memory/"><span>memory</span></a></div>
<div id="icon04"><a href="http://celiapearson.com/traces/"><span>traces</span></a></div>
<div id="icon05"><a href="http://celiapearson.com/seaglass/"><span>sea glass</span></a></div>
<div id="icon06"><a href="http://celiapearson.com/whatwecollect/"><span>what we collect</span></a></div>
<div id="icon07"><a href="http://celiapearson.com/thingsthatgrow/"><span>things that grow</span></a></div>
</div>

homepage.php:
<span id="newsandlinks"><h3><a href="http://celiapearson.com/news/">News</a></h3>
<br />
<ul class="diamondbullets">

<li><a href="http://celiapearson.com/news/">Gift to Academy Art Museum...</a></li>
<li><a href="http://celiapearson.com/news/">Southeast Asia Exhibit at Maryland Hall...</a></li>
<li><a href="http://celiapearson.com/news/">New Sea Glass Identification Deck...</a></li>
<li><a href="http://celiapearson.com/news/">2010 Celia Pearson Art Calendar Release...</a></li>


</ul>

</span>


<p>The physical forms of the world <br />
and the light which makes them so,<br />
are muses. <br />
They entice, feed the senses, <br />
connect us to the universe outside of us, <br />
and the universe within us.</p>

<p>These forms invite us <br />
into a dance between matter and spirit, <br />
between that which we perceive with our eyes, <br />
and that which we perceive with our hearts and souls. </p>






<p style="text-indent:100px;">Thank you for being here,</p>

<img style="margin:0 0 50px 125px;" src="/css/signature2.jpg" width="200" height="60" />

<hr />

Which is the culprit?
I suspect these lines, but I don't know what to cut:

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>


Old team? There's only the Baltimore Colts, and I refuse to acknowledge those usurpers.

Last edited by Hughv; 08-Feb-2010 at 05:26 PM.. Reason: More info
ehymel's Avatar
Senior Member with 660 posts.
 
Join Date: Aug 2007
Location: Texas
08-Feb-2010, 05:43 PM #9
The code you suspect is just some google analytics stuff and safe to leave.

The culprit is still unknown. If you right click on the rendered page in the browser and select "view source" you can see the code that needs to be removed is clearly inserted between the footer.php and the tags at the end of the page (</body></html>). PHP can't do anything magical without being told.

Perhaps try searching all files for the code in question using a tool like grep (on a linux box). It's there somewhere...

Baltimore Colts... you're dating yourself a little there. Then again yesterday when I was explaining to my wife who was playing in the game, my neighbor had to correct me when I said "Baltimore Colts".
__________________
E.
Hughv's Avatar
Computer Specs
Distinguished Member with 8,361 posts.
 
Join Date: Jul 2006
Location: Annapolis, MD
Experience: Intermediate
08-Feb-2010, 05:55 PM #10
Time stopped here in Maryland when the Colts skipped out.
OK, php can't do anything without being told, and I don't know grep (Maybe I'm about to learn).
If there's no instructions in the index2 file or the includes, how does it get inserted?
At this point I'd consider giving you access to the server if it would help.
Hughv's Avatar
Computer Specs
Distinguished Member with 8,361 posts.
 
Join Date: Jul 2006
Location: Annapolis, MD
Experience: Intermediate
08-Feb-2010, 05:57 PM #11
I'm looking at grep How do I get a command line on the server?
I have all the files downloaded locally, so maybe Windows search can find it.
Hughv's Avatar
Computer Specs
Distinguished Member with 8,361 posts.
 
Join Date: Jul 2006
Location: Annapolis, MD
Experience: Intermediate
08-Feb-2010, 06:05 PM #12
Windows search isn't finding anything.
ehymel's Avatar
Senior Member with 660 posts.
 
Join Date: Aug 2007
Location: Texas
08-Feb-2010, 06:08 PM #13
Are you on a linux server? ssh is the way to go, but it has to be set up. telnet also works, but that's not a secure connection.

Windows search should work, or your html editor should have something called an "extended search" that should do it.
Hughv's Avatar
Computer Specs
Distinguished Member with 8,361 posts.
 
Join Date: Jul 2006
Location: Annapolis, MD
Experience: Intermediate
08-Feb-2010, 06:11 PM #14
What string should I look for?
I've found the script in the /js folder , but no other search is giving me anything.
I suppose that removing the script would just give me a java error?
ehymel's Avatar
Senior Member with 660 posts.
 
Join Date: Aug 2007
Location: Texas
08-Feb-2010, 07:30 PM #15
/js is javascript, which can definitely write html code into the page, but that is usually done on the client side. The code we see in your page is being written on the server side. What is the name of the file that contains the code? Search for the file that is calling that file.

Maybe you could zip up all files and send to me by email, that is probably easiest if you don't mind. If you're interested, I'll private message (PM) you my email address, or you could just PM the file to me.
__________________
E.
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 10:27 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.