Advertisement:

[Free] Hide content within a BBCode from guests

Aloittaja Mari-chi, heinäkuu 24, 2011, 08:56:33 IP

« edellinen - seuraava »

Mari-chi

Version
* SMF 2.0 RC5

Description
* Hide content within a certain BBCode from guests (mine is a custom BBCode called [quid] [/quid]).

Permissions
None

Feature Set
* Admin Option: Turn feature on/off
* No member options

Alex' Manson

#1
Thanks for posting the topic!
i was searching for one.
SUPPORT

Mari-chi

Same!

There's a mod/code edit in Tips & Tricks to hide contents within the [*code] tag... I tried figuring it out to get it to work for my custom BBCode, but I couldn't. *sadface*

live627

Koodi (Find in ./Sources/Subs.php) [Valitse]

array(
'tag' => 'br',
'type' => 'closed',
'content' => '<br />',
),


Koodi (Add After) [Valitse]

array(
'tag' => 'quid',
'type' => 'unparsed_content',
'content' => '$1',
'validate' => create_function('&$tag, &$data, $disabled', 'global $user_info; $data = !$user_info[\'is_guest\'] ? $data : \'\';'),
),

Mari-chi


Advertisement: