Results 1 to 10 of 42
Threaded View
-
29th Jun 2012, 11:34 AM #11(1only)Website's:
BarakaDesigns.com Amodity.com IMGFlare.comDay 2 and ready for another post
Anyhow this is something i done awhile back for vBulletin. For those whom use cyb - chatbox may see this useful its only the gist of things to make custom commands since cyb lacks on itAnyhow here is a /ban one limited to 15 lines so this is gist
PHP Code:$vbulletin->GPC['ccb_newmessage'] = str_replace('/ban ', "".'', $vbulletin->GPC['ccb_newmessage']);
$banuserthis = $vbulletin->db->query_read("SELECT user.username, user.usergroupid, user.displaygroupid,user.userid FROM ".TABLE_PREFIX."user WHERE user.username = '".$banusername."' AND user.userid !='".$banusername."'");
$banuserthisone = $db->fetch_array($banuserthis);
$lists = explode(',',$vbulletin->options['cybchatbox_excluded_users']);
$userid = $banuserthisone['userid'];
$cybcb_banuser = $vbulletin->options['cybchatbox_excluded_users'].','.$cybcb_usertoban;
$cybcb_banuser = str_replace(',,',',',$cybcb_banuser);
$cybcb_banuser = trim($cybcb_banuser, ',');
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "setting SET value = '".$cybcb_banuser."' WHERE varname = 'cybchatbox_excluded_users' ");
I done this off the top of my head
(I may post the full code not sure though)
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Plz Help To Add A Php Snippet Into My DLE Index !
By JoomlaZ in forum Web Development AreaReplies: 0Last Post: 7th Jul 2011, 01:18 PM -
[C#] Tiny Web Server (snippet)
By Hyperz in forum Web Development AreaReplies: 6Last Post: 24th Jun 2010, 01:19 PM -
Image Upload in php. Code snippet #2
By SplitIce in forum Tutorials and GuidesReplies: 5Last Post: 31st Oct 2009, 07:40 AM -
See real OOP (Snippet from Litewarez V2) Webmasters CP
By litewarez in forum Tutorials and GuidesReplies: 21Last Post: 19th Sep 2009, 03:59 PM -
A Snippet from my latest project
By litewarez in forum Tutorials and GuidesReplies: 19Last Post: 21st Jun 2009, 05:17 PM
themaManager - edit and manage...
Version 4.19 released. Open older version (or...