954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

develop website by using free templet from provider

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-:$

alieya
Newbie Poster
11 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

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

nav33n
Purple hazed!
Moderator
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
 

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-

alieya
Newbie Poster
11 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

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

nav33n
Purple hazed!
Moderator
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
 

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

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

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

alieya
Newbie Poster
11 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

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

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

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

alieya
Newbie Poster
11 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

ok, bro...

Attachments fab.zip (220.63KB)
alieya
Newbie Poster
11 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

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

Attachments index_php.png 57.41KB admin_php.png 58.04KB dreamweaver.png 57.88KB
peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

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

Attachments admin_index.zip (807.1KB)
alieya
Newbie Poster
11 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

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.

Suetan
Junior Poster in Training
76 posts since Feb 2008
Reputation Points: 11
Solved Threads: 5
 

did u mean to see css file?

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

Attachments css.zip (0.83KB)
alieya
Newbie Poster
11 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

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

nav33n
Purple hazed!
Moderator
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
 

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-

alieya
Newbie Poster
11 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

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

nav33n
Purple hazed!
Moderator
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
 

naveen...

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

any idea??

alieya
Newbie Poster
11 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

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.

nav33n
Purple hazed!
Moderator
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
 

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-

Attachments alieya.zip (488.18KB)
alieya
Newbie Poster
11 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

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.

Attachments template.jpg 274.76KB
nav33n
Purple hazed!
Moderator
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You