The Little Guy Posted February 16, 2007 Author Share Posted February 16, 2007 Might be helpful to provide a dropdown to specify a certain snippet... you might want to collect their email address too. And provide some kind of error message if they don't fill it out correctly. Oh, and you should probably make a name/email address required for submission. Is that for comments? Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-186655 Share on other sites More sharing options...
ober Posted February 17, 2007 Share Posted February 17, 2007 No, for the contact form. Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-186801 Share on other sites More sharing options...
TheFilmGod Posted February 18, 2007 Share Posted February 18, 2007 YOU got to be kidding me! The site you just recommended is just as bad as this one. I love simple stuff, but you can't make it as simple and easy that it lacks some edge in nice pictures or logos. You pretty much have all colors here and there, and think its awesome. I want some eye flashing appealing images!!! Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-187728 Share on other sites More sharing options...
The Little Guy Posted February 18, 2007 Author Share Posted February 18, 2007 Why should I put more images? The site is about coding, not flashy graphics. This isn't a PhotoShop site, or graphic design site, it is a coding site. The more images that are added, the more distracting it will be. There is already 16 graphics on every page. How are you going to get more out of the codes if I add graphics? If you would like more graphics, don't just say add more graphics, explain where, and what too. Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-187733 Share on other sites More sharing options...
TheFilmGod Posted February 18, 2007 Share Posted February 18, 2007 At a viewer perspective, it looks very plain. You can't just sneak out by using various colors of the rainbow. I recommend adding an image right underneath "About Snippets" that looks cool. - Like a link to an about page. Its a recommendation. It's your site. Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-188104 Share on other sites More sharing options...
ted_chou12 Posted February 20, 2007 Share Posted February 20, 2007 There are a lot of improvements going on since my last visit , I like the different ranking lists, they look very professional Ted Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-189529 Share on other sites More sharing options...
TheFilmGod Posted February 20, 2007 Share Posted February 20, 2007 yeah, to me it all looks the same. What exactly did you change? Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-189680 Share on other sites More sharing options...
AXiSS Posted February 20, 2007 Share Posted February 20, 2007 What exactly is the "Snippets Tags" sections based on? Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-189893 Share on other sites More sharing options...
The Little Guy Posted February 21, 2007 Author Share Posted February 21, 2007 What exactly is the "Snippets Tags" sections based on? This is the function I use to determine the font size: function fontSize($voteTotal,$views){ $points = $voteTotal; if($points<1){ $size = 11; }else{ $size = ($points * $views) / 4; } if($size > 40){ $size = 40; } if($size < { $size = 8; } return 'font-size:'.$size.'px'; } Basically all it does is check how many times the page has been viewed, and multiplied it by the total number of votes and then divided it by 4. The rest you probably can understand. Is this a good way of doing it or should I try another way? On my web host's site, there is a site of the month section where you can rate peoples sites, so far it is at a 7.2 out of 10 with 18 votes! -- F.Y.I johjoy: "lots of PHP sites already, but this one is simpler to navigate, not a bad idea at all." ricmil4: "As a php user I just had to vote for this one " jcroes: "i love it - i put it on my bookmarks bar! Holy crap!" duvy: "the layout is plain, but i never get enough snippets!" davall2: "Extremely useful" saitti: "ok" farfar1: "Awesome" pautom: "not bad - easy to navigate but a bit simple" akameh1: "Nice snippets, but need to be better organised" aszabo: "good site" davpac4: "Great layout and navigation, but a lot of content is missing. The index letters at the top should only display when there are snippets in that specific location. Snippet examples should be loaded into the page featuring the code (if possible)." karkya: "Nice site. i would make the header shorter to move the content up." snuff: "Not a very attractive site, but a useful one"" oztripping: "Useful, so gets my vote" rpr91: "very very good! " garflo: "good" morning: "Nice design, but more important very useful" dbeilhartz: "not bad" yeah, to me it all looks the same. What exactly did you change? The purple section? I don't know how you saw it last though. Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-190190 Share on other sites More sharing options...
AXiSS Posted February 21, 2007 Share Posted February 21, 2007 OK, I was just wondering what determined the size... and it is the number of views. Are you going to apply a limit onto it so that only snippets with a certain number of views are on there, instead of every single snippet? (Sorry, I am just finding the tag cloud rather distracting...) Also, the voting system is a bit wierd. Smaller icons (preferably stars) would be better. Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-190859 Share on other sites More sharing options...
The Little Guy Posted February 22, 2007 Author Share Posted February 22, 2007 I was only limiting the number of tags to 50 random tags, but now I think that, that is too many. I never liked the tag cloud Idea in the fist place, but previous post said it would be nice, so I added one. Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-190980 Share on other sites More sharing options...
The Little Guy Posted February 22, 2007 Author Share Posted February 22, 2007 I moved the location of the tag cloud, What do you think about the new location? Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-191097 Share on other sites More sharing options...
AXiSS Posted February 22, 2007 Share Posted February 22, 2007 I moved the location of the tag cloud, What do you think about the new location? Looks much better placed down there. Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-191249 Share on other sites More sharing options...
gazever Posted February 22, 2007 Share Posted February 22, 2007 I think the tag cloud is way too big Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-191314 Share on other sites More sharing options...
Daniel0 Posted February 22, 2007 Share Posted February 22, 2007 It isn't even a tag cloud. Read this: http://en.wikipedia.org/wiki/Tags http://en.wikipedia.org/wiki/Tag_cloud Tags are keywords, therefore a tag cloud is based upon the number of things (here: code snippets) that has a tag. Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-191485 Share on other sites More sharing options...
s0c0 Posted February 22, 2007 Share Posted February 22, 2007 i dig this. Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-191544 Share on other sites More sharing options...
AXiSS Posted February 22, 2007 Share Posted February 22, 2007 It isn't even a tag cloud. Read this: http://en.wikipedia.org/wiki/Tags http://en.wikipedia.org/wiki/Tag_cloud Tags are keywords, therefore a tag cloud is based upon the number of things (here: code snippets) that has a tag. OK then, it is a "Snippet Cloud". Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-191684 Share on other sites More sharing options...
TheFilmGod Posted March 14, 2007 Share Posted March 14, 2007 What exactly is the "Snippets Tags" sections based on? This is the function I use to determine the font size: function fontSize($voteTotal,$views){ $points = $voteTotal; if($points<1){ $size = 11; }else{ $size = ($points * $views) / 4; } if($size > 40){ $size = 40; } if($size < { $size = 8; } return 'font-size:'.$size.'px'; } Basically all it does is check how many times the page has been viewed, and multiplied it by the total number of votes and then divided it by 4. The rest you probably can understand. Is this a good way of doing it or should I try another way? This is probably the stupidest thing I ever heard of. It is jumbled up text with a maze of different font sizes. Its a good idea but def. something that makes me want to you give a 1.0 out of 10 - F.Y.I Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-206731 Share on other sites More sharing options...
The Little Guy Posted March 14, 2007 Author Share Posted March 14, 2007 Then how can I do it better? I've seen tag clouds before, and I think they are stupid and pointless. Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-207462 Share on other sites More sharing options...
TheFilmGod Posted March 15, 2007 Share Posted March 15, 2007 Don't use a tag cloud. Instead use a section for the the most popular pages. The most popular page would be on top, just like the most popular page would have the largest font in the tag cloud. Or you can base it on user interactivity. Such as voting. The top voted scripts would be posted on the homepage. I just don't like tag clouds. You are better off deleting the tag cloud, or replacing it with what I have mentioned. Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-207657 Share on other sites More sharing options...
The Little Guy Posted March 16, 2007 Author Share Posted March 16, 2007 I already have a most popular page, its the blue section, or are you talking about something different? I think I may turn the blue part into multiple popular types: - Most page views - Highest vote score Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-208527 Share on other sites More sharing options...
The Little Guy Posted March 17, 2007 Author Share Posted March 17, 2007 I just added AJAX to the site! AJAX is sweet. It is in the blue box. If anyone has any idea how to do a better highest score... Could you give me an idea? I currently do this: SELECT * FROM snippets ORDER by votes DESC, voteTotal/votes DESC LIMIT 20 Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-209323 Share on other sites More sharing options...
Daniel0 Posted March 17, 2007 Share Posted March 17, 2007 SELECT *, score AS (voteTotal/votes) FROM snippets ORDER by votes,score DESC LIMIT 20; Perhaps? Then you can access the score when you've fetched the result too (without having to perform the division again). Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-209350 Share on other sites More sharing options...
redbullmarky Posted March 17, 2007 Share Posted March 17, 2007 i must say though, i'm pretty impressed with the direction things are going generally. When this topic first started, the site was pretty lame and bare, and now it's taking form (both functionally and visually) quite well. there are still issues of too much space up top (notably the header area and 2 grey panels) that need to be sorted out, as the rest of the site is taking a 'busy' form. also just the fact that on one hand you're using gradients, and the other hand it's plain unstyled 2D. try: 1, replace the text in the red panel (About Snippets) with "Welcome, PHP Code Snippets", and get rid of the "Welcome, PHP Code Snippets" from under the logo. This'll gain a nice bit of real estate to pull your main content up a bit. 2, drop the size of the logo area a bit, maybe to about 60-75% of what it is now. as with my first point, this will bring your content up a bit and leave less whitespace next to it to fill. 3, under "New snippets", there's a huge chunk of space. If you reduced the size of the blue "popular snippets" panel to 15 items instead of 20, this would even things out a bit. either way, it's getting better. well done so far. Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-209353 Share on other sites More sharing options...
Daniel0 Posted March 17, 2007 Share Posted March 17, 2007 The text size in "Snippet Tags" is WAY too big. Just noticed it. Also, you need new images for rating () - they don't look really nice. Quote Link to comment https://forums.phpfreaks.com/topic/37256-php-snippets/page/2/#findComment-209355 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.