![]() |
|
|
#1 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
I just found this on my old files so I spent 10 minutes adapting it for retail c4 official. Just put your SQL IP, user and PASS (By the way i Recommend that you use a limited user that only has SELECT rights on the needed tables)
I think everything is correct, if you do not agree then please just say it and we'll discuss it here. Any improvement done to this will be great, I'm sure about it. Original SSQ status page made by KIRALEX. version changes: 1.1 -Converted to C4 Official 1.1a -fixed dusk/dawn inversion -Set max score for contributing seal stones to 500 (in preparation to taking into account festival of darkness scores). 1.2 -New way to do things, why use long queries when you can modify a stored procedure so that it does the job for you? -Now points are showed correctly, the total being 1000, 500 for seal stones and 500 for festival. 1.3 -Fastest and less complicated way to do things. Thanks Fidow for your fixes! 1.4 -The day of the event was messed up! Now fixed! 1.5 -Fixed image links (you could have done it yourself and posted the fix here ¬¬) 1.6 -Fixed image and day for leechz0rs Вложения из исходного сообщения (сами файлы в копии отсутствуют): SSQ_v.1.6.rar — 424893 байт |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Sep 2006
Posts: 64
|
thxx i test
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Jun 2006
Posts: 64
|
Thanks for the share, I have an the old version which I was going to adapt but you beat me to it and saved me some time.
Thanks Rexx |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Apr 2006
Posts: 461
|
Looks fine to me. I gave it a quick overview in Dreamweaver. Thanks for the share.
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Jul 2005
Posts: 242
|
Ty.. to make it work 100% i had to <? $day_event = str_replace("-","",$day_event); ?>
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
Mmh I think this status page fails as it only shows points given by seal stones turned to the priests... I think official status page gives 500pts to seal stones and 500 to festival, I'll try to implement it later.
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Jun 2006
Posts: 163
|
it doesent work In C1-C4 ModdeD?
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
Version 1.2! I think we can say that now this ssq status page is 100% correct
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
I have an easier way... store procedure lin_GetSSQStatus return all the values you need directly...
Code:
DEFINE("SSQ","USE lin2world EXEC lin_GetSSQStatus");
$result = mssql_query(SSQ);
$round_number = @mssql_result($result, 0, 0);
$dawnPoint = @mssql_result($result, 0, 1);
$twilPoint = @mssql_result($result, 0, 2);
$seal1 = @mssql_result($result, 0, 3);
$seal2 = @mssql_result($result, 0, 4);
$seal3 = @mssql_result($result, 0, 5);
$time = @mssql_result($result, 0, 10);
$ssStatus = @mssql_result($result, 0, 11);
Code:
<script language="JavaScript" type="text/javascript"> var nthDay = <? echo $ntdDay; ?>; var currTime = '<? echo $currTime; ?>'; var ssStatus = <? echo $ssStatus; ?>; var dawnPoint = <? echo $dawnPoint; ?>; var twilPoint = <? echo $twilPoint; ?>; var maxPointWidth = <? echo $maxPointWidth; ?>; var seal1 = <? echo $seal1; ?>; var seal2 = <? echo $seal2; ?>; var seal3 = <? echo $seal3; ?>; </script> $maxPointWidth i set it to 150 like original script. |
|
|
|
|
#11 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
Thanks for your fixes and for opening my eyes on using directly the stored procedure.
As I don't use the original script, I just adapted your suggestion to the php version. |
|
|
|
|
#12 |
|
Архивный участник
Join Date: Mar 2005
Posts: 442
|
There is a catch though:
If Dusk or Dawn wins the festival on every category, it doesnt matter how much seal stones does the other side donate, the festival overrides the seal contribution (so, if you win all festival categories, you win 7 signs, no matter what). I think this is the Official setup for SSQ (or so i've read on some pages, im not sure). Ill fix this on my side, perhaps you should do it. On another note: I was just importing the SSQ Page from C1.4 to C4 Retail, and now i find you here posting an already done job. Kudos to you man, good job! Oso |
|
|
|
|
#13 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
Sorry guys, did not notice things were messed up. They should be fine now.
Please if you find any bugs... tell me, or fix them yourself and report them here. |
|
|
|
|
#14 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
It shows me Tuesday, but today is Wednesday
![]() Had to add 1 day, but not sure it will work at the end of the week. $day = $day_event+1; |
|
|
|
|
#15 |
|
Архивный участник
Join Date: Mar 2006
Posts: 69
|
Something a lot usefull ^^
Ty =) |
|
|
|
|
#16 |
|
Архивный участник
Join Date: Jun 2005
Posts: 549
|
not working
|
|
|
|
|
#17 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
What do you mean not working?
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: Jun 2005
Posts: 549
|
SSQ_v.1.4.rar not work for me
|
|
|
|
|
#19 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
|
|
|
|
|
#20 |
|
Архивный участник
Join Date: Jun 2005
Posts: 549
|
hahahahahaa
nop http://peru.sytes.net:8000/ssq/status.php image don´t work :S and status not´s correct http://peru.sytes.net:8000/ss/ its correct |
|
|
|
|
#21 | |
|
Архивный участник
Join Date: Mar 2006
Posts: 70
|
Quote:
@Kepler001: podrias pasarme el link del status que funciona correctamente? Gracias. |
|
|
|
|
|
#22 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
images fixed, about the other problem you'll have to fix it yourself...
I'm not gonna share nor fix anything else in public, tired of people that don't even take the time to make a simple fix and share it ^^ |
|
|
|
|
#23 |
|
Архивный участник
Join Date: Jun 2005
Posts: 549
|
|
|
|
|
|
#24 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
fixed, I think.
|
|
|
|
|
#25 |
|
Архивный участник
Join Date: Jun 2005
Posts: 549
|
|
|
|
|
|