Website with new functionality - Waiting for your vision!
Hello,
i belive you guys have nice ideas for website functionality.
I am here, waiting for your purposes - If I add something from your list gonna post progress below.
I am able to add almost everything you wish.
Just give a shoot, who knows maybe when i finish i'll release it here ^^
Functions which will be implemented today:
- News system
- Register
- Login
- Server time status
- TOP 3 Honor players
- Channel status + show ~how many players are online.
- Ranking system
- Saint holder
Everything wrote on smooth code (MVC PHP + Rain TPL)
http://my.jetscreenshot.com/27710/20...-jwau-54kb.jpg
http://my.jetscreenshot.com/27710/20...-b5s1-23kb.jpg
Re: Website with new functionality - Waiting for your vision!
Quote:
Just give a shoot, who knows maybe when i finish i'll release it here ^^
why people should share their unique ideas for ur webpage if you are not sure you will share it or not :))
Re: Website with new functionality - Waiting for your vision!
Why not use an API written in go,php or anything else and use angular js for interface with the API behind? Its way faster :).
Re: Website with new functionality - Waiting for your vision!
if you can add web shop or tpoint and vote for points it will be good
Re: Website with new functionality - Waiting for your vision!
Some must have functions idea:
Registration:
->Captcha's, Email Verification (EP8 Client have implemented AuthType for email confirmation checking... (AuthType=3 if i good remember))
->Multiple IP warn system for admins
Login:
->Login / Password Reset / Sub Password Reset
Admin Panel:
->News Manager
->GM Manager
->Online Player management
->Server Log viewer (may you can do a good filterable function with regexp's...)
For players
->Stat adder, Nation changer, EQ viewer, Vote system, Forum <-> Ingame Account merger
->News, NationWar, FC, Valkalitan Timer, Current Proc - Cap rates, Current Running Events
->Community Functions like facebook share, twitter post etc.
I will think about it and edit it if i get any more idea but this is a most important, at least for me.
Re: Website with new functionality - Waiting for your vision!
Sounds good to my, I'm a total pleb when it comes to that stuff tbh. :D
I really like what DextR suggested in the post above,
and I'm wishing you good luck implementing that & to finish the site the way you want it to.
Can't wait to see the final outcome! :)
€dit: Of course I'll drop some ideas if I get some that DextR did not post already.
Re: Website with new functionality - Waiting for your vision!
Quote:
Originally Posted by
allocen
Why not use an API written in go,php or anything else and use angular js for interface with the API behind? Its way faster :).
Or just angular altogether :)
@Dens666: Drop PHP already. If you are doing this for fun then do it in a cooler language and learn something from it. PHP? not cool.
Re: Website with new functionality - Waiting for your vision!
Quote:
Originally Posted by
emi
Or just angular altogether :)
@
Dens666: Drop PHP already. If you are doing this for fun then do it in a cooler language and learn something from it. PHP? not cool.
Off: I'm already doing that, building angularjs website for cabal with an api written in phalcon due its amazing speed. So far so good. I might get to an alpha stage pretty soon. I'm in luv' with the angular xD
Re: Website with new functionality - Waiting for your vision!
I have no idea what you have to PHP :O
It's very simple, fast and flexible language.
I can write what I want on it.
I'm not sure if worth for me to learn angular since I don't know JS.
Give me tip :)
Re: Website with new functionality - Waiting for your vision!
Phalcon its a PHP framework and if you search after benchmarks between frameworks you'll see that phalcon always comes to 1st place because of its amazing speed and because its written in C#, so that this framework always stays in the Ram. Either way, learning angularjs is not that complicated as you may think but once you do, you will never want to come back writting websites in PHP, maybe API, like i do. The purpose and benefit of writting an angularjs website for cabal is that it will load way faster also you can do a lot of stuff like getting real-time data or log in with no refresh and many other. For example, on my website that i am building, i wrote some directives that checks connection of the internet like when you remain with no internet a popup will appear with some specific message and it will not go away until you have internet or idle, like when you are logged in and you are not doing anything on website or not moving the cursor at all, after an x time a popup will appear with some message, after x count of idle you are getting logged out. Also i can show real-time players that are online, rates and many other data like this. Building a cabal website based on angularjs not only that will be fun but you'll really enjoy knowing that you can manipulate everything just the way you want.
And as i said above with my web being close to an alpha stage, i might make a thread about it soon.
Also my API contain most of decodes of binaries from cabal database :).
For authentication, i use basic auth, that generates me a token and after i'm saving it to local storage and with that token i can auth to which request i want to do to the API. Of course that token contains also an expire time.
And PHP ain't fast enough as other frameworks, like for instance, GOLANG, this framework is 10000x times way faster than PHP and can parse large amount of data in milliseconds, ain't kidding.
Plus, separating the website between a FRONTEND and API, is good for security purposes :).
Re: Website with new functionality - Waiting for your vision!
Can you share some example code? No matter what function. I'm going to read now about angular we will see.
Re: Website with new functionality - Waiting for your vision!
Thats the authentication service:
Code:
(function() {
'use strict';
angular
.module('hekate.auth.service', [
'restangular',
'LocalStorageModule',
'base64'
])
.service('HekateAuth', HekateAuthService);
HekateAuthService.$inject = [
'$rootScope', '$q', '$base64', 'Restangular', 'localStorageService', 'AUTH_EVENTS'
];
function HekateAuthService($rootScope, $q, $base64, Restangular, localStorageService, AUTH_EVENTS) {
return {
login: login,
isAuthenticated: isAuthenticated,
logout: logout
};
function login(params) {
return $q(function(resolve, reject) {
if(angular.isObject(params) && angular.isDefined(params.username) && angular.isDefined(params.password)) {
Restangular
.one('accounts')
.one('authenticate')
.post(null, {}, {}, {Authorization: 'Basic ' + $base64.encode(params.username + ':' + params.password)})
.then(function(response) {
localStorageService.set('user', {token: response.token, expires: response.expires});
if(localStorageService.get('idle')) {
localStorageService.set('idle', 0);
}
$rootScope.$broadcast(AUTH_EVENTS.loginSuccess);
resolve('You successfully logged in.');
}, function(error) {
reject(error);
});
} else {
reject('Username and/or password fields is empty.');
}
});
}
function isAuthenticated() {
var user = localStorageService.get('user');
return $q(function(resolve, reject) {
if (user && user.expires > Math.floor(Date.now() / 1000)) {
resolve('You are authenticated.');
} else {
reject('You are not authenticated.');
}
});
}
function logout() {
localStorageService.remove('user');
$rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);
return $q.resolve('You successfully logged out.');
}
}
})();
Re: Website with new functionality - Waiting for your vision!
Oh Jesus, its looks horrible for me :D
Can you show me one more example? If you want you can send me it on private. I just want to try love this language but all examples looks so strange and hard xd
Re: Website with new functionality - Waiting for your vision!
Thats not horrible. If you write you the code in angularjs as they say on their docs, when you'll want to minify the code you'll get all sort of errors. What you saw right there, $inject, its structure, is best practices in angular.
Also, before you start learning angularjs, you must know some vanilla javascript too :).
Re: Website with new functionality - Waiting for your vision!
Phalcon is a very promising project. Easy, simple, and very flexible.. AngularJS is very good too. If you are really want to learn a web development than try to understand them and you will get a right way to use harder frameworks like Zend engine... If you can learn them well than you can get a very good job with it. I'm currently working and dont have time for learning...PHP 7 is now get closer to a higher programming languages. Example for me was hard to relearn an sql query with pdo and sadly adodb dont working on php7 yet...