vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Chat Modifications - Dream's Chatbox (https://vborg.vbsupport.ru/showthread.php?t=131002)

arco 05-01-2007 08:43 PM

I did update the chatbox.php earlier. :)

Holy macaroni! I got it working!
Changed the following:

Code:

    if ($tagarounduser) {
        $tagopen = "<$tagarounduser>";
        $tagclose = "</$tagarounduser>";
    }

To:

Code:

    if ($tagarounduser) {
        $tagopen = "<span title=\"$time\"><$tagarounduser>";
        $tagclose = "</$tagarounduser></span>";
    }

And the following from:

Code:

    echo "\n".'<span id="shout'.$shout['shoutid'].'">['.$time.'] '.$tagopen.$username.$del."$tagclose: ".$parsed.'<br /></span>';
To:

Code:

    echo "\n".'<span id="shout'.$shout['shoutid'].'"> '.$tagopen.$username.$del."$tagclose: ".$parsed.'<br /></span>';
So now the time of the message is only shown when holding the mouse over the username. I'm happy! :D

Dream 05-01-2007 08:50 PM

Nice grats! :D

I didn't know you could do that with <span>.

I'll see to adding that in the next version so you won't need to edit it everytime.

arco 05-01-2007 09:00 PM

That would be nice Dream. And yeah, it's amazing what you can achieve by experimenting a little. :)

Mark.B 05-01-2007 10:00 PM

Quote:

Originally Posted by Dream (Post 1239217)
Thanks Badger :)

That happens to everyone, when a user loads the forum homepage, it loads the chatbox after, making the user appear on the chatbox in Who's Online. I'll see if I can add something to fix that.

I'm not finding that actually....I've tested this with a test account, if someone loads forumhome they show as viewing the index. I think.

Mark.B 05-01-2007 11:01 PM

I have to say I've been using this for a while now and it knocks spots off any other shoutbox....it's quick, clean, efficient, and doesn't get you nasty emails from your host about use of server resources!

The only modification I made to it was to adapt some of the code into a cron job so that shouts are pruned automatically every 48 hours via a vB scheduled task.

Dream 05-01-2007 11:11 PM

Glad to hear it :) let me know if you have problems with the new ajax.

Did you like the smilies feature?

Mark.B 05-01-2007 11:21 PM

Quote:

Originally Posted by Dream (Post 1239340)
Glad to hear it :) let me know if you have problems with the new ajax.

Will do...no problems so far in any browser, despite me playing with the layout slightly....nothing much, just added the date into each shout line and made the input box and shout button invisible to guests. I managed not to break it doing that, which has impressed me. :D
Quote:

Did you like the smilies feature?
Yes...that's perfect, thanks!

Mads 05-01-2007 11:40 PM

nice work!

eurofunny 05-02-2007 12:55 PM

Great Work, thx from Germany.

Is there a way to post every hour a text with cron?? Is there a way then post please the script for this and post please to autoprune after 24 hour.

Thx for this Chatbox i clicked install :)

Dream 05-02-2007 01:06 PM

Hello, glad you liked it :)

This is possible, but you would have to code two php files to be called by vBcron every hour and another every 24 hours. I'm not sure how vBcron works, but maybe Mark. B could help you out, he made an auto prune file, send him a PM.

Mark, could you share your cron script? I could add it to the zip file with instructions on how to set it up.


All times are GMT. The time now is 07:57 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.01674 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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