vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Chat Modifications - [AJAX] cChatBox (https://vborg.vbsupport.ru/showthread.php?t=169725)

Namaless 02-10-2008 08:37 AM

View into line 110, I have edited musername system.
Use this example for get username style:
PHP Code:

    function tagusername($userid$username)
    {
        global 
$db$vbulletin;

        
$tagusername $db->query_first("SELECT * FROM " TABLE_PREFIX "user WHERE userid = $userid;");

        if (
$tagusername['username'] == $username)
        {
            
//$tag['opentag'] = $vbulletin->usergroupcache[$tagusername['usergroupid']]['opentag'];
            //$tag['closetag'] = $vbulletin->usergroupcache[$tagusername['usergroupid']]['closetag'];

            //return $tag['opentag'] . $tagusername['username'] . $tag['closetag'];
            
return fetch_musername($tagusername);

        }
        else
        {
            return 
$username;
        }
    } 

To me works perfectly :)

jerrygad 02-10-2008 08:51 AM

This is great, but it would be nice if admin have priv. to delete certain message (unpleasant message, I mean).

Namaless 02-10-2008 08:56 AM

For cache templates use the attachment.

soniceffect 02-10-2008 07:17 PM

Some excellent work ya put in here m8. Dunno about anyone else, but the only thing that would stop me using this over the Evo one, is the fact that ya can have more than one channel in Evo..

Love the IRC type ideas implemented I gotta say :)

christrato 02-12-2008 06:35 AM

tnx namaless for musername and cache templates!

Namaless 02-12-2008 07:00 AM

Quote:

Originally Posted by christrato (Post 1441287)
tnx namaless for musername and cache templates!

Di niente.. se trovo altri problemi te lo dico :)


No problem, if found another problem, take to you my solution :)

Namaless 02-12-2008 07:04 AM

Sorry, but into Time Variables is possible to get with span class="time"??

Thanks :)

trance nation 02-12-2008 08:06 AM

It made some of my forum text red >.< - sorted

When i enable the online suer list i get a mysql error

Database error in vBulletin 3.7.0 Beta 4:

Invalid SQL:

(SELECT DISTINCT user.username AS username,user.userid,session.userid,user.options AS options,cchatbox.username AS cchatusername
FROM vb_cchatbox_message AS cchatbox
LEFT JOIN vb_user AS user USING (userid)
LEFT JOIN vb_session AS session USING (userid)
WHERE session.lastactivity > 1202809562 AND cchatbox.userid = user.userid AND cchatbox.time > 1202810462 - (0*3600)
ORDER BY cchatusername ASC)
UNION DISTINCT
(SELECT DISTINCT user.username AS username,user.userid,session.userid,user.options AS options,cchatbox.username AS cchatusername
FROM vb_session AS session
LEFT JOIN vb_user AS user USING (userid)
LEFT JOIN cchatbox_message AS cchatbox USING (userid)
WHERE session.lastactivity > 1202809562 AND user.userid = session.userid
ORDER BY username ASC);;

MySQL Error : Table 'servermax5.cchatbox_message' doesn't exist
Error Number : 1146
Date : Tuesday, February 12th 2008 @ 10:01:02 AM
Script : http://www.xevolution.co.uk/cchatbox.php?do=userlist
Referrer : http://www.xevolution.co.uk/index.php
IP Address :******
Username : *****
Classname : vB_Database
MySQL Version : 5.0.22

I did put my prefixes as vb_ maybe thats why?

FassoL 02-12-2008 09:14 AM

That is a great job, thank you :)

Can You Plese Make it (right to left) ?
<<< my forum is arabic

asj 02-12-2008 09:31 AM

Woa, thats advanced stuff


All times are GMT. The time now is 11:03 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.01249 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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