View Full Version : Do you know?
jaybrooks
07-29-2007, 03:36 PM
I just got a new website up called http://www.MeetTallahassee.com but unfortunately I have never customize a php website before. This is YouTube Clone website. Does any know how to upload an image for a new header for my website. How to add content to different pages like, About Us, Advertise, Privay Policy, Help, etc. Plus, change the color from a peach to something else as well as the footer.
Thank you in advance for your response.
All the best,
Jay Brooks
850-591-0603 M
jbrooks123@gmail.com
www.VideosSellHomes.com
www.JVDealoftheCentury.com
Andan
07-29-2007, 05:09 PM
Changing the Banner
<html>
<head>
<title>ClipShare</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script src="http://www.meettallahassee.com/ajax/cpaint2.inc.js" type="text/javascript"></script>
<script language='javascript'>
var imgurl='http://www.meettallahassee.com/images';
var baseurl='http://www.meettallahassee.com';
</script>
<script src="http://www.meettallahassee.com/js/myjavascriptfx.js" type="text/javascript"></script>
<script language=JavaScript src=http://www.meettallahassee.com/js/indexonly.js></script>
<script language=JavaScript src=http://www.meettallahassee.com/js/myjavascriptajax.js></script>
<script language=JavaScript src=http://www.meettallahassee.com/js/myjavascript.js></script>
<link href="http://www.meettallahassee.com/css/style.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background-color="#F2F2F2" >
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="778" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<TD vAlign=top>
<TABLE cellSpacing=0 cellPadding=0 width=750 border=0>
<TBODY>
<TR vAlign=center>
<td height="50" align="right" width=212>
<img src="images/logo.gif" alt="">
</td>
<td height="40">
<span class="style1"> </span><span class="deep_gray_ragular">Everyone should be on TV! Now you can upload 2 TV</span></td>
<TD align=center><span class="normal_blue">
The part of note is bolded in the above.
If you want to use your own banner, you have two choices:
1) create your banner
+ name it logo and save it as a GIF
+ upload it to: http://www.meettallahassee.com/images/
+ overwrite logo.gif if prompted
or
2) create your own image
+ upload it to http://www.meettallahassee.com/images/
+ then edit the index.php file (the bolded area) so it reads: images/your_logo_name_here.extension. Replace 'extension' with whichever extension your logo is (.jpg, .png, .gif)
Changing Content on Pages
For this next part, I suggest using a html page editor (such as Dreamweaver or Frontpage). Using the 'preview' you can directly edit the text on each page.
Long and short of it, editing the page content is not a "simple" task as typing into MS Word. You'll need a knowledge of CSS, some PHP (basics), and xHTML. You'll probably end up switching between 'code' view and 'preview' view (sectioning out news items, creating paragraphs, etc.).
If I have some time later in the week, I will write up a tutorial on editing html/php pages for your benefit (as well as others).
jaybrooks
07-30-2007, 08:56 AM
Thank you so much Andan. I have never edit a php file before. I'm only used to using FrontPage. Anyway, I logged into the cpanel. Chose to edit the index.php file and this what it gave me instead of the source code use see online:
<?php
include("include/config.php");
session_start();
include("include/function.php");
# Find the vote information
$mydate= date('Y-m-d');
$sql ="select * from poll_question where start_date<='$mydate' and end_date>='$mydate'";
$rs = $conn->Execute($sql);
$x=$rs->getarray();
$list=explode("|", $x[0]['poll_answer']);
STemplate::assign('poll_id',$x[0]['poll_id']);
STemplate::assign('poll_qty',$x[0]['poll_qty']);
STemplate::assign('list',$list);
//PAGING
$items_per_page=($config['rows_per_page']*$config['cols_per_page']);
$sql="SELECT * from video where type='public' and featured='yes' order by addtime desc";
$rs = $conn->Execute($sql);
if($rs->recordcount()>0)$users = $rs->getrows();
//END PAGING
$sql1 = "select VID, title, viewtime, vkey from video where viewtime<>'0000-00-00 00:00:00' order by viewtime desc limit 0, ".$config['recently_viewed_video'];
$rs_v = $conn->execute($sql1);
$recent = $rs_v->getrows();
STemplate::assign('recent', $recent);
STemplate::assign('recent_total', count($recent));
if ($_REQUEST['msg']!=""){
$msg=$_REQUEST['msg'];
}
STemplate::assign('err',$err);
STemplate::assign('msg',$msg);
STemplate::assign('answers',$users);
STemplate::assign('total',$rs->recordcount());
$sql="SELECT * from video where type='public' order by addtime desc limit 100";
$tags=group_tags($sql);
STemplate::assign('tags',$tags);
STemplate::assign('head_bottom',"homelinks.tpl");
if($config['enable_package']=="yes" and $_SESSION['UID']!="")
{
$sql = "select * from subscriber where UID=$_SESSION[UID]";
$rs = $conn->execute($sql);
$u_info = $rs->getrows();
STemplate::assign('u_info', $u_info[0]);
$rs->movefirst();
$sql = "select * from package where pack_id=".$rs->fields['pack_id'];
$rs = $conn->execute($sql);
$pack = $rs->getrows();
STemplate::assign('pack', $pack[0]);
}
STemplate::display('head1.tpl');
STemplate::display('err_msg.tpl');
STemplate::display('search.tpl');
STemplate::display('index.tpl');
STemplate::display('right.tpl');
STemplate::display('footer.tpl');
?>
If I could get a hold of the source code I could easily make the changes to my header image, meta tags and footer. But, for some reason I can't.
Any ideas?
Thanks again for all of your help!
Jay
Andan
07-30-2007, 12:56 PM
Hmm, I only have experience with other coding languages and so I'm not a guru at php (although I plan on learning it in full soon).
Do you happen to see a index.htm or index.html file? If you do, try editing that. (It's a little hard for me to point you in the right direction since I can't see the files in your account dir.)
ParodyUK
07-30-2007, 10:46 PM
i do belive (never use youtube clone before) that the settings will be located in include/config.php try editing that file.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.