Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Yilmaz - Hide [code,php,html] content from guests (vb5.6.x) Details »
Yilmaz - Hide [code,php,html] content from guests (vb5.6.x)
Mod Version: 1.3.0, by yilmaz (Coder/Designer) yilmaz is offline
Developer Last Online: Dec 2020 I like it Show Printable Version Email this Page

vB Version: 5.5.5 Rating: (1 vote - 5.00 average) Installs: 6
Released: 27 Oct 2020 Last Update: 29 Oct 2020 Downloads: 23
Supported Additional Files  

Tested in vbulletin version 5.6.4 works fine

Features:
This mod makes it so you can hide [CODE] [PHP] [HTML] BBcode content from guests
Hide [CODE], [HTML] ve [PHP] from Unregistered/Unverified account.

Description:
This product allows you to decide if you want to hide [CODE], [HTML] and [PHP] BBCode content from Unregistered/Unverified on your site.
Hidden content is replaced by a link to your registration page for guests and a simple message for restricted user groups.

========================================
How to install:
========================================
Upload the content of Yilmaz - Hide [code,php,html] content from guests directory to your root.
that's all it.
enjoy..



Please Mark as Installed if you use this.
Donations always appreciated.


1.3.0
Cache issue fixed

========================================
How to uninstall:
========================================
1. Remove the package "yilmazhidebbcodes" that located in /core/packages/
2. Go to "Manage Products" in the admincp and delete the product named "Yilmaz - Hide [code,php,html] content from guests"

Download Now

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

Screenshots

Click image for larger version

Name:	2020.10.27-14_37_54.png
Views:	26
Size:	41.6 KB
ID:	157839   Click image for larger version

Name:	2020.10.27-14_39_26.png
Views:	32
Size:	158.6 KB
ID:	157840  

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
Add-On Releases Yilmaz - Hide Links From Guests (Compatible 5.6.x) yilmaz vBulletin 5.x Products & Extensions 3 07 Nov 2020 22:58
Mini Mods Yilmaz - vb5 GDPR I AGREE yilmaz Modification Graveyard 5 29 Jun 2018 16:39
Show Thread Enhancements MARCO1 Hide Thread Content - With excluding forum to hide content MARCO1 vBulletin 4.x Add-ons 81 06 Jun 2018 22:15
Show Thread Enhancements MARCO1 Hide Thread Content - With excluding forum to hide content MARCO1 vBulletin 3.8 Add-ons 14 03 Aug 2014 15:38

Comments
  #2  
Old 27 Oct 2020, 22:24
Chicoynano's Avatar
Chicoynano Chicoynano is offline
 
Join Date: Aug 2017
I just want to make a suggestion just to point

I just want to make a suggestion just to point. In hiding html code the phrase Click Here To Register does not appear… It is found in core / packages / yilmazhidebbcodes / api / content / text.php on line 50. Maybe you left it that way for some reason but I left screenshots for if it is of interest for the text to be displayed. As always, thank you very much for your work and I'm just trying to help.
Attached Images
File Type: png no clik.png (24.3 KB, 10 views)
File Type: jpg falta.jpg (46.2 KB, 9 views)
File Type: jpg code final.jpg (39.6 KB, 6 views)
Reply With Quote
  #3  
Old 28 Oct 2020, 00:55
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
@Chicoynano
Thank you for your attention.
I edited the overlooked part.
It does not accept bbcode and html tags in HTML and PHP.
It is necessary to find a solution to this, I would be glad if someone who knows the solution definitely offers a suggestion.
Thanks again.
Attached Images
File Type: jpg 2020.10.28-00_54_06.jpg (71.4 KB, 5 views)
File Type: png 2020.10.28-00_43_55.png (20.5 KB, 6 views)
Reply With Quote
  #4  
Old 28 Oct 2020, 03:09
Chicoynano's Avatar
Chicoynano Chicoynano is offline
 
Join Date: Aug 2017
So far i got this
Attached Images
File Type: png Captura de pantalla 2020-10-28 a las 3.07.02.png (27.6 KB, 13 views)
Reply With Quote
  #5  
Old 28 Oct 2020, 07:13
Zweeper Zweeper is offline
 
Join Date: Jan 2005
Hey, just installed, but problem as previous versions of this hack. Maybe it is just me?



1. Load a page with a hidden code as a guest, delete cache.
2. visit the page as user: code is hidden.

3. visit the page as user (you did that before), delete cache.
4. visit the page as a guest: code is not hidden and you can see all content




Can anyone confirm this? VB 5.6.4
Reply With Quote
  #6  
Old 28 Oct 2020, 09:34
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
Originally Posted by Zweeper View Post
Hey, just installed, but problem as previous versions of this hack. Maybe it is just me?



1. Load a page with a hidden code as a guest, delete cache.
2. visit the page as user: code is hidden.

3. visit the page as user (you did that before), delete cache.
4. visit the page as a guest: code is not hidden and you can see all content




Can anyone confirm this? VB 5.6.4
I tested it again in VB 5.6.4, if I put the text.php line 18 in front of it with // comment, it will be what you said. 18. This line will delete the cache.
The problem may be whether or not line 18 works.

core/packages/yilmazhidebbcodes/api/ content/text.php on 18. Screenshot
Attached Images
File Type: png 2020.10.28-09_13_24.png (27.9 KB, 6 views)
Reply With Quote
  #7  
Old 28 Oct 2020, 09:38
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
Originally Posted by Chicoynano View Post
So far i got this
It's bad that there is no separate login page in VB 5.x.x.
How do we detect the login link, that's the problem.
Reply With Quote
  #8  
Old 28 Oct 2020, 10:13
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
Originally Posted by Zweeper View Post
Hey, just installed, but problem as previous versions of this hack. Maybe it is just me?



1. Load a page with a hidden code as a guest, delete cache.
2. visit the page as user: code is hidden.

3. visit the page as user (you did that before), delete cache.
4. visit the page as a guest: code is not hidden and you can see all content




Can anyone confirm this? VB 5.6.4
Cache issue fixed in version 1.2.0
Attached Images
File Type: png 2020.10.28-10_07_14.png (23.5 KB, 3 views)
Reply With Quote
  #9  
Old 28 Oct 2020, 10:20
Zweeper Zweeper is offline
 
Join Date: Jan 2005
Seems to work now! Good job, nice hack! I keep on testing
Reply With Quote
  #10  
Old 28 Oct 2020, 12:51
lange lange is offline
 
Join Date: Apr 2003
Thank you very much! I will test later.
Reply With Quote
  #11  
Old 28 Oct 2020, 19:07
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
Originally Posted by Zweeper View Post
Seems to work now! Good job, nice hack! I keep on testing
Originally Posted by Wayne Luke;n4449447
Do you have "Cache BBCode Render by Usergroup" enabled on your site?
This can help

your-website.ext/admincp/options.php?do=options&dogroup=bbcode

Cache BBCode Render by Usergroup
Reply With Quote
  #12  
Old 28 Oct 2020, 20:55
Zweeper Zweeper is offline
 
Join Date: Jan 2005
It is working since your last update without the cache bbcode render by usergroup option!
Reply With Quote
  #13  
Old 29 Oct 2020, 10:50
delicjous's Avatar
delicjous delicjous is offline
 
Join Date: Nov 2014
Great idea, and I respect your work... but I have some concerns.
The way you did the trick wipe out the entire cache every time a user LOOK into any post/ thread. Thats because you emty the cache every time an object of the class of your API-Extension been created/ initialized (thats the way the constructor works). So the forum will never build a cache of any data if any of your hide-mods are installed and that will (probably) affect the entire page speed. #Also if you install more than one of your hide-mods, the database-tables will be emptied for each mod. So if 2 of your mods installed and a user is open 1 thread, post, page.... the entire cache-table-data will be deleted 2 times. There is a table cache and another cacheevent. You comment out the part that emty the cacheevent ... you should delete that also.

If it is ok for you, I will upload a similar mod in the next days/weeks that only delete the cache of the nodes with bbcodes. So the cache works almost normal... and if the option "Cache BBCode Render by Usergroup" is enabled you do not need to delete the cache... so I would select that option to find out if it is necessary to delete the cache of the post.
__________________
vBulletin-Forum.de closed!
Reply With Quote
  #14  
Old 29 Oct 2020, 13:43
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
Originally Posted by delicjous View Post
If it is ok for you, I will upload a similar mod in the next days/weeks that only delete the cache of the nodes with bbcodes. So the cache works almost normal... and if the option "Cache BBCode Render by Usergroup" is enabled you do not need to delete the cache... so I would select that option to find out if it is necessary to delete the cache of the post.
@delicjous, thank you for the great suggestion.
I will apply and update the option you said.
Thanks again.


I did as you suggested

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


Last edited by yilmaz; 29 Oct 2020 at 14:26.
Reply With Quote
  #15  
Old 29 Oct 2020, 15:20
delicjous's Avatar
delicjous delicjous is offline
 
Join Date: Nov 2014
Originally Posted by yilmaz View Post
@delicjous, thank you for the great suggestion.
I will apply and update the option you said.
Thanks again.


I did as you suggested

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Thats only a part of my suggestion but even that is more solid than before (recommand if empty because options could be empty!).
Now you have the best solution for users who cachebbcodebyusergroup, but if not cachebbcodebyusergroup the entire cache is still emtied every time a user look into a post. The cache of 30 posts are about 1MB of data, so if you have 30 000 posts and a highly frequented forum you have around 1000 MB data without cache by usergroup, even you use only 5 usergroups the cache could grow fast. So this option is not good for everyone.
__________________
vBulletin-Forum.de closed!
Reply With Quote
Reply

Tags
bbcode, guest, hidde, vb5.6.x


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 01:33.

Layout Options | Width: Wide Color: