MyBB Community Forums

Full Version: Usernewsbars Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
in First :
Happy New Year

I get a white page when I activate the plugin .
I hope any one have an idea .

PHP Version

7.1.33
(2020-01-01, 10:09 AM)BoomBoomPaco Wrote: [ -> ]in First :
Happy New Year

I get a white page when I activate the plugin .
I hope any one have an idea .

PHP Version

7.1.33
   

If you are talking about https://community.mybb.com/mods.php?acti...w&pid=1201 not sure what your issue is because if the files are uploaded the simple plugin should work fine. What language were you installing plugin with as your website appears to be in german, the plugin is not localized for german and you would either one need to copy english lang files and translate to german or use german lang file names with english content until you translate it.

Quote:** Localization Support:

- english
- englishgb
- espanol
- french
- italiano

*now if you do translate rhe lang files to the 2 german langs required for mybb, let me know and send me the lang files and I will add it to the mods site plugin package and github plugin package pages creditting your for translation.


Examples just now quickly installed on mobile localhost with no blank page issue as you say there is?

Admin configuration
[Image: Screenshot-20200101-070339-Firefox.jpg]


Plugin active for user
[Image: Screenshot-20200101-070809-Firefox.jpg]

Plugin active for guest
[Image: Screenshot-20200101-070827-Firefox.jpg]


*** IMPORTANT NOTICE: I ceased mybb development and design projects a good while ago as well as stopped providing any support for such.
Hi , the instalallation work fin but when i aktivate it , i have a blank side , not in the acp.I translate it now and test it.
(2020-01-01, 08:08 PM)BoomBoomPaco Wrote: [ -> ]Hi , the instalallation work fin but when i aktivate it , i have a blank side , not in the acp.I translate it now and test it.




not sure how it installed properly in a german acp without german lang files as that should not be possible but yeah in theory these should have been needed for install and mybb should have gave white screen error with black error text stating the required lang files are not present thus not installing properly. Perhaps that is what you mean by white page?



Needed:

inc/languages/deutsch_du/admin/usernewsbars.lang.php

inc/languages/deutsch_sie/admin/usernewsbars.lang.php



Copying english file to those locations and translating said lang files from english to german before install on german acp would be advised.



English lang file:



<?php
/*
 * MyBB: User Newsbars
 *
 * File: usernewsbars.lang.php
 * 
 * Authors: Vintagedaddyo
 *
 * MyBB Version: 1.8
 *
 * Plugin Version: 1.0
 * 
 */

// plugin_info

$l['usernewsbars_name'] = 'User Newsbars';
$l['usernewsbars_desc'] = 'Adds user newsbars to header_welcomeblock_member template of your forum for users visibility.';
$l['usernewsbars_web'] = 'http://community.mybb.com/user-6029.html';
$l['usernewsbars_auth'] = 'Vintagedaddyo';
$l['usernewsbars_authsite'] = 'http://community.mybb.com/user-6029.html';
$l['usernewsbars_ver'] = '1.0';
$l['usernewsbars_compat'] = '18*';

// Setting Group

$l['usernewsbars_title_setting_group'] = 'User Newsbars';
$l['usernewsbars_description_setting_group'] = 'Settings for the User Newsbars plugin.';

// Setting 1

$l['usernewsbars_title_setting_1'] = 'Do you want to enable User Newsbars Plugin Globally?';
$l['usernewsbars_description_setting_1'] = 'If you set this option to yes, this plugin be active globally.';

// Setting 2

$l['usernewsbars_title_setting_2'] = 'Alert Display';
$l['usernewsbars_description_setting_2'] = 'Enter the text you want to display in Alert.';

// Setting 3

$l['usernewsbars_title_setting_3'] = 'CSS for User Alert';
$l['usernewsbars_description_setting_3'] = 'This controls the styling for user alert.';

// Setting 4

$l['usernewsbars_title_setting_4'] = 'Do you want to enable User Newsbars Alert?';
$l['usernewsbars_description_setting_4'] = 'If you set this option to yes, Alert will be active on your board.';

// Setting 5

$l['usernewsbars_title_setting_5'] = 'Notice 1 Display';
$l['usernewsbars_description_setting_5'] = 'Enter the text you want to display in Notice 1.';

// Setting 6

$l['usernewsbars_title_setting_6'] = 'CSS for User Notice 1';
$l['usernewsbars_description_setting_6'] = 'This controls the styling for user notice1.';

// Setting 7

$l['usernewsbars_title_setting_7'] = 'Do you want to enable User Newsbars Notice 1?';
$l['usernewsbars_description_setting_7'] = 'If you set this option to yes, Notice 1 will be active on your board.';

// Setting 8

$l['usernewsbars_title_setting_8'] = 'Notice 2 Display';
$l['usernewsbars_description_setting_8'] = 'Enter the text you want to display in User Notice 2.';

// Setting 9

$l['usernewsbars_title_setting_9'] = 'CSS for User Notice 2';
$l['usernewsbars_description_setting_9'] = 'This controls the styling for user notice2.';

// Setting 10

$l['usernewsbars_title_setting_10'] = 'Do you want to enable User Newsbars Notice 2?';
$l['usernewsbars_description_setting_10'] = 'If you set this option to yes, Notice 2 will be active on your board.';

?> 


Example:

inc/languages/deutsch_du/admin/usernewsbars.lang.php
inc/languages/deutsch_sie/admin/usernewsbars.lang.php


[attachment=42428] it needs work but this is just to give you a rough idea...


Basic idea for example sake



<?php
/*
 * MyBB: Benutzer-Newsbars
 *
 * Datei: usernewsbars.lang.php
 *
 * Autoren: Vintagedaddyo
 *
 * MyBB Version: 1.8
 *
 * Plugin-Version: 1.0
 *
 */

// Plugin-Informationen

$l['usernewsbars_name'] = 'Benutzer-Newsbars';
$l['usernewsbars_desc'] = 'Fügt der header_welcomeblock_member-Vorlage Ihres Forums Benutzer-Newsbars hinzu, um die Sichtbarkeit zu erhöhen.';
$l['usernewsbars_web'] = 'http://community.mybb.com/user-6029.html';
$l['usernewsbars_auth'] = 'Vintagedaddyo';
$l['usernewsbars_authsite'] = 'http://community.mybb.com/user-6029.html';
$l['usernewsbars_ver'] = '1.0';
$l['usernewsbars_compat'] = '18*';

// Gruppe einstellen

$l['usernewsbars_title_setting_group'] = 'Benutzer-Newsbars';
$l['usernewsbars_description_setting_group'] = 'Einstellungen für das User Newsbars Plugin.';

// Einstellung 1

$l['usernewsbars_title_setting_1'] = 'Möchten Sie das Benutzer-Newsbar-Plugin global aktivieren?';
$l['usernewsbars_description_setting_1'] = 'Wenn Sie diese Option auf yes setzen, ist dieses Plugin global aktiv.';

// Einstellung 2

$l['usernewsbars_title_setting_2'] = 'Alarmanzeige';
$l['usernewsbars_description_setting_2'] = 'Geben Sie den Text ein, den Sie in Alert anzeigen möchten.';

// Einstellung 3

$l['usernewsbars_title_setting_3'] = 'CSS für Benutzerbenachrichtigung';
$l['usernewsbars_description_setting_3'] = 'Dies steuert das Styling für die Benutzerbenachrichtigung.';

// Einstellung 4

$l['usernewsbars_title_setting_4'] = 'Möchten Sie den Benutzer-Newsbar-Alarm aktivieren?';
$l['usernewsbars_description_setting_4'] = 'Wenn Sie diese Option auf yes setzen, ist die Benachrichtigung auf Ihrem Board aktiv.';

// Einstellung 5

$l['usernewsbars_title_setting_5'] = 'Beachten 1 Display';
$l['usernewsbars_description_setting_5'] = 'Geben Sie den Text ein, den Sie in Beachten 1 anzeigen möchten.';

// Einstellung 6

$l['usernewsbars_title_setting_6'] = 'CSS für Benutzerhinweis 1';
$l['usernewsbars_description_setting_6'] = 'Dies steuert das Styling für den Benutzer Beachten1.';

// Einstellung 7

$l['usernewsbars_title_setting_7'] = 'Möchten Sie Benutzer-Newsbars Beachten 1 aktivieren?';
$l['usernewsbars_description_setting_7'] = 'Wenn Sie diese Option auf yes setzen, ist Beachten 1 auf Ihrem Board aktiv.';

// Einstellung 8

$l['usernewsbars_title_setting_8'] = 'Hinweis 2-Anzeige';
$l['usernewsbars_description_setting_8'] = 'Geben Sie den Text ein, den Sie in Benutzerhinweis 2 anzeigen möchten.';

// Einstellung 9

$l['usernewsbars_title_setting_9'] = 'CSS für Benutzerhinweis 2';
$l['usernewsbars_description_setting_9'] = 'Dies steuert das Styling für den Benutzer Beachten2.';

// Einstellung 10

$l['usernewsbars_title_setting_10'] = 'Möchten Sie Benutzer-Newsbars Beachten 2 aktivieren?';
$l['usernewsbars_description_setting_10'] = 'Wenn Sie diese Option auf yes setzen, ist Beachten 2 auf Ihrem Board aktiv.';

?> 





Basic screenshot example that translating to german will work



[Image: Screenshot-20200101-173458-Firefox.jpg]



[Image: Screenshot-20200101-173553-Firefox.jpg]



[Image: Screenshot-20200101-173447-Firefox.jpg]