Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Hide BB Code Content From Unregistered Users Details »
Hide BB Code Content From Unregistered Users
Mod Version: 1.00, by ALBCODERS (Member) ALBCODERS is offline
Developer Last Online: Dec 2014 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (2 votes - 5.00 average) Installs: 23
Released: 11 Jun 2011 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

I couldn't find any addon for vb 4 to hide the bbcode content from unregistered users and showing a register message instead as here on vbulletin.org,so i have just fixed manualy on my forum.
add a new phrase first from Admincp Languages & Phrases Phrase Manager Add New Phrase
  • Phrase Type : GLOBAL
  • Product : vBulletin
  • Varname : hide_code
  • Text : Please Login or <a href="register.php">Register</a> to see codes
Go to your Admincp Styles & Templates Style Manager Your Style BB Code Layout Templates

Open the bbcode_code template and find:

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

add this below:

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

In the same template add above the last </div> :

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

Open the bbcode_html template and find:

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

add this below:

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

In the same template add above the last </div> :

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

Now Open the bbcode_php template and find:

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

add this below:

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

In the same template add above the last </div> :

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

LIVE DEMO

Download Now

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

Screenshots

Click image for larger version

Name:	hide_codes.jpg
Views:	1337
Size:	73.9 KB
ID:	129967  

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
Users Can Hide Posts From Unregistered Browsers TygerTyger vBulletin 3.6 Template Modifications 16 07 Oct 2010 03:36
Hide Posts To Unregistered Users - Posting Option Jafo232 vBulletin 3.5 Add-ons 20 02 Dec 2006 18:14

Comments
  #2  
Old 12 Jun 2011, 10:29
AttalaEA AttalaEA is offline
 
Join Date: Apr 2011
Thanks for this nice addon. I was looking for that.
Reply With Quote
  #3  
Old 13 Jun 2011, 23:56
ellovo ellovo is offline
 
Join Date: May 2010
Thanks Bro great job.....
Reply With Quote
  #4  
Old 16 Jun 2011, 05:34
hiker's Avatar
hiker hiker is offline
 
Join Date: Sep 2009
How do you decide which content to hide? Which bbcode do you use?
Reply With Quote
  #5  
Old 09 Jul 2011, 23:08
nacaruncr nacaruncr is offline
 
Join Date: Nov 2010
I used a hack for 3.8 or 3.5 (I don't remember XD) but this, is the same awesome men thanks

installed + MOTM + 5 stars
Reply With Quote
  #6  
Old 12 Jul 2011, 18:28
as7apcool's Avatar
as7apcool as7apcool is offline
 
Join Date: Feb 2009
Thanks a lot for This
Reply With Quote
  #7  
Old 30 Jul 2011, 22:34
ngocol ngocol is offline
 
Join Date: Jul 2011
can I change the word ? "Please Login or <a href="register.php">Register</a> to see codes" i try but it didnot change any suggestion ?
Reply With Quote
  #8  
Old 31 Jul 2011, 00:15
nacaruncr nacaruncr is offline
 
Join Date: Nov 2010
I've a little problem... sometimes when I put my codes in the bbc tags , or even the registers users it appear the message "Please Login or Register to see the code"

How I can fix it?
Reply With Quote
  #9  
Old 10 Aug 2011, 13:17
ALBCODERS ALBCODERS is offline
 
Join Date: Apr 2009
Sorry but I can't check the codes now because I'm not in my Home these days, and this needs some php functions you can use this other one coded by nhawk

Last edited by ALBCODERS; 14 Oct 2011 at 11:10.
Reply With Quote
  #10  
Old 10 Aug 2011, 21:26
nacaruncr nacaruncr is offline
 
Join Date: Nov 2010
ok ...... I'm using other style, I'm going to try if continue this problem or not

thanks anyway
Reply With Quote
  #11  
Old 12 Aug 2011, 11:59
bumbo's Avatar
bumbo bumbo is offline
 
Join Date: Jun 2011
All I did as you wrote. However, when I wanted to edit bbcode_php, I got the following message:

"1||1313150055||80.65.85.121||s=&do=add&dostyleid=41&title=bbcode_php&group=bbco de&searchstring=&expandset=41|| http://xxx.com/admincp/template.php?...e||Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0Access Denied, you have been logged."

What is the problem Can you help me? Thank you!
Reply With Quote
  #12  
Old 30 Aug 2011, 08:29
hhumas's Avatar
hhumas hhumas is offline
 
Join Date: Aug 2010
i have done everything .. now tell me how to tell which content to hide ....
Reply With Quote
  #13  
Old 03 Sep 2011, 07:10
setishock setishock is offline
 
Join Date: Feb 2008
At your live demo I can see the code for the embedded clocks just fine. Even nabbed one.
__________________
Working on new projects and expanding our horizons. Come by and see what we're up to now.
Reply With Quote
  #14  
Old 03 Sep 2011, 07:53
kfyonur kfyonur is offline
 
Join Date: Apr 2008
i can see too.
Reply With Quote
  #15  
Old 05 Sep 2011, 09:25
westbam666's Avatar
westbam666 westbam666 is offline
 
Join Date: Jul 2011
Originally Posted by bumbo View Post
All I did as you wrote. However, when I wanted to edit bbcode_php, I got the following message:

"1||1313150055||80.65.85.121||s=&do=add&dostyleid=41&title=bbcode_php&group=bbco de&searchstring=&expandset=41|| http://xxx.com/admincp/template.php?...e||Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0Access Denied, you have been logged."...
Beside you on forum is installed probably vBFirewall.
Necessary must uncouple him, install the product then once again to include.
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:37.

Layout Options | Width: Wide Color: