PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > Web Site Design > Content Management Systems > E-commerce and Shopping Carts
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools Search this Thread
Old 12-16-04, 10:30 PM   #1
LMXI
 
Posts: n/a
Mixing HTML and PHP

I'm curious, when I begin to implement my design I want a mixture of static and dynamic elements on the pages. Do I just drop PHP code into specific html table cells as if it were a graphic file?
 
Old 12-16-04, 10:38 PM   #2
B&T
Just tryin' to help
 
B&T's Avatar
 
Join Date: Jan 2003
Location: along the journey
Posts: 8,036
Reputation: 125
Quote:
Originally Posted by LMXI
I'm curious, when I begin to implement my design I want a mixture of static and dynamic elements on the pages. Do I just drop PHP code into specific html table cells as if it were a graphic file?
You can do that if you are creating a graphic with php. An example of that technqiue is shown here in my counter example:
http://prettyworthless.com/tips.php?tip=counter#tip
You can also see it in my sig
__________________
Enhance your PowWeb experience @ B&T's Tips & Scripts
Got some free time? You can find Nothing of Value @ PrettyWorthless.com
B&T is offline  
Old 12-16-04, 10:46 PM   #3
LMXI
 
Posts: n/a
Thanks for replying...

So what is most appropriate in the cas of hybrid text, a index.html or an index.php? Or does it matter significantly?

And could I trouble you to post a string of example code?
 
Old 12-16-04, 10:53 PM   #4
B&T
Just tryin' to help
 
B&T's Avatar
 
Join Date: Jan 2003
Location: along the journey
Posts: 8,036
Reputation: 125
Quote:
Originally Posted by LMXI
Thanks for replying...

So what is most appropriate in the cas of hybrid text, a index.html or an index.php? Or does it matter significantly?

And could I trouble you to post a string of example code?
I cannot tell you what is best because I do not know what you want to do.

You can see all kinds of php code examples here:
http://prettyworthless.com/tips.php
__________________
Enhance your PowWeb experience @ B&T's Tips & Scripts
Got some free time? You can find Nothing of Value @ PrettyWorthless.com
B&T is offline  
Old 12-16-04, 11:05 PM   #5
LMXI
 
Posts: n/a
Clean interface

I want a clean graphically unique interface...I know thats a simplistic way of putting things without having an example. Because I am not familiar enough with php I am assuming that under normal circumstances pages are largely built by server side code as opposed to creative graphics. The default OSC store has a lot of "extras" and I'm trying to grasp how difficult it's going to be to move all that stuff around and put it where I want it to go. I know it can be done there are good examples here...I'm just not sure of the typical approach to heavilly customizing OSC. Do you just chip away at the code until a month later you have what you want?

I hope that makes some kind of sense...I've been on the computer for 7 hours working with this thing and looking for answers so my brains a bit numb.

Last edited by LMXI : 12-16-04 at 11:22 PM.
 
Old 12-16-04, 11:12 PM   #6
B&T
Just tryin' to help
 
B&T's Avatar
 
Join Date: Jan 2003
Location: along the journey
Posts: 8,036
Reputation: 125
I don't use OSC so I will let someone else answer.
__________________
Enhance your PowWeb experience @ B&T's Tips & Scripts
Got some free time? You can find Nothing of Value @ PrettyWorthless.com
B&T is offline  
Old 12-17-04, 10:41 AM   #7
stevel
XPW
 
stevel's Avatar
 
Join Date: Jun 2002
Location: New Hampshire, USA
Posts: 9,464
Reputation: 265
First of all, you want all your store pages to be .php so that the session context, including cart, can be maintained across the pages. The appearance of the pages is whatever you want it to be, and coming from a PHP page is not a restriction.

Making extensive appearance changes in osC can be difficult, because of the lack of modularity. You typically have to update some 30 files when making a significant layout change. There are some "template" contributions that can make this much easier, but I have not used them.

Most of the "extras" are easy to dispose of - just comment out or remove the code that calls the graphics or boxes. Look at my Cheshire Garden site to see an example of doing this.
__________________
Steve
stevel is offline  
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 11:18 AM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.