News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF [hide] BBCode

Started by Kirby, November 28, 2004, 12:40:58 PM

Previous topic - Next topic

FaSan

For quote from quick reply, change this (in Post.php) :



<search>
// Add a quote string on the fron and end.
</search>

<add before>
$row['body'] = preg_replace(array('~\n?\[hide.*?\].+?\[/hide\]\n?~is', '~^\n~', '~\[/hide\]~'), '', $row['body']);
</add before>





FaSan ;)

[darksteel]

is possible add or show other imagen in Message Index ( icon )




Luis "[darksteel]" Alvarado.
Spanish Support
¿Qué es el repair_settings?
No doy soporte por PM, publica tu duda en el foro y tendras respuestas mas rapidas.
My forum:
www.caamboard.com

Kirby


[darksteel]

#23
no, one imagen like Different.

Separating normal post .VS. Post whit HIDE bbc code.



Luis "[darksteel]" Alvarado.
Spanish Support
¿Qué es el repair_settings?
No doy soporte por PM, publica tu duda en el foro y tendras respuestas mas rapidas.
My forum:
www.caamboard.com

Kirby

ah... i think i understand what your saying
shouldnt be TOO hard to do, but I'd rather make the image a user-choosable icon

readme.txt

#25
Quote from: edi67 on December 04, 2004, 08:41:57 AM
i waiting your bbc button and correction about QUOTE

thx kirby best work

Me too, thanks Kirby...


Hagamos el mundo al reves.

readme.txt

#26
hi, have problem:

8: Undefined variable: disabled
file: /home/#####/public_html/forum/Sources/Subs.php
line: 973


Line 971: // [hide]Guests cannot see this! Mwahaha![/hide]
Line 972: $codefromcache[] = '~\[hide\](.+?)\[/hide\]~i';
Line 973: if ($disabled['hide'] || $user_info['is_admin'])
Line 974:     $codetocache[] = '$1';



some solution?
Hagamos el mundo al reves.

Elijah Bliss

Quote from: FaSan on January 31, 2005, 12:04:38 PM
For quote from quick reply, change this (in Post.php) :



<search>
// Add a quote string on the fron and end.
</search>

<add before>
$row['body'] = preg_replace(array('~\n?\[hide.*?\].+?\[/hide\]\n?~is', '~^\n~', '~\[/hide\]~'), '', $row['body']);
</add before>





FaSan ;)

This code does not work for quick reply.

Kirby

change $disabled['hide'] to isset($disabled['hide'])

Elijah Bliss

Quote from: Kirby on February 26, 2005, 11:57:52 PM
change $disabled['hide'] to isset($disabled['hide'])

My bad, Fasan didn't mention that there was a duplicate of this line near the end of the Post.php
// Add a quote string on the fron and end.

Everything works like a charm now, great mod!

FaSan


readme.txt

Quote from: Kirby on February 26, 2005, 11:57:52 PM
change $disabled['hide'] to isset($disabled['hide'])

Thanks Kirby
Hagamos el mundo al reves.

Kirby


Xtasy

#33
hey guys, terrific mod! However, even as guest im still able to view the code [hide]TEST[/hide], any ideas of why this may be? Im using smf 1.0.2. I assume it has sumthin with the parsing not working, but ive checked my steps 5 times.

My Boards: www.xenez.com [nofollow]

Elijah Bliss

Quote from: Xtasy on March 07, 2005, 01:34:38 AM
hey guys, terrific mod! However, even as guest im still able to view the code [hide]TEST[/hide], any ideas of why this may be? Im using smf 1.0.2. I assume it has sumthin with the parsing not working, but ive checked my steps 5 times.

My Boards: www.xenez.com

that shouldn't be the case, guest can't see anything but the message on my board, and I'm running 1.0.2.

You want to sextuple check your code.

Nyx

Quote from: anibal on February 26, 2005, 01:35:52 PM
hi, have problem:

8: Undefined variable: disabled
file: /home/#####/public_html/forum/Sources/Subs.php
line: 973


Line 971: // [hide]Guests cannot see this! Mwahaha![/hide]
Line 972: $codefromcache[] = '~\[hide\](.+?)\[/hide\]~i';
Line 973: if ($disabled['hide'] || $user_info['is_admin'])
Line 974:     $codetocache[] = '$1';



some solution?

I have this same problems

Quote from: Kirby on February 26, 2005, 11:57:52 PM
change $disabled['hide'] to isset($disabled['hide'])

This does not work :( please help

Sys_ZERO

There's a problem with mine aswell  :-\

It just shows as blank .. No words ..

So if I went : [hide] TEXT [/hide]

it shows as:



What is the problem of this ?

thanks

ディン1031

Huuu i never saw this thread... (how can i oversee thatthread)

Somehow i made a [hide][/hide] mod (Without knowing about this thread).

http://mods.simplemachines.org/index.php?mod=118

I hope i'm allowed to make this advertising. :)
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Neol

It works  ;)

But can Google & Co see this hiden messages?

Kirby

Quote from: olti on May 07, 2005, 11:18:52 AM
It works  ;)

But can Google & Co see this hiden messages?
Only if they can magically log in ;D

Advertisement: