vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Chat Modifications - vb4-Footer Chat Bar (https://vborg.vbsupport.ru/showthread.php?t=242416)

JAFRI 05-13-2010 08:29 AM

Allow administrator to see all online users including invisible
-------------------------------------------------------------
Add the following before return $sql;

Code:

if ($userid == ADMINUSERIDHERE) {

    $sql = ("select DISTINCT ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." userid, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_NAME." username, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_LASTACTIVITY." lastactivity, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." avatar, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." link, cometchat_status.message, cometchat_status.status from ".TABLE_PREFIX.DB_USERTABLE." left join cometchat_status on ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." = cometchat_status.userid where ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." <> '".mysql_real_escape_string($userid)."' and ('".$time."'-lastactivity < '".ONLINE_TIMEOUT."') order by username asc");

}

return $sql; // ALREADY PART OF php


JAFRI 05-13-2010 08:42 AM

Update the USERGROUPID above. For multiple usergroups, use the following:

Code:

function getFriendsList($userid,$time) {

    $sql = ("select DISTINCT ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." userid, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_NAME." username, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_LASTACTIVITY." lastactivity, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." avatar, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." link, cometchat_status.message, cometchat_status.status from ".TABLE_PREFIX."userlist join ".TABLE_PREFIX.DB_USERTABLE." on  ".TABLE_PREFIX."userlist.relationid = ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." left join cometchat_status on ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." = cometchat_status.userid where ".TABLE_PREFIX."userlist.friend = 'yes' and ".TABLE_PREFIX."userlist.userid = '".mysql_real_escape_string($userid)."' and ('".$time."'-lastactivity < '".ONLINE_TIMEOUT."') and (cometchat_status.status IS NULL OR cometchat_status.status <> 'invisible')

and (

".TABLE_PREFIX.DB_USERTABLE.".usergroupid = 'USERGROUPID1' OR
".TABLE_PREFIX.DB_USERTABLE.".usergroupid = 'USERGROUPID2' OR
".TABLE_PREFIX.DB_USERTABLE.".usergroupid = 'USERGROUPI3'

)
 order by username asc");
return $sql;
}


Kolbi 05-13-2010 08:44 AM

Look into:
/cometchat/license.php
HTML Code:

/*
 * CometChat v1.6 - Nulled by pdtan
 * http://www.+++++++.vn - http://tan.1minh.vn
*/


JAFRI 05-13-2010 08:50 AM

Quote:

Originally Posted by Kolbi (Post 2036208)
Look into:
/cometchat/license.php
HTML Code:

/*
 * CometChat v1.6 - Nulled by pdtan
 * http://www.+++++++.vn - http://tan.1minh.vn
*/


if u like tht change it ,

nextslit 05-13-2010 08:51 AM

Quote:

Originally Posted by Aamir Durrani (Post 2036194)
yes , but now , Freeeee :D

----------------------------------
Enjoy
Jafri,

I don't think so !

MARCO1 05-13-2010 08:53 AM

This is pirated version, Posting Copyright Material is against vb.org rules, Reported.

Kolbi 05-13-2010 08:56 AM

Changing this doesn´t change anything, that this is a illegal nulled version.

JAFRI 05-13-2010 09:11 AM

upload again the config.php in root/forum/cometchat work avatar.

TimberFloorAu 05-13-2010 09:16 AM

Aamir... I suggest you pull this pretty damn quick.

A its illegal.
B I would SUE your arse off mate !

Pakistan or Uzbekistahn... makes no difference, PLAGUERISM stinks !

anantgarg 05-13-2010 09:23 AM

CometChat is a paid software. It is not available for free. Please do not support piracy. If you want to purchase CometChat, please visit our site (link in the footer).

@Aamir Durrani- If this is not removed immediately, we will be taking legal action against you.


All times are GMT. The time now is 05:34 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.01168 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
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)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
  • (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