[3.2][RC] cmBB - Simple Content Management for phpBB

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Suggested Hosts
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
Bruno36
Registered User
Posts: 282
Joined: Fri Mar 02, 2007 2:16 pm
Location: france
Name: bruno astie
Contact:

Re: [3.2][RC] cmBB - Simple Content Management for phpBB

Post by Bruno36 » Thu Nov 02, 2017 10:48 am

When I insert a YouTube video into an article it does not show up :shock:
https://www.scooter-chinois-4t.com/foru ... rs?style=1
Excuse me for my poor English, I speak french
Bruno36

User avatar
Ger
Registered User
Posts: 1151
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: [3.2][RC] cmBB - Simple Content Management for phpBB

Post by Ger » Thu Nov 02, 2017 11:15 am

Well, I don't see it in the source either.

What steps have you taken? How did you insert the video? Where in the article have you placed it?
Checkout my extensions: Simple CMS, Feed post bot, Modbreak, Magic OGP links and Live topic update

Like my work? Buy me a coffee to keep it coming. :ugeek:

User avatar
Bruno36
Registered User
Posts: 282
Joined: Fri Mar 02, 2007 2:16 pm
Location: france
Name: bruno astie
Contact:

Re: [3.2][RC] cmBB - Simple Content Management for phpBB

Post by Bruno36 » Thu Nov 02, 2017 11:39 am

I made a short video

https://youtu.be/gsd1AKTn6Kw

Do you want my French translation of your plugin?
Last edited by Bruno36 on Thu Nov 02, 2017 11:47 am, edited 1 time in total.
Excuse me for my poor English, I speak french
Bruno36

User avatar
Bruno36
Registered User
Posts: 282
Joined: Fri Mar 02, 2007 2:16 pm
Location: france
Name: bruno astie
Contact:

Re: [3.2][RC] cmBB - Simple Content Management for phpBB

Post by Bruno36 » Thu Nov 02, 2017 11:43 am

common.php

Code: Select all

<?php

/**
 *
 * cmBB [English]
 *
 * @copyright (c) 2016 Ger Bruinsma
 * @license GNU General Public License, version 2 (GPL-2.0)
 *
 */
if (!defined('IN_PHPBB'))
{
	exit;
}

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

$lang = array_merge($lang, array(
	'ACL_U_CMBB_POST_ARTICLE'	 => 'Peut poster des articles cmBB',
	'ARTICLE_HIDDEN_WARNING'	 => 'Cet article est masqué et donc uniquement accessible aux modérateurs',
	'ARTICLES'					 => 'Articles',
	'ARTICLES_TOTAL'			 => 'Total des articles',
	'BACK'						 => 'Retour',
	'CATEGORY'					 => 'Catégorie',
	'CMBB_UPLOAD_BROWSE'		 => 'Ou parcourir',
	'CMBB_UPLOAD_DRAG'			 => 'Glissez et déposez vos fichiers ici',
	'CMBB_UPLOAD_EXPLAIN'		 => 'Télécharger des fichiers via la boîte de téléchargement ci-dessous. <br /> Les types de fichiers autorisés sont: ',
	'COMMENTS'					 => 'Placer / ou afficher les commentaires',
	'COMMENTS_DISABLED'			 => 'Commentaires désactivés',
	'CONTENT'					 => 'Contenu de l\'article',
	'DELETE_ARTICLE'			 => 'Masquer l\'article',
	'EDIT_ARTICLE'				 => 'Modifier l\'article',
	'ERROR_MUCH_REMOVED'		 => 'Vous alez supprimé votre article. Cela peut être abusif ou une simple erreur d\'utilisateur. Les données ne sont PAS stockées.',
	'ERROR_TITLE'				 => 'Le titre fourni n\'est pas autorisé.',
	'FEATURED_IMG'				 => 'Image vedette',
	'LOG_ARTICLE_VISIBILLITY'	 => 'Modification de la visibilité de l\'article',
	'NEW_ARTICLE'				 => 'Nouvel article',
	'NO_HIDDEN'					 => 'Aucun articles cachés',
	'NO_REACTIONS_ARTICLE'		 => 'Désactiver les commentaires <small>(les commentaires peuvent déjà être désactivés via les options de la catégorie)</small>',
	'READ_MORE'					 => 'Lire la suite...',
	'RESTORE_ARTICLE'			 => 'Restaurer l\'article',
	'SEARCH_USER_ARTICLES'		 => 'Rechercher les articles de l\'utilisateur',
	'SHOW_HIDDEN'				 => 'Afficher les articles cachés',
	'TITLE'						 => 'Titre',
	'USE_AVATAR'				 => '-utiliser un avatar-',
	'WELCOME_USER'				 => 'Bonjour %s!',
		));
info_acp_cmbb.php

Code: Select all

<?php

/**
 *
 * cmBB [English]
 *
 * @copyright (c) 2016 Ger Bruinsma
 * @license GNU General Public License, version 2 (GPL-2.0)
 *
 */
if (!defined('IN_PHPBB'))
{
	exit;
}

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

$lang = array_merge($lang, array(
	'ACP_CATEGORIES_MANAGE'				=> 'Gérer les catégories',
	'ACP_CATEGORIES_MANAGE_EXPLAIN'		=> 'Ici vous pouvez ajouter, modifier ou supprimer des catégories. Vous devez d\'abord créer une catégorie et la soumettre, puis modifier le paramètre suivant.'
											. '<br />S\'il vous plaît noter: cmBB utilise le nom de la catégorie pour l\'URL. Une fois que vous avez choisi un nom de catégorie, il est recommandé de ne PAS changer le nom par la suite car l\'URL en conséquence ne sera pas modifiée.',
	'ACP_CMBB_CATEGORIES'				=> 'Categories',
	'ACP_CMBB_SETTING_SAVED'			=> 'Paramètres cmBB enregistrés',
	'ACP_CMBB_TITLE'					=> 'cmBB',
	'ACP_MIN_TITLE_LENGTH'				=> 'Longueur minimum du titre',
	'ACP_MIN_TITLE_LENGTH_EXPLAIN'		=> 'Longueur minimum requise pour le titre des articles',
	'ACP_MIN_CONTENT_LENGTH'			=> 'Longueur minimum du contenu',
	'ACP_MIN_CONTENT_LENGTH_EXPLAIN'	=> 'Longueur minimum requise du contenu de l\'article (body). Empêche les articles a 2 balles.',
	'ACP_NO_ARTICLES'					=> 'Vous n\'avez aucun article (actif). Créez un nouvel article en utilisant le lien ci-dessous:',
	'ACP_NUMBER_INDEX_ITEMS'			=> 'Nombre d\'éléments d\'index',
	'ACP_NUMBER_INDEX_ITEMS_EXPLAIN'	=> 'Nombre maximal d\'éléments les plus récents à afficher sur la page d\'index. Les articles sont triés par date (dernier en haut)',
	'ACP_REACT_FORUM_ID'				=> 'Forum pour les commentaires des sujets',
	'ACP_REACT_FORUM_ID_EXPLAIN'		=> 'Sélectionnez le forum pour créer un sujet dans les commentaires.',
	'ACP_SHOW_MENUBAR'					=> 'Afficher la barre de menus',
	'ACP_SHOW_MENUBAR_EXPLAIN'			=> 'Menubar est ajouté à l\'en-tête, il contient toutes les catégories enfants à côté de la page d\'accueil (le cas échéant), l\'index du forum et nous contacter (si activé).',
	'ACP_SHOW_RIGHTBAR'					=> 'Afficher la barre latérale droite',
	'ACP_SHOW_RIGHTBAR_EXPLAIN'			=> 'Vous pouvez choisir d\'afficher une barre latérale sur la droite, contenant avec le HTML que vous voulez. Utile pour les publicités ou tout autre contenu que vous pourriez vouloir afficher.',
	'ACP_RIGHTBAR_HTML'					=> 'Contenu de la barre latérale droite.',
	'ACP_RIGHTBAR_HTML_EXPLAIN'			=> 'Si vous avez activé la barre latérale droite, le contenu entré ici s\'affichera. Vous pouvez utiliser n\'importe quel HTML / JS, assurez-vous seulement qu\'il soit valide.',
	'CHILDREN'							=> 'Enfants',
	'CHILDREN_EXPLAIN'					=> 'Nombre d\'articles dans cette catégorie',
	'CMBB_CATEGORY_NAME_INVALID'		=> 'Le Nom de la catégorie est invalide',
	'CMBB_SETTINGS'						=> 'Paramètres cmBB',
	'CMBB_DELETE_CAT_EXPLAIN'			=> 'Une catégorie ne peut être supprimée que si elle ne contient aucun article',
	'CREATE_CATEGORY'					=> 'Ajouter une nouvelle catégorie',
	'ERROR_CATEGORY_NOT_EMPTY'			=> 'Catégorie non vide',
	'ERROR_FAILED_DELETE'				=> 'Échec de la suppression',
	'NO_REACTIONS'						=> 'Désactiver les commentaires',
	'PROTECTED'							=> 'Protégé',
	'PROTECTED_EXPLAIN'					=> 'Seuls les modérateurs sont autorisés à publier',
	'SHOW_MENU_BAR'						=> 'Afficher dans la barre de menus',
	'SHOW_MENU_BAR_EXPLAIN'				=> 'Afficher ou non cette catégorie dans la barre de menu (uniquement si elle a des enfants) Utile pour désactiver si vous n\'aimez pas les listes de catégories ou si vous avez juste quelques articles en vrac.',

		));
Excuse me for my poor English, I speak french
Bruno36

User avatar
Ger
Registered User
Posts: 1151
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: [3.2][RC] cmBB - Simple Content Management for phpBB

Post by Ger » Thu Nov 02, 2017 12:06 pm

What is the youtube URL you used? I cannot read it from the video.
Checkout my extensions: Simple CMS, Feed post bot, Modbreak, Magic OGP links and Live topic update

Like my work? Buy me a coffee to keep it coming. :ugeek:

User avatar
Bruno36
Registered User
Posts: 282
Joined: Fri Mar 02, 2007 2:16 pm
Location: france
Name: bruno astie
Contact:

Re: [3.2][RC] cmBB - Simple Content Management for phpBB

Post by Bruno36 » Thu Nov 02, 2017 12:28 pm

I will redo the video because it bug
Excuse me for my poor English, I speak french
Bruno36

User avatar
Ger
Registered User
Posts: 1151
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: [3.2][RC] cmBB - Simple Content Management for phpBB

Post by Ger » Thu Nov 02, 2017 12:33 pm

Please also paste the url here, so I can paste it in my test setup. Much easier then typing it over from a video
Checkout my extensions: Simple CMS, Feed post bot, Modbreak, Magic OGP links and Live topic update

Like my work? Buy me a coffee to keep it coming. :ugeek:

User avatar
Bruno36
Registered User
Posts: 282
Joined: Fri Mar 02, 2007 2:16 pm
Location: france
Name: bruno astie
Contact:

Re: [3.2][RC] cmBB - Simple Content Management for phpBB

Post by Bruno36 » Thu Nov 02, 2017 12:38 pm

Excuse me for my poor English, I speak french
Bruno36

User avatar
Ger
Registered User
Posts: 1151
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: [3.2][RC] cmBB - Simple Content Management for phpBB

Post by Ger » Thu Nov 02, 2017 1:02 pm

Seems like a CK editor issue. When I use the full URL from youtube (taken from the address bar) it works:
https://www.youtube.com/watch?v=vKUbODg ... e=youtu.be
Checkout my extensions: Simple CMS, Feed post bot, Modbreak, Magic OGP links and Live topic update

Like my work? Buy me a coffee to keep it coming. :ugeek:

User avatar
Ger
Registered User
Posts: 1151
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: [3.2][RC] cmBB - Simple Content Management for phpBB

Post by Ger » Thu Nov 02, 2017 1:06 pm

Bruno36 wrote:
Thu Nov 02, 2017 11:39 am
Do you want my French translation of your plugin?
Thanks for translating. I won't incorporate it in the extension pack though, since it's proven too much work keeping it up to date. The currently available spanish translation probably won't make it into the final version because I need to use Google Translate to maintain it...

Since I'm Dutch it's easy for me to maintain, english is required so it's also incorporated. Everything else will be presented/linked to in a sticky post when the extension gets validated.
Checkout my extensions: Simple CMS, Feed post bot, Modbreak, Magic OGP links and Live topic update

Like my work? Buy me a coffee to keep it coming. :ugeek:

User avatar
Bruno36
Registered User
Posts: 282
Joined: Fri Mar 02, 2007 2:16 pm
Location: france
Name: bruno astie
Contact:

Re: [3.2][RC] cmBB - Simple Content Management for phpBB

Post by Bruno36 » Thu Nov 02, 2017 1:24 pm

Yes it works as well with the complete url of the video.
https://www.scooter-chinois-4t.com/foru ... culbuteurs

Thank you for helping me. I love your plugin ;)

Is it possible to include the image and more text in the excerpt of the displayed articles

Image
Excuse me for my poor English, I speak french
Bruno36

User avatar
Ger
Registered User
Posts: 1151
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: [3.2][RC] cmBB - Simple Content Management for phpBB

Post by Ger » Thu Nov 02, 2017 1:46 pm

Bruno36 wrote:
Thu Nov 02, 2017 1:24 pm
Is it possible to include the image and more text in the excerpt of the displayed articles
Not at this point. I simply strip all HTML from the created article (default PHP strip_tags() function) to make sure no conflicts arise.

You can optionally choose to edit ./ext/ger/cmbb/controllers/save.php at line 282:

Code: Select all

' . $this->presentation->character_limiter(strip_tags(html_entity_decode($article_data['content'], ENT_COMPAT))) . '
And do something like this:

Code: Select all

' . $this->presentation->character_limiter(strip_tags(html_entity_decode($article_data['content'], ENT_COMPAT)), 1000) . '
Change the 1000 at will. It's the character limit used.
Checkout my extensions: Simple CMS, Feed post bot, Modbreak, Magic OGP links and Live topic update

Like my work? Buy me a coffee to keep it coming. :ugeek:

User avatar
Bruno36
Registered User
Posts: 282
Joined: Fri Mar 02, 2007 2:16 pm
Location: france
Name: bruno astie
Contact:

Re: [3.2][RC] cmBB - Simple Content Management for phpBB

Post by Bruno36 » Thu Nov 02, 2017 1:59 pm

Thank you very much: D
I just made the change and it did not work, I'm still limited in the number of words
Excuse me for my poor English, I speak french
Bruno36

User avatar
nhseacoast
Registered User
Posts: 478
Joined: Sun Sep 22, 2002 10:31 pm
Location: NH, USA
Contact:

Re: [3.2][RC] cmBB - Simple Content Management for phpBB

Post by nhseacoast » Sat Nov 04, 2017 1:45 am

Very nice!
So this is borderline a Blog extension?

User avatar
Ger
Registered User
Posts: 1151
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: [3.2][RC] cmBB - Simple Content Management for phpBB

Post by Ger » Sat Nov 04, 2017 7:14 am

You can use it like a blog indeed.
Checkout my extensions: Simple CMS, Feed post bot, Modbreak, Magic OGP links and Live topic update

Like my work? Buy me a coffee to keep it coming. :ugeek:

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: Naguissa and 24 guests

cron