[ABD] BBCode Hider - hide message in bbcode

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
liptonace
Registered User
Posts: 8
Joined: Tue Aug 30, 2011 7:49 am

[ABD] BBCode Hider - hide message in bbcode

Post by liptonace » Fri Sep 02, 2011 9:37 am

Modification Name: BBCode Hider
Author: liptonace
Modification Description::
Hide text bbcode for selected groups on your board. Configuration ACP > .MODS > BBCode Hider > BBCode Hider Settings.

Author notes::
Features and options
* Enable / disable the modification
* The ability to select which groups to BBCode will be hidden
* The ability to select which forums to BBCode will be hidden
* Enable / disable topics filtering on the status of global
* Text BBCode hide (only message in BBCode is converted)
* Hide the other BBCode (message and the BBCode code will be replaced - for example, for [youtube] where in case of leaving the code the information in it will be misinterpreted)

As a new modification enables hiding messages for any group. If user browse topics, quoting last message, search posts, or browse RSS feeds if the user is not the author of a message receives information about the hidden messages.

Modification Version:: 1.1.0

Language:
* English
* Dutch
* Polish
* Spanish

For users:
If you want to add additional language, create a file „language - xx.xml” and „language/xx/mods/info_acp_bbcode_hider.php” (based on English files) and send files to me on private message.

To update languages file (1.0.1 to 1.1.0) please read NEW_LANG_LINES.txt in ./contrib directory.

Screenshots:
Image

Image

Modification Download:

Download BBCode Hider v1.1.0
Last edited by liptonace on Mon Feb 06, 2012 9:21 am, edited 16 times in total.

User avatar
FranckTH
Registered User
Posts: 360
Joined: Thu Jul 28, 2011 12:14 pm
Location: France
Name: Franck
Contact:

Re: [RC] BBCode Hider

Post by FranckTH » Fri Sep 02, 2011 10:24 am

:o excellent ! bookmark this topic
Free Flash & HTML5 Games for Phpbb 3.2.2 + Extension Relax Arcade Pro
Free Flash & HTML5 Games for Relax Arcade Pro

Saske1
Registered User
Posts: 263
Joined: Wed Feb 02, 2011 7:41 pm
Location: Spain/España
Name: Salva
Contact:

Re: [RC] BBCode Hider

Post by Saske1 » Fri Sep 02, 2011 11:33 am

Nice 8-)
Is compatible with the Advanced BBCode Box?

liptonace
Registered User
Posts: 8
Joined: Tue Aug 30, 2011 7:49 am

Re: [RC] BBCode Hider

Post by liptonace » Fri Sep 02, 2011 11:41 am

Probably yes, the structure bbcodes is the same.

Saske1
Registered User
Posts: 263
Joined: Wed Feb 02, 2011 7:41 pm
Location: Spain/España
Name: Salva
Contact:

Re: [RC] BBCode Hider

Post by Saske1 » Fri Sep 02, 2011 11:59 am

liptonace wrote:Probably yes, the structure bbcodes is the same.
Verified, works perfectly ;)
By the way, I leave here my Spanish translations of the MOD

Code: Select all

<?php
/**
*
* bbcode_hider [Spanish]
*
* @package language
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

$lang = array_merge($lang, array(
	'ACP_BBCODE_HIDER_INDEX_TITLE'		=> 'BBCode Hider',
	'ACP_BBCODE_HIDER'					=> 'BBCode Hider',
	'ACP_BBCODE_HIDER_SETTINGS'			=> 'Configuración BBCode Hider',
	'ACP_BBCODE_HIDER_SETTINGS_EXPLAIN'	=> 'Aquí puede ajustar todas las configuraciones por defecto para BBCode Hider.',
	'LOG_BBCODE_HIDER_SETTINGS_CHANGED'	=> '<strong>Alterada la configuración de BBCode Hider</strong>',
	'BBCODE_HIDER_SETTINGS_CHANGED'		=> 'La Congiguración de BBCode Hider ha cambiado.',
	'BBCODE_HIDER_ENABLE'				=> 'Habilitar BBCode Hider',
	'BBCODE_HIDER_ENABLE_EXPLAIN'		=> 'Usted puede activar / desactivar BBCode Hider en cualquier momento.',
	'BBCODE_HIDER_FORUMS'				=> 'Foros Ignorados',
	'BBCODE_HIDER_FORUMS_EXPLAIN'		=> 'Seleccione los foros en los que BBCode en temas que no se ocultará.<br />Desmarque todas las que se aplican para todos los foros.<br />Seleccione varios foros manteniendo pulsado <samp>CTRL</samp> y haciendo clic en el foro.',
	'BBCODE_HIDER_ANNOUNCE'				=> 'Ignorar los anuncios globales',
	'BBCODE_HIDER_ANNOUNCE_EXPLAIN'		=> 'Habilitar ignorar los temas sobre el estado "Global”.',
	'BBCODE_HIDER_BBCODES'				=> 'Hide BBCodes',
	'BBCODE_HIDER_BBCODES_EXPLAIN'		=> 'Introduzca los nombres de BBCodes que se ocultarán para los invitados.<br />Coloque cada BBCode separado por una coma.<br />Ejemplo: <i>code,quote</i>',

	// Errors
	'BBCODE_HIDER_LIMIT_FORUMS_ERROR'	=> 'Usted ha seleccionado todos los foros. Desactive la opción de unos pocos y vuelva a intentarlo.',
	'BBCODE_HIDER_LIMIT_BBCODES_ERROR'	=> 'Usted ha añadido demasiados BBCodes. Elimine unos pocos, y vuelva a intentarlo.',

	// Viewtopic
	'BBCODE_HIDER_HIDDEN_MSG'         	=> 'El código esta ocultado, por favor <a href="ucp.php?mode=register" style="font-weight: bold; color: #FF0000;"><strong>registrese</strong></a> o <a href="ucp.php?mode=login" style="font-weight: bold; color: #00FF00;"><strong>identifiquese</strong></a> para poder ver el contenido!',
));

?>
:mrgreen:

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [RC] BBCode Hider

Post by 4_seven » Fri Sep 02, 2011 1:17 pm

first, congrats,

may possible visibilations on those kinds of mods:
  • quote
  • quote to pn
  • preview
  • review
  • edit (from "forbidden" groups with rights to edit)
  • search (all kinds of)
  • viewing source code
are all these parts safe?

by the way, the install.xml contains the Spam Hammer MOD
Last edited by 4_seven on Fri Sep 02, 2011 4:04 pm, edited 1 time in total.
Current Mods | Mod Base | php(BB) programming | No help via PM

liptonace
Registered User
Posts: 8
Joined: Tue Aug 30, 2011 7:49 am

Re: [RC] BBCode Hider

Post by liptonace » Fri Sep 02, 2011 4:00 pm

@Saske1
thanks for Spanish translate

I added Spanish lang to mod pack, and corrected install.xml

Mod was created just to hide the contents for guests, not for the other groups

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [RC] BBCode Hider

Post by 4_seven » Fri Sep 02, 2011 4:03 pm

liptonace wrote:Mod was created just to hide the contents for guests, not for the other groups
Than it's clear, thanks :D
Current Mods | Mod Base | php(BB) programming | No help via PM

heroeskiller
Registered User
Posts: 32
Joined: Mon May 09, 2011 1:52 pm

Re: [RC] BBCode Hider

Post by heroeskiller » Fri Sep 02, 2011 8:11 pm

Nice... Will it hide contain of CODE tags in front of google, too? Because normally google can see my links.

liptonace
Registered User
Posts: 8
Joined: Tue Aug 30, 2011 7:49 am

Re: [RC] BBCode Hider

Post by liptonace » Sat Sep 03, 2011 6:02 am

heroeskiller
Open: includes/bbcode_hider.php
Find:

Code: Select all

if ($user->data['user_id'] == ANONYMOUS && $config['bbcode_hider_enable'])
Replace with:

Code: Select all

if ($user->data['user_id'] == ANONYMOUS && $user->data['is_bot'] && $config['bbcode_hider_enable'])
now bots will not see the contents in hide bbcode :D
Last edited by liptonace on Sat Sep 03, 2011 10:26 am, edited 1 time in total.

memoadian
Registered User
Posts: 4
Joined: Sun Jul 26, 2009 10:22 pm

Re: [RC] BBCode Hider

Post by memoadian » Sat Sep 03, 2011 6:23 am

very good modification.

suggestion:

--> content will visible when to the user post

sorry mi poor english

memoadian
Registered User
Posts: 4
Joined: Sun Jul 26, 2009 10:22 pm

Re: [RC] BBCode Hider

Post by memoadian » Sat Sep 03, 2011 7:59 am

Not works with bbcode url? :cry:

liptonace
Registered User
Posts: 8
Joined: Tue Aug 30, 2011 7:49 am

Re: [RC] BBCode Hider

Post by liptonace » Sat Sep 03, 2011 10:16 am

in the next version can do something for the other bbcodes ;)

User avatar
Terr0r
Registered User
Posts: 553
Joined: Thu May 05, 2011 3:39 pm
Location: The Netherlands
Contact:

Re: [RC] BBCode Hider

Post by Terr0r » Sat Sep 03, 2011 11:09 am

I bookmark this topic
if you can't fix it with ducktape you ain't using enough
if you want to search a MOD maybe you can find it here
For my MODS and BBCodes or other things that I have made take a look here

liptonace
Registered User
Posts: 8
Joined: Tue Aug 30, 2011 7:49 am

Re: [RC] BBCode Hider

Post by liptonace » Sat Sep 03, 2011 11:15 am

new wersion 1.0.1 :D

Locked

Return to “[3.0.x] Abandoned MODs”

Who is online

Users browsing this forum: No registered users and 7 guests