Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: live627 on May 18, 2007, 07:42:18 AM

Title: Blabberizer
Post by: live627 on May 18, 2007, 07:42:18 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=799)

Another essential tool for Troll Management and general user abuse, this mod displays a victim's posts as a series of "blahs", "blubbas" and "blabbers". It almost makes reading a Troll's posts... fun! At least, everyone else will be laughing.

This mod adds a "Blabberize" setting to the user profiles.

Likewise, it adds a permission in the "Member Profiles" grouping to change this setting. And, most people will not have it.

It is expected that this permission will be granted to your moderators who have the "Edit Account Settings (any)" permission. Further detail is included in the ReadMe.

Note that the effect is generated when the message is viewed using the normal display template.
It does not impact the actual posts, and does not impact the viewing of those posts when viewed via RSS, reply, preview, quote, SSI, or anything else.

Obviously, turning off the victim's "Blabberize" checkbox will revert their posts to normal.

Comments, feedback, and "better ways" are always welcomed...
Title: Re: Blabberizer
Post by: Daniel15 on May 18, 2007, 07:43:02 AM
Nice work Smurfbutcher Bob :D
Title: Re: Blabberizer
Post by: Harro on May 18, 2007, 07:56:38 AM
Haha :D Sounds like a great mod!
You've got a good sense of humour :D
Gonna take a look at it. Although it's not something I need on my forum.
Title: Re: Blabberizer
Post by: sg707 on May 18, 2007, 10:08:43 AM
This is hillarious! Usually, I just ban the user but this might be more satisfying....  lol~ awesome idea! Gonna install it~ nice work!!!
Title: Re: Blabberizer
Post by: sharks on May 18, 2007, 03:27:41 PM
lol.. great idea and this mod can certainly be useful if you have a lot of the 'talking/echo type' leechers ;)

cheers!
Title: Re: Blabberizer
Post by: TEOC2 on May 19, 2007, 08:04:45 PM
Im getting an error, the blabberize check box appears, but after being checked and the user profile saved it isnt checked anymore.
SMF v1.1.2, see attached screenie for mods installed.

Quote1.     Execute Modification     ./Sources/Display.php     Test successful
2.    Execute Modification    ./Sources/Load.php    Test failed
3.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
4.    Execute Modification    ./Sources/Profile.php    Test successful
5.    Execute Modification    ./Sources/Subs.php    Test successful
6.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Modifications.english.php    
Title: Re: Blabberizer
Post by: Smurfbutcher Bob on May 20, 2007, 12:56:54 AM
Binkles - that many mods, I wouldn't know where to start.  I made the installer somewhat strict in the load.php area, because it tweaks the profile load and save... and with another mod making changes to it, I'm not real keen on screwing up that section if things aren't perfect.

Still, the actual changes are somewhat small. If you're comfortable making changes by hand...

1. COPY your current version of load.php.  Call it "load_noblabber.php".  You'll need this if things get hosed up, as you can copy it back over "load.php" and get back in business. Note that this should be a copy of the one *without* the mod installed.

2. Open load.php in your favorite editor. Any basic "notepad.exe" will work.

FIND $set == 'normal'
With most editors, you'll simply hit "ctrl-F", or use the Find feature in the edit or tools menu.

Scroll down a little. You'll see three sections immediately below it - one for "normal", one for "profile", one for "minimal".  In each section, add the field "mem.blabberized" to the list of fields being grabbed -

mem.signature, mem.personalText, mem.location, mem.gender, mem.avatar, mem.ID_MEMBER, mem.memberName, mem.blabberized,

Don't forget that comma at the end! You should find three lines exactly as above, and add it to each.

Next, FIND email_public
Add the following line below it -
'blabberized' => (!empty($profile['blabberized'])),

Again, don't forget that comma at the end.  The result will look similar to this:
'email_public' => (empty($profile['hideEmail']) || empty($modSettings['allow_hideEmail'])) && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']),
'blabberized' => (!empty($profile['blabberized'])),
'registered' => empty($profile['dateRegistered']) ? $txt[470] : timeformat($profile['dateRegistered']),



3). Hard part's over! WRITE DOWN what you just did.  Should you wish to uninstall these manual changes at some point, you'll want these notes to keep you comfortable.
In theory, though, you can remove the mod and the board will still function with these snippets still in place - there would only be an issue if the 'members' table is reverted (the "blabberized" column is removed).  Best bet for rapid removal is to Find the word "blabberized". That'll take you to all four things you added.

That's pretty much it for load.php.

Manual changes always carry the chance of a typo, which will result in a "white screen of death".  A good strategy for FTP, in case there's a typo that hoses the board -
1. Install the mod. As you saw, it'll barf on load.php, but the rest of it should get plugged in.
2. I had you copy the original "load.php" to a new filename, "load_noblabber.php".  FTP this file to the sources directory.
3. FTP the new load.php to the sources directory.
4. Leave the FTP running while you verify the board still works.

If all goes well, then you're all set.

IF you discover that the board starts to puke, no worries. Just make a quick switch -
1. In your FTP program, delete "load.php" on the server.
2. Rename "load_noblabber.php" to "load.php" on the server.
That'll put you back in business in a matter of seconds, leaving you free to find the typo with no stress. When ready to try again... the mod is already installed, so just FTP the load_noblabber.php and the (fixed) load.php back up.  If it works... good! If not, do the rename trick again.

Once you're happy that everything's good, you can delete the load_noblabber.php.
Title: Re: Blabberizer
Post by: TEOC2 on May 20, 2007, 03:19:10 AM
Thanks, that worked great, easy even for a relative n00b like me.
The hardest part was finding load.php  :P
public_html/forum/Sources/Load.php
Title: Re: Blabberizer
Post by: Jump1979man on June 01, 2007, 01:14:30 PM
nice idea for a mod.
Title: Re: Blabberizer
Post by: babanner on June 09, 2007, 06:57:55 AM
I know a great feaure that could be added! It's to add blabberize as a punishment in "Add new ban" . To be added a new option in restriction: Partial ban , Blabberize this user! :) Thanks in advance!
Title: Re: Blabberizer
Post by: anshar on June 11, 2007, 03:53:40 PM
Would be good if you can blabelize Troll's signatatures too, my trolls often using this space to offend the other users.
Title: Re: Blabberizer
Post by: Smurfbutcher Bob on June 11, 2007, 11:39:54 PM
Done, Anshar.

Version 2.1:
- Blabberizes the user's signature as well. (Anshar)
- Moves the "blahs" and "blubbers" to the mods.language file for easier customization / intl support. (KesKin)
- Falls back on hard-coded blahs and blubbers if not found in language file (for people with 20 million themes)

If you're not interested in having the user's signature blabbified, then you don't need to update.  If you do... simply uninstall the old version, install the new one as desired.

With the moving of the blahs and blubbers to modifications.english, admins can now customize it on a per-theme and per-language basis. Want to make it "The Crapinator"?  Crap crap crap, crap crap. Crap! It's perfect for fanfic sites!
Code (themes/xxx/languages/modifications.english.php) Select
$txt['blab3'] = 'crap';
$txt['blab4'] = 'crap';
$txt['blab5'] = 'crap';
$txt['blab6'] = 'crap';
$txt['blab7'] = 'crap';
$txt['blab8'] = 'crap';


The ban list idea... way too much work  ;D  You might be interested in the disemvoweler, however - it's group based, meaning you can define a restricted group and place the user in that.  http://custom.simplemachines.org/mods/index.php?mod=778 (http://custom.simplemachines.org/mods/index.php?mod=778)

Good heavens. This thing has "upgrades" now. That's just so wrong, lol.
Title: Re: Blabberizer
Post by: Daniel15 on June 12, 2007, 01:45:37 AM
QuoteGood heavens. This thing has "upgrades" now. That's just so wrong, lol.
Haha, I was thinking the same thing - Such a silly little mod is growing bigger! :P
Title: Re: Blabberizer
Post by: L.G.S on June 25, 2007, 04:18:23 PM
I can't get this to work.

Installed fine, but it doesn't blabberise posts when I select "Blabberise this members posts" in their profile
Title: Re: Blabberizer
Post by: Smurfbutcher Bob on June 25, 2007, 07:06:35 PM
It should be pretty difficult for this to not work... so, verify the following. Hopefully it'll be something simple.

1. When you check the box and click "save", leave the profile and then come back to it. It should still be checked (proves the database got updated correctly).
2. You should be viewing the posts using the normal board display - "New posts since last visit", or by manually selecting a topic from a board view. (proves display.php got updated correctly). Note that "View recent posts of this member" will not be affected.
3. In the user's profile, the "blabberize" checkbox should have "blabberize this member's posts" next to it (proves that modifications.english.php got updated correctly).
4. Should not be any error messages in the error log from this mod (provides confidence that everything is generally correct).

Post back!  We'll find it...
Title: Re: Blabberizer
Post by: L.G.S on June 25, 2007, 07:30:33 PM
Sorry it was me making a mistake!

I installed then looked in a member's profile under Show Posts and it showed the actual posts, so I assumed it didn't work. But I soon found out that the Show Posts section of the profile was not updated for this mod, and it was working in the main forum ;)
Title: Re: Blabberizer
Post by: Smurfbutcher Bob on June 25, 2007, 07:35:55 PM
Oh, good.  I was hoping that was it :)  The idea behind the mod is to cause grief (or send a message), not actually censor. I figure we'd just delete their posts if that's the case.

What user did you nail at ruthlessintent?   :P
Title: Re: Blabberizer
Post by: L.G.S on June 26, 2007, 03:14:15 AM
Quote from: Smurfbutcher Bob on June 25, 2007, 07:35:55 PM
Oh, good.  I was hoping that was it :)  The idea behind the mod is to cause grief (or send a message), not actually censor. I figure we'd just delete their posts if that's the case.

What user did you nail at ruthlessintent?   :P

One who was constantly spamming and insulting staff members ;)
Title: Re: Blabberizer
Post by: LHW on June 29, 2007, 11:04:48 AM
I installed this on my forum (v1.1.3), and it works, but had two issues.

First, when you go to edit a person's profile, there was no text displayed...it's just an unidentified check box in the location indicated in the preview pic.

Secondly, when editing a profile, it kicks off this error:

Quote8: Undefined index: blabberized
File: /home/essen6/public_html/tcf/Themes/default/Profile.template.php (eval?)
Line: 1231

Then I realized that the fresh install of SMF defaulted to -utf8, so I copied modifications.english.php to modifications.english-utf8.php, and it fixed those two problems.

Not sure if there's a way to check for this when installing mods, so just thought I'd mention it.  :)
Title: Re: Blabberizer
Post by: Smurfbutcher Bob on June 29, 2007, 08:10:36 PM
Does no good for you, E.K., but version 21u now does the mods-english-utf8 file. 

Thanks for the heads up!

2.1u is a setup-change only - existing installs can probably ignore it.
Title: Re: Blabberizer
Post by: JackRock on July 12, 2007, 01:09:05 AM
One option might be offer a way to localize it to a specific board.  on some areas I moderate that use SMF forum, we want to be able to blabberize a user's posts, but only in one or two sections.
Title: Re: Blabberizer
Post by: Smurfbutcher Bob on July 13, 2007, 12:20:05 AM
Hmmm...

The challenge I see is that the current permission (which is based on "Edit Account Settings (any)") isn't appropriate for a board-level moderator, which is how I'd like to see it work.  The existing permission obviously works well with a global moderator, though, so blabberizing "per-board" shouldn't be too much of a stretch - the caveat being that a "normal" moderator would need a global mod (or admin) to perform the blabberizing.

That'd work, but... I think a board-level mod should be able to do it by themselves, if allowed.  Lemme think about it over the weekend and see what I come up with.
Title: Re: Blabberizer
Post by: jvan on September 10, 2007, 08:08:12 PM
Thank you so much for this wonderful mod. I love your sense of humor!
Title: Re: Blabberizer
Post by: anshar on November 18, 2007, 12:03:25 PM
@Smurfbutcher Bob

I've found a way to read blabbleblized user posts by going to his profil and click on "Show the last posts of this person". Maybe you could add encrypting to this place too?
Title: Re: Blabberizer
Post by: Smurfbutcher Bob on November 20, 2007, 12:12:59 AM
Hey, Anshar!

I specifically only did the main board view, and avoided any other ways that aren't the normal viewing (reply, quote, view-recent, rss, etc).

The tool's primary use is to send a warning to the poster, and (hopefully) disarm them - for the purpose of reigning them back in.  It's not meant to actually censor, so there's lots of ways to (still) read the message. It's just a wake-up call for the poster, hopefully so that you can keep them as a user.

The tool's secondary use is to abuse your users. We occasionally run a "boneheaded comment" contest. The winner gets blabberized for a couple of days.  We also have a couple of good friends who get blabberized anytime and everytime they contradict the board-op about anything, no matter how wrong the board-op is.  They can still participate as the board enjoys their "prize", because everyone can still read their posts. It's good fun, and the users love it.  :P

As a general rule, if a message is so evil that it should not be viewed... you're better off killing it. Also look into vWarn, or visual warning mod, etc.

Make sense?
Title: Re: Blabberizer
Post by: unrelenting on January 01, 2008, 12:53:08 AM
Can anyone give me the code to manually add that will force the blah code in the quotes when someone quotes the blah blah post? Surely there's a way to do that.
Title: Re: Blabberizer
Post by: mrwconnected on June 06, 2008, 12:13:39 AM
I love the idea of this mod, but i can't get it to work.  I installed the package through the installer and it says it installed without issue (SMF 1.1.5).  However, i don't have the blabberizer options i should have in the admin end.  What did i mess up?

Thanks,
Jeff
Title: Re: Blabberizer
Post by: Smurfbutcher Bob on June 11, 2008, 06:23:31 PM
The only possible screws to come loose are related to custom themes. The mod can (obviously) only install into the default one.

Instructions for manually editing your themes can be found in a readme.txt that's included in the zip file.

I'll be in the wilds of Alaska for a couple of weeks starting tomorrow, so I won't be able to reply until I get back. Make a backup of any files you touch BEFORE you touch them, and give it a shot.
Title: Re: Blabberizer
Post by: unrelenting on June 28, 2008, 01:33:22 PM
Is there any way to remove the quote button for posts that are blabberized? This will keep the person who has been blabberized from getting their drivel read when someone quotes them.

To be honest I installed this over a year ago and this may have already been added to newer releases. If so, just let me know.
Title: Re: Blabberizer
Post by: LP on October 09, 2009, 02:51:47 PM
This looks like it would be incredibly funny.  My forum would LOVE it.  Wish I could figure out how to make it work for SMF 2.0 RC1.2.  The Profile.php file has changed so much since this was written, it is difficult to figure out how to adapt it.
Title: Re: Blabberizer
Post by: mattio41 on August 29, 2011, 06:45:19 PM
I know it is an old topic, but please get this written for 2.0 !!! Pretty please
Title: Re: Blabberizer
Post by: danielwmoore on November 30, 2013, 11:33:31 AM
Quote from: mattio41 on August 29, 2011, 06:45:19 PM
I know it is an old topic, but please get this written for 2.0 !!! Pretty please

Yes, and now it's 2 years older. This would be hilarious to utilize.

However, I'd like to see someone create a new mod for this for 2.0.*, one that would automatically activate on a certain date (April 1st, of course), and either:
Blabberize all odd numbered posts displayed
or
Blabberize the post that belong to the person reading the posts.

That would be a fabulous April Fool's Day joke, if anyone is up for it before the end of March.
Title: Re: Blabberizer
Post by: Sakae on February 20, 2014, 07:57:31 AM
A few years later, but I still have hope on it :)
Title: Re: Blabberizer
Post by: TheListener on February 20, 2014, 06:54:06 PM
Quote from: Sakae on February 20, 2014, 07:57:31 AM
A few years later, but I still have hope on it :)

You will have to make a new topic within Mod Requests.