 |
Account Login
|
 |
 |
Latest Articles
|
 |
 |
Advertisement
|
 |
 |
Associates
|
 |
 |
Associates
|
 |
|
 |
 |
|
 |
10-22-2007, 11:07 PM
|
#1 (permalink)
|
|
The Contributor
Join Date: Oct 2007
Location: US
Posts: 66
Thanks: 19
|
PSDLayouts - CMS
Hey peeps. I've been working on a CMS for my site for a couple months now, adding a bunch of features. They include the following. A full list can be found here. Features
- Full Member System
- Full Admin Panel
- Full Upload System
- PM System
- Feedback System
- Tons of other stuff
I'm quite proud of it, as I haven't been using PHP and MySQL that long. You can login with "Demo" and "demopass". You will only have the options of a normal member, as I don't feel comfortable giving you access to the whole site. :p
Anyway, what do you guys think? Suggestions?
|
|
|
10-23-2007, 12:04 AM
|
#2 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 1,654
Thanks: 73
|
Sorry, what's the link to the website so I can login? :)
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|
10-23-2007, 12:22 AM
|
#4 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 1,654
Thanks: 73
|
:) Lol.
Just a few observations from browsing:
- Add, Edit, Profile, etc. should really be next to FAQ, Search and Logout.
- Keywords textbox needs to be wider on search page.
- ...And on the send message page.
- When I create a category there's no sign of what happened.
- Bit of regex checking on the hex when I add a colour, no need to add the warning then that invalid colours will mean my account gets removed.
- Typo on send message page: "Recipiant".
- Popular categories look a bit squashed in. Hope they're not claustrophobic!
Also a little whoopsy on the edit profile page...
Quote:
|
Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or '$' in /homepages/46/d174339026/htdocs/psdlayouts/pages/cp/editProfile.php on line 12
|
But apart from that, a good system from the looks of it!
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|
10-23-2007, 12:26 AM
|
#5 (permalink)
|
|
The Contributor
Join Date: Oct 2007
Location: US
Posts: 66
Thanks: 19
|
Thanks for the review Wildhoney. Its those kind of suggestions that I need. :) I've been thinking about just removing the ability for users to add colors and categories, as its not that crucial of a function. I'll be sure to fix those mentioned items sometime, and I just fixed the edit profile page, as its a more immediate error. :p
|
|
|
10-23-2007, 12:38 AM
|
#6 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 1,654
Thanks: 73
|
Pleasure :) I've written you a nice function for validating the hexadecimal value of the colour if you decide to keep it in.
PHP Code:
function is_colour($szHex) { /* Prepend the hash symbol */ if(substr($szHex, 0, 1) != '#') { $szHex = '#' . $szHex; } /* If we can save a call to regex then why not! */ if(strlen($szHex) != 7) { return false; } /* Check to see if the colour value is valid */ if(!preg_match('/^#{1}[0-9A-F]{6}$/i', $szHex)) { return false; } /* It's all good! */ return true; }
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|
10-23-2007, 01:04 AM
|
#7 (permalink)
|
|
The Contributor
Join Date: Oct 2007
Location: US
Posts: 66
Thanks: 19
|
Oh wow! Thanks for that. I may as well keep it now. :D
|
|
|
10-23-2007, 02:04 AM
|
#8 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 753
Thanks: 2
|
On the topic of validating the hexadecimal colour string, if you don't care too much about wasted ten-thousands of a second, you could simply use:
PHP Code:
function is_colour($hex)
{
return (bool) preg_match('/^#?[a-fA-F0-9]{6}$/', $hex);
}
__________________
|
|
|
|
10-23-2007, 03:00 AM
|
#9 (permalink)
|
|
The Contributor
Join Date: Oct 2007
Location: US
Posts: 66
Thanks: 19
|
Lol. Those ten-thousandths of a second really add up, so I may! :p
|
|
|
10-31-2007, 06:48 PM
|
#10 (permalink)
|
|
The Contributor
Join Date: Oct 2007
Location: US
Posts: 66
Thanks: 19
|
I'm thinking of selling the site. How much do you guys think that script is worth unique?
|
|
|
10-31-2007, 07:56 PM
|
#11 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 1,654
Thanks: 73
|
Difficult to say. I reckon in excess of $500.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|
11-03-2007, 11:01 AM
|
#12 (permalink)
|
|
The Addict
Join Date: Nov 2007
Location: the Netherlands
Posts: 224
Thanks: 2
|
Check if a colour is at least 6 chars after the # of course is fine, but people can also use a 3 char code (eg #000 also returns black), to really make it perfect you can also check if it's 3 chars before returning False.
|
|
|
11-03-2007, 12:59 PM
|
#13 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 1,654
Thanks: 73
|
Quite true, Jim! I totally overlooked that possibility.
PHP Code:
function is_colour($szHex) { /* Prepend the hash symbol */ if(substr($szHex, 0, 1) != '#') { $szHex = '#' . $szHex; } /* If we can save a call to regex then why not! */ $iCharacters = strlen($szHex);
if($iCharacters != 7 && $iCharacters != 4) { return false; } /* Check to see if the colour value is valid */ if(!preg_match('/^#{1}([0-9A-F]{6}|[0-9A-F]{3})$/i', $szHex)) { return false; } /* It's all good! */ return true; }
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|
11-03-2007, 01:29 PM
|
#14 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 753
Thanks: 2
|
Quote:
Originally Posted by Jim
Check if a colour is at least 6 chars after the # of course is fine, but people can also use a 3 char code (eg #000 also returns black), to really make it perfect you can also check if it's 3 chars before returning False.
|
If that's the case, shouldn't the code also allow the valid names for colours (red, blue, black, etc)? Since Wildhoney amended his colour function, here's mine -- just a tiny change to the RegExp. :)
PHP Code:
function is_colour($hex) { // True for hexadecimal strings of three or six characters in length // with an optional preceding hash. return (bool) preg_match('/^#?[a-fA-F0-9]{3}|[a-fA-F0-9]{6}$/', $hex); }
__________________
|
|
|
|
11-06-2007, 02:24 AM
|
#15 (permalink)
|
|
The Wanderer
Join Date: Oct 2007
Posts: 20
Thanks: 0
|
Hexadecimal colours can also be 3 characters:
#333;
#49DA03;
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|