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 Addon (New Posts/New Reply Notification) (https://vborg.vbsupport.ru/showthread.php?t=240772)

Inflikted 04-18-2010 10:00 PM

VSA Chatbox AJAX Addon (New Posts/New Reply Notification)
 
1 Attachment(s)
I originally had this posted in the VSA Chat thread however with the endless amount of posts the script is somewhat lost in there :), plus I have a small update for it to remove the notification for edited/deleted posts which many people asked for, I apologize I posted the outdated version before.


UPDATE April 27th 2010
-Added Arabic Translations Thanks Dr.osamA

UPDATE April 24th 2010
-Added in failsafe incase you don't use html markups, to default back to admincp option choice for userid color

UPDATE April 24th 2010
-Added new member registration notification
-Added username html markup for colors
-Added option to turn off various plugins/products

UPDATE April 21st 2010
-Created a product, so its easier to edit the options for people :)
-Option to name your RSSFeedBot

New Installation Instructions:
1. Make sure VSA Chatbox AJAX is installed (grab it here https://vborg.vbsupport.ru/showthread.php?t=235271)
2. Install the attached xml below in your Product section of AdminCP
3. In vbulletin options you can edit the product in VSA Chatbox Addons category

Update Instructions:
1. Remove all plugin first
2. Install this new product
3. In vbulletin options you can edit the product in VSA Chatbox Addons category

Thats about it :)

You can see an example in the photo below or on my website I have it running as well Demo: http://www.freefrag.com

Coming Soon...
Additional Requested Options from members
-Arcade win announcements
-New members announcement
-Sound Alert Option

Juggernaut 04-19-2010 02:55 AM

Tagged, will try right now :D

Juggernaut 04-19-2010 03:38 AM

How do I change the font color, it is lost in my forum skin, also, I haven't been able to translate the language with phrases :)

Inflikted 04-19-2010 03:44 AM

you can modify the line with $message=... it's simply bbcoding involved. Currently its

First color is set to silver for the username. 2nd Color is set to white for the rest of the thread. You can remove the bbcoding and it will default to the normal color. I apologize my theme is set to dark so I left it for a dark theme, anyone with a bright theme won't be able to see squat lol. I'll post a version stripped of bbcode in a bit.
PHP Code:

$message '[color=silver][b]' $username '[/b][/color][b][/b][color=white] replied to the thread[/color] ' $titleprefix unhtmlspecialchars($this->info['thread']['title']) . $titlesuffix


Kingdombuilder 04-19-2010 03:52 AM

At the risk of looking like a complete idiot what is the ID for that you speak of to change. Trying to figure out what changing it does... Great mod by the way, it is just what I was looking for...

Inflikted 04-19-2010 03:58 AM

sorry I fixed the post, instead of id it should have said userid. By default its assigned to 1. But you can create a fake forum account for a PostBot or w/e you want to call it lol. and then assign the userid of the postbot. As I have done on my site.

Juggernaut 04-19-2010 04:03 AM

Exelente mod, Working perfectly now :D

Kingdombuilder 04-19-2010 04:49 AM

Thanks bro will get it done now... I'm loving this mod so far...

I do however see one thing. the new threads are not updating in the chatbox, but the reply post are. Any suggestions?

Inflikted 04-19-2010 04:56 AM

you would need to copy/paste whats in your plugin for new thread, possibly some edit you made went wrong.

Kingdombuilder 04-19-2010 05:46 AM

now when i make a new thread i get this error:

Edit: Problem fixed thanks...

AURFSCAN 04-19-2010 05:53 AM

needs to go to the last post instead of going to the first

Kingdombuilder 04-19-2010 05:58 AM

See post below....

Kingdombuilder 04-19-2010 06:00 AM

Quote:

Originally Posted by AURFSCAN (Post 2023614)
needs to go to the last post instead of going to the first

Not sure what you mean by this... i must tell you that i'm not a coder at all, but I'm good at following instructions...

AURFSCAN 04-19-2010 06:04 AM

when I click on the link in the chatbox (new reply link) ... it takes me to the first post in that thread. being a new reply it should go to the last post in the thread.

thx

The_____KinG 04-19-2010 06:52 AM

same error as kingdom builder for new threads

RedDevil 04-19-2010 07:56 AM

installed:)

Does this take into account forum permissions? ie members seeing staffroom posts

EDIT: its also not posting for new threads in shoutbox only replies

Kolbi 04-19-2010 09:19 AM

How much ressources does this hack need?

ellinofatsa 04-19-2010 11:32 AM

thanks works fine!!!!!!!!!!!!!!!!!!!!!!!!
now its good for the next hack to make a plugin with sound of any new post!!!!

ProFifaLeagues 04-19-2010 12:49 PM

Will this also work on 4.0???

Inflikted 04-19-2010 01:28 PM

sorry about that, in my haste of clean the script up I missed a closing bracket in the new thread plugin. that should be fixed now in the updated version. please redownload it.

as far as people not being moved to the newest post, is this happening to everyone? on my forum it moves you to the newest post, not the first post. I defined it so it links by the postid, so it should be forwarding it properly.

new thread posts should be in this kind of formatting.. http://www.freefrag.com/showthread.php?t=3368
a new reply should be in this kind of formatting http://www.freefrag.com/showthread.p...8214#post28214

your not running any SEO stuff are you? that could possibly mess it up trying to find the individual post

if alot of people are getting this issue.. i can define and different so the link shows up as.. http://www.freefrag.com/showthread.p...3&goto=newpost

cory_booth 04-19-2010 02:42 PM

Hey not sure if this has been mentioned before but...
I had problems with this (from the earlier posting) when a Forum has a ' in the title.

I added this line of e code to each plugin - immediately after the $message is created:

PHP Code:

$message str_replace("'"""$message); 

This fixes the SQL errors....

Inflikted 04-19-2010 02:58 PM

thanks alot cory, ill add that in.

cory_booth 04-19-2010 03:02 PM

Quote:

Originally Posted by Inflikted (Post 2023814)
thanks alot cory, ill add that in.

Ofcourse I just drop the ' from the title, but I guess there is a way to send the ' to the db without the error? I was too lazy to figure it out... LOL

cory_booth 04-19-2010 03:04 PM

Inflikted...

Do you think you can package this up as a plugin?
https://vborg.vbsupport.ru/showpost....&postcount=742
I'd like everyone to have this in their tool belt too - it got lost in all the posts as well..
(I don't know how to make the plugins - especially ones that edit the master database tables...)

Inflikted 04-19-2010 03:11 PM

cory I think if you look into mysql_real_escape_string that should help with the '
but i haven't used that function before, I would have to look into it a bit.

ya cory I can try to do that tonight when I'm home from work.

Kingdombuilder 04-19-2010 03:32 PM

Thanks have updated and will let you know how it goes...

Kolbi 04-19-2010 03:51 PM

I figured out a bug :)

Then a feed creates a new thread Unregistered is shown as poster.

Kingdombuilder 04-19-2010 05:04 PM

Is there a way to send private messages to someone who is chatting without all seeing it? One more thing if possible, i notice that in the original post of the base mod you have list a few of the features and said that there are more. Is there a way to get a complete list of all the features of the chatbox to share with my other admins?

One suggestion: When a new member joins can that update in the chatbox as well? That would be awesome... Could click on he/she name and it takes you straight to their profile page to welcome them. Seeing that i have the chatbox on FORUMDISPLAY you never have to leave the chatbox to function on the site. For those trying to greet new members and function on the site it would be great.

I'm loving the reply and new thread update. it allows you to keep in tune of whats is going on on your site without having to leave the chatbox.

Inflikted 04-19-2010 05:31 PM

Quote:

Originally Posted by Kingdombuilder (Post 2023893)
Is there a way to send private messages to someone who is chatting without all seeing it? One more thing if possible, i notice that in the original post of the base mod you have list a few of the features and said that there are more. Is there a way to get a complete list of all the features of the chatbox to share with my other admins?

One suggestion: When a new member joins can that update in the chatbox as well? That would be awesome... Could click on he/she name and it takes you straight to their profile page to welcome them. Seeing that i have the chatbox on FORUMDISPLAY you never have to leave the chatbox to function on the site. For those trying to greet new members and function on the site it would be great.

I'm loving the reply and new thread update. it allows you to keep in tune of whats is going on on your site without having to leave the chatbox.

just keep in mind I am not the original author of VSA chatbox :) Simply a fan, some of the things your asking above would require to understand the mechanics of the VSA chatbox. the thing about when a new member joins.. that is something I can probably do :)

AURFSCAN 04-19-2010 06:16 PM

hi Inflikted, I'm still having problems where clicking link goes to first post.

my new post formatting is
Code:

.com.au/showthread.php?2852-Anti-virus-program&p=31717#post31717

nikosb 04-19-2010 06:37 PM

very nice.
Thanks

legacy123 04-19-2010 08:07 PM

Could this possibly be integrated with BananaLive's tournaments & ladders mod?

Inflikted 04-20-2010 05:04 PM

Quote:

Originally Posted by legacy123 (Post 2024014)
Could this possibly be integrated with BananaLive's tournaments & ladders mod?

i'll look into it when i get time. currently I am working on some other projects I need to get finished first.

Rckcrwlr 04-21-2010 12:30 PM

Forum Permissions???

I have several "Private" Categories that when a thread is posted or a reply, the whole world can see...

Not good.

Inflikted 04-21-2010 12:57 PM

plugin has been updated now for easier modification. more options to be added soon in the future! if your upgrading please make sure you remove the old plugins first. thanks

AURFSCAN 04-21-2010 10:59 PM

cool , will try thankyou


lol - Created a product, so its easier to edit the options for people :)

AURFSCAN 04-22-2010 12:01 AM

Now it's Perrrfect...

great work

Inflikted 04-22-2010 02:05 AM

thanks alot aurfscan.
i've completed the new members notification part of the plugin but i'll wait to update that i want to get the rest of the other things people requested added in and give you the ability to turn on/off each of the functions.

chriske 04-22-2010 08:59 AM

Nice mod, installed.

It would be nice if there was an option to allow certain forums..

I only want 3 boards to allow posting to chatbox, its a pain in the ass to block all boards :(

cloferba 04-22-2010 03:26 PM

i have vbseo installed..and when a user post...the chat links to the post using showthread.php? function...instead of vbseo rewrite

but..no only that...if i link to that showthread.php? link...i cant see the post (no valid link message)

please, update this to work with vbseo settings =)


All times are GMT. The time now is 06:15 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.01619 seconds
  • Memory Usage 1,820KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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