vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   members only bbcode (https://vborg.vbsupport.ru/showthread.php?t=215010)

neverstop 05-31-2009 08:01 PM

members only bbcode
 
Hi,

I am looking for a bbcode mod that will allow users to make part of their posts visible to logged in users only.

For example:

[members]content in here is only viewable to logged in members[/members]

I have a thread in the paid section for this too FYI: https://vborg.vbsupport.ru/showthread.php?t=214375

Cheers

blaize 05-31-2009 08:42 PM

Try Abe1's Advanced BBCode Permissions mod

Quote:

This hack will give you advanced control on BBCode. You will be able to define for each usergroup what BBCode they may or may not use. This hack works for both standard AND custom BB code!
Works on 3.82.

neverstop 05-31-2009 08:46 PM

Hmm not sure if that will do what I am looking for blaize.

I am looking for a new bbcode that works as such.

When making a post a user can put part of his post in the new tag so that only members logged in can see that part of the post.

Does that make any sense?

blaize 05-31-2009 08:50 PM

Yes it does NeverStop but I use the Advanced BB Code Permissions mod to do just that.

I created a simpler spoiler tag and using Abe's mod to not allow guests/unregged to use it. They see the spoiler show button but nothing happens when they click it so it's obvious there's hidden content in the post.

neverstop 05-31-2009 08:54 PM

Oh nice. I will give it a try blaize thanks!

blaize 05-31-2009 08:59 PM

Welcome.

neverstop 05-31-2009 09:10 PM

Well it doesnt seem to work for me.

I installed the advanced bbcode mod, and checked "no" for my spoiler tag. But when I was logged out i was able to click the "show" button and view the content

--------------- Added [DATE]1243807866[/DATE] at [TIME]1243807866[/TIME] ---------------

can you share your spoiler tag bbcode please?

blaize 05-31-2009 09:16 PM

Make sure you select NO for unregged usergroup in the advanced BB Code Permissions mod and if necessary clear your browser cache and cookies to make sure your board sees you as logged out or use a different browser to check.

Not sure where the original spoiler code came from but I hacked it a bit to do what I wanted it to do.

Code:

<span> <span style="margin-bottom: 5px; font-weight: bold; color: #000000;"> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display = '';this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display = 'none'; this.value = 'Show';}"> </span> <span> <span style="border: 1px inset 0px; padding: 0 0px 0 0px; display: none;">Hides This Text</span> </span> </span>
--------------- Added [DATE]1243808367[/DATE] at [TIME]1243808367[/TIME] ---------------

Also make sure you select Yes when it asks you in each usergroup setting if you want to use the mod or allow default BB permissions for that usergroup.

neverstop 05-31-2009 09:37 PM

Well I dunno what I could be doing wrong here.

Do you want to turn on Advanced BBCode for this Usergroup? is set to yes.

All radio buttons are clicked yes except for my new bbcode. But as a guest (using a diff browser even) I can still view the "hidden content"

Can you confirm that you can show the contact when you click the button: http://www.borispoker.com/82542-post50.html

blaize 05-31-2009 09:44 PM

Yeah I can click the show button and see your content.

Try here and tell me what happens.



--------------- Added [DATE]1243809973[/DATE] at [TIME]1243809973[/TIME] ---------------

Are you using a mod to make members reply before they can download content? If so i don't know if that might interfere with the advanced bb code permissions mod.


All times are GMT. The time now is 11:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01303 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete