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 - MGC Chatbox (with AJAX) (https://vborg.vbsupport.ru/showthread.php?t=148472)

VBDev 12-14-2007 04:11 AM

Quote:

Originally Posted by DrKNickel (Post 1400353)
Is it possible to add the chatbox to just one forum? That it displays not everywhere but only on one forum?

THX :)

For that you have to edit the hook attached to forumdisplay_complete and replace:

PHP Code:

if ($chatbox_permission && $vbulletin->options['mgc_cb_forumdisplay']) { 

By :

PHP Code:

if ($chatbox_permission && $vbulletin->options['mgc_cb_forumdisplay'] && $foruminfo['forumid'] == X) { 

Where X is the id of the forum you want it to be shown in.

Quote:

Originally Posted by MotMann (Post 1400356)
a9 Smiley Problem. I have the same Problem as everyone, that th wrong Smileys displayed.

b) I think its better, that the Smileylist loads, if the User Click on the Icon.. and not if the User load the side. It takes to long loadingtime, if 60 Smileys displayed :)

Yes I know, I have to do something about that. I don't think I will focus on it for the next release but this will be on the top priority lsit for next one.

Quote:

Originally Posted by MotMann (Post 1400699)
I have the error: in SQL:


SELECT smilieid, smilietext, smiliepath, title
FROM vb_smilie
LIMIT 10;


need help :(

Can you please post here your entire error coz there is not error in what you shown us.

DrKNickel 12-14-2007 08:01 AM

WOW!

Exellent support, thank you so much!

MotMann 12-14-2007 08:32 AM

I have two :(


SELECT
t2.firstpostid, t2.open, t2.visible,
t2.pollid, t2.threadid, t2.title AS threadtitle,
t2.replycount, t2.views, t2.iconid, i.iconpath,
i.title AS icontitle, t2.lastpost, t2.lastposter,
t2.forumid, forum.title AS forumtitle

, threadread.readtime AS threadread

FROM vb_thread AS t2

LEFT JOIN vb_forum as forum ON (forum.forumid = t2.forumid)
LEFT JOIN vb_post as p ON (p.postid = t2.firstpostid)

LEFT JOIN vb_icon as i ON (i.iconid = t2.iconid)
LEFT JOIN vb_threadread AS threadread ON (threadread.threadid = t2.threadid AND threadread.userid = 444)

WHERE t2.open != 10
AND t2.forumid IN (75)
AND t2.visible = 1

ORDER BY t2.lastpost DESC
LIMIT 0, 30;

MySQL-Fehler : MySQL server has gone away
Fehler-Nr. : 2006

and the other one, right now i cant see the code...

DrKNickel 12-14-2007 08:47 AM

Quote:

Originally Posted by VBDev (Post 1400795)
For that you have to edit the hook attached to forumdisplay_complete and replace:

PHP Code:

if ($chatbox_permission && $vbulletin->options['mgc_cb_forumdisplay']) { 

By :

PHP Code:

if ($chatbox_permission && $vbulletin->options['mgc_cb_forumdisplay'] && $foruminfo['forumid'] == X) { 

Where X is the id of the forum you want it to be shown in.

I have installed your mod but no i cant find the forumdisplay_complete template. I only have forumdisplay.

Where can i find forumdisplay_complete?

Thx :D

Peter85 12-14-2007 08:57 AM

Its not a template, its a hook. Youll find it under Plugins. ;)

DrKNickel 12-14-2007 09:04 AM

OMG stupid me! Thx :D

VBDev 12-15-2007 10:22 AM

Quote:

Originally Posted by MotMann (Post 1400867)
I have two :(


SELECT
t2.firstpostid, t2.open, t2.visible,
t2.pollid, t2.threadid, t2.title AS threadtitle,
t2.replycount, t2.views, t2.iconid, i.iconpath,
i.title AS icontitle, t2.lastpost, t2.lastposter,
t2.forumid, forum.title AS forumtitle

, threadread.readtime AS threadread

FROM vb_thread AS t2

LEFT JOIN vb_forum as forum ON (forum.forumid = t2.forumid)
LEFT JOIN vb_post as p ON (p.postid = t2.firstpostid)

LEFT JOIN vb_icon as i ON (i.iconid = t2.iconid)
LEFT JOIN vb_threadread AS threadread ON (threadread.threadid = t2.threadid AND threadread.userid = 444)

WHERE t2.open != 10
AND t2.forumid IN (75)
AND t2.visible = 1

ORDER BY t2.lastpost DESC
LIMIT 0, 30;

MySQL-Fehler : MySQL server has gone away
Fehler-Nr. : 2006

and the other one, right now i cant see the code...

This is not at all something relating to the chatbox.

Quote:

Originally Posted by yeku (Post 1401406)
Not Installed, installed vBchat, sorry

You do whatever you want he he. vBChat is a chat not a chatbox ;)

MotMann 12-15-2007 12:31 PM

Today again:

SELECT
t2.firstpostid, t2.open, t2.visible,
t2.pollid, t2.threadid, t2.title AS threadtitle,
t2.replycount, t2.views, t2.iconid, i.iconpath,
i.title AS icontitle, t2.lastpost, t2.lastposter,
t2.forumid, forum.title AS forumtitle

, threadread.readtime AS threadread
FROM vb_thread AS t2
LEFT JOIN vb_forum as forum ON (forum.forumid = t2.forumid)
LEFT JOIN vb_post as p ON (p.postid = t2.firstpostid)

LEFT JOIN vb_icon as i ON (i.iconid = t2.iconid)
LEFT JOIN vb_threadread AS threadread ON (threadread.threadid = t2.threadid AND threadread.userid = 351)
WHERE t2.open != 10


AND t2.visible = 1
ORDER BY t2.lastpost DESC
LIMIT 0, 10;

MySQL-Fehler : MySQL server has gone away
Fehler-Nr. : 2006

-------------------------

These error comes since Chatbox. And LIMIT 0, 10; is a setting from chatbox. I think there are some Problems with the Smilies- the Limit of 10 is the actual setting. How i can fix it? In the erlier Version there was a fix.
I dont found the code to Change... where is ist?

VBDev 12-15-2007 01:06 PM

The LIMIT 0,10 is not appearing only in the chatbox, there are many other query which should look like that in vBulletin.

Trust me when I say this is not chatbox purpose at all, I don't see why I would query the forum, post, icon and threaread database tables from within the chatbox.

Check the Script stated in the mysql error (which you didn't paste here), you'll see that I am right.

MotMann 12-15-2007 03:39 PM

hmm.... if i change it to 20, then comes the error with 20. If i Change it to 80, then comes 80 :D

Ad if i deaktivate the chatbox, then all runs perfect. But i need that chatbox :D

No Idea? Maybe i must change in a php file the smilies manuell?


All times are GMT. The time now is 05:32 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.02628 seconds
  • Memory Usage 1,756KB
  • 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_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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