Jump to content

My first PHP heavy web site


xcandiottix

Recommended Posts

Hello,

Well this is my first crack at php and I wanted something very basic to get grasp the concepts of php. My site is called dyno-charts.com. For those of you who don't know what a dyno chart is; a dyno chart is a graph showing the relation between an engines RPM (revolutions per minute) and the amount of horsepower and torque it produces. A dyno chart is relevant to engine tuners who want to find out when an engine hits it's maximum potential power and how performance add-on parts affect the power 'curve.'

 

As for the php, my site has a submit section where people can submit charts, a search section, and a browse section. Also, a forum from PHPBB and a section for individual dyno shops to submit their charts. It took me approx. 4 weeks to complete the site.

 

Some future add-ons I'd like to include would be a video section and perhaps allowing more images to be uploaded per submission (so a picture of the engine, car, etc. can be posted as well).

 

The art work is relaxed on the site as my main goal was php functionality. I would like any and all comments but those regarding php, security risks, and easy of use would be most valuable.

 

Thank you!

K. Candiotti

 

http://www.dyno-charts.com

 

PS if you'd like to link any of your sites back for feedback I'd be happy to do so... thanks again.

Link to comment
Share on other sites

Thanks for that idea, it would making browsing easier.  :)

 

It's got an original 'old'/clean style to it. Only thing I can see negligable is the quality of some of the pictures posted, they're a bit too expanded.

Link to comment
Share on other sites

It's got an original 'old'/clean style to it. Only thing I can see negligable is the quality of some of the pictures posted, they're a bit too expanded.

 

Thanks. What would you recommend? Can I set a minimum file size? Although that might get heavy if I allow both gifs and jpegs. Or I could keep the original dimensions of the chart but that could get some crazy scroll baring. I'm not too keen on php's photo editing abilities so any pointers would be appreciated.

 

-K.candiotti

Link to comment
Share on other sites

There's simply enough filesize on uploaded files. There's a nice article on image resizing here:

http://articles.sitepoint.com/article/image-resizing-php

 

It'd make sense to keep all custom images such as

http://www.dyno-charts.com/upload/Mustang.jpg

Becoming

http://www.dyno-charts.com/chart.php?whichchart=Mustang.jpg

(It's a jpeg, so it'd lose its quality naturally on that type of expansion.)

 

I guess it's just personal preference, but it's nice to keep it a fair size, because a lot of pictures uploaded may/should be a suitable size for displaying rather than taking up space.

Link to comment
Share on other sites

I have noticed a bug that needs to be fixed

 

I was thinking of logging the IP of someone who votes to only allow them to vote once for a chart or comment. I was originally going to pass the vote score via a hidden form, but then I was stuck using the ugly JS gray buttons.. I think there's a way to edit that but at the time I was doing that section I coudn't remember. Any suggested fixes?

Link to comment
Share on other sites

I would create a table to contain your votes with a structure like...

 

ip

chart

 

then maybe use some ajax to send a get query like

 

/vote.php?action=like&chart=example

 

on this vote.php you need to check the the there is no row that match's with both chart and ip address in your vote table. if there is a match then do nothing else increment/decrement the charts score in your chart table.

 

You could also record whether they vote plus or minus in the vote table and calculate the charts score that way.

 

Hope this makes sense, in abit of a rush lol

Link to comment
Share on other sites

I'm not too in the know about ajax or whether my server provider supports it. I was thinking tho...  I could set the score addition equal to an invisible JS form field. Then pass it that way.. therefor instead of going to .com/php?chartscore=1 i can go to .com/chartscore.php. Let me set that up now and see how it goes. The i'll tackle the IP issue.

Link to comment
Share on other sites

as for a website with a php emphasis. In your browse section it would be nice to be able to sort by the catagories

 

I added the sort function to the site. It was a little bit difficult because of the ability to go thru multiple pages and keep the order but I think I successfully figured it out.

Link to comment
Share on other sites

I think it'd be better if you put the ability to post a comment after the comments itself. Like this, people see the textarea but then they might think it's the end of the site, also because of all the whiteness. But all in all it's a nice site!

Link to comment
Share on other sites

I think it'd be better if you put the ability to post a comment after the comments itself. Like this, people see the textarea but then they might think it's the end of the site, also because of all the whiteness. But all in all it's a nice site!

 

Wow. Yeah, that's a really good idea. Thanks  :D

Link to comment
Share on other sites

I like the first two icons (the folder and the magnifying glasses) but the rest seem a littler more rushed.

Other than that I like it. I'll pass it on to my friend. He'd be interested in having a dyno done and posted I'm sure :)

Also, I got you an ad click. That bearshare ad at the bottom blends well into your website. I thought you had some kind of audio streaming thing on it haha.

Link to comment
Share on other sites

I like the first two icons (the folder and the magnifying glasses) but the rest seem a littler more rushed.

 

You are absolutely right on with that comment. I was making the icons as I got to coding the page, and the closer I got to completion the less time I took for the graphics. I do plan to redesign the icons though to look as good as the first 2.

 

Sorry the ad snagged you... i'll split a coffee with you when they send me my 11 cents =)

 

Thanks for the comment!

-K.candiotti

Link to comment
Share on other sites

You are absolutely right on with that comment. I was making the icons as I got to coding the page, and the closer I got to completion the less time I took for the graphics. I do plan to redesign the icons though to look as good as the first 2.

 

Sorry the ad snagged you... i'll split a coffee with you when they send me my 11 cents =)

 

Thanks for the comment!

-K.candiotti

 

11 cents? On one PPC ad? Sign me up, I'd be making millions!

Link to comment
Share on other sites

I lied  :-\ how about more like 30 cents to a dollar? ;p

goog.jpg

 

msormr.com is a trial in cashing in with google that was the evolution of my dyno charts site. Not trying to plug the site tho so if you go to it don't comment that i'm 'just trying to get my clicks up'  :P

Link to comment
Share on other sites

I lied  :-\ how about more like 30 cents to a dollar? ;p

goog.jpg

 

msormr.com is a trial in cashing in with google that was the evolution of my dyno charts site. Not trying to plug the site tho so if you go to it don't comment that i'm 'just trying to get my clicks up'  :P

 

?? what are you talking about? you saying you made that site also?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.