Lenton
-
Posts
1845 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Calendar
Posts posted by Lenton
-
-
This is why you don't use a language which is closed source, propriety, or owned by a company. Once you use their language, they own you, and they don't give a crap about programmers only profits. If Microsoft decides to deprecate the language there's nothing you can do but let your application die, that or recode it in another language.
-
> I have to revive this thread for another website that has a contact form, but I don't know how I can change it (or make it work).
All of that code should be wrapped in a
-
> My style works perfect, and I don't normally use (""); I just did it cause I felt like it needed something more.
>
>
>
> A style is a personality I can't just whip up a new style I like my style and it works, and it has made me successful for over 4-5 years.
Sorry but no.
In programming you don't make up your own style based on how cool it looks or if it portrays your personality the best. Your coding standards should be based on reasoning and best practises for well written and consistent code. For example, you say you only used double quotes because you felt like it. If you bothered to research the difference you'd find that double quotes process strings such as newline (\n), whereas single quotes ignores them. Therefore it's best practice to use single quotes all the time unless you need to use /n or /r.
You should take up my recommendation of learning about MVC, it's a software architectural pattern which separates all of your logic (PHP) from your display code (e.g. HTML). Using this standard produces very DRY code and makes it unbelievably easy to maintain.
Just because you've been doing PHP for "4-5 years", please don't act like you know everything there is to no because you don't. Try and be humble in the fact that there's always something new to learn.
Now I know you'll take this post in a bad way and get annoyed with me but my first post was only to point you in the right direction simply because I wish I discovered MVC frameworks sooner. -
When I was learning PHP I went down the same route as you by creating my own custom forum. It took me around a year to get it to a decently functioning forum with minimum features. Because I didn't have great coding standards back then the code was a procedural mess with repeated code and PHP mixed in with my HTML (just like your guestbook). BTW, I also went through a phase where I used brackets with echo :P but the correct way to use it is without since it's a language construct and not a function. As my project went on I found it harder to maintain and update so I got fed up and started researching best practises to improve my code. That got me into object oriented programming and more importantly introduced me to MVC.
My biggest recommendation for you is to learn an MVC framework, and use it for all of your PHP applications and websites. It may be a steep learning curve but if you're serious about learning PHP programming then it's really a must. The framework I use is called Kohana: [http://kohanaframework.org](http://kohanaframework.org). -
WeIndie is a community for anyone who likes to create things. It's built by me and my Friend BeanBag (Also known as Aaron (Not French Aaron)) completely bespoke and custom made using the web technologies: PHP, MySQL & jQuery. The project is currently in its infancy and only features a simple account system and chat box, though we intend to roll out continuous updates to it. Our vision with WeIndie is to not follow the current standards of forums but to redefine them. For example we aren't going to have any boards, but tags instead and you'll be able to reply directly to posts creating a branch of comments instead of having to quote snippets.
[http://weindie.com](http://weindie.com) -
Loving that 'e' logo. The template is looking very clean, simple and fresh, much better than eclipse's current one.
You should try finish it, I would be interested in seeing the outcome of the rest. -
[http://www.biz.nf](http://www.biz.nf) ?
-
Finally, a game that isn't a generic RPG!
You should so add a z axis and make the game 2.5D. Making holes which act as ground level are absolutely useless. -
You could use the same SEO techniques for the category page such as "mygamesite.com/gore".
I don't think Google would treat the root of a site to a page of a site any differently. -
Engine Help
in Q & A
Or you can wait for Eclipse V to be completed.
You can be assured that HTML5 has a very bright future ahead of it. -
Wouldn't it make more sense combining your traffic and having one flash gaming website which has categories such as gore and mario?
The twitter-like social network sounds interesting. -
Based on feedback I've made the decision to discontinue Webplates due to its niche and already packed market. I feel it's best to stop this service and concentrate my efforts on others which have a greater chance to get somewhere.
It's not all a loss however because Webplates helped to build a stable framework and code such as the payment system can be reused on other projects. -
Could your game name get any longer?
-
Kreator, you're such a weakling.
Here's me casually flexing my muscles:
![](http://i.imgur.com/giYNOK7.jpg) -
I've been thinking about the future and direction of webplates and now I'm not sure if I want to continue with it. Since webplates is specifically for web developers who are willing to buy a template, it has a niche market (Unlike Botsta and Vanreth which appeal globally). Not to mention the market is already packed with competition.
I see two possible paths for webplates: to expand/transform into a different service possibly selling other digital media or to be scrapped and my efforts be directed at something else.
What do you guys think, is anyone still interested in webplates? -
The Lenton Technology website has been recoded and transferred to our new framework. In the process it's got a few new updates too (in order of awesomeness):
- Total layout redesign by Aaron - modern, flat, "fullscreen"
- New logo has been updated
- Added support for high resolution avatar pictures
- Added more BB tags such as the img tag!
- Added age to profile
- Clean URLs
- Improved password security - please change your password to get this addition
- Added functionality to the admin panel
- Register now doesn't require a gender
[http://lentontech.com](http://lentontech.com) -
-
Crap.
-
> it make my page empty
It should at least say "Level: " on the page, are you sure you've set up your server right?
Make a new PHP file with this line of code and see what it displays: -
I don't know what webmatrix is but here's the simple PHP code to display a users level:
```
connect_errno > 0)
exit("Failed to connect to database: " . $db->connect_error);
//Get user data
$user_id = 1;
$sql = "
SELECT id, level
FROM users
WHERE id = $user_id
LIMIT 1
";
$user = $db->query($sql)->fetch_assoc();
?>
Level:
```You need to change the USERNAME, PASSWORD and DATABASE_NAME to your database information. Also, the $user_id's value should be got from the session or something if you want to display the level of the account they're logged in to. -
Your trying to output a list of items from a database?
Do you have any code so far you can show us so we have something to work off? -
After reading about it I still don't really get what it is.
Is it an open source blog or framework? -
I'm going back to the drawing board with this game and it's going to be redesigned from the ground up. With 2 more years experience in web development than I had when I created this game, it should become amazing.
All suggestions and ideas for the gameplay of Vanreth would be appreciated. -
I want to rewrite all urls such as:
**example.com/cool/story/bro**
To:
**example.com/index.php?url=cool/story/bro**
Unless specifying an existing file such as:
**example.com/images/duck.png**
It works fine but when I have a url which uses an existing folder such as:
**example.com/images**
It strangely redirects to:
**example.com/images/?url=images**
When it should rewrite to:
**example.com/index.php?url=images**
EDIT: It works if I add a trailing slash (wtf):
**example.com/images/**
Here's my current code:
```
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*)$ ./index.php?url=$1 [L]
```I have no idea why it's doing this, hope someone can help.
Slap the above user with anything! ^_^
in Forum Games
Posted