Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: M-DVD on December 05, 2008, 04:06:25 PM

Title: No Quote BBCode
Post by: M-DVD on December 05, 2008, 04:06:25 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1542)




MOD No Quote BBCode v1.2
===================






  • Autor:
M-DVD (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997)
  • Version:
1.2
  • Release:
30th November 2008
  • Languages:
  • Compatible With:
SMF 1.1.1 - 1.1.8
SMF 2 Beta 3 & 4 & RC1




(http://mods.simplemachines.org/index.php?action=review;sa=add;mod=1542)
Comment this Mod (http://www.simplemachines.org/community/index.php?action=post;topic=278682.0)
(http://custom.simplemachines.org/mods/index.php?action=profile;u=148997)
My MODs (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997)
(http://custom.simplemachines.org/mods/index.php?mod=1542)
Images (http://custom.simplemachines.org/mods/index.php?mod=1542)
(https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4587421)Help support my MODs (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4587421)


Features:





==========================

Languages (normal & utf-8)


$txt['noquote'] = 'Insert No Quote';
$txt['permissionname_allowNoQuote'] = 'Allow Quote the NoQuotes';
$txt['permissionhelp_allowNoQuote'] = 'By Enabling this, will allow quote with [noquote].';

==========================

Características:





Fin.
Title: Re: No Quote BBCode
Post by: Sabre™ on December 05, 2008, 05:49:34 PM
Interesting idea.

Keep up the good work mate :)
Title: Re: No Quote BBCode
Post by: edi67 on December 07, 2008, 03:32:47 AM
nice
Title: Re: No Quote BBCode
Post by: M-DVD on December 09, 2008, 08:50:59 PM
Update No Quote BBCode v1.1:
=====================


New features:

How do I upgrade?

=======================================

Características Nuevas:

¿Como actualizar?
Title: Re: No Quote BBCode
Post by: MarioH on February 17, 2009, 10:57:32 AM
Antes que todo Disculpen mi ingles.
First of all sorry my English.

Hi M-DVD, I've been testing your mod and has served me well, however this is a mistake. always at the end of the post leaves me [/ noquote] disappears if only restricts Citation 1 line, but the long block quotes. I have exposed the BBC, while still fulfilling its purpose.

the issue is that it looks ugly uu! there any way to avoid appearing on the BBC at the end of each item?. thanks in advance =).

an example in this post.






Hola M-DVD, he estado testeando tu modificación y me ha servido bastante, sin embargo este tiene un error. siempre al final del post me deja el [/noquote] solo desaparece si restrinjo citas de 1 linea, pero al bloquear citas largas. me queda el BBC expuesto, aunque sigue cumpliendo su propósito.

el tema es que se ve feo u.u!, ahí alguna forma para evitar que aparezca el BBC al final de cada tema?. de antemanos gracias =).

un ejemplo al final de este Tema.

http://www.aimbox.cl/index.php?topic=622.0



Title: Re: No Quote BBCode
Post by: M-DVD on February 18, 2009, 09:09:42 PM
Update No Quote BBCode v1.2:
====================


New features:

How do I upgrade?

=======================================

Características Nuevas:

¿Como actualizar?
Title: Re: No Quote BBCode
Post by: ScarMix on February 21, 2009, 08:16:55 AM
Cool  :D

Nothing that I have use for at the moment but the time might come   :)
Title: Re: No Quote BBCode
Post by: PerryM on February 25, 2009, 02:16:56 PM
Thank you for this module - this is something I never knew I needed but now I can't live without it!!!

Thanks much!

I can see where instead of nothing being left in the Quote area a link is instead left to the post - like "Link to Quote Discussed ............".  But I'm happy as the module now stands.

P.S.
How about tackling the Wiki thread?

I really need that one - the first post of a thread that I allow certain folks to modify and a copy of the existing post is placed in a Wiki holder forum which I could go back and restore if needed.

Its that simple and would allow smf to become an instant Wiki resource!

Thanks for all the hard work you share with us.
Title: Re: No Quote BBCode
Post by: M-DVD on February 28, 2009, 12:05:47 AM
Quote from: PerryM on February 25, 2009, 02:16:56 PM
Thank you for this module - this is something I never knew I needed but now I can't live without it!!!

ja ja ja, me too, me too :P

Quote from: PerryM on February 25, 2009, 02:16:56 PM
P.S.
How about tackling the Wiki thread?

I really need that one - the first post of a thread that I allow certain folks to modify and a copy of the existing post is placed in a Wiki holder forum which I could go back and restore if needed.

Its that simple and would allow smf to become an instant Wiki resource!

I don't know if I understood.

You say that, if this mod will can do compatible with the MOD Wiki?  :-\

Quote from: PerryM on February 25, 2009, 02:16:56 PM
Thanks for all the hard work you share with us.

your welcome, thanks for your comment. :)


Quote from: ScarMix on February 21, 2009, 08:16:55 AM
Cool  :D

Nothing that I have use for at the moment but the time might come   :)

Thanks for your comment. For me, if it has been very helpful, i don't know as i could live without it.  :P
Title: Re: No Quote BBCode
Post by: DeviDarkL on March 19, 2009, 09:09:32 PM
Thanks, you did a great mod again ;)

As usual, here is the portuguese_pt translation:
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// MOD No Quote BBCode
$txt['noquote'] = 'Inserir Impedidor de Citação';
$txt['permissionname_allowNoQuote'] = 'Permitir fazer Citação às Impedidoras de Citação';
$txt['permissionhelp_allowNoQuote'] = 'Ao activar isto, ir permitir Citação com [noquote].';]]></add>
</operation>
</file>
Title: Re: No Quote BBCode
Post by: M-DVD on March 23, 2009, 12:55:02 PM
Quote from: DeviDarkL on March 19, 2009, 09:09:32 PM
Thanks, you did a great mod again ;)

As usual, here is the portuguese_pt translation:

Thanks you, your translation have been uploaded :)
Title: Re: No Quote BBCode
Post by: ZeUsSaN on May 25, 2009, 08:27:40 PM
██████ russian:
$txt['noquote']= 'Вставить No Quote';
$txt['permissionname_allowNoQuote']= 'Позволить Цитировать NoQuotes';
$txt['permissionhelp_allowNoQuote']= 'Разрешая это, вы позволяете цитировать [noquote].';


██████ ukrainian:
$txt['noquote']= 'Вставити No Quote';
$txt['permissionname_allowNoQuote']= 'Дозволити Цитувати NoQuotes';
$txt['permissionhelp_allowNoQuote']= 'Дозволяючи це, ви дозволяєте цитувати [noquote].';
Title: Re: No Quote BBCode
Post by: M-DVD on May 26, 2009, 11:14:30 PM
Quote from: ZeUsSaN on May 25, 2009, 08:27:40 PM
██████ russian:
$txt['noquote']= 'Вставить No Quote';
$txt['permissionname_allowNoQuote']= 'Позволить Цитировать NoQuotes';
$txt['permissionhelp_allowNoQuote']= 'Разрешая это, вы позволяете цитировать [noquote].';


██████ ukrainian:
$txt['noquote']= 'Вставити No Quote';
$txt['permissionname_allowNoQuote']= 'Дозволити Цитувати NoQuotes';
$txt['permissionhelp_allowNoQuote']= 'Дозволяючи це, ви дозволяєте цитувати [noquote].';


Thanks you, your translation have been uploaded :)
Title: Re: No Quote BBCode
Post by: Amendoim on August 18, 2010, 01:23:09 PM
Update to RC3 plz
Title: Re: No Quote BBCode
Post by: Dreko on April 23, 2011, 12:11:48 PM
En RC5 PLIZ
Title: Re: No Quote BBCode
Post by: dougiefresh on December 21, 2014, 08:47:18 AM
I need this bbcode mod for my forum, but it doesn't install without errors on SMF 2.0.9.  So I made it SMF 2.0.9 compatible!

Inside the package, Find this in install_2.xml:
Code (Find) Select
<file name="$sourcedir/Subs-Editor.php">
<operation>
<search position="before"><![CDATA[
'quote' => array('code' => 'quote', 'before' => '[quote]', 'after' => '[/quote]', 'description' => $txt['bbc_quote']),]]></search>
<add><![CDATA[
'noquote' => array('code' => 'noquote', 'before' => '[noquote]', 'after' => '[/noquote]', 'description' => $txt['noquote']),]]></add>
</operation>
</file>

and replace it with this:
Code (Replace) Select
<file name="$sourcedir/Subs-Editor.php">
<operation>
<search position="before"><![CDATA[array(
'image' => 'quote',
'code' => 'quote',
'before' => '[quote]',
'after' => '[/quote]',
'description' => $txt['bbc_quote']
),]]></search>
<add><![CDATA[
array(
'image' => 'noquote',
'code' => 'noquote',
'before' => '[noquote]',
'after' => '[/noquote]',
'description' => $txt['noquote']
),]]></add>
</operation>
</file>


Then find this:
Code (Find) Select
$form_message = preg_replace('~<br( /)?' . '>~i', "\n", $row_quoted['body']);
and replace with this:
Code (Replace) Select
$form_message = preg_replace('~<br ?/?' . '>~i', "\n", $row_quoted['body']);

I hope this helps someone....  Install and enjoy!




EDIT:  I missed something.  You also need to go into the install package's languages.xml and replace all instances of Modifications with index.  This takes care of missing string errors.....

EDIT2: Attached revised copy of the mod that works with SMF 2.0.9.....  Removed..... So sad...  ???

EDIT3: Edited post to reflect the change done two posts down....
Title: Re: No Quote BBCode
Post by: Steve on December 21, 2014, 09:26:11 AM
Pretty cool M-DVD & Dougie!

How does one get an actual button? All I have is
Title: Re: No Quote BBCode
Post by: dougiefresh on December 21, 2014, 10:22:32 AM
Whoops....  I still left something out.  In the unmodified install_2.xml, you need to find this:
Code (Find) Select

<add><![CDATA[
array(
'code' => 'noquote',
'before' => '[noquote]',
'after' => '[/noquote]',
'description' => $txt['noquote']
),]]></add>

and replace it with this:
Code (Replace) Select
<add><![CDATA[
array(
'image' => 'noquote',
'code' => 'noquote',
'before' => '[noquote]',
'after' => '[/noquote]',
'description' => $txt['noquote']
),]]></add>


This fixes that issue.  I've updated the attachment two posts back.....  Removed.... So sad...  ???
Title: Re: No Quote BBCode
Post by: margarett on December 21, 2014, 11:01:37 AM
Thank your for sharing the fix ;)

Unfortunately the mod has no license that allows you to pick it, modify it and redistribute it (by attaching it to your post). As such, I had to remove your attachment :(
Title: Re: No Quote BBCode
Post by: Steve on December 21, 2014, 11:32:26 AM
Thanks for the fix Dougie. :)
Title: Re: No Quote BBCode
Post by: dougiefresh on December 21, 2014, 03:17:46 PM
Quote from: margarett on December 21, 2014, 11:01:37 AM
Unfortunately the mod has no license that allows you to pick it, modify it and redistribute it (by attaching it to your post). As such, I had to remove your attachment :(
Sorry about that.  Forgot about that....  Well, I guess everybody will have to do the modification to the mod themselves....
Title: Re: No Quote BBCode
Post by: margarett on December 21, 2014, 09:39:55 PM
Yeah, licensing sometimes sucks but we have to enforce it...
M-DVD is one of these mod authors that's a pity to be gone :( If only he came around to answer the multiple "take over" request that many of his mods have hanging around...
Title: Re: No Quote BBCode
Post by: Arantor on December 21, 2014, 10:39:28 PM
It wouldn't be that hard to replace some of the mods he wrote with fresh ones - the biggest problem is finding the time to do it and the time to maintain them afterwards.

But if people want the mods bad enough, I'm sure some kind of arrangement can be made...
Title: Re: No Quote BBCode
Post by: margarett on December 21, 2014, 11:11:48 PM
Time being the essence of the problem :P
Title: Re: No Quote BBCode
Post by: Arantor on December 21, 2014, 11:15:32 PM
Eh, I figure if people want it badly enough they would be prepared to pay someone for the time to work on it.