Welcome Guest ( Log In | Register)



2 Pages V  < 1 2  
Reply to this topicStart new topic
> Please Review My New Site Design / Layout / Test In Opera, Much Appreciated!
Jimmy
post Mar 18 2007, 11:04 PM
Post #11


Super Member
*********

Group: [HOSTED]
Posts: 486
Joined: 9-April 06
From: The UK
Member No.: 21,584



QUOTE(masugidsk8r @ Mar 18 2007, 04:32 AM) *
I viewed it in Firefox and it looks fine. Going with the previous posters, the code needs to be tidied up. I recommend upgrading the mark-up to XHTML 1.1 it's nicer to understand and look at. I emphasize that you convert the tables to divs and use CSS to place them in the right places. The reason for this is to trim down loading time.

Another thing I noticed was the Java applet you have for the countdown time, I recommend using Javascript/CSS to achieve the same result. The reason for this is to allow the viewers who don't have J2RE installed on their computer. It took me a few minutes to view such a small program. If you're too experienced in JAVA and have no time to learn JS, you can use Google WebToolkit which compiles your Java source code to Javascript/HTML/CSS.


interesting... I thought JAVA was the same as JAVASCRIPT!!!
nope, I'm not experienced in java, so I'll see what google toolkit can do for me.
anyhow I had used the cpanel built in thingy to generate the html code for the countdown!!

I just noticed that when validating online, my site actually isn't valid... the ads put in after the html tag at the end invalidate the thing.
Another problem I have is I cannot get my RSS feed to be accepted as valid (so it would work) through sites like feedburner, which I want to get the latest topics on my home page and be able to incorporate my feed into my own designed "blog" page.
I'm pretty sure the reason my rss feed won't validate is that the php file it is in has the ads put in a table at the end. this wrecks everything.
Also, those damn one line ads aren't actually one line their 2x 1 line ads and a 3 line add in recent activity on my blog page!!!!! >:( dammit!

I'm gonna hang up qupis and go back to good old trap17' no ads tongue.gif

And just out of interest if I get my site changed to php and css coding, is that acceptable for xhtml? or is that acceptable anyway as a web design standard?!
If I do this I can smoothly include my wordpress blog well with my site...

This post has been edited by Jimmy: Mar 18 2007, 11:11 PM
Go to the top of the page
 
+Quote Post
jlhaslip
post Mar 18 2007, 11:21 PM
Post #12


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,993
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



When you use php on a site, the php code simply writes the (x)html to the Browser. There is no "validation" of php code, but you should validate its output as (x)html according to the Document Type Declaration on the page. (you do have a doctype or the page will not validate. it will only validate conditionally dependent upon adding the DocType you add)
Go to the top of the page
 
+Quote Post
Jimmy
post Mar 18 2007, 11:43 PM
Post #13


Super Member
*********

Group: [HOSTED]
Posts: 486
Joined: 9-April 06
From: The UK
Member No.: 21,584



QUOTE(jlhaslip @ Mar 18 2007, 11:21 PM) *
When you use php on a site, the php code simply writes the (x)html to the Browser. There is no "validation" of php code, but you should validate its output as (x)html according to the Document Type Declaration on the page. (you do have a doctype or the page will not validate. it will only validate conditionally dependent upon adding the DocType you add)

Ah I think I see now.

So a php site is mainly a css coded one that validates (or not as the case may be!) as xhtml... the php merely dictates the code to the browser...??!
Go to the top of the page
 
+Quote Post
Tetraca
post Mar 19 2007, 12:37 AM
Post #14


Privileged Member
*********

Group: Members
Posts: 628
Joined: 20-May 06
Member No.: 23,968



QUOTE(Jimmy @ Mar 18 2007, 11:43 PM) *
Ah I think I see now.

So a php site is mainly a css coded one that validates (or not as the case may be!) as xhtml... the php merely dictates the code to the browser...??!

All that PHP does is spit out text processed by the server that is usually interpereted as (X)HTML by the browser. For example, what PHP does when you view this topic is pull a few template files filled with HTML out of the server directories, then replaces the correct area in the template dictated by a function or marking in it with values it retrieved from a MySQL database. The built page is transferred to your browser. Your browser then sees it just like a normal page. Your browser cannot parse PHP. PHP is processed by the server.

This post has been edited by Tetraca: Mar 19 2007, 12:40 AM
Go to the top of the page
 
+Quote Post
Jimmy
post Mar 19 2007, 11:30 AM
Post #15


Super Member
*********

Group: [HOSTED]
Posts: 486
Joined: 9-April 06
From: The UK
Member No.: 21,584



QUOTE(Tetraca @ Mar 19 2007, 12:37 AM) *
All that PHP does is spit out text processed by the server that is usually interpereted as (X)HTML by the browser. For example, what PHP does when you view this topic is pull a few template files filled with HTML out of the server directories, then replaces the correct area in the template dictated by a function or marking in it with values it retrieved from a MySQL database. The built page is transferred to your browser. Your browser then sees it just like a normal page. Your browser cannot parse PHP. PHP is processed by the server.

So is it possible to mix PHP coding with some xhtml, for example <div>s...?

This post has been edited by Jimmy: Mar 19 2007, 11:31 AM
Go to the top of the page
 
+Quote Post
Blessed
post Apr 3 2007, 08:53 AM
Post #16


Advanced Member
*******

Group: Members
Posts: 144
Joined: 22-March 07
Member No.: 40,472



really professional site

propz smile.gif
Go to the top of the page
 
+Quote Post
Saint_Michael
post Apr 3 2007, 03:40 PM
Post #17


$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************

Group: [HOSTED]
Posts: 6,444
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
T17 GFX Crew



QUOTE(Jimmy @ Mar 19 2007, 07:30 AM) *
So is it possible to mix PHP coding with some xhtml, for example <div>s...?



Yes you can mix in (x)html into PHP here is an example of how it would be done

CODE
<?php
// Our log file;
$counter = "stats.txt";

// Date logging;
$today = getdate();
$month = $today[month];
$mday = $today[mday];
$year = $today[year];
$current_date = $mday . $month . $year;


// Log visit;
$fp = fopen($counter, "a");
$line = $REMOTE_ADDR . "|" . $mday . $month . $year . "\n";
$size = strlen($line);
fputs($fp, $line, $size);
fclose($fp);

// Read log file into array;
$contents = file($counter);

// Total hits;
$total_hits = sizeof($contents);

// Daily hits;
$daily_hits = array();
for ($i=0;$i<sizeof($contents);$i++) {
    $entry = explode("|", $contents[$i]);
    if ($current_date == chop($entry[1])) {
        array_push($daily_hits, $entry[0]);
    }
}
$daily_hits_size = sizeof($daily_hits);

// Daily hosts;
$daily_hosts = array();
for ($i=0;$i<sizeof($contents);$i++) {
    $entry = explode("|", $contents[$i]);
    if ($current_date == chop($entry[1])) {
        array_push($daily_hosts, $entry[0]);
    }
}
$daily_hosts_size = sizeof(array_unique($daily_hosts));

?>
<? echo "
<b><font color='#FF0000'>Page Hits:</font></b><b> " . $total_hits . "</b>"
?>


This is the html that the php script will display when someone goes to your website

CODE
<? echo "
<b><font color='#FF0000'>Page Hits:</font></b><b> " . $total_hits . "</b>"
?>



It's funny that people mention about going to xhtml heres the thing XHTML code is design for XML use and from what my teacher told me html 4.01 strict is the same as XHTML 1.0 transitional. So youdon't really need to go to xhtml unless your trying to have your site keep up in current coding. As long as you follow the standards to HTML 4.01 you can display very same thing as you would in xhtml.

Because if you wanted to make your site xhtml you would have to do it by scratch, since is coming from a validation test in xhtml trans in which you have 181 errors to fix, so I would go with coding to html 4.01 strict standards in which you only have 7 errors to fix.

Yeah XHTML is the new standard but thats because of the XML applications people are using for their websites (mostly businesses) and that XHTML used more for structure then actual design. Like I said you can do the same thing with regular html (albeit with a lot more code) but that is what CSS was designed for so you can remove most of that code and put it onto another file for universal means.

Although most of thats a bit contradictory due to the fact I don't code in html anymore, but that's me.

Also another that is worth mentioning is that you don't need get away from tables, the only reason people say get away from tables is do to the fact that if you design a site in tables you have to do deal with a lot of code and tweak it just to perfect in pretty much everything. But thats for business/professional sites.

for personal/portfolio sites as long as you keep the design simple and try not to get all bizzaro world on it then tables will be fine, especially if your design and slice temple stick with tables it generates. Im working on perfecting my skills of converting tables to divs in psd templates it's challanging because of all the tweaking, but it will worth it in the end.


But pertaining to yoursite I would fix/add the following things

-that background gradient get rid of the white and go with a lighter color then just the white to bluish color
-with the background border you have at the top move it down to image you have in your site (of course adjust the size to fit)
-add a drop shadow to your site either on the sides or on the bottom.
-with your toppic1.jpg and toppic2.jpg combine them into one image, with that you save on load time and some space
--I would change that grey to a gradient effect to go with the background bar you have

Other then those recommendations it's a clean looking design.
Go to the top of the page
 
+Quote Post
Jimmy
post Apr 4 2007, 11:27 PM
Post #18


Super Member
*********

Group: [HOSTED]
Posts: 486
Joined: 9-April 06
From: The UK
Member No.: 21,584



Thanks for all that advice saint m. and thanks blessed for the positive notes and good bumping biggrin.gif

OK Here's whats new:

QUOTE
-that background gradient get rid of the white and go with a lighter color then just the white to bluish color
As you suggested, i think I understand you right that you mean to change the entire background colour to nearer to white, I've done that and I must say... it helps tongue.gif

I combined the two title images and a lot of the other template images in my redesign as suggested by you biggrin.gif - This helps in two ways, it did easily make the files smaller overall and it was way, way easier to recode my whole site down to the barebones (looks no different tongue.gif )!

QUOTE
-add a drop shadow to your site either on the sides or on the bottom.

Right... I see where your going... and I agree! this would be a nice direction to take. i will be working on this for the coming days... trying to do it withought destroying the rest of my page!

Also, in a twisted, double dagger effect of removing useless images! - I managed (really don't know how) to get the colums nice and have those page headings like "home page" and "my photos" to be coded into the browser instead of using images. I'm pleased with the result! the colours look nicer and it definitely makes it easier to modify for new pages.


QUOTE
-with the background border you have at the top move it down to image you have in your site (of course