I do realize that. 750 lines is still VERY many lines for a template engine.
Printable View
All of it is used, fully commented and it has spaces in between functions. About 750 to about 950 is pure code. Also, Smarty is almost 2000 lines...
- - - Updated - - -
Updates - 06/03 (20:32)
Still working on the translation document, currently completed Front page, Registration pages, Me page, as of currently I'm working on the Account Settings page.
Cleaned up a few lines of code.
Had to write some comments on functions.
Removed some useless code. (who the hell cares about Facts? Right?)
I estimate the document to be released very late tonight, maybe early morning - like 2am if I'm still awake.
Translators
The AdminCP will also need translating once I've completed that. I shall contact each of you in like a Month or earlier after the CMS is released in a Beta build since upon release I doubt the CMS have a full Housekeeping, just something simple integrated into the website. The AdminCP is a fairly large project, much like this. If all of you are willing to translate the Housekeeping as well then just let me know. :P:
Completed Account Settings page of translation.
Completed Habbo Club/VIP page of translation.
Should be relatively quick now since there is less on the rest of the pages.
Updates - 08/03 (10:08)
You can no longer spam the comments if it is blank or contains "Write a comment...".
You can no longer just refresh the page and spam the comments on news articles.
Still in the process of creating the language file, taking a rather long time.
Adjusted URLs to the CSS and JS files, still need move some pages to locally hosted files.
Should have some more updates later today. :P:
Sorry for replying late as I was busy. It is considered a good practice to completely avoid mixing HTML and PHP. I pointed out about the variable names because it's again a good practice to use proper variable names which gives a proper idea of what it is. $db can be kept as it is but $ir doesn't make sense really. I am very sure there will be people who will maintain the CMS code and while they do, if they see improper variable names like $ir which simply doesn't make sense, they will have to spend time finding out what it actually is and thats totally a waste of time. And about the location I set, it's totally my choice on what in there. I am pretty sure it doesn't cause you any harm, or if it does, then it is none of my business. Even offering you constructive criticism, I do not expect you to follow it, but at least know about it. Good luck with your bitchy attitude.
Updates - 08/03 (14:07)
Made the avatar container show "Last online" instead of "Created on".
Last online is the last time you entered the Client instead of the last time you logged in on the website.
Started work on Moderation Tickets event.
http://i.imgur.com/AvMheOE.png
I can do a translation to spanish.
I hope that no one has the displeasure of working under your practices. To clarify, there is no loss in efficiency if one embeds HTML into a PHP script to produce a dynamic web page -- the loss in efficiency depends on how the programmer embedded said HTML into the PHP script. Recall that the purpose of PHP is to facilitate server-side scripting and producing dynamic web pages; with that being said, it is notable to mention that there are other uses for writing PHP scripts.
To further clarify, a practice is an opinion not a fact. To moreover touch upon your opinion, it is my opinion that restricting the integration of HTML tags in a PHP script can reduce maintainability by unnecessarily complicating the source code.
Grrr, drives me nuts when people assume practices are directly related to language performance or some silly idea... ._.
@TheJacob this is a smart man! Uh, it's easy to separate frontend from server-side with a templating system like Twig. This allows you to easily maintain the backend with the source files and the frontend in its template files without raiding multiple methods in multiple classes.
I agree totally. Example if u do a Tags Class to make the HTML tags, this is idioticy. And to the developer understand wtf that class does this will give a lot of time. But make a class to "help" in HTML forms this is a good idea, likely
$form_object = new HtmlForms()
$form_object->add_textarea(...);
...->add_input(['type' => 'text', 'value' => ...]);
...->render(['action' => '.... );
And is good use a REST api this will do a lot of good practices using put,post,get,del etc.
Is good make Classes to Help the developer to make the rendering of the page better and easiest likely forms, tables, etc. But remove completely the HTML code? This is bad. PhalconPHP, Yii and other frameworks shows to you that is a good idea in a View model put HTMl xD
That's my opinion.
@santoro it can be achieved with templating as well without writing a single html tag in PHP. :)
I used to have a rank system in my old emulator but it had limited capabilities so I couldn't give a user special permissions without creating an extra rank level which lead into shifting the ranks etc which was a lot of work.
You can use a group, permissions and a group_permissions table to connect the permissions, the only thing you've to do is creating the join query and the table relations in the database.
Awesome idea @CodeDragon that would be really good!
Updates - 09/03 (15:31)
Modifications to a few templates.
Fixed a few web page issues.
Fixed a "Keep me logged in" issue which wouldn't show the message.
Added a couple more links to the Footer.
- - - Updated - - -
Another feature that's in-progress is Friend Management.
Completed the error page. Added a link to return to the Homepage.
http://i.imgur.com/W5cB8rF.png
Have or will you be adding this page?
http://www.habbo.com/login_popup
I don't think they have changed this page at all.
Well, I'll see what I can do. Possibly if you're in the client and your session times out I'll create that page, but for now I'm happy with it kicking you to the frontpage.
- - - Updated - - -
Updated main post with features and updated screen shots.
- - - Updated - - -
In need of someone with a banned Habbo account so I can rip the page :D:
Skype? I've gotten a account.
Sure, PM me your Skype.
- - - Updated - - -
Updates - 10/03 (00:15)
I think I may have made the Client work with Butterfly, with help from; @FatalLulz
Changes to Client file.
Fixed an issue with blocked usernames.
Fixed an issue with setField function.
Spoiler:
Have a few ideas/questions
1) 'Post News Item' on the Administration Panel, you should add being able to view the article image before posting as most people like to view the image to match their article.
2) Have you thought about implementing enable/disable account security lock? Having to answer security questions if logged in from a un-trusted IP address.
3) Upon testing the registration, I was able to register with an alt name. Will you be blocking alts on registration? As most people dislike alt names on their hotel because they're unable to ban unless it's via. MOD Tool. Maybe you can set it in the config being able to enable/disable it for those who like and those who dislike.
Anyways, nice project. Good luck with the rest of it, seems like you've pretty much nailed it. Let's hope this is the new CMS people will start using instead of Rev.
The current Administration panel will be completely overhauled and put in a standalone package in the future, for now I'm just focusing on the CMS side of things to get all the pages and stuff. I didn't know that you could register with Alt names, was blocked in the PHP code. Hmm, thanks for the bug report. I was thinking that if the IP is different from the registration IP that they would be sent to a page where they would have to enter their email address and if they get that wrong the account would be blocked temporarily (24 hours). The security questions sound much better though, I'll be sure to implement that in the future. Possibly a Security Key and a Security Question.
It's ok, I have the HTML from Kristopher. Thanks for the info though.
- - - Updated - - -
Currently looking into Forgot Password with SMTP using the PHPMailer class; https://github.com/Synchro/PHPMailer - I'll get back to you guys on if I can figure out how to do this properly.
- - - Updated - - -
So I've decided to implement a security key system, a bit like how RevCMS does it however it will be used to change your password if you have forgotten it. So for example; you click "Forgot my password" on the frontpage, then a form will pop up asking you for the account's email address and security key. It will they change the password to a randomly generated one of which they can use to login and change their password on the Account Settings page.
Would be really annoying to do at the moment, I'll probably still put an email system in. Just not right now, plus Security Key's are easier and saves users going to their email and logging in. Now that I think about it, I'll eventually make it so the users can have their current Security Key sent to their email.
- - - Updated - - -
In the process of stripping down the Identity Settings page since it's refusing the work for me, screenshot below. :)
http://i.imgur.com/JKnyftQ.png
Updated the main post with an FAQ since I've had a few people asking me some questions.
So can passwords, you telling us we shouldn't use passwords now? :lol:
---
Slightly updated the Account Settings page, will be working on Identity Settings page soon. I'm ill at the moment, for the second time in two weeks, so progress will be slow / negligible.
http://i.imgur.com/13T7V8S.png
- - - Updated - - -
So since Habbo has updated their website and moved to their beta website I have been forced to fix a bunch of broken Images since not everything was hosted locally. I didn't know the Habbo Club/VIP page was using Habbo images so I've been forced to fix this. Sad times...
http://i.imgur.com/Rplkcqu.png
http://ex.habbo.com is the old homepage. Habbo are telling users to go there for more settings (facepalm)
Decided to stop the project and start selling it. Each license will cost £25.
top kek jk
Hahahah do u see me laughing
[emoji23] well indeed, yes I am [emoji23]
Had a bunch of people messaging me asking me if I'm actually selling this CMS. No, I'm not fucking selling it. It will be completely open source as planned.
Lmao, thought I was serious...
Another idea - Maybe limit Article Comments to 2-3 per user, to avoid spamming. :blushing:
- - - Updated - - -
Also, what about session timing out? If user has not made any requests on the website over X amount of time, it will log them out.
The base came with a session handling system that stored each session within the database however I found the code to be poor/very outdated and deleted all that for the most part. I was looking into this earlier today however I don't remember anything. Currently laying in bed coughing my brains out and using so many tissues so there will be almost no progress whatsoever for the time being. Recurring fucking illnesses...
As for the 2 to 3 comments, I was thinking about limiting each article to about 20 comments each rather than limiting each user.
News article liking system. Also, include an editing system for when you make news articles in the admin panel like how RZ has it when creating a thread. (Button for bold, img, Italic etc etc) as well as the ability to allow whether comments can be posted on that article.
Found out earlier today I have a chest & sinus infection that's getting worse by the day, got some antibiotics off the doctors for it now though. I doubt I'll get anything significant or worth mentioning done tonight, or do anything at all. Probably just sit in bed watching anime for a while until I pass out drunk.
If I do get anything done I'll let you guys know!
Take care of yourself. I mean it is just Habbo x)
I wonder what the H in Project H stands for... :?:
Yes, seriously. Lmao.
---
Updates
Added two more definitions to the configuration file, FB_USER and TWIT_USER. (self-explanatory)
Planning where to put the more social-based stuff on the articles.
- - - Updated - - -
Anyone have the HTML for the maintenance page? Need to do this, forgot it was on the list :P:
http://media.mediatemple.netdna-cdn....igns/habbo.gif
I found this on the HabboPHP demo page.
http://habbophp.com/demo/maintenance.php
- - - Updated - - -
And, here is the source from the RevCMS Habbo Theme.
Spoiler:
Updates
`prjh_settings` table created which contains things like `maintenance`, `habbo_swf`, `external_variables` and more for future reference since it will all be put in the database sooner or later.
Registration now blocks Alt names.
A few table optimisations.
http://i.imgur.com/Q4KaENN.png
http://i.imgur.com/MvUlQq6.png
- - - Updated - - -
Live Demo will be going down, all data will be lost since it's running a very old version. We are switching to the latest version available, along with a new Dedicated Server, slightly less powerful but all the specifications from the current one is just not needed. The client will also be up and running soon, once we get the new Dedicated Server up and everything.
Mixing HTML + PHP = bad.
All the templates are stored within the Database in one table. Each feature of a page can be disabled / enabled via the database or php file. You don't have to dig through anything.
Probably the most dumb thing I've read all day, and I've read a lot today.
All of you are just over reacting, there are no documents completely fused HTML and PHP (take HoloCMS as an example) - NOTHING LIKE THAT. The most PHP and HTML I have mixing is this:
http://i.imgur.com/kdASgXi.png
If you guys want I can just get rid of the HTML coming from the database and just stick them in the PHP files? Whilst I'm there I may as well get rid of the $_POST & $_GET filtering as well? Oh I don't know, let's just say "fuck passwords all together"?!
Edit: You seem a bit peachy about that dislike, lmao.
---
Updates
Fixed an issue with password hashing.
Function; __autoload now throws an error if it cannot find the class.
Working on the Butterfly ticket handling, needs to be tested but I don't want to do it currently.
Maintenance is now being checked from the database.
Looks good. Hopefully this gets finished.
Good job dude. Ignore all the haters :P:
It's nice that you're still developing Ash .
Goodluck with this project.
Nothing has changed then :lol:
Apart from the flood of dislikes, they're just mad because I asked for the thread to be cleaned up from all the bullshit.
---
So Quackster decided to waste his time...
http://i.imgur.com/zoP9IxV.png
This actually looks quite good, honestly I can't wait for the source to be opened up, haven't done any Habbo developing lately, and this sure looks interesting.
If you need any help, I'd love that.
Really going to be nice!!! I really wish best wishes to this project!
#Closed until further notice.
How does the future look for this project? Still as planned?
Just ignore the people who are sending hate and dislikes.
They are just searching for attention.
This project is really good and people should have respect.
If you don't like this project than just never open the thread again and block it in your browser or wathever but don't spawn the whole topic with hate and dislikes.
I can translate it to swedish
I have began work on H2 (Project H 2). Not much to update you guys on at the moment, currently in the process of writing the Framework. The main development post will be completely rewritten in the coming days.
Also, about the H1 release. I apologise about it being so very buggy, ever since Habbo changed website it seemed to have many issues that were working before I released 20315-dev. They should be sort of fixed in 21315-dev, the download link on the main release post has been updated accordingly.
Reminds me of uberCMS
This part in particular does it for me.
http://i.imgur.com/IOhr80P.png
Thankfully.
---
Development is still progressing, still in the process of writing the Framework which may take quite a while. There is a pointless screenshot below because I like screenshots.
http://i.imgur.com/w8phrBv.png
your code looks like "I'm trying to code a CMS in OOP, but I dont know the sense of OOP leleleleh3h3h"
Lmfao. Therefore you couldn't remove the eval? The only reason its still there is because you plan to use it later somehow.
this code is really weird..
really is weird make a constructor handle all this voids. Its out of control, and this is a example of CAPSULE the data.. Really weird. Think how you will handle the database connection encapsulated by a class? My suggestion: make a static variable to handle the socket of the database. And make get,set functions. That you did isn't OOP programming. Is OOweirdProgramming.
And I doesn't know the use of namespace and this includes on top that you used. Remember namespace for php is used for php library's handled on apache, or php library's handled by perl. Your namespace declare will be replaced by the suppres of default php.
And I didn't got why using throw new exception. If u are really using, its useless. You can use php flags in mod_rewrite to handle a log of php errors instead of a class maded by a developer to make a fopen .. And.lol??
I like how all of you are criticising code that was just used as a placeholder, lmao.