vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Please help me finalize the HACK of the Year!!! (https://vborg.vbsupport.ru/showthread.php?t=32450)

humble 11-17-2001 08:19 PM

1 Attachment(s)
If turned off....

humble 11-17-2001 08:21 PM

1 Attachment(s)
and of course...

If the refresh in every page is too much for you, or your users... when built in the footer...

Just use the direct URL and IE window , (once logged in the board)...

|DarkManX| 11-17-2001 08:34 PM

kick ass, i hope you can get it released soon!!

Lesane 11-17-2001 08:39 PM

Looks very tight man, i'm looking forward to this hack.

the_sisko 11-18-2001 12:13 AM

Great stuff man, hope you get this one done soon!!!!

humble 11-18-2001 01:35 AM

A few more tweaks and features to go...

need a bit more help though Pretty please!!!

I'm looking to create a URL, that will, with a single click, turn off the chat system....

So in member.php I created a new action statment..

PHP Code:

// ############################### start phpchat off ###############################
if ($action=="phpchatsysoff") {
  
$templatesused "redirect_updatethanks";
  include(
"./global.php");
// check permissions, then disable the php chat system

    
if ($bbuserinfo[userid]==or $permissions['canmodifyprofile']==0) {
      
show_nopermission();
    } else {
      
$DB_site->query("UPDATE user SET phpchatsys = 0 WHERE userid='$bbuserinfo[userid]'");
      eval(
"standardredirect(\"".gettemplate("redirect_updatethanks")."\",\"usercp.php?s=$session[sessionhash]\");");
    }


and I put it right before the Modify Profile code....

By all rights, it should update the database for your user account, and set the flag off, (just like doing it via the UserCP, and saving)..

When I do it via the UserCP, it works great.
and during the standard redirect , it does disable the system...

But for some reason,.... when I do

http://myurlhere/member.php&action=phpchatsysoff

It says Thanks! and does the redirect..., but does NOT do the DB set command and change the phpchatsys field in the users profile 8(...

Please help!

DjSap 11-18-2001 07:21 AM

This should work

PHP Code:

// ########################## phpchat off ########################
if  ($action=="phpchatsysoff") {
  include(
"./global.php");

  
$DB_site->query("UPDATE user SET phpchatsys=0 where userid='$bbuserinfo[userid]'");

  
$goto="usercp.php?s=$session[sessionhash]";
  eval(
"standardredirect(\"".gettemplate("redirect_updatethanks")."\",\"$goto\");");
#end phpchat off 


GameCrash 11-18-2001 11:04 AM

This is a great thing! When will it be released?

And wher can I find the phpMyChat thing?

|DarkManX| 11-18-2001 02:44 PM

i can't wait for this thing to be released!!

looks great man!!!!

humble 11-18-2001 05:17 PM

1 Attachment(s)
DJsap... you are my new BEST FRIEND!!!!

I love you man!... Thanks ... you're 2 for 2!!!!

Ok, some more teasers....

Of course, we have the UserCP option, to enable or disable, and NOW, we have the scripts for a single click url, that will also Enable or Disable the system...

We have the:

http://www.dynamicdrive.com/dynamicindex1/davidmenu.htm

Slide system all tweaked out as well.... so here's my 3 links to the new PHP chat system.

Internal means, Enabled in the footer, on every page (as seen above).. External, of course is launched in a new IE window, and leaves the phpchatsysoff.


All times are GMT. The time now is 01:23 AM.

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.01068 seconds
  • Memory Usage 1,746KB
  • 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_php_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