|
#1
|
|||
|
|||
Disallow Comments
First sorry for my bad english.
I need mod for disallow comments in torrent for TBDEV.Can anybody help me with this mod. Thanx |
#2
|
|||
|
|||
I would like to have this mod to.
Have option to give Moderators option to enable or again disable torrents comments. If sombady can help. Thanx. |
#3
|
||||
|
||||
@Elvira They don't ask ( Do you have this mod ? )
They Said ( They need this mod ) Anyway It's simple to add it SQL PHP Code:
replace PHP Code:
PHP Code:
__________________
$ Coding and Development |
#4
|
||||
|
||||
First I add a this
Code:
ALTER TABLE `torrents` ADD `allow_comments` enum('yes','no') NOT NULL default 'yes'; Code:
// ===allow comments? if (get_user_class() >= UC_MODERATOR) { if ($row["allow_comments"] == "yes") $mess = " Comments are allowed for everyone on this torrent!"; else $mess = " Only staff members are able to comment on this torrent!"; ?> <tr><td align="right"><font color="red">*</font><b>Komentar:</b></td> <td><select name="allow_comments"> <option value="<?=htmlspecialchars($row["allow_comments"])?>"><?=htmlspecialchars($row["allow_comments"])?></option> <option value="yes"> Yes </option><option value="no"> No </option></select> <?=$mess?></td></tr> <?php } // ===end Code:
torrents.allow_comments Code:
if ($row["allow_comments"] == "yes" || get_user_class() >= UC_MODERATOR) { print($commentbar); print($quickcomment);} else { print("<br><p align=center><b><font color=red>You are not able to comment on this torrent.</font></b></p>"); } use a TBDev 08 |
Tags |
comments , disallow |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Comments in request | lafouine022 | Mods & Themes | 2 | 20th March 2012 08:59 |
Rating in Comments | Fynnon | Mods & Themes | 6 | 5th May 2010 06:27 |
Anonymous Comments | Rendevous | Mods & Themes | 0 | 4th May 2010 12:17 |
PM on Comments | xxx2008 | Free Torrent Source | 5 | 17th January 2010 13:16 |
comments | wMan | BT.Manager (phpMyBitTorrent) | 0 | 2nd September 2009 18:32 |