vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Serverstatus (https://vborg.vbsupport.ru/showthread.php?t=41404)

chr@nox 07-23-2002 02:05 PM

Quote:

Originally posted by Dark_Wizard
Nice addition and I have something very similar added to my "Server Stats" hack. This is a little nicer and I would like to add it to my next version of my hack with the credit of course going to you if thats ok? Let me know.
ofcourse u can :)
i'm glad you guys like it

*blush*

Pady 07-23-2002 06:00 PM

tops hack m8 - installed it onto me localserver with no problems - just one thing tho... the delete server doesnt seem to do anything

Dark_Wizard 07-23-2002 10:14 PM

Quote:

Originally posted by Pady
tops hack m8 - installed it onto me localserver with no problems - just one thing tho... the delete server doesnt seem to do anything
Change this:
PHP Code:

if ($action=="remove") {

echo 
"<p>Are you sure you want to delete the Server?</p>\n";
  echo 
"<p><a href='serverstatusadmin.php?serverid=$serverid&action=kill'>Yes</a></p>";



to this:
PHP Code:

if ($action=="remove") {

    
doformheader("serverstatusadmin","kill");
    
makehiddencode("serverid",$serverid);
    
maketableheader("Confirm deletion");
    
makedescription("Are you sure you want to delete this server?");
    
doformfooter("Yes","",2,"No");


not tested but should work...

Foxtroter 07-24-2002 06:51 AM

nice :D

chr@nox 07-24-2002 12:18 PM

Quote:

Originally posted by Dark_Wizard


Change this:
PHP Code:

if ($action=="remove") {

echo 
"<p>Are you sure you want to delete the Server?</p>\n";
  echo 
"<p><a href='serverstatusadmin.php?serverid=$serverid&action=kill'>Yes</a></p>";



to this:
PHP Code:

if ($action=="remove") {

    
doformheader("serverstatusadmin","kill");
    
makehiddencode("serverid",$serverid);
    
maketableheader("Confirm deletion");
    
makedescription("Are you sure you want to delete this server?");
    
doformfooter("Yes","",2,"No"); 

not tested but should work...

that should do the trick yea
i kinda forgot about it i think :|
:o
but well...thanx for bringing the support

Pady 07-24-2002 01:38 PM

Quote:

Originally posted by Dark_Wizard


Change this:
PHP Code:

if ($action=="remove") {

echo 
"<p>Are you sure you want to delete the Server?</p>\n";
  echo 
"<p><a href='serverstatusadmin.php?serverid=$serverid&action=kill'>Yes</a></p>";



to this:
PHP Code:

if ($action=="remove") {

    
doformheader("serverstatusadmin","kill");
    
makehiddencode("serverid",$serverid);
    
maketableheader("Confirm deletion");
    
makedescription("Are you sure you want to delete this server?");
    
doformfooter("Yes","",2,"No"); 

not tested but should work...

it gave this error when tested
Code:

Parse error: parse error in /admin/serverstatusadmin.php on line 100
I tried adding a "}" after the changed code - this gets rid of the phase error but still doesnt diplay the delete message or remove the server fromt he listing.

BTW thanx for the very quick response

Dark_Wizard 07-24-2002 01:42 PM

Quote:

Originally posted by Pady


it gave this error when tested
Code:

Parse error: parse error in /admin/serverstatusadmin.php on line 100
does there need to be any further "}" after this code?

BTW thanx for the very quick response

Oops...sorry about that, yes it does need a closing brace. I updated the code above.

Man 07-24-2002 04:41 PM

Nice hack Chrat, gonna update mine now because of you :)
Cya on IRC

Great work, Greets From Man

DemiNeo0101 07-24-2002 05:23 PM

I got a Very Little Modifyed Version Running here:
http://www.undergroundcandy.net/forums/

chr@nox 07-25-2002 12:44 AM

nice :)
modded mine too ;)
http://www.resum.net/forums/


All times are GMT. The time now is 07:28 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01202 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (6)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete