vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Chat Modifications - VSa - ChatBox (AJAX) (https://vborg.vbsupport.ru/showthread.php?t=235271)

Oracle simsim 06-06-2010 09:05 PM

Quote:

Originally Posted by ti07shadow (Post 2049400)
Look on google on how to make a cron job that can run a php file then make a php script that runs and changes the on off status of the item, of course the php file must not be accessible client side, so keep it out of the www folder and have the cron job run that file.

in the php file have a if function like

if (date("h")=="11"){
mysql_query("UPDATE vsa_chatbox SET vsa_chatbox_status='1' WHERE id='1'");
}else{
mysql_query("UPDATE vsa_chatbox SET vsa_chatbox_status='0' WHERE id='1'");
}



of course that script there wont work without the correct table and column names along with the correct id for the where and the fact you need to connect to the database :p

WOW, you are wonderful

I made a mistake in my last post. I meant that the chatbox should OPEN in (9 pm) then CLOSE in (11 pm)

I know how to setup any cronjop but I was in need to the php code itself

now regarding the vsa chatbox product itself and in the light of your code I can write the code like this:

<?php
if (date("h")=="9")
{
mysql_query("UPDATE setting SET value='1' WHERE varname='vsachatbox_enable_product'");
}
else
{
mysql_query("UPDATE setting SET value='0' WHERE varname='vsachatbox_enable_product'");
}

?>

then the only what I need to do is to set the cronjob to run once at 9:00 pm then run it again once at 11:00 pm

but I have questions about that:

1. As far as I know, the settings of vbullein are saved in cache for quick read without need to go to the database each time to read the settings

2. if the chatbox is running, will this stop it immediatly ? or it will just prevent new comers from entering the chat. ? (VSA Chatbox read the setting in each refresh or only when it loads first time ?)

3. How do I connect to the database properly ? OMG

in any way. I will try it on my test server.

Thank you ti07shadow

raagaswaram 06-07-2010 08:13 AM

how to make it work on mobile style?.

Ozymandyus 06-07-2010 01:16 PM

Quote:

Originally Posted by raagaswaram (Post 2049792)
how to make it work on mobile style?.

I wouldn't recommend running it in a mobile style...it gets pretty tiny and bogs down most platforms.

nealohara 06-07-2010 04:33 PM

Can this be integrated as a widget into VBCMS?

keweedsmo 06-07-2010 09:05 PM

Ever since I installed this mod there has been a HUGE number of guests getting stuck as online. They are always "Viewing ChatBox Archive". How can I fix this, or disable the archive completely? Some of them are bots, but their user agent isn't always a bot. It seems really strange to me. Anyone else having this issue?

Bansheebob 06-08-2010 02:04 AM

Worked fine for weeks, today the smilies are gone and noone can post messages?

Bansheebob 06-08-2010 02:12 AM

Definitley some kind of bug, uninstalled then reinstalled and still no smilies and cant post messages. I have done nothing to my site in weeks to affect this mod. It just went down the toilet for apparently no reason. Uninstalling again ):

raagaswaram 06-08-2010 11:10 AM

Hi,

Can you guide how to make Vsa chatbox to work in mobile style?.I want to try it,wont be many members use it may be less than 5-10.

Dennis B 06-08-2010 11:32 AM

Valter,

One of my users may have found a bug. It's not something that would happen often, but...

Open two identical windows/tabs in your browser with the page where the chatbox is active. You must be logged in at the forums and chatbox in both. Then:
  1. In tab "A", log out of the chatbox;
  2. In tab "B", log out of the forums;
  3. In tab "A", log back in to the chatbox.
The forum page reloads inside the chabox! :)

keweedsmo 06-08-2010 12:00 PM

Nobody can answer why 100's of "Guests" appear in the Chat Archives section whenever I have the chat enabled? When it's disabled the number of guests instantly drops to around 6-10. I'm about to uninstall this thing and get a different chat....


All times are GMT. The time now is 08:36 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.05821 seconds
  • Memory Usage 1,744KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (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