PDA

View Full Version : members only bbcode


neverstop
05-31-2009, 08:01 PM
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:

content in here is only viewable to logged in 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 (https://vborg.vbsupport.ru/showthread.php?t=122942&highlight=advanced+code+permissions) mod

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 1243807866 at 1243807866 ---------------

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.

<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('s pan')[1].getElementsByTagName('span')[0].style.display = '';this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('s pan')[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 1243808367 at 1243808367 ---------------

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 (http://beaconhell.com/b/forums/showpost.php?p=171384&postcount=2) and tell me what happens.



--------------- Added 1243809973 at 1243809973 ---------------

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.

neverstop
05-31-2009, 11:33 PM
i cant view your hidden content, seems to be working on your site.

Yes i have a mod that requires people to post to see hidden content.

Here is another post that doesnt have that hack in the post:

http://www.borispoker.com/83290-post17.html

blaize
06-01-2009, 12:15 AM
It's possible that the 'post to view' mod is interfering with the 'advanced bb code' one but you could also try rebuilding the post cache in maintenance/update counters to see if that makes any difference.

--------------- Added 1243819141 at 1243819141 ---------------

If the 'post to view' product and plugin code is active it might affect any conflicting mods board wide though so you could try disabling the ''post to view' mod and see if the 'advanced bb code' one works for you then.

neverstop
06-01-2009, 06:19 PM
Still no luck after disabling the hide hack and rebuiliding the post cache.

I must be doing something wrong