Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 08.01.2007, 22:06   #1
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default [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 — 424893 байт
m4rk is offline  
Old 08.01.2007, 22:19   #2
l2serverfull
Архивный участник
 
Join Date: Sep 2006
Posts: 64
Default

thxx i test
l2serverfull is offline  
Old 08.01.2007, 22:26   #3
Rexx
Архивный участник
 
Join Date: Jun 2006
Posts: 64
Default

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
Rexx is offline  
Old 08.01.2007, 22:53   #4
mcrabben7
Архивный участник
 
Join Date: Apr 2006
Posts: 461
Default

Looks fine to me. I gave it a quick overview in Dreamweaver. Thanks for the share.
mcrabben7 is offline  
Old 09.01.2007, 06:36   #5
horyfilipe
Архивный участник
 
Join Date: Jul 2005
Posts: 242
Default

Ty.. to make it work 100% i had to <? $day_event = str_replace("-","",$day_event); ?>
horyfilipe is offline  
Old 09.01.2007, 08:15   #6
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

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.
m4rk is offline  
Old 09.01.2007, 10:39   #7
AsterisKSM
Архивный участник
 
Join Date: Jun 2006
Posts: 163
Default

it doesent work In C1-C4 ModdeD?
AsterisKSM is offline  
Old 09.01.2007, 11:35   #8
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

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
m4rk is offline  
Old 09.01.2007, 13:41   #9
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

Version 1.2! I think we can say that now this ssq status page is 100% correct
m4rk is offline  
Old 09.01.2007, 14:12   #10
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

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);
And later using the original script... only modifying javacript vars to link with php vars...

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>
$ntdDay and $currTime is possible to get like in your script.
$maxPointWidth i set it to 150 like original script.
FidoW is offline  
Old 09.01.2007, 14:31   #11
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

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.
m4rk is offline  
Old 09.01.2007, 18:32   #12
Osito2Dancer
Архивный участник
 
Join Date: Mar 2005
Posts: 442
Default

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
Osito2Dancer is offline  
Old 17.01.2007, 00:32   #13
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

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.
m4rk is offline  
Old 17.01.2007, 11:16   #14
kin
Архивный участник
 
Join Date: Sep 2006
Posts: 882
Default

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;
kin is offline  
Old 25.02.2007, 19:59   #15
JotaC
Архивный участник
 
Join Date: Mar 2006
Posts: 69
Default

Something a lot usefull ^^

Ty =)
JotaC is offline  
Old 17.06.2007, 02:37   #16
kepler001
Архивный участник
 
Join Date: Jun 2005
Posts: 549
Default

not working
kepler001 is offline  
Old 17.06.2007, 07:44   #17
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

What do you mean not working?
m4rk is offline  
Old 17.06.2007, 14:02   #18
kepler001
Архивный участник
 
Join Date: Jun 2005
Posts: 549
Default

SSQ_v.1.4.rar not work for me
kepler001 is offline  
Old 17.06.2007, 14:35   #19
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by kepler001 View Post
SSQ_v.1.4.rar not work for me
Download WinRAR ? :drunken:
FidoW is offline  
Old 17.06.2007, 19:09   #20
kepler001
Архивный участник
 
Join Date: Jun 2005
Posts: 549
Default

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
kepler001 is offline  
Old 17.06.2007, 22:17   #21
katso
Архивный участник
 
Join Date: Mar 2006
Posts: 70
Default

Quote:
Originally Posted by kepler001 View Post
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.
katso is offline  
Old 17.06.2007, 22:47   #22
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

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 ^^
m4rk is offline  
Old 17.06.2007, 23:58   #23
kepler001
Архивный участник
 
Join Date: Jun 2005
Posts: 549
Default

http://peru.sytes.net:8000/ssq_v.1.5/status.php

hmm day not correct and not have imagen xD
kepler001 is offline  
Old 18.06.2007, 06:17   #24
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

fixed, I think.
m4rk is offline  
Old 18.06.2007, 14:47   #25
kepler001
Архивный участник
 
Join Date: Jun 2005
Posts: 549
Default

http://peru.sytes.net:8000/ssq/status.php
very thanks Its perfect DDDDD
Thanks friends
kepler001 is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 14:25.