News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Show BBCode content to guests

Started by emanuele, February 11, 2011, 11:55:19 AM

Previous topic - Next topic

emanuele

Depends on the visitor. :P

* emanuele wonders why he did this mod in the first place... ???


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

RAULVK

Ouuu!!!! Thanks for the 0.1.6 versión emanuele!

Shrink

hello sir
At first it is only one mod which is compatible with SMF2.0.1 regarding BBC codes. In its newest release it allowed to stop/ hide any particular BBC code to guest.
Now i have little improvement. when we decide to hide BBC from guest we put our scrip/code for guest  member group. Then shall we add such setting that we can change this guest member group to other member (say Jr. Member)? In this way we can set particular BBC code stetting for each group.
I am asking for this help because i want to hide some VIP content from normal user. IT is allowed to view to only paid members.
what you say?

emanuele

The way the mod works now it would be useless. A quote would be enough to reveal the hidden text.

If you want to have "VIP" content the best way would be to set up a board only for a certain membergroup. ;)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

than

Hi emanuele,

Really nice you mod, it´s basic in my community but I don´t understand why it´s generating a lot of errors in error log. I think every time a visitor view a post with a hidden htl (the bbc code i´m hiding) generates this error:

http://www.xxxxxxxxxx.es/index.php?dummy=1&topic=1689.msg4654
8: Array to string conversion
Archivo: /xxx/xxxxxx/xxxxxxx/www/Sources/Subs.php(1611) : runtime-created function
Líne: 1

The installation was correct, the language strings are correct in modifications-utf8.... Only stop the error when I let the guests to see all bbc codes or when I uninstall the mod.

Please I need your help.
Best regards.
Than.

emanuele

Hi than,

I wonder why I wrote it... :P

May I ask you to attach here your Subs.php?


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

than


emanuele

At line 1611 there is the url tag, and I can't find any "htl" tag, so which tag are you hiding?


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

than

url, sorry i´m referring to url not html  ::)

emanuele



Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

than


NanoSector

A new version of the mod is uploaded to the mod site, install that :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

than

Impresed with your support. Installed the new version, and working perfect.


Really nice joob guys  :laugh:

Best regards.  ;)

mladja037

This mod not working for youtube bbcode? :/

emanuele



Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.


emanuele

I know that...I mean which youtube bbcode.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.


emanuele

Okay, got it.
In Subs-ShowBBCodeToGuests.php:
Code (find) Select
if (isset($code['validate']) && !in_array($code['tag'], $no_beforeafter_tags))
$code['validate'] = create_function('&$tag, &$data, $disabled', '
$data = \'' . $warning_text . '\';
');

Code (replace with) Select
if (isset($code['validate']) && !in_array($code['tag'], $no_beforeafter_tags))
{
$code['validate'] = create_function('&$tag, &$data, $disabled', '
$data = \'' . $warning_text . '\';
');
if (!isset($code['content']))
$code['content'] = '$1';
}


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

sangham.net

Dear emanuele,

maybe a silly question. I am not sure. Does the mod work on 2.0.4 as well? Thanks for your replay!
The question goes to others as well if they could help me out.

Thanks a lot!




Advertisement: