Bravo List
Register
Go Back   > Bravo List > Torrents Trackers > Free Torrent Source > Mods & Themes
Reply
  #1  
Old 31-12-09, 04:24
benjaminbih's Avatar
benjaminbih benjaminbih is offline
Hobby Coder
 
Join Date: Jul 2008
Bosnia-Herzegovina
Posts: 70
Default [FTS 1.1] Announce new forum topics on shoutbox
Add announcing of new forum topics to the shoutbox bot.

open /include/libs/config/tweak.php and change:
PHP Code:
$shoutduty            FFactory::configoption($TWEAK['shoutduty'],'torrents,cleanups,requests,users'); 
to:
PHP Code:
$shoutduty            FFactory::configoption($TWEAK['shoutduty'],'torrents,cleanups,requests,users,topics'); 
open /administrator/options.php and change:
PHP Code:
    tr"ShoutBot Duties"makehelp('L48')."<input type='text' size='45' name=shoutduty value='" .
        (
$shoutduty $shoutduty "torrents,cleanups,requests,users") . "'>") ; 
to:
PHP Code:
    tr"ShoutBot Duties"makehelp('L48')."<input type='text' size='45' name=shoutduty value='" .
        (
$shoutduty $shoutduty "torrents,cleanups,requests,users,topics") . "'>") ; 
Open /administrator/js/fts_vars.js and change:

PHP Code:
    L48'ShoutBot can do only those listed below actions.<BR><b>Announce Torrents</b>(if you want this to be enabled write \'torrents\' separated by commas to the other duties.)<BR><b>Announce Cleanups</b>(if you want this to be enabled write \'cleanups\' separated by commas to the other duties)<BR><b>Announce Requests</b>(if you want this to be enabled write \'requests\' separated by commas to the other duties)<BR><b>Announce New Users</b>(if you want this to be enabled write \'users\' separated by commas to the other duties)<BR>EG: To use all the duties write \'torrents,cleanups,requests,users\''
to:
PHP Code:
    L48'ShoutBot can do only those listed below actions.<BR><b>Announce Torrents</b>(if you want this to be enabled write \'torrents\' separated by commas to the other duties.)<BR><b>Announce Cleanups</b>(if you want this to be enabled write \'cleanups\' separated by commas to the other duties)<BR><b>Announce Requests</b>(if you want this to be enabled write \'requests\' separated by commas to the other duties)<BR><b>Announce New Users</b>(if you want this to be enabled write \'users\' separated by commas to the other duties)<BR><b>Announce New Topics</b>(if you want this to be enabled write \'topcics\' separated by commas to the other duties)<BR>EG: To use all the duties write \'torrents,cleanups,requests,users,topics\''
open /forums/post.php and find:
PHP Code:
      $topicid mysql_insert_id() or stderr("Error""No topic ID returned"); 
below it add:
PHP Code:
    $user_row sql_query("SELECT * FROM users WHERE id = $userid");
    while(
$row mysql_fetch_assoc($user_row))
    
$message "User [URL=".$BASEURL."/userdetails.php?id=".$row["id"]."]".$row["username"]."[/URL] has create new topic [url=".$BASEURL."/forums/viewtopic.php?topicid=".$topicid."]".$subject."[/url]";
    if(
duty('topics'))
    
add_shout($message); 
Thats all

Last edited by benjaminbih; 31-12-09 at 22:22.
Reply With Quote
The Following 5 Users Say Thank You to benjaminbih For This Useful Post:
Edgein (31-12-09), elvira (31-12-09), Moh.ElBaz (31-12-09), Phogo (08-01-10), yoligim (03-01-10)
  #2  
Old 31-12-09, 21:01
Edgein's Avatar
Edgein Edgein is offline
Staff
 
Join Date: Sep 2008
Netherlands
Posts: 154
Default
Nice one just add ,topics into settings pannel in the tweak page
Reply With Quote
  #3  
Old 31-12-09, 22:14
benjaminbih's Avatar
benjaminbih benjaminbih is offline
Hobby Coder
 
Join Date: Jul 2008
Bosnia-Herzegovina
Posts: 70
Default
Quote:
Originally Posted by Edgein View Post
Nice one just add ,topics into settings pannel in the tweak page
Yes you are right
Reply With Quote
Reply

Tags
11 , announce , forum , fts , shoutbox , topics

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shoutbox Announce InFeRnO Torrent Strike 2 29-11-12 00:33
Forum announce in shoutbox lanks Torrent Strike 3 15-08-09 20:56
[HELP] Change /announce.php to /announce dopeboy xBTiT 4 20-07-09 01:42
TS SE 5.6 announce.php AlaminT Template Shares 6 15-02-09 09:11
how to announce Azurious phpMyBitTorrent (BT.Manager) 8 19-01-09 15:47



All times are GMT +2. The time now is 21:44. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2017, vBulletin Solutions Inc.