POSTPACIFICFORUM ARCHIVE · 2004–2007Архив сообщества

[Share] 7Signs Status page

31 сообщений · m4rk · 08.01.2007 22:06

#1

[Share] 7Signs Status page

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 · 424 893 байт · файл отсутствует в копии
Исходный текст
#2
thxx i test :D
Исходный текст
#3
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
Looks fine to me. I gave it a quick overview in Dreamweaver. Thanks for the share.
Исходный текст
#5
Ty.. to make it work 100% i had to <? $day_event = str_replace("-","",$day_event); ?>
Исходный текст
#6
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
it doesent work In C1-C4 ModdeD? :(
Исходный текст
#8
I'm afraid not... :s
I reshared a seven signs status panel made for c1-c4 moded here (last page)

EDIT: I made an error and inverted dawn and dusk, will fix it ASAP
Исходный текст
#9
Version 1.2! I think we can say that now this ssq status page is 100% correct :)
Исходный текст
#10
I have an easier way... store procedure lin_GetSSQStatus return all the values you need directly...


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);


And later using the original script... only modifying javacript vars to link with php vars...


<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>


$ntdDay and $currTime is possible to get like in your script.
$maxPointWidth i set it to 150 like original script.
Исходный текст
#11
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
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
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
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
Something a lot usefull ^^

Ty =)
Исходный текст
#16
not working
Исходный текст
#17
What do you mean not working?
Исходный текст
#18
SSQ_v.1.4.rar not work for me
Исходный текст
#19
Цитата · kepler001
SSQ_v.1.4.rar not work for me


Download WinRAR ? :drunken:
Исходный текст
#20
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
Цитата · kepler001
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


Same problem.

@Kepler001: podrias pasarme el link del status que funciona correctamente? Gracias.
Исходный текст
#22
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
http://peru.sytes.net:8000/ssq_v.1.5/status.php

hmm day not correct and not have imagen xD
Исходный текст
#24
fixed, I think.
Исходный текст
#25
http://peru.sytes.net:8000/ssq/status.php
very thanks Its perfect :DDDDDD
Thanks friends
Исходный текст