Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 05-31-2009, 08:01 PM
neverstop neverstop is offline
 
Join Date: Jan 2007
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 05-31-2009, 08:42 PM
blaize blaize is offline
 
Join Date: Apr 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 05-31-2009, 08:46 PM
neverstop neverstop is offline
 
Join Date: Jan 2007
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 05-31-2009, 08:50 PM
blaize blaize is offline
 
Join Date: Apr 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 05-31-2009, 08:54 PM
neverstop neverstop is offline
 
Join Date: Jan 2007
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh nice. I will give it a try blaize thanks!
Reply With Quote
  #6  
Old 05-31-2009, 08:59 PM
blaize blaize is offline
 
Join Date: Apr 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Welcome.
Reply With Quote
  #7  
Old 05-31-2009, 09:10 PM
neverstop neverstop is offline
 
Join Date: Jan 2007
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #8  
Old 05-31-2009, 09:16 PM
blaize blaize is offline
 
Join Date: Apr 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 05-31-2009, 09:37 PM
neverstop neverstop is offline
 
Join Date: Jan 2007
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 05-31-2009, 09:44 PM
blaize blaize is offline
 
Join Date: Apr 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT. The time now is 02:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04782 seconds
  • Memory Usage 2,248KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete