Hello,
I am wondering how to create the User Login widget which can go on websites and/or forums?
If you could help that would be fantastic!
Thank You,
Chris
Printable View
Hello,
I am wondering how to create the User Login widget which can go on websites and/or forums?
If you could help that would be fantastic!
Thank You,
Chris
What widget O_O.
Basically it shows who logins into the game - Like on Terra, fine Terra has it but yeah its cool, it just auto refreshes when someone logs in.
i guess it refreshes every one second, donno if what you said is possibro.
You mean live logins.
I made the one for Sin, nothing fancy, just a quick job.
Would you be so kind to release it Bakey ^^? Much appreciated if you do :)!
Sorry, since I am a "shit dev", I don't feel good releasing it to other people because, it might have vulns in it.
Ok then :)! No problem. not gunna lose sleep over it O_o
dat vulns, So scary x.x I shall look into this! Although I doubt I'll figure it out xD.
K so, I made something really quick, based off of another script I found in the forums. Yea I don't know php... Also it takes character name instead of account name. It does work, just tested it.
PHP Code:<?php
// CONFIG
$odbc_host = '';
$odbc_user = '';
$odbc_pass = '';
// CONFIG END
echo '<h1><center>Last 5 players to log on</h1></center>';
$odbc_link = odbc_connect ( "Driver={SQL Server};Server=".$odbc_host.";Database=World00_Character;" , $odbc_user , $odbc_pass );
$sql[1] = 'SELECT TOP 5 nCharNo, sID, dLastLoginDate FROM tCharacter WHERE bDeleted = 0 ORDER BY dLastLoginDate DESC';
$rs[1] = odbc_exec ( $odbc_link , $sql[1] );
if ( !$rs[1] )
{
exit ( 'Error in SQL' );
}
$i = 1;
echo '<table width="100%">';
echo ' <tr>';
echo ' <td>';
echo ' <h3>#</h3>';
echo ' </td>';
echo ' <td>';
echo ' <h3>Name</h3>';
echo ' </td>';
echo ' </tr>';
while ( odbc_fetch_row ( $rs[1] ) )
{
$sID = odbc_result ( $rs[1] , 'sID' ); ;
$sID = str_replace ( 'ä' , 'ä' , str_replace ( 'Ä' , 'Ä' , str_replace ( 'ö' , 'ö' , str_replace ( 'Ö' , 'Ö' , str_replace ( 'ü' , 'ü' , str_replace ( 'Ü' , 'Ü' , str_replace ( 'ß' , 'ß' , $sID ) ) ) ) ) ) );
$nCharNo = odbc_result ( $rs[1] , 'nCharNo' );
echo ' <tr>';
echo ' <td>';
echo ' '.$i;
echo ' </td>';
echo ' <td>';
echo ' '.$sID;
echo ' </td>';
echo ' <td>';
echo ' </tr>';
$i++;
}
odbc_close ( $odbc_link );
echo '</table>';
?>
Completely wrong.
1. That's character logins, not account logins.
2. That won't auto-refresh.
3. You're not caching so you're going to put a lot of stress on your server, doing query-per-second for every person viewing the page (After you get the refresh part fixed).
4. The code is just plain out messy, I could sit here and point out things that are bad practice.
Thanks for letting me know Terra's didn't work, forgot about it c: Fixed -*-*
And btw, you could just look at T's html source and pretty much figure out how it was done.
http://tll2.extrinsicstudio.com
#1 I think i said that for it being character.
#2 yea true.
I shall do that after looking into it!...cause I just have no idea.
I don't know php and i pretty much just copied somebody else's code for something else and changed a few things.
late again... We all already see that.
ok i have to say this Bakey who in there right mind said your "shit Dev" i would like to know this cause truthfully that person needs to take a .357 load it insert in there mouth and pull the trigger cause i know that you are not a "shit Dev" bakey your one of the best out there so i think someone is a complete retard and the world would be better off with out that person in it but yeah im sorry someone said that to you bakey
Ceila did, on another forum. Things get around though, you know?
well bakey what i said is fact and he is just gonna have to deal with the fact that anyone who knows anything knows that you are a much better dev than ceila on one of ur bad days and ceila can go fuck him or herself cause i know u do so much better and ceila is just mad cause you wont teach the knowledge to him or her so ceila can go right on hating because we all know bakey haters will hate so i say this "fuck you ceila u wanna rag on someone rag on a noob like me dont lie about ppl who are better than you at developing"
lol - I never said I could dev ^^? So basically it doesn't really affect me saying I can't dev. Anyhow I wont lie I did say Bakey is a shit dev; but that is just for Fiesta. Not things like PHP, or such. I haven't really seen any of Bakey's PHP or SQL work so I can't judge that, but from Dusk work he did; I didn't really like it, thought it was pretty crap. So josh please Don't get involved which shit you don't know about thx.
I would publicly like to apologise to you Bakey if this really made offended.
@ceila
bakey's a shit dev? lolz, he might not be as good in fiesta deving as he is in php/web deving, but his deving skills are still not shit.
I'd like to see anyone try to Dev Dusk with 0 access and relying on Seph to do everything. Note that he's AFK 99% of the time. It took him months for him to just switch forums, and previously with the XenForo forums it took another couple months for him to add some sections I had been asking for.
Seph broke the web control, that's why I said I had to wait on him every time. Get your shit straight before you come ranting.
Kreain? Web dev? Don't make me laugh. I know numerous people that said your code was shit.
Now stop flaming me and go beg Stu and Muno to join Terra, send them some more files and tell them some more of your sob stories.
;D, I love this anger from you Bakey, now, have you seen any of my actual serious code? I honestly don't think you have :), and beg muno and stu to join them? they ASKED ME :), I sent them a corrupt DLL a year ago when they asked, I even have the paypal receipt of which they paid me $50 as a 'gift'. *quick note, I have no beef with Terra anymore, Stu and Muno are fine in my eyes.*
Also, name these numerous people, and ask them to show me my own code, because I doubt they've seen any, because anything so far from be is the Dusk REST, which was made in a rush, and made to work, not to be critiqued or super efficient, it does its job.
Let alone Dusk was easy as fuck to manage in the state I left it, I saw the files which were there when you left, least to say they were fucking terrible. Also to state the fact that if your such an amazing web dev, then why didn't you do ANYTHING for Seph because EVERYBODY knows he needed it.
I already told you I didn't have access. Plus, he said he was fixing it on his own, which I don't think he ever did.
What a corrupt DLL, mate.
http://i45.tinypic.com/27zyss9.png
Hahaha, thats not even the layout, hahahaahahahahahahahaha,hahahahahaahahahahahahahahahahah, what a fail, hahahahaha -caps may be toned down when i post this-
THE FOLDERS EVEN PREDATE THE VICTUS FILES, LUL, LUL.
I know they don't work/not real, but just to show you sent more than a "DLL". Stop digging yourself in lies.
How the fuck does that show I sent them anything when they even predate our files? Are you fucking dumb? All I did was drop a corrupt OS DLL (corrupt because I opened it in hex and deleted SOOOO MUCH random shit) on the dedi they bought when they asked me to join them around a year ago.
Less alone you guys assume that Victus doesn't use a Login/Account etc. Tarrrrrddddd.
I've seen the Victus files too, Moment showed me. I thought these were supposed to be OS files, not Jap. But anyways, they told me they fucked you over and you told me you fucked them over so I'm just going to get my popcorn out and wait until one of them replies.
OOOHHH GOODY, HERES THE GOOD PART OF THE MOVIE.
o-o...
Alright, il be waiting, despite I have no anger towards them, if they're saying as you are, that they apparently fucked me over, then yeah, il be right here.
Because the story is simple, they ask me to join, I say sure, transfer a corrupt DLL, get sent $50, wallah, I didn't even mean to be a dick, I was gonna stop it at the part I sent the corrupt DLL, didn't realize they were gonna end up getting a dedi and then send me $50.
like i said hater will hate and i know 100% bakey is one of the best developers out there and not just web/php fiesta as well i have seen his work and ill be honest some of my files are his(thx bakey) and they work as good as outspark files do so when all of u can get on his caliber come back and say wow you were right bakey is good cause when u do get to that lvl he will still be better than you so stop flaming him and except the fact that bakey makes u look like a noob so go be a hater and hate somewhere else where his reputation doesnt suffer because of lies bakey i got your back bro i know what you can do
Erm, after spending the past month working on Risorial fixing his failures and mistakes, I can say that he isn't the best or even anywhere near one of the best developers.
If I had to choose between working for Bakey or a banana I would pick the banana.
Why?
Because it makes no mistakes, its not rude, it cooperates, and it tastes good.
Bakey fits none of the above ^^
Hurry up with victus and release so I can steal your files kreain
Oh but when it comes to websites and php he does know what he is doing, until he gets to the design part, learn to use colour! :)
^i bet thats not the reason you chose the banana.
also, you dont have to be a designer, as long as you code the template you're given, something he didnt get.
He had all the files he needed to create a website for risorial.
He was also asked to design a decent looking website and was paid for doing it all.
He did a great job coding the site, the design was litterally a background :O
$40 to copy paste something wow amazing !
He still sucks with fiesta files xD