Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Shuffle Text BB Code (Randomizes text) (BBCode) Details »
Shuffle Text BB Code (Randomizes text) (BBCode)
Mod Version: 1.00, by BirdOPrey5 (IB Staff) BirdOPrey5 is offline
Developer Last Online: Jul 2019 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (1 vote - 5.00 average) Installs: 5
Released: 08 Aug 2010 Last Update: Never Downloads: 0
Supported Re-usable Code  

This BB Code uses Javascript to shuffle the alpha-numeric and some special characters in a block of text. This can be used to create 'puzzles' for your members or perhaps provide answers to questions that aren't immediately apparent should someone accidentally glance at them. The use is of course up to you.

I found this Javascrpt already created on the web and have left the copyright info in tact. I made minor changes to adapt it to a BB Code.

Demo: here.

Add a new BBCode

Title: Random (Shuffle) Text
BB Code Tag Name: ran
Replacement:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Example: [ran]This is a random test[/ran].
Description: This code shuffles text. Do not use the following characters: " {}[]<>&
Use Option: No
Button Image: (optional)
Remove Tag If Empty: Yes
All Disable Options: Yes

The following special characters do not work: " {}[]<>& (There may be others)
The following special characters do work: .,!?$()

Please mark as installed if you use this.
View My Profile for more BB Code Enhancements- they work on all versions.

Example:
[b][ran]A bold example[/ran].[/b] =
ex adlmopbl eA.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
BB Code Enhancements Highlight BBCode - Highlights text with a yellow box (BB Code) BirdOPrey5 vBulletin 4.x Add-ons 21 23 Jan 2016 17:35
BB Code Enhancements Text Fade (Rainbow Faded Text) BBCode BirdOPrey5 Modification Graveyard 34 07 Aug 2011 23:40
BB Code Enhancements Text Fade (Rainbow Faded Text) BBCode BirdOPrey5 Modification Graveyard 4 28 Sep 2010 13:00
BB Code Enhancements Highlight BBCode - Highlights text with a yellow box (BB Code) BirdOPrey5 vBulletin 3.8 Add-ons 0 08 Aug 2010 03:35

Comments
  #2  
Old 08 Aug 2010, 18:52
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Note- this will randomize the letters each time you load the page... If you want to keep the same persistent order each time the page is loaded change the line in the replacement code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace Math.random() with a number between zero and 1, DO NOT MAKE IT = 1!!!

An example is:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.

Last edited by BirdOPrey5; 10 Aug 2010 at 10:18.
Reply With Quote
  #3  
Old 08 Aug 2010, 20:45
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Thank you for this sir!

I was wondering though....could this randomize the letters of each word rather than randomize the entire sentence or phrase?

For example......

THIS IS WHAT I WANT = hsit si hwta i ntaw

....instead of doing the entire phrase, it would give folks an actual clue to "solve the game" with only the actual letters of each word scrambled.

Can this be done?

EDITED: Just thinking about it....I can actually put the code around each word as a 'workaround'.

But, do you know if it could be done automatically to save some time?
Reply With Quote
  #4  
Old 08 Aug 2010, 23:19
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Well anything is possible... let me work on this for a bit and see if I can figure it out... I'm thinking I can split the strings based on spaces and randomize each array that way...
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #5  
Old 08 Aug 2010, 23:22
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
That would be great!
Reply With Quote
  #6  
Old 11 Aug 2010, 18:53
y2krazy y2krazy is offline
 
Join Date: Jun 2003
Real name: Sean
Originally Posted by MagicThemeParks View Post
THIS IS WHAT I WANT = hsit si hwta i ntaw

....instead of doing the entire phrase, it would give folks an actual clue to "solve the game" with only the actual letters of each word scrambled.

Can this be done?
I would love to have this be the case, but how many queries would this add per post on showthread? if it was a paragraph with, let's say 200 words, would it add 200 queries for that one post?

Tagging this Mod, but curious how it will be handled with the potential for so many queries.
Reply With Quote
  #7  
Old 11 Aug 2010, 20:04
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
JavaScript doesn't run queries... it's all handled by the user's browser, not the server, there are no performance issues.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #8  
Old 12 Aug 2010, 02:12
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Originally Posted by BirdOPrey5 View Post
Well anything is possible... let me work on this for a bit and see if I can figure it out... I'm thinking I can split the strings based on spaces and randomize each array that way...
Were you able to figure it out?
Reply With Quote
  #9  
Old 12 Aug 2010, 02:24
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Not yet... ran into some issues... will try and look at it again soon. Will let you know as soon as I have something.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #10  
Old 12 Aug 2010, 03:06
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Sounds great! Thanks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:53.

Layout Options | Width: Wide Color: