Guest only BBC

Started by ɔɔɔɔɔɔuɥoɾ, August 08, 2010, 08:10:55 PM

Previous topic - Next topic

ɔɔɔɔɔɔuɥoɾ

Link to Mod

This BBC tag will add information to posts which only guests can see. (you will need to add something else other than the guest message to a post, empty body)

Syntax

[guests_only]Some content just for guests[/guests_only]


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

thellie

so if this is possible, would you be able to to do the opposite bbcode?

ie [logged_only]blahblahblah[/logged_only]

and the concept behind this is so that more posts can be in the public domain, but still retain some for of permission control within the actual post... ne c'est pas?
If you have any support questions, feel free to ask - be safe in the knowledge that I won't help because... I know nothing!

ɔɔɔɔɔɔuɥoɾ

I have a mod for that in the approval list already, called Member only BBC, same thing but hides things from guests

The concept behind this mod is to be able to have something in the post only guests can see, i.e. a reason for something you maybe stopped them seeing


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

thellie

those together will be really handy - looking forward to it :)
If you have any support questions, feel free to ask - be safe in the knowledge that I won't help because... I know nothing!

ɔɔɔɔɔɔuɥoɾ

Yes they certainly would lol :)

You could hide something from guests with the members_only tag, then tell the guests why and to register without the members seeing that message


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

DarkValentine

Smart move dude. I'll use this one, and I'll use the other one when it becomes available.

ɔɔɔɔɔɔuɥoɾ

It should not be long now, that mod is just as simple as this one.
Enjoy :)


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

thellie

#7
not that i'm a programmer or anything, but logic would suggest...

            array(
                'tag' => 'only_members',
                'type' => 'unparsed_content',
                'content' => $context['user']['is_logged'] ? '$1' :'',
            ),


what's the $1 represent?

EDIT: ha, it worked... maybe there's hope for me yet :)

QUESTION: is there/will there be a button eventually?

ANSWER: i just made some, and it works... quite pleased with myself... :)
If you have any support questions, feel free to ask - be safe in the knowledge that I won't help because... I know nothing!

Masterd


ɔɔɔɔɔɔuɥoɾ

Quote from: thellie on August 11, 2010, 03:43:05 AM
not that i'm a programmer or anything, but logic would suggest...

            array(
                'tag' => 'only_members',
                'type' => 'unparsed_content',
                'content' => $context['user']['is_logged'] ? '$1' :'',
            ),


what's the $1 represent?

EDIT: ha, it worked... maybe there's hope for me yet :)

QUESTION: is there/will there be a button eventually?

ANSWER: i just made some, and it works... quite pleased with myself... :)

That is the logic, and it does work, ...wonders why its not approved yet, yet that one is...


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Bugo

What about BBC button in Message Editor?

ɔɔɔɔɔɔuɥoɾ

#11
Quote from: Bugo on August 16, 2010, 05:08:07 AM
What about BBC button in Message Editor?

I decided not to add it, so that members will not be posting spam using it if they don't know about it, logged in as admin you would never know the spam was ever their


EDIT:

I will probably add permissions to this, to prevent members spamming to guests using this, you would be able to choose which membergroups are allowed to use the tag, then I would be able to add a button for those who are allowed to use the tag.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Advertisement: