|
Bot on mybb
|
|
Jul 03, 2008, 02:02 PM
Post: #1
|
|||
|
|||
|
Bot on mybb
I have a irc bot on a irc chan
and i have put some code in newthread.php so the bot announce to a given chan, but would it be possible so when a staff member post inside a staff topic and i wont be shown i main irc chan (hope someone knowns what iam talking about)here is the code i have now in newthread.php Something that switch between the topics here is something that i have from els where... in this case our staff section has fid=13 PHP Code: $fid = $arr["fid"];PHP Code: if(!$mybb->input['postpoll']) |
|||
|
Jul 04, 2008, 04:56 PM
(This post was last modified: Jul 04, 2008 05:03 PM by LeX-.)
Post: #2
|
|||
|
|||
|
RE: Bot on mybb
Put the whole bot code in another if statement
Code: if($fid != 13) |
|||
|
Jul 05, 2008, 03:38 AM
Post: #3
|
|||
|
|||
|
RE: Bot on mybb
Don't follow...
|
|||
|
Jul 05, 2008, 03:55 AM
Post: #4
|
|||
|
|||
|
RE: Bot on mybb
You don't want to post 'new threads' of your Staff Section on IRC ... so if the $fid == Staff Section, do nothing else post the new thread ...
$fid : FID of Current ForumSection != : not equal to 13 : FID of your Staff Section So you put the code; that thing you or someone else added to the newthread.php page and you put it between that if statement i posted 2posts up. If that's to hard to follow; don't bother my posts then. |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| MyBB Multiforums Mod - Start a free MyBB Forum Host! | BMR777 | 6 | 477 |
Mar 22, 2008 03:17 PM Last Post: Violation |
|

Upgrade
Invite
Documents
Search
Member List
Calendar
Help
Tagpad

and i have put some code in newthread.php so the bot announce to a given chan, but would it be possible so when a staff member post inside a staff topic and i wont be shown i main irc chan (hope someone knowns what iam talking about)

