[Pre-Release] Would anyone want/need this? (live serverfeed)

07/12/2013 11:58 _Emme_#16
I honestly don't know what you mean. What exactly will cause the website to "hang effectively for several seconds before giving up".

Either you don't get how this works, or.. well, that's basically it.

I've had this run on a popular server for over 2 months, avarage online players 24/7 is about 100, the server was down for maintenance server times, etc etc etc. Never ever caused any problem, and I don't see why it would either.
07/12/2013 16:03 turk55#17
Quote:
Originally Posted by 'Emil View Post
The point behind it is to make the CO websites a little better because right now the standard is crap.
I totally agree on this, I did write some stuff for multiple servers that would made the website a bit more interactive unlike the static stuff 99% of the websites have.

The last thing I was writing that was part of ingame was a live character status, with this I mean the status window that you have ingame on the website (with the backgrounds, buttons etc ). I never bothered finishing it though.
07/12/2013 23:59 pro4never#18
Quote:
Originally Posted by Korvacs View Post
The gameserver which hosts the database, obviously. And those are great, however they will need to timeout as I said, making the website hang effectively for several seconds before giving up.

Also neither of those are implemented in this, so this is badly thought out as I said.
If the ajax times out it just won't populate data but it won't interfere with normal loading as it's an async request and does not block any other website functionality.

I think I get what you're describing (server db not being on website host and therefor the db connection timing out) but it's all easily handled in both the ajax request timeout (client side) and the php/mysql processing (server side)
07/13/2013 04:59 iPwnYa"#19
good job :)
07/18/2013 16:36 alex4war#20
I think its great for a website, so others can see the activity before donwloading the client. its also funny to see your name on a site when u killed someone =p
when will you release this?
08/10/2013 02:55 BeshoSmile#21
Quote:
Originally Posted by 'Emil View Post
Yup, very simple. Just save data to a record-table, if binaries you'll have to do it via cq_action I believe. Read the data with AJAX with an interval, if new data present it with an effect.

It's a really nice addon though and so far I haven't seen anyone have this, so why not.
any code released yet ? i am exited to know how it was implemented in the frontend side
08/15/2013 14:25 !KrAToS!#22
great and awesome , i really like it
it's new idea and it will help a lot

it would be great to release it
+ thanks
08/22/2013 06:31 Dr.Vista#23
waiting for the Release :)

Thanks ..
09/05/2013 03:52 !KrAToS!#24
Maybe this will not be released :(
09/06/2013 19:57 Deathmist#25
Nice that you implemented it on a wow website, I'm getting pissed off when I see 'programmers' or 'web developers' using wow websites.
09/06/2013 20:07 Spirited#26
It seems like this is never going to be released, so I'm going to move this to the discussions section. "Pre-releases" that are just showcases will no longer be allowed in the releases section.
09/07/2013 00:30 _Emme_#27
Quote:
Originally Posted by Deathmist View Post
Nice that you implemented it on a wow website, I'm getting pissed off when I see 'programmers' or 'web developers' using wow websites.
The website used for the video was just for sake of the demo, from what I can remember it's the site TriumphCO used.

I just love how you put programmer/web developer in quotation marks btw.

@Fang
It's on my laptop and I cba booting it up.
09/09/2013 13:31 Novakhan#28
First, This was not implemented on a WoW website, But on a flyff php based template, which can be seen [Only registered and activated users can see links. Click Here To Register...]. And it's not triumphco one. It's mine. The conquer version of this template is not and won't be released.
09/10/2013 11:42 _Emme_#29
Quote:
Originally Posted by elhermanos View Post
First, This was not implemented on a WoW website, But on a flyff php based template, which can be seen [Only registered and activated users can see links. Click Here To Register...]. And it's not triumphco one. It's mine. The conquer version of this template is not and won't be released.
Sorry, mixed it up with TriumphCO (which is a WoW template). The live serverfeed has nothing to do with the template what-so-ever, you can run it on a blank page if you so wish, I just grabbed a template quickly to get some styling onto it.


jQuery code (on top of my head, don't have it on this computer)
Code:
$(document).ready(function() {
  setInterval(function() {
	$.ajax({
		type:"POST",
		url:"/ajax/feed.php",
		dataType:"json",
		success:function(response) {
			if($("ul.feed li:first").html() != response)
			{
				$("ul.feed").prepend('<li>' + response + '</li>').find("li:first").hide().show("blind", {percent: 100}, 350);
				$("ul.feed li:last").remove();
			}
		});
    }, 2500);
});
Will fetch data from feed.php every 2.5 seconds, which should return the latest happening. If it's already the latest one, it won't update.


feed.php should just grab the latest object from a database template, and echo it out.
If you're implementing this, use MySqli.
Code:
//setup your connection
$item = mysql_fetch_assoc(mysql_query("SELECT * FROM happenings ORDER BY id DESC LIMIT 0,1"));
echo $item['content'];
HTML:
Code:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<ul class="feed">

</ul>
CSS:
Code:
.feed {
	height: 240px;
}
.feed li {
	padding: 12px;
	border-bottom: 1px solid #122;
	width: 90%;
	margin-left: 5px;
	color: #b19e7a;
}
Then the rest takes place in the source. At the event you wish to add to the database (such as loot a DB, login/logout etc) simply just add a row to the table, simple as that.
09/11/2013 14:33 mike12255#30
i was more interested in the C# aspect of this, I could easily handle the web dev side but when it comes to C# i get lost haha regardles, nice release. Thanks.