PDA

View Full Version : Binary scrambled Posts


Andreas
07-01-2005, 10:00 PM
Binary scrambled Posts

Description
This Hack is useless :D
It allows you to specify that certain Usergroups (in certain Forums)
can only see Posts "scrambled" as Binary.

Details
1 Plugin XML
1 Bitfield XML
1 Phrase

Please only click Install if you actually have installed/are using this Hack, and click Uninstall when you don't use it any longer!

Guest190829
07-02-2005, 03:01 AM
lol, this is good as ban punishment! Good job! :)

Chris M
07-02-2005, 10:07 AM
Not more bloody binary :p

Good idea though ;)

Satan

yoyoyoyo
07-02-2005, 11:29 AM
LMAO- great idea! not useless!

Chris M
07-02-2005, 11:45 AM
Works well - It even scrambles the Poll name and voting options :)

Satan

Andreas
07-02-2005, 07:52 PM
Well ... it scrambles everything that is being parsed for BBCode within a Forum ;)

yoyoyoyo
07-02-2005, 08:11 PM
can this be done in 3.0.7?

Andreas
07-02-2005, 08:14 PM
It could ... but at least I am not willing to do that :)
If anwone wants, feel prto to port.

yinyang
07-03-2005, 07:13 AM
KirbyDE, thank you so much for this hack. i actually think this is a great "incentive" for people to join my forum.

for example, all unregistered members and guests will see all the posts still, but it will be in binary. a link is provided to decode the posts, they just have to cut and paste into that section and decode.... if they find this to be a hassle, then they cna just register.

registered users' posts are automatically decoded.

i am attaching a small zip file that contains a php file a guest can use to decode (as well as encode) the posts. the author has given permission to redistribute. just upload the file to your directory and put a link in the navbar to it, something like "Posts Decoder".

i am sure it isn't too much of a hassle to remove the "encode" portion of the file if necessary.

Xenon
07-03-2005, 12:52 PM
nice funny hack ^^

Chris M
07-03-2005, 02:32 PM
nice funny hack ^^
I can see this being done here as a practical joke :p

If I turn up one day and everything is Binary I think I'll have a coronary :p

Satan

Dan
07-03-2005, 02:43 PM
Hmm... make the banned usergroup see binary....

/me adds to the to install list.

Christine
07-03-2005, 03:14 PM
This is a RIOT! :D

* Christine adds to the install list as well

coffeefix
07-03-2005, 03:27 PM
Does not work for me. I'm using beta 3.

Andreas
07-03-2005, 09:13 PM
Does not work for me. I'm using beta 3.
Hmm, it should as it was developed on Beta 3.
Have you followed all installation instructions Carefully?
Have you enabled this in Usergroups and/or Forum Permissions?

coffeefix
07-04-2005, 01:15 AM
yup, I've done all of the above.

Andreas
07-04-2005, 01:41 AM
Strange. Can you send me a PM with an admin account for your site?

coffeefix
07-04-2005, 02:19 AM
Well let me first ask, does this work with guests?

Andreas
07-04-2005, 04:05 AM
Yes it does.

Bulent Tekcan
07-04-2005, 09:57 AM
But still see in preview :) If it is same prosedure in preview and archive,yes very good.

Cheers

Andreas
07-04-2005, 10:22 AM
It does not show up on preview intentionally.
It also does not work in the Archive, sorry.
I think this would require code modifications

Biker_GA
07-05-2005, 11:34 PM
LOL! This is going to be perfect come April 1st! :)

Biker_GA
07-06-2005, 12:45 AM
I just ran into a problem with this. It's not saving when selected.

Select Custom, then check scramble posts, then save. Go back to view the permission and it's reset to No again.

This is in both Forum permissions and Usergroup settings. :(

Andreas
07-06-2005, 12:51 AM
Hmm, it should save.
Do you have any other Hacks installed?

Biker_GA
07-06-2005, 12:59 AM
Hmm, it should save.
Do you have any other Hacks installed?
ROTFLMAO! Oh yeah! I've been going absolutely nuts trying to break something on the test server. I'm showing 19 plugins (including this one) in the list.

Biker_GA
07-06-2005, 01:03 AM
Gave me an idea.. I went and disabled the other 18 and attempted to select it again under Forum permissions and Usergroup. No joy. Still won't save. :(

Andreas
07-06-2005, 01:12 AM
Are there any bitfield_*.xml-Files in your includes/xml directory except bitfield_scrambleposts.xml and bitfield_vbulletin.xml?
Do you have Hacks installed that modify or forumpermission.php?

Biker_GA
07-06-2005, 01:19 AM
Are there any bitfield_*.xml-Files in your includes/xml directory except bitfield_scrambleposts.xml and bitfield_vbulletin.xml?
Do you have Hacks installed that modify or forumpermission.php?

The only bitfield_*.xml files are the two you listed.

This is what I have loaded as far as plugins. As far as I know, none of them have affected the forum permissions.


Hook Location : bbcode_parse_start
Binary-Scrambled Posts

Hook Location : cron_script_cleanup
Hide Threads with unfinished Polls

Hook Location : fetch_userinfo
New PM On Forum Home (If Unread) [Template Cache]

Hook Location : forumdata_presave
Hide Threads with unfinished Polls

Hook Location : forumhome_complete
New PM On Forum Home (If Unread) [Template Alteration]

Hook Location : forumhome_start
New PM On Forum Home (If Unread) [Main]

Hook Location : global_complete
Realtime Template Compressor

Hook Location : global_start
Banned Idiot

Hook Location : newpost_process
Hide Threads with unfinished Polls

Hook Location : newreply_quote
Binary-Scrambled Posts

Hook Location : newreply_start
Hide Threads with unfinished Polls

Hook Location : postbit_display_complete
Allow members to report own posts
Galaga Hack

Hook Location : profile_updatesignature_start
Signature Image Size Limiter

Hook Location : report_send_complete
Create Reported Post as Thread

Hook Location : report_send_email
Disable Reported Post E-mails

Hook Location : showthread_start
Hide Threads with unfinished Polls

Hook Location : threaddata_presave
Hide Threads with unfinished Polls

Hook Location : threadfpdata_presave
Hide Threads with unfinished Polls

Andreas
07-06-2005, 01:36 AM
Strange.
You did rebuild the Bitfield Cache upon installation?

Biker_GA
07-06-2005, 01:46 AM
That did it. :)

Since I had imported the xml file via the plugin manager, I completely overlooked the bitfield requirement in the manual installation file. Thank you.

Andreas
07-06-2005, 01:50 AM
Plugin Manager != Advanced Plugin Manager ;)
Advanced Plugin Manager (APM) is a Hack I am working on that automatically installs Phrases, Settings ,Templates, Queries - and rebuilds the Bitfield Cache if necessary.

Biker_GA
07-06-2005, 01:55 AM
Got it. ;)

Biker_GA
07-06-2005, 02:02 AM
**grin** One of the other admins suggested options to include BCD or Gray Code. LMAO

Andreas
07-06-2005, 02:10 AM
Hehe. Kennify (http://www.namesuppressed.com/kenny/) would also be cool.
Maybe future Versions will include several choosable "encodings"

thedvs
10-06-2005, 04:27 PM
Is there a way to add a text line before the binaries so that when they view threads that are in binary it says please subscribe (link) 101010101 10101 etc or is this just not possible?

yinyang
10-06-2005, 04:40 PM
all you need is a conditional before the code i believe.

thedvs
10-06-2005, 06:38 PM
which i have no idea how to do :) ill wait n see if mighty kirby can help

Andreas
10-07-2005, 10:19 PM
Should be possible.
'Edit the plugin and Replace

$parsedtext = implode(' ', $bin_array);


with

$parsedtext = 'Some message' . implode(' ', $bin_array);

thedvs
10-08-2005, 01:47 PM
omg it works, thanks so much kirby. This will force my new members to subscribe to view posts now. :)

Boofo
10-08-2005, 01:50 PM
omg it works, thanks so much kirby. This will force my new members to subscribe to view posts now. :)

What did you use to replace it with? Just curious. ;)

thedvs
10-08-2005, 08:03 PM
hehe this, just a quick explaination and the subscription link

if (is_numeric($forumid) AND !$this->registry->GPC['preview'] AND ($this->registry->userinfo['forumpermissions']["$forumid"] & $this->registry->bf_ugp_forumpermissions['showscrambled']))
{
preg_match_all('/.{1}/s', $text, $char_matches);
$char_array = $char_matches[0];
foreach ($char_array as $char)
{
$bin_array[] = substr('0000' . base_convert(ord($char), 10, 2), -8);
}
$parsedtext = '<font color ="#FFFF00">To view the contents of this Thread, you need to Purchase a Paid Subsciption to this Board.<br><a href="payments.php">Click here to Purchase a subscription.</a></font><br><br>' . implode(' ', $bin_array);
$parsedhasimages = false;
}

Now if we could do it so that it does this on forums the admin chooses aswell as just the usergroups... KIRBY? :)

Cause I don't think this is a useless hack like Kirby said. It has great potential.

Andyrew
10-08-2005, 10:25 PM
Installed :cool:

Andreas
10-09-2005, 06:49 PM
Now if we could do it so that it does this on forums the admin chooses aswell as just the usergroups... KIRBY? :)

You can enable this on a per forum per usergroup basis - just check youre permissions.

thedvs
10-09-2005, 08:29 PM
AHA, didnt spot that!!! thanks for all your help kirby!

thedvs
10-09-2005, 11:14 PM
Can we have an alternative to binary? Clever members can use online binary decoders to see the thread content.... ARGH

Andreas
10-11-2005, 01:30 PM
Sure - code one and you have one :)

TyleR
10-11-2005, 01:34 PM
you could md5() the text lmbo..but this looks pretty neat, Kriby..will test it out on my localhost today :)

thedvs
10-14-2005, 11:57 AM
kirby i dont know how to code one! :)

Andreas
10-14-2005, 11:58 AM
Well then ... then you're out of luck ;)

LEAD_WEIGHT
10-14-2005, 10:59 PM
Ever try it with fonts? Binary is cool, but like to see more? :bored:

Xtremist
10-15-2005, 01:47 PM
i did all the phrases upload the xml file etc where is the option to make a user group see the binary or is it per member either way could u tell me how

thedvs
10-15-2005, 02:38 PM
its per usergroup or forum
usergroup options &/or forum permissions

thedvs
10-15-2005, 02:39 PM
@Kirby, ah K u meanie :)

Christine
11-05-2005, 05:08 PM
From Kier's announcement: Bitfield XML files use stronger product association
For a bitfield XML file to be parsed, it must be associated with a product that is installed and active. Previously, it was impossible to not use certain bitfield files without deleting them. This is more consistent with CP navigation XML files. Does this mean that we need to redo this as a non vB product, or is that only for an initial install?

Andreas
11-05-2005, 05:11 PM
Should work, as it is attached to vbulletin.
Though it would be better to redo it as product.

Christine
11-05-2005, 05:50 PM
Yeah, I am thinking the same thing. Just for consistency, I am going to set all of them up the same way with their respective [renamed] products.

Renmiri
08-06-2006, 12:48 AM
<s>kk, won't click install since you asked... But it is a cool mod. Downloaded!</s> Installed!

And it doesn't work :(

1) it may be my flaky laptop and my freebie unzipper (Coffeecup) but I had a hell of a time finding the bitfield_scrambleposts.xml file after I unzipped it...

2) After using "brute force" to get the bitfield in, I edited a user and his user group to test it.. Set the permissions to "can only view scrambled" and... It is not scrambling

How do i get it to work on 3.5.4 ?