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)

kiwi1342 03-10-2010 08:33 AM

Quote:

Originally Posted by Inflikted (Post 1994272)
just made a two small plugin for New Topic and Reply Notification in your chatbox, im still new to vbulletin scripting so i apologize if there is any mistakes :) But I have been using it for a couple days fine

you must make a couple changes to it though once you install it, in BOTH plugins

alter line 2 or 3

that reads...

PHP Code:

if (!in_array($this->info['forum']['forumid'], array(105,83,121,110,82,112,109,101,102,72))) { 

this will filter out private forums you don't want the public to see when a post is made, so add/remove the forumid's you wish to hide.

one last edit is the SQL insert in BOTH plugins, change the '2' to whatever userid you would like to show the posts as. I would setup a postbot and link it to that userid.

PHP Code:

$vbulletin->db->query_write("INSERT INTO `" TABLE_PREFIX "vsa_chatbox` (`userid`, `userip`, `message`, `dateline`, `textprop`) VALUES ('2', '".$_SERVER['REMOTE_ADDR']."', '" $vbulletin->db->escape_string($message) ."', ".TIMENOW.", '');"); 

Thats all :)

I will try this now but I dont' understand why it says 2 plugins but I see only one xml file :confused:

kiwi1342 03-10-2010 08:55 AM

OK I figured it out. Here are the steps:

1. Download the replypost-notification.xml which you'll find here https://vborg.vbsupport.ru/showpost....&postcount=765

2. open the file just downloaded and edit it as explained in the post. Be carefull that there are two plugin in this single xml file which means that you have to edit the text for both plugin ( search for 'forumid'], array(105,83,121,110,82,112,109,101,102,72)) inside the document and you'll find two results)

3. once you edited it save the file and go to your admincp page

4. scroll down to the end and go to Plugins & Products --> Download / Upload Plugins

5. scroll to the botton and upload the previous xml file. You should see now the "VSA New Reply" and "VSA New Thread" plugin in the list.


Job Done :D

mobe00 03-10-2010 09:24 AM

Quote:

Originally Posted by kiwi1342 (Post 2000777)
OK I figured it out. Here are the steps:

1. Download the replypost-notification.xml which you'll find here https://vborg.vbsupport.ru/showpost....&postcount=765

2. open the file just downloaded and edit it as explained in the post. Be carefull that there are two plugin in this single xml file which means that you have to edit the text for both plugin ( search for 'forumid'], array(105,83,121,110,82,112,109,101,102,72)) inside the document and you'll find two results)

3. once you edited it save the file and go to your admincp page

4. scroll down to the end and go to Plugins & Products --> Download / Upload Plugins

5. scroll to the botton and upload the previous xml file. You should see now the "VSA New Reply" and "VSA New Thread" plugin in the list.


Job Done :D

what shall we edit you mean, the numbers (marked in red) with the forum id you dont want to show ?? in my forum its id 57 that i dont want to show there

if (!in_array($this->info['forum']['forumid'], array(105,83,121,110,82,112,109,101,102,72))) {

kiwi1342 03-10-2010 09:31 AM

Quote:

Originally Posted by mobe00 (Post 2000785)
what shall we edit you mean, the numbers (marked in red) with the forum id you dont want to show ?? in my forum its id 57 that i dont want to show there

if (!in_array($this->info['forum']['forumid'], array(105,83,121,110,82,112,109,101,102,72))) {

yes :) as xplained in the original post you should change only the number insidde the bracket. If you want to NOT show notification for your forum id 57 you should remove all those numbers and write only 57 :)

eBola75 03-10-2010 10:21 AM

Excellent kiwi!
Love that

Also change text color if you use white background as me or it will be white text on white background.

Nobody will help me with that "Smilies list" problem mentioned above?

kiwi1342 03-10-2010 10:30 AM

Quote:

Originally Posted by eBola75 (Post 2000798)
Excellent kiwi!
Love that

Also change text color if you use white background as me or it will be white text on white background.


Nobody will help me with that "Smilies list" problem mentioned above?

oh well I have black background ;)

What's the problem with smilies?

eBola75 03-10-2010 11:29 AM

Quote:

Originally Posted by kiwi1342 (Post 2000802)
oh well I have black background ;)

What's the problem with smilies?

I have this problem - https://vborg.vbsupport.ru/showpost....&postcount=848

kiwi1342 03-10-2010 11:35 AM

I don't understand your problem sorry. I visited your forum and I don't have the option to select smilies (maybe because I am not registered) and in the screenshot I don't understand what's going on :(

eBola75 03-10-2010 12:12 PM

Quote:

Originally Posted by kiwi1342 (Post 2000777)
OK I figured it out. Here are the steps:

1. Download the replypost-notification.xml which you'll find here https://vborg.vbsupport.ru/showpost....&postcount=765

2. open the file just downloaded and edit it as explained in the post. Be carefull that there are two plugin in this single xml file which means that you have to edit the text for both plugin ( search for 'forumid'], array(105,83,121,110,82,112,109,101,102,72)) inside the document and you'll find two results)

3. once you edited it save the file and go to your admincp page

4. scroll down to the end and go to Plugins & Products --> Download / Upload Plugins

5. scroll to the botton and upload the previous xml file. You should see now the "VSA New Reply" and "VSA New Thread" plugin in the list.


Job Done :D


I'm using it and like it. But problem I see is when somebody edit message it make new chat post also. is it possible to make it work only for new messages?

kiwi1342 03-10-2010 12:21 PM

Quote:

Originally Posted by eBola75 (Post 2000855)
I'm using it and like it. But problem I see is when somebody edit message it make new chat post also. is it possible to make it work only for new messages?

I think it is because the coder uses the postsave hookname. I am not a vb coder so we should wait his answer.

Anyway what was the exact problem that you had with smiles?


All times are GMT. The time now is 06:15 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.02291 seconds
  • Memory Usage 1,761KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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