hai...

i have develop a website using templet (from free provider)
but i have a problem when run it at localhost (i'm using php & mysql-xampp package)
i edited that templet at dreamweaver, i have no problem when view it at dreamweaver but when i run that website at the localhost, the background color and certain images cannot display( background & images-from that templet)..
i have no idea for this problem

anybody, please help me..
-sorry 4 my bad english-:$

Check the path of the images in your template. Maybe its hardcoded. Welcome to Daniweb btw.

i already check the path of that images.but the file of the images(cannot display) does not exist in the code(admin.php)..
but from the same code,the images can appear at the website(which is from another code-index.php)
-index.php in FAB folder
-admin.php in ADMIN folder
-ADMIN folder in FAB folder

-hope u understand what i mean-

Umm.. I am sorry. I didn't understand. It would be helpful if you post relevant code.

Sorry alieya I couln't reply to your PM earlier but I was bussy.
To be fair Dreamweaver is great tool but it doesn't not display page exactly as browser will so do not coun't heavily on it and always check your page in browser. Secondly if you using Unix system make sure that you reffer to images in same format as you see them. Unix is sensitive if you have myImage.JPG and you call myimage.jpg it will complain, also check for permissions

As nav33n mentioned it would be best if you post your code at least section where the problem occures also describe your folder structure. Example
System_path/MyProject/ html & php pages
System_path/MyProject/Img/ images
System_path/MyProject/Adds/ CSS & JavaScript

can i hve ur email address plezz??
i think it more better to i attach a few file..

You can attach files to the post just scroll down for Additional Options(you have to be in advanced posting mode) and press Manage attachments

i'm using windows XP

my projek: C:\xampp\htdocs\fab
C:\xampp\htdocs\fab\images
C:\xampp\htdocs\fab\index.php
C:\xampp\htdocs\fab\admin\admin.php

note: when i look at the code, the images (can't display) never mentioned in code.
but the same code which is index.php, the images can display easily.

TQ 4 ur response

ok, bro...

I uploaded your project on the server but I do not see any diferences between index.php - admin.php or dreamweaver view see attached screenshots and please point me to problematic area so I know what to look for

i actually not finish yet the code for admin.php..
the problem that i have distract me to continue the code.

Going by the images that were in your attachment, it looks to me like your CSS files weren't uploaded to the server. I'm saying this because you have all the images that would be in the page from hard coding, but your background images aren't showing up.

Try uploading your CSS file and see if that's going to change anything.

did u mean to see css file?

but why it still hapend (i already put '../' for the css file path)

Okay.. I found out your problem. Open css file and change the path of all image urls to images/filename instead of

background-image: url(file:///C|/Documents%20and%20Settings/Azura/Desktop/templete/34/images/nav_on.gif);.

That will solve your problem.
Cheers,
Naveen

thanks naveen..

i already change it to:
url(C:\xampp\htdocs\fab\images\nav_on.gif);
but i have the sme problem

-waaa...i feel want to gve up but can't-

no. Change them all to
url("images/filename.gif");

naveen...

it still not working
i hve no idea anymore where to change the code

any idea??

I changed.. I saw and I deleted.. So, its working.. Anyway, look closely.

body {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	background-image:  url(C:/xampp/htdocs/fab/images/bgmain.gif);
	margin: 0px;
}
td {
	font-size: 10px;
}
.navon {
	background-image:  url(C:\xampp\htdocs\fab\images\nav_on.gif);
	background-repeat: no-repeat;
	background-position: left;
	height: 23px;
	width: 152px;
	text-indent: 25px;
}


.bgmain {
	background-image:  url(C:\xampp\htdocs\fab\images\main_bg2.gif);
	background-repeat: repeat-x;
	height: 287px;
}
.loginbg {
	background-image:  url(C:\xampp\htdocs\fab\images\header_01.gif);
	background-repeat: no-repeat;
	height: 40px;
	width: 368px;
}
.navt1 {
	background-image:  url(C:\xampp\htdocs\fab\images\header_05.gif);
	height: 41px;
	width: 131px;
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-align: center;
	padding-bottom:7px;
}
a:link {
	color: #000000;
	text-decoration: none;
}

.navt2 {
	background-image:  url(C:\xampp\htdocs\fab\images\header_06.gif);
	height: 41px;
	width: 129px;
	color: #FFFFFF;
	text-align: center;
	padding-bottom:7px;
	text-decoration: none;
	font-size: 12px;
	font-weight: bold;
}
.crbg {
	background-image:  url(C:\xampp\htdocs\fab\images\crbg.gif);
	height: 22px;
	padding-top: 2px;
	padding-bottom: 2px;
	font-weight: bold;
	color: #FFFFFF;
}

.navt3 {
	background-image:  url(C:\xampp\htdocs\fab\images\header_07.gif);
	height: 41px;
	width: 129px;
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-align: center;
	padding-bottom:7px;
}
.navt4 {
	background-image:  url(C:\xampp\htdocs\fab\images\header_08.gif);
	width: 131px;
	height: 41px;
		font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-align: center;
	padding-bottom:7px;
}
.navt5 {
	background-image:  url(C:\xampp\htdocs\fab\images\header_09.gif);
	width: 130px;
	height: 41px;
		font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-align: center;
	padding-bottom:7px;
}
.navt6 {
	background-image:  url(C:\xampp\htdocs\fab\images\header_10.gif);
	height: 41px;
	width: 127px;
		font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-align: center;
	padding-bottom:7px;
}
.mcbg {
	background-image:  url(C:\xampp\htdocs\fab\images\mcbg.gif);
	background-repeat: repeat-y;
	width: 779px;
	padding: 0px;
}
.navoff {
	background-image:  url(C:\xampp\htdocs\fab\images\nav_off.gif);
	text-indent: 20px;
	height: 23px;
	width: 152px;
	background-repeat: no-repeat;
	font-weight: bold;
}
.leftcolheader {
	background-image:  url(C:\xampp\htdocs\fab\images\left_box_head.gif);
	background-repeat: no-repeat;
	height: 26px;
	width: 151px;
	color: #FFFFFF;
	text-indent: 20px;
	padding-top: 6px;
}
.lcolbg {
	background-image:  url(C:\xampp\htdocs\fab\images\lcolmcbg.gif);
	background-repeat: repeat-y;
	width: 152px;
	padding-top: 3px;
}
.mcheader {
	background-image:  url(C:\xampp\htdocs\fab\images\mc_header.gif);
	background-repeat: no-repeat;
	height: 21px;
	width: 368px;
	text-indent: 20px;
	color: #FFFFFF;
	font-weight: bold;
}
.rightboxheader {
	background-image:  url(C:\xampp\htdocs\fab\images\right_col_header.gif);
	background-repeat: no-repeat;
	height: 22px;
	width: 215px;
	text-indent: 20px;
	padding-top: 1px;
	color: #FFFFFF;
}
.rightcolboxbg {
	background-image:  url(C:\xampp\htdocs\fab\images\right_col_box_bg.gif);
	background-repeat: repeat-y;
	width: 215px;
	padding-top: 4px;
}

.maincbbg {
	background-image:  url(C:\xampp\htdocs\fab\images\mcb_bg.gif);
	background-repeat: repeat-y;
	width: 368px;
}

input {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #FFFFFF;
	background-image:  url(C:\xampp\htdocs\fab\images\input_bg.gif);
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 0px;
	border-left-width: 0px;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
	text-indent: 3px;
	margin: 0px;
	padding: 0px;
	font-weight: bold;
}
a:link {
	text-decoration: none;
}
a:visited {
	color: #000000;
	text-decoration: none;
}

If you can see, in all the css classes, you have background-image: url(C:/xampp/htdocs/fab/images/bgmain.gif); Edit that line. Remove everything upto images, like, background-image: url(images/bgmain.gif); Change in all the classes. Then save the file.

i already change it,all of it..
but the interface for index.php become worst too..
u can see the screenshot that i post.

-tQ naveen-

Really strange. Its working for me. I ll attach the screenshot. :S So ? Who's fault is it ?

Edit: Check if you haven't accidently deleted the image files.

YAHOOO...

the problem solved!!

in admin.php:
from:
<head>
<title>LAMAN UTAMA ADMIN</title>
<link href="../css.css" rel="stylesheet" type="../text/css" />
</head>

suppose to be like this:
<head>
<title>LAMAN UTAMA ADMIN</title>
<link href="../css.css" rel="stylesheet" type="text/css" />
</head>

~TQ to all of u & who gived their oppinion/suggestion especially to NAVEEN~

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.