News:

Join the Facebook Fan Page.

Main Menu

Blabberizer

Started by live627, May 18, 2007, 07:42:18 AM

Previous topic - Next topic

live627

Link to Mod

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...

Daniel15

Nice work Smurfbutcher Bob :D
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Harro

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.

sg707

This is hillarious! Usually, I just ban the user but this might be more satisfying....  lol~ awesome idea! Gonna install it~ nice work!!!

sharks

lol.. great idea and this mod can certainly be useful if you have a lot of the 'talking/echo type' leechers ;)

cheers!

TEOC2

#5
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    

Smurfbutcher Bob

#6
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.

TEOC2

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

Jump1979man


babanner

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!

anshar

Would be good if you can blabelize Troll's signatatures too, my trolls often using this space to offend the other users.

Smurfbutcher Bob

#11
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

Good heavens. This thing has "upgrades" now. That's just so wrong, lol.

Daniel15

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
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

L.G.S

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
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Smurfbutcher Bob

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...

L.G.S

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 ;)
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Smurfbutcher Bob

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

L.G.S

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 ;)
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


LHW

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.  :)


Smurfbutcher Bob

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.

Advertisement: