Advertisement:

Author Topic: SMF [hide] BBCode  (Read 213989 times)

Offline FaSan

  • Sophist Member
  • *****
  • Posts: 1,053
  • Gender: Male
  • http://www.smitaly.net
    • SMitaly - Supporto a SMF
Re: SMF [hide] BBCode
« Reply #20 on: January 31, 2005, 12:04:38 PM »
For quote from quick reply, change this (in Post.php) :


Code: [Select]
<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 ;)

Offline [darksteel]

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,466
  • Gender: Male
  • SMF is a big boy
Re: SMF [hide] BBCode
« Reply #21 on: February 18, 2005, 10:17:52 AM »
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

Offline Kirby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,040
  • Gender: Male
Re: SMF [hide] BBCode
« Reply #22 on: February 18, 2005, 09:38:09 PM »
You mean a button for it?

Offline [darksteel]

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,466
  • Gender: Male
  • SMF is a big boy
Re: SMF [hide] BBCode
« Reply #23 on: February 19, 2005, 10:03:02 AM »
no, one imagen like Different.

Separating normal post .VS. Post whit HIDE bbc code.
« Last Edit: February 19, 2005, 10:05:02 AM by [darksteel] »
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

Offline Kirby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,040
  • Gender: Male
Re: SMF [hide] BBCode
« Reply #24 on: February 22, 2005, 10:37:38 PM »
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

Offline readme.txt

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • Yo.
Re: SMF [hide] BBCode
« Reply #25 on: February 25, 2005, 05:24:01 AM »
i waiting your bbc button and correction about QUOTE

thx kirby best work

Me too, thanks Kirby...


« Last Edit: February 25, 2005, 05:31:49 AM by anibal »
Hagamos el mundo al reves.

Offline readme.txt

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • Yo.
Re: SMF [hide] BBCode
« Reply #26 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

Code: [Select]
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?
« Last Edit: February 26, 2005, 01:38:09 PM by anibal »
Hagamos el mundo al reves.

Offline Elijah Bliss

  • Sophist Member
  • *****
  • Posts: 1,340
Re: SMF [hide] BBCode
« Reply #27 on: February 26, 2005, 11:55:13 PM »
For quote from quick reply, change this (in Post.php) :


Code: [Select]
<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.

Offline Kirby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,040
  • Gender: Male
Re: SMF [hide] BBCode
« Reply #28 on: February 26, 2005, 11:57:52 PM »
change $disabled['hide'] to isset($disabled['hide'])

Offline Elijah Bliss

  • Sophist Member
  • *****
  • Posts: 1,340
Re: SMF [hide] BBCode
« Reply #29 on: February 27, 2005, 12:18:19 AM »
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!

Offline FaSan

  • Sophist Member
  • *****
  • Posts: 1,053
  • Gender: Male
  • http://www.smitaly.net
    • SMitaly - Supporto a SMF
Re: SMF [hide] BBCode
« Reply #30 on: February 27, 2005, 09:31:33 AM »
See the spaces before ;)

Offline readme.txt

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • Yo.
Re: SMF [hide] BBCode
« Reply #31 on: February 27, 2005, 04:26:25 PM »
change $disabled['hide'] to isset($disabled['hide'])

Thanks Kirby
Hagamos el mundo al reves.

Offline Kirby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,040
  • Gender: Male
Re: SMF [hide] BBCode
« Reply #32 on: February 28, 2005, 12:20:43 AM »
no problemo ;)

Offline Xtasy

  • Semi-Newbie
  • *
  • Posts: 19
Re: SMF [hide] BBCode
« Reply #33 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 [nofollow]
« Last Edit: March 07, 2005, 01:44:40 AM by Xtasy »

Offline Elijah Bliss

  • Sophist Member
  • *****
  • Posts: 1,340
Re: SMF [hide] BBCode
« Reply #34 on: March 07, 2005, 11:49:39 PM »
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.

Offline Nyx

  • Jr. Member
  • **
  • Posts: 315
  • Gender: Female
Re: SMF [hide] BBCode
« Reply #35 on: March 17, 2005, 10:39:05 PM »
hi, have problem:

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

Code: [Select]
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

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

This does not work :( please help

Sys_ZERO

  • Guest
Re: SMF [hide] BBCode
« Reply #36 on: March 25, 2005, 01:33:36 AM »
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

Offline ディン1031

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,599
  • Gender: Male
  • はるひ! :P
    • ~DIN1031
Re: SMF [hide] BBCode
« Reply #37 on: April 29, 2005, 07:50:31 AM »
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

Offline Neol

  • Full Member
  • ***
  • Posts: 472
  • Gender: Male
  • ##########
Re: SMF [hide] BBCode
« Reply #38 on: May 07, 2005, 11:18:52 AM »
It works  ;)

But can Google & Co see this hiden messages?

Offline Kirby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,040
  • Gender: Male
Re: SMF [hide] BBCode
« Reply #39 on: May 07, 2005, 01:27:04 PM »
It works  ;)

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