Inherited a Webmaster Position for a Site and Having Trouble Editing

So, I was given the task of editing a website. It was done in PHP for the most part.

If you visit the page http://cre-finance.com/?Contact-Us, I’m attempting to edit the contact info at the bottom but I have no idea where to find it in the website files. If you the view the source, it’s right there like it’s taunting me but none of the php files have that info in it. There is a contactus.php (code below) but all it has is the code for the form at the bottom of the Contact Us page.

I’ve noticed references to “?p=Contact-Us” in the source, and also in the sitemap.xml file but I have no idea what that really means because there are no other “contactus” pages other than the one I mentioned above. I guess I’m not really looking for help with actual coding but perhaps to be pointed in the right direction to edit that information.

HELP!

[code]<!doctype html>

Untitled Document /***** form styles *******/ form { width:100%; }

#form_row {
clear:left;
}

#form_row input{
width:100%;

}

#form_col {
float:left;
vertical-align:top;
width:45%;
}

#form_col input{
width:90%;
}

#form_textbox textarea{
width:100%;
height:150px;
}

/***** end form styles ******/

@media screen and (max-width:768px){
form {
width:100%;
}

#form_row {
clear:left;
}

#form_row input{
width:100%;

}

#form_col {
float:none;
vertical-align:top;
width:100%;
}

#form_col input{
width:100%;
}

#form_textbox textarea{
width:100%;
height:150px;
}

}

@media screen and (max-width:480px){
form {
width:100%;
}

#form_row {
clear:left;
}

#form_row input{
width:100%;

}

#form_col {
float:none;
vertical-align:top;
width:100%;
}

#form_col input{
width:100%;
}

#form_textbox textarea{
width:100%;
height:150px;
}

}

First Name: *
Last Name: *
Email: *
Phone: *



Comments: *

*Required

[/code]

It would seem that the site uses an MVC framework. Look for a folder called views. You will likely find what you want there. Get your self a good search and replace tool. You will find it in seconds. I use Funduc Search And Replace. Very powerful tool.

http://www.funduc.com/search_replace.htm

If it is a false MVC architecture, the index.php file may tell you were to look next.

This is what the index.php looks like if it helps any…if you do a search you can see the href="?p=Contact-Us" that I mentioned in my initial post.

[code]<?php
require_once(‘main_config.php’);

?>

<!doctype html>

<?php include('admin/includes/header.php');?> <?php include_once("analyticstracking.php") ?>
Commercial Real Estate Finance LLC
Call Today 1-855-515-5585  
<?php $sideimage = $_SERVER['QUERY_STRING']; if($sideimage != 'Recent-Transactions') { ?>
<?php include('pages/testimonials.php')?>
  </div>    
  <div id="header_image">
  <div id="slides">
    <img src="images/homeimages/iStock_000001230281_Small.jpg" alt="" />
    <img src="images/homeimages/iStock_000022970779_Small.jpg"  alt="" />
    <img src="images/homeimages/iStock_000002646261_Small.jpg"  alt="" />
    <img src="images/homeimages/iStock_000009876540_Small.jpg"  alt="" />
    <img src="images/homeimages/iStock_000015857800_Small.jpg"  alt="" />
    <img src="images/homeimages/iStock_000019280653_Small.jpg"  alt="" />
  </div>  
  </div>
<?php include('admin/includes/bodycopy.php');?>
</div>
<?php } ?>
<div id="midsection" class="fluid">
<?php $sideimage = $_SERVER['QUERY_STRING'];
		if($sideimage == '') {
?>
<div id="lending_programs" align="center">		

	<div class="row top_row">
	<div class="col1"><strong><font color="#FFFFFF">CMBS loans</font></strong></div>
   	<div class="col2"><strong>Bridge loans</strong></div>
    <div class="col3"><strong>Mezzanine loans</strong></div>
	</div>
    
    <div class="row" style="background-color: #f8f8f8; overflow:auto;">
    <div class="col1"><strong>
        <font color="#000000">Fixed rate long term financing for commercial real estate.</font>
    </strong></div>
    <div class="col2">
    <b>Fixed rate long term financing for commercial real estate.</b>
    </div>
    <div class="col3">
    <b>Fixed rate mezzanine financing for commercial real estate.</b>
    </div>
    </div>
    <div class="row">
    <div class="col1"><strong>
        <font color="#000000">General terms $2MM-$300MM, 5-10 years, up to 80%LTV.</font>
    </strong></div>
    <div class="col2">
    <b>General terms: $2MM-$300MM, 3-5 years with extension options, up to 85% LTV or LTC.</b>
    </div>
    <div class="col3">
    <b>Same as CMBS but 90% LTV.</b>
    </div>
    </div>
    <div class="row" style="background-color: #f8f8f8; overflow:auto;">
    <div class="col1"><strong>
    <font color="#000000">Subordinate financing permitted only if provided by CRE-Finance</font>
    </strong></div>
    <div class="col2">
    N/A
    </div>
    <div class="col3">
  	N/A
    </div>
    </div>
    <div class="row">
    <div class="col1"><strong>
    <font color="#000000">Property types - multi-family, office, retail,industrial and hotels, self storage, mobile home parks, assisted living, mixed-use, restaurant.</font></strong></div>
    <div class="col2">
    <b>Property types - multi-family, office, retail,industrial and hotels, self storage, mobile home parks, assisted living, mixed-use, restaurant.</b> 
    </div>
    <div class="col3">
  	<b>Property types - multi-family, office, retail,industrial and hotels, self storage, mobile home parks, assisted living, mixed-use, restaurant.</b>
    </div>
    </div>

</div>    
<?php } ?>

Stay Informed

Sign up for our free newsletter for exciting news and investing tips! If you would like more information, click here to contact us.
<div>
  <h3>In The News</h3>
    <?php include('pages/parseRSS.php')?>
</div>
</div>
<?php include('admin/includes/footer.php');?>
[/code]

This is what your looking for…

admin/includes/footer.php

Looks like the pages directory might be where the file is held.

This is it. I feel like you’re helping me following breadcrumbs. Thanks for your help so far, by the way.

[code]

<?php $footer_qry = "SELECT * FROM pages where docname='footer' and site = '".site."'"; $footer_sql = mysql_query($footer_qry) or die('Query failed: ' . mysql_error()); $footer = mysql_fetch_assoc($footer_sql); echo urldecode($footer['body']); ?>


Copyright © <?php echo date('Y')?> <?php echo siteowner;?>. All Rights Reserved.[/code]

I thought so too but none of the php files in there have what I’m looking for. I figure contact_us.php (the code in my initial post) would have it but it’s not even in there.

The actual data to edit is in the database in the pages table…

My friend, you have SAVED MY LIFE!! Thank you so much!

Glad I could help. :smiley:

Sponsor our Newsletter | Privacy Policy | Terms of Service