Welcome, Guest. Please Login or Register.
April 27, 2025, 08:34:41 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [DONE 1.4.0] Mute users mod v1.3 « previous next »
Pages: 1 2 [3] 4 5 6 Reply Ignore Print
Author Topic: [DONE 1.4.0] Mute users mod v1.3  (Read 12427 times)
Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:[DONE] Mute users mod
« Reply #30 on: April 29, 2002, 02:30:00 PM »
Reply with quote

Could you give me some steps to follow?
Logged

joker
Jr. Member
**
Posts: 85


Fanatiker sind zu allem fähig, sonst aber zu nix!

Re:[DONE] Mute users mod
« Reply #31 on: April 29, 2002, 02:50:53 PM »
Reply with quote

Quote from: Lonestar on April 29, 2002, 02:30:00 PMCould you give me some steps to follow?

Use:
ALTER TABLE `database`.`dbprefix_members` ADD `muteduser` TINYINT(4) DEFAULT '0' NOT NULL; like
ALTER TABLE [color=Red][YOUR DB][/color].[color=Red][YOUR DB-prefix][/color]_members ADD muteduser TINYINT(4) DEFAULT '0' NOT NULL; then install the MOD & upload the files. do not forget the english.lng
You should find the mute-option in the 'change user profile'-screen in the lower part then. (it's a checkbox)
Logged

MfG joker ;)
Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:[DONE] Mute users mod
« Reply #32 on: April 29, 2002, 03:29:57 PM »
Reply with quote

Got it to add to database, now to add the mod itself in YABB. Any hints on the best way to do that?
Logged

Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[DONE] Mute users mod
« Reply #33 on: April 29, 2002, 08:41:39 PM »
Reply with quote

Use BoardMod....

Joker, no there isn't unless they try to use the post action... I could change this I guess.
Logged
joker
Jr. Member
**
Posts: 85


Fanatiker sind zu allem fähig, sonst aber zu nix!

Re:[DONE] Mute users mod
« Reply #34 on: April 29, 2002, 09:13:19 PM »
Reply with quote

Could be usefull to avoid stupid user questions ;)
I propose to display a muted-phrase with the user-name (like '[user] - muted, contact the admin').  But it should be visible only for the muted user.
« Last Edit: April 29, 2002, 09:31:54 PM by joker » Logged

MfG joker ;)
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[DONE] Mute users mod
« Reply #35 on: April 29, 2002, 09:55:02 PM »
Reply with quote

Don't quite understand what you just said, but here's what I had in mind (and will do in a sec when I take a break from my moods mod):

Display a bold message under their username (around the PM area) that tells them their muted (if they are of course.)
Logged
joker
Jr. Member
**
Posts: 85


Fanatiker sind zu allem fähig, sonst aber zu nix!

Re:[DONE] Mute users mod
« Reply #36 on: April 29, 2002, 10:02:00 PM »
Reply with quote

Exact! I wanted to express in addition that not everybody should read that sbody was muted.
Logged

MfG joker ;)
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[DONE] Mute users mod
« Reply #37 on: April 29, 2002, 10:11:54 PM »
Reply with quote

Of course
Logged
Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:[DONE] Mute users mod
« Reply #38 on: April 29, 2002, 11:40:05 PM »
Reply with quote

Ok ive done everything right, got the table added, edited each PHP page and uploaded them. Got the checkmark viewed and useable.

now when i try and see a topic i get this error

Parse error: parse error in /home/unitedg/public_html/test/Sources/Display.php on line 663

Fatal error: Call to undefined function: display() in /home/unitedg/public_html/test/index.php on line 127
Logged

Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[DONE] Mute users mod
« Reply #39 on: April 29, 2002, 11:55:42 PM »
Reply with quote

Could you give me your line 656 please?


EDIT: Should be something like this:
if ((in_array($username,$moderators) || $settings[7] == 'Administrator' || $settings[7] == 'Global Moderator' || ($username == "$topicinfo[posterName]" && $username != 'Guest' && $modSettings['enableUserTopicLocking'] == 1) ) AND ($muteuser[0] == 0)) {
« Last Edit: April 29, 2002, 11:56:19 PM by Anonymous Jedi » Logged
Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:[DONE] Mute users mod
« Reply #40 on: April 30, 2002, 12:55:07 AM »
Reply with quote

<table border="0" width="100%" cellpadding="0" cellspacing="0">

EOT;
  if ($modSettings['enableInlineLinks'])
    echo "<tr>\n    <td valign=\"bottom\">$displayLinkTree<br><br></td>\n </tr>";

  print <<<EOT
  <tr>
    <td align="left" colspan="2">
    <font size="2">
EOT;
   if(in_array($username,$moderators) || $settings[7] == 'Administrator' || $settings[7] == 'Global Moderator') {
      print <<<EOT
   <a href="$cgi;action=movethread;threadid=$viewnum"><img src="$imagesdir/admin_move.gif" alt="$txt[132]" border="0"></a>
   <a href="javascript:DoConfirm('$txt[162]','$cgi;action=removethread2;threadid=$viewnum');"><img src="$imagesdir/admin_rem.gif" alt="$txt[63]" border="0"></a>
EOT;
   }
   if(in_array($username,$moderators) || $settings[7] == 'Administrator' || $settings[7] == 'Global Moderator' || ($username == "$topicinfo[posterName]" && $username != 'Guest' && $modSettings['enableUserTopicLocking'] == 1) ) {
      print (" <a href=\"$cgi;action=lock;threadid=$viewnum\"><img src=\"$imagesdir/admin_lock.gif\" alt=\"$txt[104]\" border=\"0\"></a>");
   }

   if ($modSettings['enableStickyTopics'] == '1' && (in_array($username,$moderators) || $settings[7] == 'Administrator' || $settings[7] == 'Global Moderator')) {
      print (" <a href=\"$cgi;action=sticky;threadid=$viewnum;sticky=$topicinfo[isSticky]\"><img src=\"$imagesdir/admin_sticky.gif\" border=\"0\"></a>");
      }
   print <<<EOT
    </font></td>
    <td align="right"><form action="$scripturl" method="GET">
    <font size="1">$txt[160]:</font>$selecthtml</form></td>
  </tr>
</table>
Logged

Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:[DONE] Mute users mod
« Reply #41 on: April 30, 2002, 03:57:09 AM »
Reply with quote

Ill redo the whole mod again tomorrow on my test board and try again, i must have missed something or added to much of something.  ::)
Logged

Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[DONE] Mute users mod
« Reply #42 on: April 30, 2002, 10:24:16 AM »
Reply with quote

Did you apply it manually?

Replace this line (in your code):
if(in_array($username,$moderators) || $settings[7] == 'Administrator' || $settings[7] == 'Global Moderator' || ($username == "$topicinfo[posterName]" && $username != 'Guest' && $modSettings['enableUserTopicLocking'] == 1) ) {
With this one:
if ((in_array($username,$moderators) || $settings[7] == 'Administrator' || $settings[7] == 'Global Moderator' || ($username == "$topicinfo[posterName]" && $username != 'Guest' && $modSettings['enableUserTopicLocking'] == 1) ) AND ($muteuser[0] == 0)) {
Logged
Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:[DONE] Mute users mod
« Reply #43 on: April 30, 2002, 01:00:01 PM »
Reply with quote

Yeah i applied it manually. Thats the only way i could figure to do it. I didnt know what you meant by boardmod so i opened the sucker up in wordpad read it and went from their.
Logged

Lonestar
Jr. Member
**
Posts: 87


SchwartzMaster

ICQ - 57595208 WWW
Re:[DONE] Mute users mod
« Reply #44 on: April 30, 2002, 01:46:42 PM »
Reply with quote

Ok i see where i went wrong, i wasnt looking at the code hard enough (8 hours of computer work will do that to you).

So i went back and tried it again on the backups, and looked closer. I replaced a bit of code that neednt replacing and thought it was the right one. The one you told me to correct i never touched, i touched the one about 20 lines up that looked similar.

I tried it again and it works perfectly. Now for some kind of message that tells them there muted upon entering the forum and logging in. Ive tested it a hundred different ways and its pretty solid code, cant work around it any way that i know.

Thanks for your help, this code hoperfully wont be needed to be put to use, but if it does its a nice tool to have.

Thanks again
Logged

Pages: 1 2 [3] 4 5 6 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [DONE 1.4.0] Mute users mod v1.3 « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.033 seconds with 18 queries.