Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Safe Tags Obfuscation Details »
Safe Tags Obfuscation
Mod Version: 1.00, by thalamus (Member) thalamus is offline
Developer Last Online: Jan 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.8 Rating: (3 votes - 5.00 average) Installs: 17
Released: 17 Oct 2007 Last Update: Never Downloads: 68
Not Supported Uses Plugins Auto-Template Additional Files Re-usable Code Translations  

Safe Tags v1.0

by Thalamus - October 2007

Nearly two years ago, I was looking at trying to write some code for a forum that would obfuscate certain text within posts. This (somewhat specialized) forum needed a function where, within posts, users could insert text (such as a name, nickname or other reference) that would be humanly readable on the forum pages, but that could not be picked up by search engines or trawler bots.

What I came up with at the time, was using vBcode tags that were 'built-in' by making core file changes to the bbcode class files. These then used javascript to call the base64 functions to meet the requirements. It all worked very well, but unfortunately played havoc with upgrades to vBulletin - each one meant having to re-input the code into the core php files.

With the introduction of the latest versions, and the addition and availability of more hooks, I've developed the function into a product that uses the available hooks, and making things much simpler for updates. There is a file upload, but this is simply a javascript file containing the base64 encode and decode functions.

Tested on vBulletin 3.6.8

What this product does, is to set up a vBcode (BB Code) tag called "safe" which, when used, enables you to place text into your forum posts that, although seen by human viewers of your site pages, obfuscates that text on the raw HTML page for any passing bot or search engine spider.

It does that by using a simple javascript call, to utilize the base64 encode method of encryption. What it does mean, is that if you have instances where you may want something posted on your forum but you don't want it picked up by spiders (names, places), you can now do it quite freely and easily using the Safe Tags method!

If you place an email address or a URL within the [safe] tags, it will not be parsed (although it will be encrypted) and no link will be automatically added to it.

Example:
A simple line of text that contains [safe]a name in here[/safe] means that the text between the safe tags will be encrypted on the raw HTML but viewable on the thread page.
Installation

In the zip file you should have three files:

safe_encode.js
product-safetags.xml
safetags-readme.txt

To install, extract the files within the zip file to your own hard drive, then upload the safe_encode.js file into your forum's clientscript folder.

Go to your AdminCP -> Plugins & Products -> Manage Products, then click Add/Import Product.

In the Import Product section, browse for the file product-safetags.xml wherever you extracted it on your hard drive, set Allow Overwrite to Yes, then click Import.
--------------------------

The product installation will create a new custom BBcode which you can check in your AdminCP -> Custom BB Codes -> BB Code Manager.

--------------------------
This is my first published plugin, and I really don't know how much I can offer in terms of support, so please don't expect too much. It's a very easy and simple mod if you look through the xml file.

My grateful thanks to those who have helped me on here, and also to the authors of the code snippets I've used in this (I'm sorry I can't remember who you are - I'm old, and tnat's my excuse...)

Thanks for reading

Download Now

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

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
End-User Options Add a link to tags.php in footer (help SE find your tags) SEOvB vBulletin 3.7 Template Modifications 6 02 May 2008 09:22
New Posting Features Pre-Defined Topic Tags for Zoints Thread Tags SBlueman vBulletin 3.6 Template Modifications 4 17 Oct 2007 05:42
Show Thread Enhancements Email address masking / obfuscation - Protect your users from spam! buro9 Modification Graveyard 20 02 Apr 2006 17:35
Email Obfuscation Hack MUG vBulletin 2.x Beta Releases 8 13 Aug 2003 01:19

Comments
  #2  
Old 17 Oct 2007, 03:40
thalamus's Avatar
thalamus thalamus is offline
 
Join Date: Sep 2005
Jan 2008 Known Issues: See post http://www.vbulletin.org/forum/showp...7&postcount=19

It displays a blank page with the text to be obfuscated when using the Quick Reply function. Seems to be AJAX related, I'm looking into it.

Last edited by thalamus; 14 Jan 2008 at 03:04.
Reply With Quote
  #3  
Old 17 Oct 2007, 03:47
thalamus's Avatar
thalamus thalamus is offline
 
Join Date: Sep 2005
Just a note to add that there is a color change for the text within the tags - you can change this simply after installing by going to your AdminCP -> Plugins & Products -> Plugin Manager, and editing the Safe Tags plugin by replacing the hexadecimal RGB value with your own.

In other words, find:

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


and replace the #00bbc5 with your own value.

Last edited by thalamus; 17 Oct 2007 at 13:35.
Reply With Quote
  #4  
Old 17 Oct 2007, 03:48
StyleŠ's Avatar
StyleŠ StyleŠ is offline
 
Join Date: Mar 2007
nice job
__________________
Reply With Quote
  #5  
Old 17 Oct 2007, 04:06
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Aug 2005
now this seems like a REALLY cool concept. I say MOTM!!!
Reply With Quote
  #6  
Old 17 Oct 2007, 13:23
TTG's Avatar
TTG TTG is offline
 
Join Date: May 2004
Excellent addition .. thanks thalamus
Reply With Quote
  #7  
Old 17 Oct 2007, 13:44
bmwusa bmwusa is offline
 
Join Date: Feb 2006
good work.... testing!
Reply With Quote
  #8  
Old 17 Oct 2007, 13:51
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Real name: Tim Eason
Very nice! Thanks!
Reply With Quote
  #9  
Old 17 Oct 2007, 17:28
TigerWare TigerWare is offline
 
Join Date: Feb 2007
From one 'old-guy' to another, thanks Thalamus! This is certainly getting the MOTM vote from me! Not because I was the guinea-pig beta test site, but because this is simply EXCELLENT!

/me Clicks (already) Installed!

Kudos!
Reply With Quote
  #10  
Old 17 Oct 2007, 17:59
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
cool idea -I am just wondering what type of text you would want to obfuscate from search engines, though? Also, is there an icon available for use in the text editor?
Reply With Quote
  #11  
Old 17 Oct 2007, 18:14
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
I just installed this, and tried it out and got a weird error. I wrote:

[safe]this is hidden[/safe] this is visible

and submitted the post.

After I posted, instead of the page refreshing and taking me to the page where my post was, instead it displayed an all white page that only said "this is hidden" in the upper left corner, and nothing else.

When I refreshed the forum, the post was there, and the text was hidden, but I did receive that error when posting. I am running a SEO engine, I don't know if that makes a difference, but just thought I would let you know.
Attached Images
File Type: jpg error.jpg (5.6 KB, 49 views)
Reply With Quote
  #12  
Old 17 Oct 2007, 18:23
thalamus's Avatar
thalamus thalamus is offline
 
Join Date: Sep 2005
thanks yoyoyo - I've had a look and cannot replicate the problem - did you View the Page Source on your errored page? I don't have any SEO engines so I can't comment unfortunately, but the safetags plugin only uses two hooks as can be seen in your AdminCP->Plugins & Products->Plugin Manager. It doesn't change any templates apart from appending a <script> tag at the end of the headinclude.

An icon can be added in your BBCode Manager as the information is stored as a Custom BBcode tag.
Reply With Quote
  #13  
Old 17 Oct 2007, 18:33
theFAILURE's Avatar
theFAILURE theFAILURE is offline
 
Join Date: Jan 2005
Originally Posted by yoyoyoyo View Post
cool idea -I am just wondering what type of text you would want to obfuscate from search engines, though?
Take a look at my sig and you will understand why some forums need this.

Excellent work! Congratulation's on your 1st great add on!
__________________
http://theScamBaiter.com
Fighting Scammers Worldwide for Fun and Justice
Reply With Quote
  #14  
Old 17 Oct 2007, 18:38
thalamus's Avatar
thalamus thalamus is offline
 
Join Date: Sep 2005
thank you tF and yes, it's pretty essential for some forums () to have this kind of function
Reply With Quote
  #15  
Old 17 Oct 2007, 18:47
TigerWare TigerWare is offline
 
Join Date: Feb 2007
Originally Posted by thalamus View Post
An icon can be added in your BBCode Manager as the information is stored as a Custom BBcode tag.
Beat me to it... Here's a donation for anyone that wants to add a custom icon for the bbCode.
Attached Images
File Type: gif safety_cone.gif (1,009 Bytes, 602 views)
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 10:03.

Layout Options | Width: Wide Color: