diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 4bbf0a4d4..da5740338 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -66,7 +66,7 @@ const config = { }, footer: { style: 'dark', - copyright: `Help us translate / improve the documentation`, + copyright: `Help us improve the documentation`, }, prism: { theme: lightCodeTheme, @@ -77,7 +77,7 @@ const config = { i18n: { defaultLocale: 'en', - locales: ['en', 'ru', 'el', 'cs', 'da', 'nl', 'no', 'sv'], + locales: ['en', 'ru', 'el', 'cs', 'da', 'nl', 'no', 'sv', 'es'], }, plugins: [ @@ -91,7 +91,7 @@ const config = { [ require.resolve("@cmfcmf/docusaurus-search-local"), { - language: ['en', 'ru', 'da', 'nl', 'no', 'sv'], + language: ['en', 'ru', 'da', 'nl', 'no', 'sv', 'es'], indexBlog: false, }, ], diff --git a/website/i18n/cs/docusaurus-plugin-content-docs/current/getting-started/configuration.md b/website/i18n/cs/docusaurus-plugin-content-docs/current/getting-started/configuration.md index caf73e1a8..a4b7cff98 100644 --- a/website/i18n/cs/docusaurus-plugin-content-docs/current/getting-started/configuration.md +++ b/website/i18n/cs/docusaurus-plugin-content-docs/current/getting-started/configuration.md @@ -19,8 +19,6 @@ V této sekci můžete plně přizpůsobit stránky portálu, povolit samostatn * Vybraná témata * Vybrané tabule * Název stránky — můžete změnit název portálu používaného jako název stránky a název záložky prohlížeče. -* Kategorie - zdroje článků pro webové stránky — umožňuje vybrat kategorie portálů pro tyto módy webových stránek: "Všechny stránky z vybraných kategorií". -* Tabule - zdroje článků pro webové stránky — umožňují vybrat tabule pro tyto módy webových stránek: "Všechna témata z vybraných panelů", a "Vybraná deska". * Zobrazit obrázky nalezené v článcích - zkontrolujte, zda zobrazit obrázky nalezené v textu stránek nebo témat. * URL výchozího zástupného obrázku – pokud je výše uvedená volba povolena, ale obrázek nebyl nalezen v textu, bude použit zde zadaný obrázek. * Zobrazit shrnutí článku @@ -45,7 +43,8 @@ V této sekci můžete plně přizpůsobit stránky portálu, povolit samostatn * Zakázat všem kromě administrátorů vytvářet PHP stránky a PHP bloky. * Kdo může zobrazit prvky portálu — pomocí "prvků" myslíme bloky a stránky. * Kdo může spravovat vlastní bloky — můžete si vybrat uživatelské skupiny, které mohou bloky vytvářet, upravovat a odstraňovat, viditelné pouze pro ně. -* Kdo může spravovat vlastní stránky — můžete si vybrat uživatelské skupiny, které mohou vytvářet, upravovat a mazat stránky. +* Who can manage own pages — you can choose user groups who can create, edit and delete own pages. +* Who can manage any pages — you can choose user groups who can create, edit and delete any pages. * Kdo může odeslat stránky portálu bez schválení — můžete si vybrat uživatelské skupiny, které budou moci posílat stránky portálu bez moderování. ## Stránky a bloky diff --git a/website/i18n/cs/docusaurus-plugin-content-docs/current/getting-started/installation.md b/website/i18n/cs/docusaurus-plugin-content-docs/current/getting-started/installation.md index a2070274b..8a012b9e3 100644 --- a/website/i18n/cs/docusaurus-plugin-content-docs/current/getting-started/installation.md +++ b/website/i18n/cs/docusaurus-plugin-content-docs/current/getting-started/installation.md @@ -14,6 +14,6 @@ Stačí stáhnout archiv s portálními soubory (v SMF se to nazývá balíček) ## Řešení problémů Pokud je váš hosting příliš "smart" s oprávněním a portálové soubory nebyly během instalace rozbaleny, musíte ručně rozbalit adresáře `šablony` a `zdroje` z archivu úprav do složky fóra (kde jsou již umístěny stejné šablony a zdrojové složky, stejně jako soubory `cron. hp`, `SSI.php`, `Settings.php`, atd.) a nastavit příslušná oprávnění. Nejčastěji je to `644`, `664` nebo `666` pro soubory, a `755`, `775` nebo `777` pro složky. -Také je třeba rozbalit soubor `databáze. hp` od archivu modifikací do kořene vašeho fóra, nastavit prováděcí práva pro něj (`666`) a přístup k němu prostřednictvím prohlížeče (musíte být přihlášeni jako správce fóra). Tento soubor obsahuje pokyny pro vytvoření tabulek používaných portálem. Zpráva `Změny databáze jsou dokončeny! Počkejte prosím...` potvrdí úspěšné provedení skriptu. +Také je třeba rozbalit soubor `databáze. hp` od archivu modifikací do kořene vašeho fóra, nastavit prováděcí práva pro něj (`666`) a přístup k němu prostřednictvím prohlížeče (musíte být přihlášeni jako správce fóra). Tento soubor obsahuje pokyny pro vytvoření tabulek používaných portálem. Zpráva `Database changes are complete! Please wait...` potvrdí úspěšné provedení skriptu. Pokud po dokončení všech výše uvedených kroků stále nevidíte sekci s nastavením portálu v admin panelu, zkontrolujte pro řádek `$sourcedir/LightPortal/app. hp` (proměnná `integrate_pre_include`) v tabulce `nastavení` vaší databáze. Chcete-li to provést, použijte vestavěné vyhledávání phpMyAdmin nebo jiný podobný nástroj. diff --git a/website/i18n/cs/docusaurus-plugin-content-docs/current/getting-started/updating.md b/website/i18n/cs/docusaurus-plugin-content-docs/current/getting-started/updating.md index 578e925df..b5933bc9e 100644 --- a/website/i18n/cs/docusaurus-plugin-content-docs/current/getting-started/updating.md +++ b/website/i18n/cs/docusaurus-plugin-content-docs/current/getting-started/updating.md @@ -3,9 +3,15 @@ sidebar_position: 2 --- # Aktualizace vaší verze -Pokud v seznamu změn nejnovější verze nejsou žádné poznámky, stačí extrahovat adresáře `šablony` a`Zdroje` z archivu modifikací do kořene vašeho fóra, nad stávajícími a aktualizace bude správná. Ale nejlepší je odinstalovat aktuální verzi před instalací nové verze. Současně při odstraňování modifikačního balíčku, **NEJSO** zaškrtněte navrhované políčko, pokud chcete uložit všechny bloky a stránky, které jste vytvořili v databázi. Poté nainstalujte novou verzi a pokračujte v práci. +Pokud v seznamu změn nejnovější verze nejsou žádné poznámky, stačí extrahovat adresáře `šablony` a`Zdroje` z archivu modifikací do kořene vašeho fóra, nad stávajícími a aktualizace bude správná. Ale nejlepší je odinstalovat aktuální verzi před instalací nové verze. -![Odinstalace](uninstall.png) +:::info + +Since version 2.1.1 you can upgrade without uninstalling the previous version. Simply download the new archive, go to the Package Manager and click "Upgrade" button next to the uploaded package. + +![Updating](upgrade.png) + +::: ## Řešení problémů diff --git a/website/i18n/cs/docusaurus-plugin-content-docs/current/getting-started/upgrade.png b/website/i18n/cs/docusaurus-plugin-content-docs/current/getting-started/upgrade.png new file mode 100644 index 000000000..752ae26f7 Binary files /dev/null and b/website/i18n/cs/docusaurus-plugin-content-docs/current/getting-started/upgrade.png differ diff --git a/website/i18n/cs/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png b/website/i18n/cs/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png index 37c616484..3378b5c89 100644 Binary files a/website/i18n/cs/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png and b/website/i18n/cs/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png differ diff --git a/website/i18n/cs/docusaurus-plugin-content-docs/current/plugins/create-new.md b/website/i18n/cs/docusaurus-plugin-content-docs/current/plugins/create-new.md index b5080390f..25f4052d7 100644 --- a/website/i18n/cs/docusaurus-plugin-content-docs/current/plugins/create-new.md +++ b/website/i18n/cs/docusaurus-plugin-content-docs/current/plugins/create-new.md @@ -84,11 +84,5 @@ Pokud plugin potřebuje načíst data pomocí funkcí SSI, použijte vestavěnou $data = $this->getFromSsi('topics', 'views', 10, 'array'); ``` -:::caution - -Bez souboru SSI.php nebude výše uvedená metoda fungovat. - -::: - ## Používá se editor Plugin může používat knihovny třetích stran nainstalované prostřednictvím Composer. Ujistěte se, že soubor `composer.json` je umístěn v adresáři plugin, který obsahuje potřebné závislosti. Před zveřejněním pluginu otevřete adresář pluginu v příkazovém řádku a spusťte příkaz: `composer install --no-dev -o`. Poté může být celý obsah adresáře pluginů zabalen jako samostatná úprava SMF (například viz balíček **PluginMaker**). diff --git a/website/i18n/cs/docusaurus-plugin-content-docs/current/plugins/download_plugins.png b/website/i18n/cs/docusaurus-plugin-content-docs/current/plugins/download_plugins.png index 72f964e77..15499d81a 100644 Binary files a/website/i18n/cs/docusaurus-plugin-content-docs/current/plugins/download_plugins.png and b/website/i18n/cs/docusaurus-plugin-content-docs/current/plugins/download_plugins.png differ diff --git a/website/i18n/da/docusaurus-plugin-content-docs/current.json b/website/i18n/da/docusaurus-plugin-content-docs/current.json index d4f068d60..408fdd212 100644 --- a/website/i18n/da/docusaurus-plugin-content-docs/current.json +++ b/website/i18n/da/docusaurus-plugin-content-docs/current.json @@ -1,6 +1,6 @@ { "version.label": { - "message": "Next", + "message": "Næste", "description": "The label for version current" }, "sidebar.baseSidebar.category.Getting Started": { diff --git a/website/i18n/da/docusaurus-plugin-content-docs/current/getting-started/configuration.md b/website/i18n/da/docusaurus-plugin-content-docs/current/getting-started/configuration.md index 212c4b0a4..b7182258b 100644 --- a/website/i18n/da/docusaurus-plugin-content-docs/current/getting-started/configuration.md +++ b/website/i18n/da/docusaurus-plugin-content-docs/current/getting-started/configuration.md @@ -19,8 +19,6 @@ I dette afsnit kan du fuldt ud tilpasse portalens forside, aktivere standalone t * Valgte emner * Valgte tavler * Forsiden titel - du kan ændre navnet på portalen, der bruges som sidetitel og titlen på browseren fanen. -* Kategorier - artikler til forsiden - giver dig mulighed for at vælge portal kategorier for disse forside-tilstande: "Alle sider fra udvalgte kategorier". -* Tavler - artikler til forsiden - giver dig mulighed for at vælge tavler til disse forsidetilstande: "Alle emner fra udvalgte tavler", og "Valgte tavle". * Vis billeder, der findes i artikler - tjek om billeder fundet i teksten på sider eller emner. * URL for standardpladsholder-billedet — hvis indstillingen ovenfor er aktiveret, men billedet er ikke fundet i teksten, den der er angivet her vil blive brugt. * Vis artikeloversigt @@ -45,7 +43,8 @@ I dette afsnit kan du fuldt ud tilpasse portalens forside, aktivere standalone t * Forvis alle undtagen administratorer fra at oprette PHP sider og PHP blokke. * Hvem kan se portalelementerne — ved "elementer" mener vi blokke og sider. * Hvem kan administrere egne blokke - du kan vælge brugergrupper, der kan oprette, redigere og slette blokke, kun synlige for dem. -* Hvem kan administrere egne sider - du kan vælge brugergrupper, der kan oprette, redigere og slette sider. +* Who can manage own pages — you can choose user groups who can create, edit and delete own pages. +* Who can manage any pages — you can choose user groups who can create, edit and delete any pages. * Hvem kan sende portalsider uden godkendelse - du kan vælge brugergrupper, der vil være i stand til at sende portalsider uden moderation. ## Sider og blokke diff --git a/website/i18n/da/docusaurus-plugin-content-docs/current/getting-started/installation.md b/website/i18n/da/docusaurus-plugin-content-docs/current/getting-started/installation.md index ea7ed5186..75d17d9e3 100644 --- a/website/i18n/da/docusaurus-plugin-content-docs/current/getting-started/installation.md +++ b/website/i18n/da/docusaurus-plugin-content-docs/current/getting-started/installation.md @@ -14,6 +14,6 @@ Det er nok at downloade arkivet med portalfilerne (i SMF kaldes dette en pakke) ## Fejlfinding Hvis din hosting er for "smart" med tilladelser og portalfilerne ikke blev pakket ud under installationen, du skal manuelt udtrække mapperne `Temaer` og `Kilder` fra modifikationsarkivet til din forummappe (hvor de samme temaer og Kilder mapper allerede er placeret, samt filer `cron. hp`, `SSI.php`, `Settings.php`, etc) og indstil de relevante tilladelser. Oftest er det `644`, `664` eller `666` for filer, og `755`, `775` eller `777` for mapper. -Du skal også udpakke filen `databasen. hp` fra ændringsarkiv til roden af dit forum, sæt udførelsesrettigheder for det (`666`) og få adgang til det via browseren (du skal være logget ind som forum administrator). Denne fil indeholder instruktioner til at oprette de tabeller, der bruges af portalen. Meddelelsen `Database ændringer er fuldført! Vent venligst...` vil bekræfte den vellykkede udførelse af scriptet. +Du skal også udpakke filen `databasen. hp` fra ændringsarkiv til roden af dit forum, sæt udførelsesrettigheder for det (`666`) og få adgang til det via browseren (du skal være logget ind som forum administrator). Denne fil indeholder instruktioner til at oprette de tabeller, der bruges af portalen. Meddelelsen `Database changes are complete! Please wait..` vil bekræfte den vellykkede udførelse af scriptet. Hvis du efter at have gennemført alle ovenstående trin stadig ikke kan se afsnittet med portalindstillingerne i administrationspanelet, tjekke for linjen `$sourcedir/LightPortal/app. hp` (variabel `integrate_pre_include`) i tabellen `indstillinger` i din database. For at gøre dette, skal du bruge den indbyggede søgning af phpMyAdmin eller en anden lignende værktøj. diff --git a/website/i18n/da/docusaurus-plugin-content-docs/current/getting-started/updating.md b/website/i18n/da/docusaurus-plugin-content-docs/current/getting-started/updating.md index f8fbd4064..e30309682 100644 --- a/website/i18n/da/docusaurus-plugin-content-docs/current/getting-started/updating.md +++ b/website/i18n/da/docusaurus-plugin-content-docs/current/getting-started/updating.md @@ -3,9 +3,15 @@ sidebar_position: 2 --- # Opdaterer din version -Hvis der ikke er nogen noter i ændringsloggen til den seneste version, det er nok at udtrække mapperne `Temaer` og`Kilder` fra ændringsarkivet til roden af dit forum, over de eksisterende, og opdateringen vil være korrekt. Men det er bedst at afinstallere den aktuelle version, før du installerer den nye version. Samtidig ved sletning af ændringspakken, **Afkryds IKKE** den foreslåede boks, hvis du vil gemme alle de blokke og sider, du har oprettet i databasen. Derefter skal du installere den nye version og fortsætte med at arbejde. +Hvis der ikke er nogen noter i ændringsloggen til den seneste version, det er nok at udtrække mapperne `Temaer` og`Kilder` fra ændringsarkivet til roden af dit forum, over de eksisterende, og opdateringen vil være korrekt. Men det er bedst at afinstallere den aktuelle version, før du installerer den nye version. -![Afinstallerer](uninstall.png) +:::info + +Since version 2.1.1 you can upgrade without uninstalling the previous version. Simply download the new archive, go to the Package Manager and click "Upgrade" button next to the uploaded package. + +![Updating](upgrade.png) + +::: ## Fejlfinding diff --git a/website/i18n/da/docusaurus-plugin-content-docs/current/getting-started/upgrade.png b/website/i18n/da/docusaurus-plugin-content-docs/current/getting-started/upgrade.png new file mode 100644 index 000000000..752ae26f7 Binary files /dev/null and b/website/i18n/da/docusaurus-plugin-content-docs/current/getting-started/upgrade.png differ diff --git a/website/i18n/da/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png b/website/i18n/da/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png index 37c616484..3378b5c89 100644 Binary files a/website/i18n/da/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png and b/website/i18n/da/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png differ diff --git a/website/i18n/da/docusaurus-plugin-content-docs/current/pages/new_page.png b/website/i18n/da/docusaurus-plugin-content-docs/current/pages/new_page.png index ef8ee828e..745f39772 100644 Binary files a/website/i18n/da/docusaurus-plugin-content-docs/current/pages/new_page.png and b/website/i18n/da/docusaurus-plugin-content-docs/current/pages/new_page.png differ diff --git a/website/i18n/da/docusaurus-plugin-content-docs/current/plugins/create-new.md b/website/i18n/da/docusaurus-plugin-content-docs/current/plugins/create-new.md index 625113a23..3c18a22d3 100644 --- a/website/i18n/da/docusaurus-plugin-content-docs/current/plugins/create-new.md +++ b/website/i18n/da/docusaurus-plugin-content-docs/current/plugins/create-new.md @@ -14,18 +14,18 @@ Siden version 1.9 er funktionaliteten til at skabe plugins blevet flyttet til et ## Valg af type af plugin I øjeblikket er følgende typer af plugins tilgængelige: -* `blok` — plugins, der tilføjer en ny type blokke til portalen +* `block` — plugins, der tilføjer en ny type blokke til portalen * `ssi` — plugins (normalt blokke), der bruger SSI-funktioner til at hente data * `editor` — plugins, der tilføjer en tredjeparts-editor til forskellige typer indhold * `comment` — plugins, der tilføjer en tredjeparts kommentar widget i stedet for den indbyggede * `parser` — plugins, der implementerer parseren for indholdet af sider og blokke * `article` — plugins til behandling af indholdet af artikelkort på forsiden -* `frontside` — plugins til ændring af portalens hovedside +* `frontpage` — plugins til ændring af portalens hovedside * `impex` — plugins til import og eksport af forskellige portalelementer * `block_options` og `page_options` — plugins, der tilføjer yderligere parametre for den tilsvarende enhed (blok eller side) -* `ikoner` — plugins, der tilføjer nye ikonbiblioteker til at erstatte grænsefladeelementer eller til brug i blokoverskrifter +* `icons` — plugins, der tilføjer nye ikonbiblioteker til at erstatte grænsefladeelementer eller til brug i blokoverskrifter * `seo` — plugins, der på en eller anden måde påvirker synligheden af forummet på netværket -* `andre` — plugins, der ikke er relateret til nogen af ovennævnte kategorier +* `other` — plugins, der ikke er relateret til nogen af ovennævnte kategorier ## Opretter en plugin mappe Opret en separat mappe til dine plugin-filer, inde i `/Sources/LightPortal/Addons`. For eksempel, hvis dit plugin kaldes `HelloWorld`, skal mappestrukturen se sådan ud: @@ -84,11 +84,5 @@ Hvis plugin'et skal hente data ved hjælp af SSI-funktioner, skal du bruge den i $data = $this->getFromSsi('topTopics', 'views', 10, 'array'); ``` -:::caution - -Uden SSI.php fil, vil ovenstående metode ikke fungere. - -::: - ## Brug Af Komponist Dit plugin kan bruge tredjepartsbiblioteker installeret via Composer. Sørg for, at `composer.json` -filen er placeret i plugin-mappen, som indeholder de nødvendige afhængigheder. Før du publicerer dit plugin, skal du åbne plugin-mappen i kommandolinjen og køre kommandoen: `composer install --no-dev -o`. Derefter kan hele indholdet af plugin mappen pakkes som en separat ændring for SMF (for eksempel se **PluginMaker** pakke). diff --git a/website/i18n/da/docusaurus-plugin-content-docs/current/plugins/download_plugins.png b/website/i18n/da/docusaurus-plugin-content-docs/current/plugins/download_plugins.png index 72f964e77..15499d81a 100644 Binary files a/website/i18n/da/docusaurus-plugin-content-docs/current/plugins/download_plugins.png and b/website/i18n/da/docusaurus-plugin-content-docs/current/plugins/download_plugins.png differ diff --git a/website/i18n/da/docusaurus-plugin-content-docs/current/plugins/manage_plugins.png b/website/i18n/da/docusaurus-plugin-content-docs/current/plugins/manage_plugins.png index 4364e830b..d67069042 100644 Binary files a/website/i18n/da/docusaurus-plugin-content-docs/current/plugins/manage_plugins.png and b/website/i18n/da/docusaurus-plugin-content-docs/current/plugins/manage_plugins.png differ diff --git a/website/i18n/el/docusaurus-plugin-content-docs/current/getting-started/configuration.md b/website/i18n/el/docusaurus-plugin-content-docs/current/getting-started/configuration.md index 5cb2632e8..6c6b7d974 100644 --- a/website/i18n/el/docusaurus-plugin-content-docs/current/getting-started/configuration.md +++ b/website/i18n/el/docusaurus-plugin-content-docs/current/getting-started/configuration.md @@ -19,8 +19,6 @@ sidebar_position: 3 * Επιλεγμένα θέματα * Επιλεγμένες ενότητες * Ο τίτλος της αρχικής σελίδας — μπορείτε να αλλάξετε το όνομα της πύλης που χρησιμοποιείται ως τίτλος σελίδας και τον τίτλο της καρτέλας του προγράμματος περιήγησης. -* Κατηγορίες - πηγές άρθρων για την πρώτη σελίδα — σας επιτρέπει να επιλέξετε κατηγορίες πύλης για αυτές τις λειτουργίες πρώτης σελίδας: "Όλες οι σελίδες από επιλεγμένες κατηγορίες". -* Πίνακες - πηγές άρθρων για την πρώτη σελίδα — σας επιτρέπει να επιλέξετε πίνακες για αυτές τις λειτουργίες πρώτης σελίδας: "Όλα τα θέματα από επιλεγμένους πίνακες" και "Επιλεγμένος πίνακας". * Εμφάνιση εικόνων που βρέθηκαν σε άρθρα — επιλέξτε εάν θα εμφανίζονται εικόνες που βρίσκονται στο κείμενο σελίδων ή θεμάτων. * URL της προεπιλεγμένης εικόνας κράτησης θέσης — εάν η παραπάνω επιλογή είναι ενεργοποιημένη, αλλά η εικόνα δεν βρίσκεται στο κείμενο, θα χρησιμοποιηθεί αυτή που καθορίζεται εδώ. * Εμφάνιση περίληψης άρθρου @@ -45,7 +43,8 @@ sidebar_position: 3 * Να απαγορεύεται σε όλους, εκτός από τους διαχειριστές, να δημιουργούν σελίδες και μπλοκ PHP. * Ποιος μπορεί να δει τα στοιχεία πύλης — με τον όρο "στοιχεία" εννοούμε μπλοκ και σελίδες. * Ποιος μπορεί να διαχειρίζεται τα δικά του μπλοκ — μπορείτε να επιλέξετε ομάδες χρηστών που μπορούν να δημιουργούν, να επεξεργάζονται και να διαγράφουν μπλοκ, ορατά μόνο σε αυτούς. -* Ποιος μπορεί να διαχειρίζεται τις δικές του σελίδες — μπορείτε να επιλέξετε ομάδες χρηστών που μπορούν να δημιουργούν, να επεξεργάζονται και να διαγράφουν σελίδες. +* Ποιος μπορεί να διαχειρίζεται τις δικές του σελίδες — μπορείτε να επιλέξετε ομάδες χρηστών που μπορούν να δημιουργούν, να επεξεργάζονται και να διαγράφουν δικές τους σελίδες. +* Ποιος μπορεί να διαχειρίζεται οποιεσδήποτε σελίδες — μπορείτε να επιλέξετε ομάδες χρηστών που μπορούν να δημιουργήσουν, να επεξεργαστούν και να διαγράψουν οποιεσδήποτε σελίδες. * Ποιος μπορεί να δημοσιεύσει τις σελίδες πύλης χωρίς έγκριση — μπορείτε να επιλέξετε ομάδες χρηστών που θα μπορούν να δημοσιεύουν σελίδες πύλης χωρίς εποπτεία. ## Σελίδες και μπλοκ diff --git a/website/i18n/el/docusaurus-plugin-content-docs/current/getting-started/installation.md b/website/i18n/el/docusaurus-plugin-content-docs/current/getting-started/installation.md index ccb6927e5..30b63b0fd 100644 --- a/website/i18n/el/docusaurus-plugin-content-docs/current/getting-started/installation.md +++ b/website/i18n/el/docusaurus-plugin-content-docs/current/getting-started/installation.md @@ -14,6 +14,6 @@ sidebar_position: 1 ## Αντιμετώπιση προβλημάτων Εάν η φιλοξενία σας είναι πολύ "έξυπνη" με δικαιώματα και τα αρχεία της πύλης δεν αποσυσκευάστηκαν κατά την εγκατάσταση, πρέπει να εξαγάγετε με μη αυτόματο τρόπο τους καταλόγους `Θέματα` και `Πηγές` από το αρχείο τροποποιήσεων στο φάκελος φόρουμ (όπου βρίσκονται ήδη οι ίδιοι φάκελοι Θέματα και Πηγές, καθώς και αρχεία `cron.php`, `SSI.php`, `Settings.php` , κλπ) και ορίστε τις κατάλληλες άδειες. Τις περισσότερες φορές είναι `644`, `664` ή `666` για αρχεία και `755`, `775` ή `777` για φακέλους. -Επίσης, πρέπει να αποσυμπιέσετε το αρχείο `database.php` από το αρχείο τροποποιήσεων στη ρίζα του φόρουμ σας, να ορίσετε δικαιώματα εκτέλεσης για αυτό (`666`) και να αποκτήσετε πρόσβαση μέσω του προγράμματος περιήγησης (εσείς πρέπει να συνδεθείτε ως διαχειριστής του φόρουμ). Αυτό το αρχείο περιέχει οδηγίες για τη δημιουργία των πινάκων που χρησιμοποιούνται από την πύλη. Το μήνυμα `Οι αλλαγές στη βάση δεδομένων ολοκληρώθηκαν! Παρακαλώ περιμένετε...` θα επιβεβαιώσει την επιτυχή εκτέλεση του σεναρίου. +Επίσης, πρέπει να αποσυμπιέσετε το αρχείο `database.php` από το αρχείο τροποποιήσεων στη ρίζα του φόρουμ σας, να ορίσετε δικαιώματα εκτέλεσης για αυτό (`666`) και να αποκτήσετε πρόσβαση μέσω του προγράμματος περιήγησης (εσείς πρέπει να συνδεθείτε ως διαχειριστής του φόρουμ). Αυτό το αρχείο περιέχει οδηγίες για τη δημιουργία των πινάκων που χρησιμοποιούνται από την πύλη. Το μήνυμα `Database changes are complete! Please wait...` θα επιβεβαιώσει την επιτυχή εκτέλεση του σεναρίου. Εάν, μετά την ολοκλήρωση όλων των παραπάνω βημάτων, εξακολουθείτε να μην βλέπετε την ενότητα με τις ρυθμίσεις πύλης στον πίνακα διαχείρισης, ελέγξτε για τη γραμμή `$sourcedir/LightPortal/app.php` (μεταβλητή `integrate_pre_include `) στον πίνακα `ρυθμίσεις` της βάσης δεδομένων σας. Για να το κάνετε αυτό, χρησιμοποιήστε την ενσωματωμένη αναζήτηση του phpMyAdmin ή άλλο παρόμοιο βοηθητικό πρόγραμμα. diff --git a/website/i18n/el/docusaurus-plugin-content-docs/current/getting-started/updating.md b/website/i18n/el/docusaurus-plugin-content-docs/current/getting-started/updating.md index d4f2e93d3..17df3369f 100644 --- a/website/i18n/el/docusaurus-plugin-content-docs/current/getting-started/updating.md +++ b/website/i18n/el/docusaurus-plugin-content-docs/current/getting-started/updating.md @@ -3,9 +3,15 @@ sidebar_position: 2 --- # Ενημέρωση της έκδοσής σας -Εάν δεν υπάρχουν σημειώσεις στο αρχείο καταγραφής αλλαγών της τελευταίας έκδοσης, αρκεί να εξαγάγετε τους καταλόγους `Θέματα` και `Πηγές` από το αρχείο τροποποιήσεων στη ρίζα του φόρουμ σας, πάνω από το υπάρχοντα και η ενημέρωση θα είναι σωστή. Αλλά είναι καλύτερο να απεγκαταστήσετε την τρέχουσα έκδοση πριν εγκαταστήσετε τη νέα έκδοση. Ταυτόχρονα, κατά τη διαγραφή του πακέτου τροποποίησης, **ΜΗΝ** επιλέξτε το προτεινόμενο πλαίσιο εάν θέλετε να αποθηκεύσετε όλα τα μπλοκ και τις σελίδες που δημιουργήσατε στη βάση δεδομένων. Μετά από αυτό, εγκαταστήστε τη νέα έκδοση και συνεχίστε να εργάζεστε. +Εάν δεν υπάρχουν σημειώσεις στο αρχείο καταγραφής αλλαγών της τελευταίας έκδοσης, αρκεί να εξαγάγετε τους καταλόγους `Θέματα` και `Πηγές` από το αρχείο τροποποιήσεων στη ρίζα του φόρουμ σας, πάνω από το υπάρχοντα και η ενημέρωση θα είναι σωστή. Αλλά είναι καλύτερο να απεγκαταστήσετε την τρέχουσα έκδοση πριν εγκαταστήσετε τη νέα έκδοση. -![Κατάργηση εγκατάστασης](uninstall.png) +:::info + +Από την έκδοση 2.1.1 μπορείτε να κάνετε αναβάθμιση χωρίς να απεγκαταστήσετε την προηγούμενη έκδοση. Απλώς κατεβάστε το νέο αρχείο, μεταβείτε στη Διαχείριση πακέτων και κάντε κλικ στο κουμπί "Αναβάθμιση" δίπλα στο μεταφορτωμένο πακέτο. + +![Ενημέρωση...](upgrade.png) + +::: ## Αντιμετώπιση προβλημάτων diff --git a/website/i18n/el/docusaurus-plugin-content-docs/current/getting-started/upgrade.png b/website/i18n/el/docusaurus-plugin-content-docs/current/getting-started/upgrade.png new file mode 100644 index 000000000..752ae26f7 Binary files /dev/null and b/website/i18n/el/docusaurus-plugin-content-docs/current/getting-started/upgrade.png differ diff --git a/website/i18n/el/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png b/website/i18n/el/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png index 37c616484..3378b5c89 100644 Binary files a/website/i18n/el/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png and b/website/i18n/el/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png differ diff --git a/website/i18n/el/docusaurus-plugin-content-docs/current/plugins/create-new.md b/website/i18n/el/docusaurus-plugin-content-docs/current/plugins/create-new.md index d7dcca095..38f77ad85 100644 --- a/website/i18n/el/docusaurus-plugin-content-docs/current/plugins/create-new.md +++ b/website/i18n/el/docusaurus-plugin-content-docs/current/plugins/create-new.md @@ -84,11 +84,5 @@ class HelloWorld extends Plugin $data = $this->getFromSsi('topTopics', 'views', 10, 'array'); ``` -:::caution - -Χωρίς αρχείο SSI.php, η παραπάνω μέθοδος δεν θα λειτουργήσει. - -::: - ## Χρήση του Composer Η προσθήκη σας μπορεί να χρησιμοποιεί βιβλιοθήκες τρίτων που έχουν εγκατασταθεί μέσω του Composer. Βεβαιωθείτε ότι το αρχείο `composer.json` βρίσκεται στον κατάλογο των προσθηκών, ο οποίος περιέχει τις απαραίτητες εξαρτήσεις. Πριν δημοσιεύσετε την προσθήκη, ανοίξτε τον κατάλογο της προσθήκης στη γραμμή εντολών και εκτελέστε την εντολή: `composer install --no-dev -o`. Μετά από αυτό, ολόκληρο το περιεχόμενο του καταλόγου προσθηκών μπορεί να συσκευαστεί ως ξεχωριστή τροποποίηση για SMF (για παράδειγμα, δείτε το πακέτο **PluginMaker**). diff --git a/website/i18n/el/docusaurus-plugin-content-docs/current/plugins/download_plugins.png b/website/i18n/el/docusaurus-plugin-content-docs/current/plugins/download_plugins.png index 72f964e77..15499d81a 100644 Binary files a/website/i18n/el/docusaurus-plugin-content-docs/current/plugins/download_plugins.png and b/website/i18n/el/docusaurus-plugin-content-docs/current/plugins/download_plugins.png differ diff --git a/website/i18n/es/code.json b/website/i18n/es/code.json new file mode 100644 index 000000000..473e8413d --- /dev/null +++ b/website/i18n/es/code.json @@ -0,0 +1,288 @@ +{ + "theme.ErrorPageContent.title": { + "message": "This page crashed.", + "description": "The title of the fallback page when the page crashed" + }, + "theme.NotFound.title": { + "message": "Page Not Found", + "description": "The title of the 404 page" + }, + "theme.NotFound.p1": { + "message": "We could not find what you were looking for.", + "description": "The first paragraph of the 404 page" + }, + "theme.NotFound.p2": { + "message": "Please contact the owner of the site that linked you to the original URL and let them know their link is broken.", + "description": "The 2nd paragraph of the 404 page" + }, + "theme.admonition.note": { + "message": "note", + "description": "The default label used for the Note admonition (:::note)" + }, + "theme.admonition.tip": { + "message": "tip", + "description": "The default label used for the Tip admonition (:::tip)" + }, + "theme.admonition.danger": { + "message": "danger", + "description": "The default label used for the Danger admonition (:::danger)" + }, + "theme.admonition.info": { + "message": "info", + "description": "The default label used for the Info admonition (:::info)" + }, + "theme.admonition.caution": { + "message": "caution", + "description": "The default label used for the Caution admonition (:::caution)" + }, + "theme.BackToTopButton.buttonAriaLabel": { + "message": "Scroll back to top", + "description": "The ARIA label for the back to top button" + }, + "theme.blog.archive.title": { + "message": "Archive", + "description": "The page & hero title of the blog archive page" + }, + "theme.blog.archive.description": { + "message": "Archive", + "description": "The page & hero description of the blog archive page" + }, + "theme.blog.paginator.navAriaLabel": { + "message": "Blog list page navigation", + "description": "The ARIA label for the blog pagination" + }, + "theme.blog.paginator.newerEntries": { + "message": "Newer Entries", + "description": "The label used to navigate to the newer blog posts page (previous page)" + }, + "theme.blog.paginator.olderEntries": { + "message": "Older Entries", + "description": "The label used to navigate to the older blog posts page (next page)" + }, + "theme.blog.post.paginator.navAriaLabel": { + "message": "Blog post page navigation", + "description": "The ARIA label for the blog posts pagination" + }, + "theme.blog.post.paginator.newerPost": { + "message": "Newer Post", + "description": "The blog post button label to navigate to the newer/previous post" + }, + "theme.blog.post.paginator.olderPost": { + "message": "Older Post", + "description": "The blog post button label to navigate to the older/next post" + }, + "theme.blog.post.plurals": { + "message": "One post|{count} posts", + "description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)" + }, + "theme.blog.tagTitle": { + "message": "{nPosts} tagged with \"{tagName}\"", + "description": "The title of the page for a blog tag" + }, + "theme.tags.tagsPageLink": { + "message": "View All Tags", + "description": "The label of the link targeting the tag list page" + }, + "theme.colorToggle.ariaLabel": { + "message": "Switch between dark and light mode (currently {mode})", + "description": "The ARIA label for the navbar color mode toggle" + }, + "theme.colorToggle.ariaLabel.mode.dark": { + "message": "dark mode", + "description": "The name for the dark color mode" + }, + "theme.colorToggle.ariaLabel.mode.light": { + "message": "light mode", + "description": "The name for the light color mode" + }, + "theme.docs.breadcrumbs.navAriaLabel": { + "message": "Breadcrumbs", + "description": "The ARIA label for the breadcrumbs" + }, + "theme.docs.DocCard.categoryDescription": { + "message": "{count} items", + "description": "The default description for a category card in the generated index about how many items this category includes" + }, + "theme.docs.paginator.navAriaLabel": { + "message": "Docs pages navigation", + "description": "The ARIA label for the docs pagination" + }, + "theme.docs.paginator.previous": { + "message": "Previo", + "description": "The label used to navigate to the previous doc" + }, + "theme.docs.paginator.next": { + "message": "Próximo", + "description": "The label used to navigate to the next doc" + }, + "theme.docs.tagDocListPageTitle.nDocsTagged": { + "message": "One doc tagged|{count} docs tagged", + "description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)" + }, + "theme.docs.tagDocListPageTitle": { + "message": "{nDocsTagged} with \"{tagName}\"", + "description": "The title of the page for a docs tag" + }, + "theme.docs.versionBadge.label": { + "message": "Version: {versionLabel}" + }, + "theme.docs.versions.unreleasedVersionLabel": { + "message": "This is unreleased documentation for {siteTitle} {versionLabel} version.", + "description": "The label used to tell the user that he's browsing an unreleased doc version" + }, + "theme.docs.versions.unmaintainedVersionLabel": { + "message": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.", + "description": "The label used to tell the user that he's browsing an unmaintained doc version" + }, + "theme.docs.versions.latestVersionSuggestionLabel": { + "message": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).", + "description": "The label used to tell the user to check the latest version" + }, + "theme.docs.versions.latestVersionLinkLabel": { + "message": "latest version", + "description": "The label used for the latest version suggestion link label" + }, + "theme.common.editThisPage": { + "message": "Edit this page", + "description": "The link label to edit the current page" + }, + "theme.common.headingLinkTitle": { + "message": "Direct link to {heading}", + "description": "Title for link to heading" + }, + "theme.lastUpdated.atDate": { + "message": " on {date}", + "description": "The words used to describe on which date a page has been last updated" + }, + "theme.lastUpdated.byUser": { + "message": " by {user}", + "description": "The words used to describe by who the page has been last updated" + }, + "theme.lastUpdated.lastUpdatedAtBy": { + "message": "Last updated{atDate}{byUser}", + "description": "The sentence used to display when a page has been last updated, and by who" + }, + "theme.navbar.mobileVersionsDropdown.label": { + "message": "Versions", + "description": "The label for the navbar versions dropdown on mobile view" + }, + "theme.tags.tagsListLabel": { + "message": "Tags:", + "description": "The label alongside a tag list" + }, + "theme.AnnouncementBar.closeButtonAriaLabel": { + "message": "Close", + "description": "The ARIA label for close button of announcement bar" + }, + "theme.blog.sidebar.navAriaLabel": { + "message": "Blog recent posts navigation", + "description": "The ARIA label for recent posts in the blog sidebar" + }, + "theme.CodeBlock.copied": { + "message": "Copied", + "description": "The copied button label on code blocks" + }, + "theme.CodeBlock.copyButtonAriaLabel": { + "message": "Copy code to clipboard", + "description": "The ARIA label for copy code blocks button" + }, + "theme.CodeBlock.copy": { + "message": "Copy", + "description": "The copy button label on code blocks" + }, + "theme.CodeBlock.wordWrapToggle": { + "message": "Toggle word wrap", + "description": "The title attribute for toggle word wrapping button of code block lines" + }, + "theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel": { + "message": "Toggle the collapsible sidebar category '{label}'", + "description": "The ARIA label to toggle the collapsible sidebar category" + }, + "theme.NavBar.navAriaLabel": { + "message": "Main", + "description": "The ARIA label for the main navigation" + }, + "theme.navbar.mobileLanguageDropdown.label": { + "message": "Languages", + "description": "The label for the mobile language switcher dropdown" + }, + "theme.TOCCollapsible.toggleButtonLabel": { + "message": "On this page", + "description": "The label used by the button on the collapsible TOC component" + }, + "theme.blog.post.readMore": { + "message": "Read More", + "description": "The label used in blog post item excerpts to link to full blog posts" + }, + "theme.blog.post.readMoreLabel": { + "message": "Read more about {title}", + "description": "The ARIA label for the link to full blog posts from excerpts" + }, + "theme.blog.post.readingTime.plurals": { + "message": "One min read|{readingTime} min read", + "description": "Pluralized label for \"{readingTime} min read\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)" + }, + "theme.docs.breadcrumbs.home": { + "message": "Home page", + "description": "The ARIA label for the home page in the breadcrumbs" + }, + "theme.docs.sidebar.collapseButtonTitle": { + "message": "Collapse sidebar", + "description": "The title attribute for collapse button of doc sidebar" + }, + "theme.docs.sidebar.collapseButtonAriaLabel": { + "message": "Collapse sidebar", + "description": "The title attribute for collapse button of doc sidebar" + }, + "theme.docs.sidebar.navAriaLabel": { + "message": "Docs sidebar", + "description": "The ARIA label for the sidebar navigation" + }, + "theme.docs.sidebar.closeSidebarButtonAriaLabel": { + "message": "Close navigation bar", + "description": "The ARIA label for close button of mobile sidebar" + }, + "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": { + "message": "← Back to main menu", + "description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)" + }, + "theme.docs.sidebar.toggleSidebarButtonAriaLabel": { + "message": "Toggle navigation bar", + "description": "The ARIA label for hamburger menu button of mobile navigation" + }, + "theme.docs.sidebar.expandButtonTitle": { + "message": "Expand sidebar", + "description": "The ARIA label and title attribute for expand button of doc sidebar" + }, + "theme.docs.sidebar.expandButtonAriaLabel": { + "message": "Expand sidebar", + "description": "The ARIA label and title attribute for expand button of doc sidebar" + }, + "theme.ErrorPageContent.tryAgain": { + "message": "Try again", + "description": "The label of the button to try again rendering when the React error boundary captures an error" + }, + "theme.common.skipToMainContent": { + "message": "Skip to main content", + "description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation" + }, + "theme.tags.tagsPageTitle": { + "message": "Etiquetas", + "description": "The title of the tag list page" + }, + "cmfcmf/d-s-l.searchBar.placeholder": { + "message": "Search..." + }, + "cmfcmf/d-s-l.searchBar.noResults": { + "message": "No results found." + }, + "cmfcmf/d-s-l.searchBar.clearButtonTitle": { + "message": "Clear" + }, + "cmfcmf/d-s-l.searchBar.detachedCancelButtonText": { + "message": "Cancel" + }, + "cmfcmf/d-s-l.searchBar.submitButtonTitle": { + "message": "Submit" + } +} diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current.json b/website/i18n/es/docusaurus-plugin-content-docs/current.json new file mode 100644 index 000000000..8930e9caf --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current.json @@ -0,0 +1,26 @@ +{ + "version.label": { + "message": "Próximo", + "description": "The label for version current" + }, + "sidebar.baseSidebar.category.Getting Started": { + "message": "Getting Started", + "description": "The label for category Getting Started in sidebar baseSidebar" + }, + "sidebar.baseSidebar.category.Blocks": { + "message": "Bloques", + "description": "The label for category Blocks in sidebar baseSidebar" + }, + "sidebar.baseSidebar.category.Pages": { + "message": "Páginas", + "description": "The label for category Pages in sidebar baseSidebar" + }, + "sidebar.baseSidebar.category.Plugins": { + "message": "Complementos", + "description": "The label for category Plugins in sidebar baseSidebar" + }, + "sidebar.baseSidebar.category.How To": { + "message": "How To", + "description": "The label for category How To in sidebar baseSidebar" + } +} diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/blocks/_category_.json b/website/i18n/es/docusaurus-plugin-content-docs/current/blocks/_category_.json new file mode 100644 index 000000000..6f15aeace --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/blocks/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Bloques", + "position": 3 +} diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/blocks/create-new.md b/website/i18n/es/docusaurus-plugin-content-docs/current/blocks/create-new.md new file mode 100644 index 000000000..bd01ce3df --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/blocks/create-new.md @@ -0,0 +1,16 @@ +--- +sidebar_position: 2 +--- + +# Agregar bloque +All portal blocks currently available (depending on enabled [plugins](/plugins/manage)) are displayed here. To add, click on the desired block. + +Depending on the type of block, various settings will be available, spread across different tabs. Common are: +* title +* note +* placement +* permissions +* areas +* appearance options + +Block-specific tuners are usually available on the **Tuning** tab. \ No newline at end of file diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/blocks/impex.md b/website/i18n/es/docusaurus-plugin-content-docs/current/blocks/impex.md new file mode 100644 index 000000000..ac6c40ff3 --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/blocks/impex.md @@ -0,0 +1,12 @@ +--- +sidebar_position: 3 +--- + +# Exportar e importar +Portal blocks can be saved in a special file, for transferring to another forum, or for restoring after a clean installation of the forum. + +## Export blocks +In this section, you can export all or only selected blocks to an XML file. + +## Import blocks +In this section, you can import previously saved blocks from an XML file. \ No newline at end of file diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/blocks/manage.md b/website/i18n/es/docusaurus-plugin-content-docs/current/blocks/manage.md new file mode 100644 index 000000000..3ec1d813a --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/blocks/manage.md @@ -0,0 +1,17 @@ +--- +sidebar_position: 1 +--- + +# Administrar bloques +This section lists all configured portal blocks, both enabled and disabled. Blocks are sorted by panels. + +For each block, its icon, note or title, type, output areas, priority and list of actions are displayed. + +![Administrar bloques](manage_blocks.png) + +The following actions are available for each block: +* Change of priority - inside each panel you can set up an individual order of blocks +* Toggle status (enable or disable) +* Clone - creating a new block that copies the current +* Edit - change the settings of a specific block +* Delete \ No newline at end of file diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/blocks/manage_blocks.png b/website/i18n/es/docusaurus-plugin-content-docs/current/blocks/manage_blocks.png new file mode 100644 index 000000000..db6a8af0c Binary files /dev/null and b/website/i18n/es/docusaurus-plugin-content-docs/current/blocks/manage_blocks.png differ diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/_category_.json b/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/_category_.json new file mode 100644 index 000000000..877a378f7 --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Getting Started", + "position": 2 +} diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/configuration.md b/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/configuration.md new file mode 100644 index 000000000..0f73ce32d --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/configuration.md @@ -0,0 +1,98 @@ +--- +sidebar_position: 3 +--- + +# Configuración del portal +Use el acceso rápido a través del elemento en el menú principal del foro o la sección correspondiente en el panel de administración para abrir la configuración del portal. + +## Configuración general +En esta sección, puede personalizar completamente la página principal del portal, habilitar el modo independiente y cambiar los permisos de usuario para acceder a los elementos del portal. + +### Configuraciones para la portada y los artículos + +* La portada del portal: elija qué mostrar en la página principal del portal: + * Desactivado + * Página especificada (solo se mostrará la página seleccionada) + * Todas las páginas de las categorías seleccionadas + * Páginas seleccionadas + * Todos los temas de foros seleccionados + * Temas seleccionados + * Foros seleccionados +* El título de la página principal: puede cambiar el nombre del portal utilizado como título de la página y el título de la pestaña del navegador. +* Mostrar imágenes que se encuentran en artículos: compruebe si desea mostrar imágenes que se encuentran en el texto de páginas o temas. +* URL de la imagen de marcador de posición predeterminada: si la opción anterior está activada, pero la imagen no se encuentra en el texto, se utilizará la especificada aquí. +* Mostrar el resumen del artículo +* Mostrar el autor del artículo +* Muestra el número de vistas y comentarios. +* Primero para mostrar los artículos con la mayor cantidad de comentarios: puede mostrar los artículos más comentados primero, independientemente del tipo de clasificación seleccionado. +* Clasificación de artículos: puede elegir el tipo de clasificación de artículos en la página principal. +* Diseño de plantilla para tarjetas de artículos: para agregar sus propias plantillas, cree un archivo separado _[CustomFrontPage.template.php](/how-to/create-layout)< /em>. +* Número de columnas para mostrar artículos: especifique el número de columnas en las que se mostrarán las fichas de artículos. +* Mostrar la paginación: especifique dónde se debe mostrar la paginación de la página. +* Use paginación simple: muestre enlaces de "página siguiente" y "página anterior" en lugar de navegación completa. +* Número de elementos por página (para paginación): especifique el número máximo de tarjetas que se mostrarán en una página. + +### Modo independiente + +* Activar — selector de modo independiente, muestra u oculta las siguientes configuraciones. +* La URL de la página principal en el modo independiente: especifique la URL donde estará disponible la página principal del portal. +* Acciones desactivadas: puede especificar áreas del foro que no deben mostrarse en el modo independiente. + +### Permisos + +* Prohíba a todos, excepto a los administradores, crear páginas PHP y bloques PHP. +* Quién puede ver los elementos del portal: por "elementos" nos referimos a bloques y páginas. +* Quién puede administrar sus propios bloques: puede elegir grupos de usuarios que pueden crear, editar y eliminar bloques, visibles solo para ellos. +* Who can manage own pages — you can choose user groups who can create, edit and delete own pages. +* Who can manage any pages — you can choose user groups who can create, edit and delete any pages. +* Quién puede publicar las páginas del portal sin aprobación: puede elegir grupos de usuarios que podrán publicar páginas del portal sin moderación. + +## Páginas y bloques +En esta sección, puede cambiar la configuración general de las páginas y los bloques utilizados tanto al crearlos como al mostrarlos. + +* Mostrar palabras clave en la parte superior de la página: si se especifican palabras clave para una página, aparecerán en la parte superior de la página. +* Use una imagen del contenido de la página: seleccione una imagen para compartir en las redes sociales +* Mostrar enlaces a las páginas anterior y siguiente: actívelo si desea ver enlaces a páginas creadas antes y después de la página actual. +* Mostrar páginas relacionadas — si una página tiene páginas similares (por título y alias), se mostrarán en la parte inferior de la página. +* Mostrar comentarios de la página — si tiene permitido comentar una página, se mostrará un formulario de comentarios en la parte inferior de la página. +* BBCode permitido en comentarios — puede especificar etiquetas que se pueden usar al comentar páginas. +* Tiempo máximo después de comentar para permitir la edición — después del tiempo especificado (después de crear un comentario), no podrá cambiar los comentarios. +* Número de comentarios principales por página — especifique el número máximo de comentarios que no son secundarios para mostrar en una sola página. +* Clasificación de comentarios de forma predeterminada — seleccione el tipo de clasificación deseado para los comentarios en las páginas del portal. +* Permitir votar por comentarios — los botones "Me gusta" y "No me gusta" aparecerán debajo de cada comentario. El fondo de los comentarios cambiará según la cantidad de calificaciones positivas o negativas. +* Muestre elementos en páginas de etiquetas/categorías como tarjetas — puede mostrar elementos como una tabla o como tarjetas. +* El tipo de editor de página predeterminado — si crea constantemente páginas del mismo tipo, puede establecer este tipo como predeterminado. +* El número máximo de palabras clave que se pueden agregar a una página — al crear páginas de portal, no podrá especificar el número de palabras clave mayor que el número especificado. +* Permisos para páginas y bloques de forma predeterminada — si constantemente crea páginas y bloques con los mismos permisos, puede configurar estos permisos como predeterminados. +* Oculte los bloques activos en el área de administración — si los bloques le molestan en el panel de administración, puede ocultarlos. + +### Usar los íconos de FontAwesome +* Fuente para la biblioteca FontAwesome — seleccione cómo se debe cargar la hoja de estilo para mostrar los íconos FA. + +## Categorías +En esta sección, puede administrar categorías para categorizar las páginas del portal. Si lo necesitas, por supuesto. + +## Paneles +En esta sección, puede cambiar algunas de las configuraciones para los paneles del portal existentes y personalizar la dirección de los bloques en estos paneles. + +![Paneles](panels.png) + +Aquí puede reorganizar rápidamente algunos paneles sin arrastrar bloques de un panel a otro: +* Cambia el encabezado y el pie de página +* Cambia el panel izquierdo y el panel derecho +* Cambie el centro (arriba) y el centro (abajo) + +## Varios +En esta sección, puede cambiar varias configuraciones auxiliares del portal, que pueden ser útiles para los desarrolladores de plantillas y complementos. + +### Depuración y almacenamiento en caché + +* Muestre el tiempo de carga y el número de consultas del portal — información útil para administradores y creadores de complementos. +* El intervalo de actualización de la memoria caché - después de un período de tiempo específico (en segundos), se borrará la memoria caché de cada elemento del portal. + +### Modo de compatibilidad +* El valor del parámetro **action** del portal: puede cambiar esta configuración para usar el Portal de luz junto con otras modificaciones similares. Luego se abrirá la página de inicio en la dirección especificada. +* El parámetro **page** para las páginas del portal: consulte más arriba. De manera similar, para las páginas del portal, cambie el parámetro y se abrirán con diferentes URL. + +### Mantenimiento +* Optimización semanal de las tablas del portal: active esta opción para que una vez a la semana se eliminen las filas con valores vacíos en las tablas del portal de la base de datos y se optimicen las tablas. \ No newline at end of file diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/installation.md b/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/installation.md new file mode 100644 index 000000000..90e52d3a2 --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/installation.md @@ -0,0 +1,19 @@ +--- +sidebar_position: 1 +--- + +# Instalación +Aquí no hay sutilezas. Light Portal se puede instalar como cualquier otra modificación para SMF, a través del administrador de paquetes. + +:::info + +Basta con descargar el archivo con los archivos del portal (en SMF esto se llama paquete) del [catálogo oficial ](https://custom.simplemachines.org/mods/index.php?mod=4244) y súbalo a través del administrador de paquetes en su foro. + +::: + +## Solución de problemas +Si su alojamiento es demasiado "inteligente" con los permisos y los archivos del portal no se desempaquetaron durante la instalación, debe extraer manualmente los directorios `Themes` y `Sources` del archivo de modificación a su carpeta del foro (donde ya se encuentran las mismas carpetas de Themes y Sources, así como los archivos `cron.php`, `SSI.php`, `Settings.php` , etc) y establecer los permisos apropiados. La mayoría de las veces es `644`, `664` o `666` para archivos, y `755`, `775` o `777` para carpetas. + +También necesita descomprimir el archivo `database.php` del archivo de modificación a la raíz de su foro, establecer los derechos de ejecución para él (`666`) y acceder a él a través del navegador (usted debe iniciar sesión como administrador del foro). Este archivo contiene instrucciones para crear las tablas utilizadas por el portal. El mensaje `Database changes are complete! Please wait...` confirmará la ejecución exitosa del script. + +Si, después de completar todos los pasos anteriores, aún no ve la sección con la configuración del portal en el panel de administración, busque la línea `$sourcedir/LightPortal/app.php` (variable `integrate_pre_include`) en la tabla `settings` de tu base de datos. Para hacer esto, use la búsqueda integrada de phpMyAdmin u otra utilidad similar. diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/panels.png b/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/panels.png new file mode 100644 index 000000000..bf789a3fc Binary files /dev/null and b/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/panels.png differ diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/uninstall.png b/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/uninstall.png new file mode 100644 index 000000000..b66230368 Binary files /dev/null and b/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/uninstall.png differ diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/updating.md b/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/updating.md new file mode 100644 index 000000000..e9ef4b2a1 --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/updating.md @@ -0,0 +1,19 @@ +--- +sidebar_position: 2 +--- + +# Actualizando tu versión +Si no hay notas en el registro de cambios de la última versión, basta con extraer los directorios `Themes` y `Sources` del archivo de modificaciones a la raíz de su foro, sobre el existentes, y la actualización será correcta. Pero es mejor desinstalar la versión actual antes de instalar la nueva versión. + +:::info + +Since version 2.1.1 you can upgrade without uninstalling the previous version. Simply download the new archive, go to the Package Manager and click "Upgrade" button next to the uploaded package. + +![Updating](upgrade.png) + +::: + +## Solución de problemas + +### Warning: Undefined array key "bla-bla-bla" +Si vio un error similar en el bloque del portal después de la actualización, intente ir a la configuración de este bloque y vuelva a guardar la configuración. Esto no es un error, sino una advertencia sobre la falta de configuraciones de bloque (nuevas) en la base de datos. diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/upgrade.png b/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/upgrade.png new file mode 100644 index 000000000..752ae26f7 Binary files /dev/null and b/website/i18n/es/docusaurus-plugin-content-docs/current/getting-started/upgrade.png differ diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/how-to/_category_.json b/website/i18n/es/docusaurus-plugin-content-docs/current/how-to/_category_.json new file mode 100644 index 000000000..12e5b6a48 --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/how-to/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "How To", + "position": 6 +} diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/how-to/create-layout.md b/website/i18n/es/docusaurus-plugin-content-docs/current/how-to/create-layout.md new file mode 100644 index 000000000..17a60c94e --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/how-to/create-layout.md @@ -0,0 +1,76 @@ +--- +sidebar_position: 1 +--- + +# Crear un diseño propio para la portada + +Además de los diseños existentes, siempre puede agregar el suyo propio. + +Para ello, cree un archivo `CustomFrontPage.template.php` en el directorio `/Themes/default`: + +```php {8,17} +'; + + echo ' +
'; // Do not forget change custom class *article_custom* for your layout + + show_pagination(); + + foreach ($context['lp_frontpage_articles'] as $article) { + echo ' +
'; + + // Just outputs the $article data as a hint for you + echo '
' . parse_bbc('[code]' . print_r($article, true) . '[/code]') . '
'; + + // Your code + + echo ' +
'; + } + + show_pagination('bottom'); + + echo ' +
'; + + if (empty($context['lp_active_blocks'])) + echo ' + '; +} + +``` + +Después de eso, verá un nuevo diseño de portada - `Personalizado` - en la configuración del portal. Puede crear tantos diseños como desee (`template_show_articles_custom1()`, `template_show_articles_custom2()`, etc.). + +![Seleccionar plantilla personalizada](set_custom_template.png) + +Para personalizar las hojas de estilo, cree un archivo `custom_frontpage.css` en el directorio `/Themes/default/css`: + +```css {3} +/* Custom layout */ +.article_custom { + /* Your rules */ +} +``` + +La ventaja de este método es que si elimina o actualiza el portal, los archivos que creó permanecerán intactos. + +:::tip + +Si ha creado su propia plantilla de portada y desea compartirla con el desarrollador y otros usuarios, use https://codepen.io/pen/ u otros recursos similares. + +::: diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png b/website/i18n/es/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png new file mode 100644 index 000000000..3378b5c89 Binary files /dev/null and b/website/i18n/es/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png differ diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/intro.md b/website/i18n/es/docusaurus-plugin-content-docs/current/intro.md new file mode 100644 index 000000000..9d0348bd6 --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/intro.md @@ -0,0 +1,10 @@ +--- +sidebar_position: 1 +slug: / +--- + +# Introduction + +Welcome to the Light Portal Quick Start! + +> Light Portal is a modification that transforms your forum built on the [SMF](https://www.simplemachines.org) engine into an easy and convenient portal with blocks and pages. diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/pages/_category_.json b/website/i18n/es/docusaurus-plugin-content-docs/current/pages/_category_.json new file mode 100644 index 000000000..bce6d18d7 --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/pages/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Páginas", + "position": 4 +} diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/pages/create-new.md b/website/i18n/es/docusaurus-plugin-content-docs/current/pages/create-new.md new file mode 100644 index 000000000..2abbb9ab1 --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/pages/create-new.md @@ -0,0 +1,30 @@ +--- +sidebar_position: 2 +--- + +# Añadir página +En esta sección, puede crear una página de portal con el contenido que necesita. Los campos obligatorios están resaltados con un marco de color. + +![Aquí añadimos una nueva página](new_page.png) + +## Pestaña de contenido +Aquí puedes configurar: +* title +* tipo de página +* contenido + +## Pestaña de SEO +Aquí puedes configurar: +* alias — la página estará disponible en `?page=alias` +* descripción — la meta descripción +* palabras clave: las metapalabras clave + +## Pestaña de afinación +Aquí puedes configurar: +* permisos — especifique quién accederá a su página +* categoría — si te gusta mantener las cosas organizadas +* fecha y hora de publicación — la página se puede publicar en un horario +* mostrar el título — se puede desactivar si tiene su propio encabezado en la página +* mostrar el autor y la fecha de creación +* mostrar páginas relacionadas +* comentarios — puede permitirlos o denegarlos por separado para cada página diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/pages/impex.md b/website/i18n/es/docusaurus-plugin-content-docs/current/pages/impex.md new file mode 100644 index 000000000..60e890aa8 --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/pages/impex.md @@ -0,0 +1,12 @@ +--- +sidebar_position: 3 +--- + +# Exportar e importar +Las páginas del portal se pueden guardar en un archivo especial, para transferir a otro foro o para restaurar después de una instalación limpia del foro. + +## Exportar páginas +En esta sección, puede exportar todas o solo las páginas seleccionadas a un archivo XML. + +## Importar páginas +En esta sección, puede importar páginas guardadas previamente desde un archivo XML. \ No newline at end of file diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/pages/manage.md b/website/i18n/es/docusaurus-plugin-content-docs/current/pages/manage.md new file mode 100644 index 000000000..aef90d8e9 --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/pages/manage.md @@ -0,0 +1,17 @@ +--- +sidebar_position: 1 +--- + +# Administrar páginas +Esta sección enumera todas las páginas del portal creadas que el usuario actual puede editar. Hay una búsqueda de páginas por título o alias. + +Para cada página, se muestra su ID, fecha de creación/actualización, número de vistas, número de comentarios, tipo, alias, título y lista de acciones. + +![Administrar páginas](manage_pages.png) + +Las siguientes acciones están disponibles para cada página: +* Toggle status (enable or disable) +* Editar — cambiar la página seleccionada +* Delete + +Las acciones masivas con páginas también están disponibles. \ No newline at end of file diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/pages/manage_pages.png b/website/i18n/es/docusaurus-plugin-content-docs/current/pages/manage_pages.png new file mode 100644 index 000000000..b0ad40677 Binary files /dev/null and b/website/i18n/es/docusaurus-plugin-content-docs/current/pages/manage_pages.png differ diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/pages/new_page.png b/website/i18n/es/docusaurus-plugin-content-docs/current/pages/new_page.png new file mode 100644 index 000000000..745f39772 Binary files /dev/null and b/website/i18n/es/docusaurus-plugin-content-docs/current/pages/new_page.png differ diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/_category_.json b/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/_category_.json new file mode 100644 index 000000000..eb333a47c --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Complementos", + "position": 5 +} diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/all-hooks.md b/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/all-hooks.md new file mode 100644 index 000000000..71779c5a9 --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/all-hooks.md @@ -0,0 +1,161 @@ +--- +sidebar_position: 3 +--- + +# Ganchos de portal +Light Portal es maravillosamente extensible gracias a los complementos. Y los ganchos ayudan a que los complementos interactúen con varios componentes del portal. + +## Ganchos basicos + +### init +> redefiniendo variables $txt, ejecutando ganchos SMF, etc. + +### prepareEditor +(`$context['lp_block']` for block, `$context['lp_page']` for page) +> agregando cualquier código en el área de edición de bloque/página + +### parseContent +(`&$content, $type`) +> análisis del contenido de bloques personalizados/tipos de página + +### prepareContent +(`&$content, $type, $block_id, $type`) +> agregando contenido personalizado de su complemento + +### credits +(`&$links`) +> agregar derechos de autor de bibliotecas/scripts usados, etc. + +### addAdminAreas +(`&$admin_areas`) +> agregando áreas personalizadas al gancho de integrate_admin_areas de SMF + +## Trabajar con bloques + +### blockOptions +(`&$options`) +> agregando sus parámetros de bloque + +### prepareBlockFields +> agregar campos personalizados al área de publicación de bloques + +### validateBlockData +(`&$parameters, $context['current_block']['type']`) +> agregar reglas de validación personalizadas al agregar/editar bloques + +### findBlockErrors +(`$data, &$post_errors`) +> agregar manejo de errores personalizado al agregar/editar bloques + +### onBlockSaving +(`$item`) +> acciones personalizadas en bloques de guardado/edición + +### onBlockRemoving +(`$items`) +> acciones personalizadas al eliminar bloques + +## Trabajar con paginas + +### pageOptions +(`&$options`) +> agregando los parámetros de tu página + +### preparePageFields +> agregar campos personalizados al área de publicación de la página + +### validatePageData +(`&$parameters`) +> agregar reglas de validación personalizadas al agregar/editar páginas + +### findPageErrors +(`$data, &$post_errors`) +> agregando un manejo de errores personalizado al agregar/editar una página + +### onPageSaving +(`$item`) +> acciones personalizadas en páginas de guardado/edición + +### onPageRemoving +(`$items`) +> acciones personalizadas al eliminar páginas + +### preparePageData +(`&$data`, `$is_author`) +> preparación adicional de los datos de la página actual del portal + +### comments +> agregando un script de comentario personalizado a la vista de página actual del portal + +## Trabajar con complementos + +### addSettings +(`&$config_vars`) +> agregando configuraciones personalizadas de su complemento + +### saveSettings +(`&$plugin_options`) +> acciones adicionales después de guardar la configuración del complemento + +## Configuración del portal + +### addBlockAreas +(`&$subActions`) +> agregar pestañas personalizadas en la configuración del área de bloqueo + +### addPageAreas +(`&$subActions`) +> agregar pestañas personalizadas en la configuración del área de la página + +## Trabajar con artículos + +### frontModes +(`&$this->modes`) +> agregando modos personalizados para la página principal + +### frontCustomTemplate +(`$layouts`) +> agregar plantillas personalizadas para la portada + +### frontAssets +> agregando scripts y estilos personalizados en la página principal + +### frontTopics +(`&$this->columns, &$this->tables, &$this->wheres, &$this->params, &$this->orders`) +> agregar columnas personalizadas, tablas, dónde, parámetros y órdenes a la función _init_ + +### frontTopicsOutput +(`&$topics, $row`) +> varias manipulaciones con resultados de consultas a la función _getData_ + +### frontPages +(`&$this->columns, &$this->tables, &$this->wheres, &$this->params, &$this->orders`) +> agregar columnas personalizadas, tablas, dónde, parámetros y órdenes a la función _init_ + +### frontPagesOutput +(`&$pages, $row`) +> varias manipulaciones con resultados de consultas a la función _getData_ + +### frontBoards +(`&$this->columns, &$this->tables, &$this->wheres, &$this->params, &$this->orders`) +> agregar columnas personalizadas, tablas, dónde, parámetros y órdenes a la función _init_ + +### frontBoardsOutput +(`&$boards, $row`) +> varias manipulaciones con resultados de consultas a la función _getData_ + +## Trabajar con iconos + +### prepareIconList +(`&$all_icons, &$template`) +> agregando una lista personalizada de íconos (en lugar de FontAwesome) + +### prepareIconTemplate +(`&$template, $icon`) +> agregar una plantilla personalizada para mostrar iconos + +### changeIconSet +(`&$set`) +> posibilidad de agregar o anular los íconos de la interfaz actual + +¿No tanto, Carlos? \ No newline at end of file diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/create-new.md b/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/create-new.md new file mode 100644 index 000000000..527da991e --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/create-new.md @@ -0,0 +1,88 @@ +--- +sidebar_position: 2 +--- + +# Añadir complemento +Plugins are the extensions that expand the capabilities of the Light Portal. To create your own plugin, just follow the instructions below. + +:::info + +Since version 1.9, the functionality for creating plugins has been moved to a separate plugin — **PluginMaker**. Download and enable it on the page _Admin -> Portal settings -> Plugins_. + +::: + +## Choosing the type of plugin +Currently, the following types of plugins are available: + +* `block` — plugins that add a new type of blocks for the portal +* `ssi` — plugins (usually blocks) that use SSI functions to retrieve data +* `editor` — plugins that add a third-party editor for different types of content +* `comment` — plugins that add a third-party comment widget instead of the built-in +* `parser` — plugins that implement the parser for the content of pages and blocks +* `article` — plugins for processing the content of article cards on the main page +* `frontpage` — plugins for changing the main page of the portal +* `impex` — plugins for importing and exporting various portal elements +* `block_options` and `page_options` — plugins that add additional parameters for the corresponding entity (block or page) +* `icons` — plugins that add new icon libraries to replace interface elements or for use in block headers +* `seo` — plugins that somehow affect the visibility of the forum on the network +* `other` — plugins that are not related to any of the categories above + +## Creating a plugin directory +Create a separate folder for your plugin files, inside `/Sources/LightPortal/Addons`. For example, if your plugin is called `HelloWorld`, the folder structure should look like this: + +``` +...(Addons) +└── HelloWorld/ + ├── langs/ + │ ├── english.php + │ └── index.php + ├── index.php + └── HelloWorld.php +``` + +File `index.php` can be copied from folders of other plugins. The file `HelloWorld.php` contains the plugin logic: + +```php + + * @copyright 2023 Nickname + * @license https://spdx.org/licenses/GPL-3.0-or-later.html GPL-3.0-or-later + * + * @category addon + * @version 23.03.23 (date when the source code of the plugin was created or last updated, in the format dd.mm.yy) + */ + +namespace Bugo\LightPortal\Addons\HelloWorld; + +use Bugo\LightPortal\Addons\Plugin; + +if (! defined('LP_NAME')) + die('No direct access...'); + +class HelloWorld extends Plugin +{ + // Used properties and methods + // Access to global variables: $this->context['user'], $this->modSettings['variable'], etc. + // Access to language variables: $this->txt['lp_hello_world']['variable_name'] +} + +``` + +## Using SSI +If the plugin needs to retrieve any data using SSI functions, use the built-in `getFromSsi(string $function, ...$params)` method. As parameter `$function` you must pass the name of one of the functions contained in file **SSI.php**, without prefix `ssi_`. For example: + +```php +getFromSsi('topTopics', 'views', 10, 'array'); +``` + +## Using Composer +Your plugin can use third-party libraries installed through Composer. Make sure that the `composer.json` file is located in the plugin directory, which contains the necessary dependencies. Before publishing your plugin, open the plugin directory in the command line and run the command: `composer install --no-dev -o`. After that, the entire contents of the plugin directory can be packaged as a separate modification for SMF (for example see **PluginMaker** package). diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/download_plugins.png b/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/download_plugins.png new file mode 100644 index 000000000..15499d81a Binary files /dev/null and b/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/download_plugins.png differ diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/manage.md b/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/manage.md new file mode 100644 index 000000000..3061280e7 --- /dev/null +++ b/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/manage.md @@ -0,0 +1,19 @@ +--- +sidebar_position: 1 +--- + +# Administrar complementos +All installed portal plugins are listed here. Some of them have their own settings. + +You can switch between displaying plugins in 1 column (default) or 2 columns if you wish. + +If you want to change the plugin settings, click on the gear next to the plugin toggle button. + +![Administrar complementos](manage_plugins.png) + +## Installing additional plugins +Some plugins are not included with the portal, they need to be installed separately. Such plugins are divided into downloadable and bonus ones available to project sponsors. + +![Download additional plugins](download_plugins.png) + +The plugin package can be installed as a regular modification through **SMF Package Manager**. But you can also just extract the plugin folder from the downloaded archive and move it to the directory `Sources/LightPortal/Addons`. diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/manage_plugins.png b/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/manage_plugins.png new file mode 100644 index 000000000..d67069042 Binary files /dev/null and b/website/i18n/es/docusaurus-plugin-content-docs/current/plugins/manage_plugins.png differ diff --git a/website/i18n/es/docusaurus-theme-classic/navbar.json b/website/i18n/es/docusaurus-theme-classic/navbar.json new file mode 100644 index 000000000..4636dee7a --- /dev/null +++ b/website/i18n/es/docusaurus-theme-classic/navbar.json @@ -0,0 +1,18 @@ +{ + "title": { + "message": "Light Portal Docs", + "description": "The title in the navbar" + }, + "logo.alt": { + "message": "Logo", + "description": "The alt text of navbar logo" + }, + "item.label.Demo": { + "message": "Demo", + "description": "Navbar item with label Demo" + }, + "item.label.GitHub": { + "message": "GitHub", + "description": "Navbar item with label GitHub" + } +} diff --git a/website/i18n/nl/docusaurus-plugin-content-docs/current/getting-started/configuration.md b/website/i18n/nl/docusaurus-plugin-content-docs/current/getting-started/configuration.md index 19539e07b..6587e8ea9 100644 --- a/website/i18n/nl/docusaurus-plugin-content-docs/current/getting-started/configuration.md +++ b/website/i18n/nl/docusaurus-plugin-content-docs/current/getting-started/configuration.md @@ -19,8 +19,6 @@ In deze sectie kunt u de portalvoorpagina volledig aanpassen, standalone modus i * Geselecteerde onderwerpen * Geselecteerde boards * De titel van de voorpagina - u kunt de naam van het portaal wijzigen die wordt gebruikt als paginatitel en de titel van het tabblad van de browser. -* Categorieën - bronnen van artikelen voor de frontpagina - staat u toe om portalcategorieën te selecteren voor deze frontpagina-modus: "Alle pagina's van geselecteerde categorieën". -* Boards - bronnen van artikelen voor de frontpagina - stelt u in staat om boards te selecteren voor deze frontpagina-modus: "Alle onderwerpen van geselecteerde boards", en "Geselecteerd bord". * Toon afbeeldingen die gevonden zijn in artikelen — controleer of afbeeldingen weergegeven worden in de tekst van pagina's of topics. * URL van de standaard placeholder afbeelding - als de optie hierboven is ingeschakeld maar de afbeelding is niet gevonden in de tekst, de afbeelding die hier is opgegeven zal worden gebruikt. * Toon de samenvatting van het artikel @@ -45,7 +43,8 @@ In deze sectie kunt u de portalvoorpagina volledig aanpassen, standalone modus i * Verbiedt alle behalve beheerders het maken van PHP pagina's en PHP blokken. * Wie kan de portalelementen bekijken - met "elementen" bedoelen we blokken en pagina's. * Wie kan eigen blokken beheren - je kunt gebruikersgroepen kiezen die blokken kunnen maken, bewerken en verwijderen, die alleen voor hen zichtbaar zijn. -* Wie kan eigen pagina's beheren — u kunt gebruikersgroepen kiezen die pagina's maken, bewerken en verwijderen. +* Who can manage own pages — you can choose user groups who can create, edit and delete own pages. +* Who can manage any pages — you can choose user groups who can create, edit and delete any pages. * Wie kan de portalpagina's zonder goedkeuring posten - u kunt gebruikersgroepen kiezen die portalpagina's zonder moderatie kunnen plaatsen. ## Pagina's en blokken diff --git a/website/i18n/nl/docusaurus-plugin-content-docs/current/getting-started/installation.md b/website/i18n/nl/docusaurus-plugin-content-docs/current/getting-started/installation.md index 1d49499fc..361e6fe0d 100644 --- a/website/i18n/nl/docusaurus-plugin-content-docs/current/getting-started/installation.md +++ b/website/i18n/nl/docusaurus-plugin-content-docs/current/getting-started/installation.md @@ -14,6 +14,6 @@ Het is genoeg om het archief te downloaden met de portalbestanden (in SMF dit he ## Probleemoplossing Als uw hosting te slim is, met rechten en de portalbestanden werden niet uitgepakt tijdens de installatie, u moet de mappen `Thema's` en `Bronnen` handmatig uitpakken uit het wijzigingsarchief in uw forummap (waar de mappen met dezelfde thema's en bronnen zich al bevinden, evenals bestanden `cron. hp`, `SSI.php`, `Settings.php`, etc) en stel de juiste missers in. Meestal is het `644`, `664` of `666` voor bestanden, en `755`, `775` of `777` voor mappen. -U moet ook de database met bestand `uitpakken. hp` van modificatie archief naar de hoofdmap van uw forum, stel uitvoeringsrechten hiervoor in (`666`) en toegang via de browser (u moet ingelogd zijn als forumbeheerder). Dit bestand bevat instructies voor het maken van de tabellen die door de portal worden gebruikt. Het bericht `Database wijzigingen zijn voltooid! Een ogenblik geduld...` zal de succesvolle uitvoering van het script bevestigen. +U moet ook de database met bestand `uitpakken. hp` van modificatie archief naar de hoofdmap van uw forum, stel uitvoeringsrechten hiervoor in (`666`) en toegang via de browser (u moet ingelogd zijn als forumbeheerder). Dit bestand bevat instructies voor het maken van de tabellen die door de portal worden gebruikt. Het bericht `Database changes are complete! Please wait...` zal de succesvolle uitvoering van het script bevestigen. Als u na het voltooien van alle bovenstaande stappen de sectie nog steeds niet ziet met de portalinstellingen in het beheerscherm, controleer op regel `$sourcedir/LightPortal/app. hp` (variabele `integrate_pre_include`) in de tabel `instellingen` van de database. Om dit te doen, gebruik de ingebouwde zoekfunctie van de phpMyAdmin of een ander vergelijkbaar hulpmiddel. diff --git a/website/i18n/nl/docusaurus-plugin-content-docs/current/getting-started/updating.md b/website/i18n/nl/docusaurus-plugin-content-docs/current/getting-started/updating.md index 1aa71fbc5..93e88aa14 100644 --- a/website/i18n/nl/docusaurus-plugin-content-docs/current/getting-started/updating.md +++ b/website/i18n/nl/docusaurus-plugin-content-docs/current/getting-started/updating.md @@ -3,9 +3,15 @@ sidebar_position: 2 --- # Bijwerken van uw versie -Als er geen notities in het logboek van de laatste versie staan, het is genoeg om de mappen te extraheren `Thema's` en`Bronnen` uit het wijzigingsarchief naar de hoofdmap van uw forum, over de bestaande en de update zal correct zijn. Maar het is het beste om de huidige versie te verwijderen voordat de nieuwe versie geïnstalleerd is. Tegelijkertijd wanneer het wijzigingspakket wordt verwijderd **Selecteer NIET** het voorgestelde vakje als je alle blokken en pagina's die je in de database hebt gemaakt wilt opslaan. Daarna kun je de nieuwe versie installeren en verder werken. +Als er geen notities in het logboek van de laatste versie staan, het is genoeg om de mappen te extraheren `Thema's` en`Bronnen` uit het wijzigingsarchief naar de hoofdmap van uw forum, over de bestaande en de update zal correct zijn. Maar het is het beste om de huidige versie te verwijderen voordat de nieuwe versie geïnstalleerd is. -![De-installeren](uninstall.png) +:::info + +Since version 2.1.1 you can upgrade without uninstalling the previous version. Simply download the new archive, go to the Package Manager and click "Upgrade" button next to the uploaded package. + +![Updating](upgrade.png) + +::: ## Probleemoplossing diff --git a/website/i18n/nl/docusaurus-plugin-content-docs/current/getting-started/upgrade.png b/website/i18n/nl/docusaurus-plugin-content-docs/current/getting-started/upgrade.png new file mode 100644 index 000000000..752ae26f7 Binary files /dev/null and b/website/i18n/nl/docusaurus-plugin-content-docs/current/getting-started/upgrade.png differ diff --git a/website/i18n/nl/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png b/website/i18n/nl/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png index 37c616484..3378b5c89 100644 Binary files a/website/i18n/nl/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png and b/website/i18n/nl/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png differ diff --git a/website/i18n/nl/docusaurus-plugin-content-docs/current/plugins/create-new.md b/website/i18n/nl/docusaurus-plugin-content-docs/current/plugins/create-new.md index 98c79b117..00a59a170 100644 --- a/website/i18n/nl/docusaurus-plugin-content-docs/current/plugins/create-new.md +++ b/website/i18n/nl/docusaurus-plugin-content-docs/current/plugins/create-new.md @@ -84,11 +84,5 @@ Als de plugin gegevens moet ophalen met behulp van SSI-functies, gebruik dan de $data = $this->getFromSsi('topTopics', 'views', 10, 'array'); ``` -:::caution - -Zonder SSI.php bestand zal de bovenstaande methode niet werken. - -::: - ## Gebruik componist Uw plugin kan gebruik maken van bibliotheken van derden die zijn geïnstalleerd via Composer. Zorg ervoor dat het bestand `composer.json` zich bevindt in de plugin directory, die de benodigde afhankelijkheden bevat. Voordat u de plugin publiceert, open de plugin map in de command line en voer de opdracht uit: `composer install --no-dev -o`. Daarna kan de gehele inhoud van de plugin directory worden verpakt als een afzonderlijke wijziging voor SMF (bijvoorbeeld zie **PluginMaker** pakket). diff --git a/website/i18n/nl/docusaurus-plugin-content-docs/current/plugins/download_plugins.png b/website/i18n/nl/docusaurus-plugin-content-docs/current/plugins/download_plugins.png index 72f964e77..15499d81a 100644 Binary files a/website/i18n/nl/docusaurus-plugin-content-docs/current/plugins/download_plugins.png and b/website/i18n/nl/docusaurus-plugin-content-docs/current/plugins/download_plugins.png differ diff --git a/website/i18n/no/docusaurus-plugin-content-docs/current/getting-started/configuration.md b/website/i18n/no/docusaurus-plugin-content-docs/current/getting-started/configuration.md index 745d8cce4..ebeeff148 100644 --- a/website/i18n/no/docusaurus-plugin-content-docs/current/getting-started/configuration.md +++ b/website/i18n/no/docusaurus-plugin-content-docs/current/getting-started/configuration.md @@ -19,8 +19,6 @@ I denne delen kan du fullt ut tilpasse portalens forsideside, aktiver hvilemodus * Valgte emner * Valgte tavler * Forsidetittel — du kan endre navnet på portalen som brukes som sidetittel og tittelen på nettleserfanen. -* Kategorier - kilder til artikler for forsiden — lar deg velge portalkategorier for disse forsideinnstillingene: "Alle sider fra valgte kategorier". -* Tavler - kilder til artikler for frontsiden — lar deg velge tavler til disse frontside-modusene: "Alle emner fra valgte tavler", og "Valgt tavle". * Vis bilder som finnes i artikler — sjekk om det skal vises bilder i siders tekst eller emner. * URL-adressen til standard plassholderbilde — hvis alternativet ovenfor er aktivert. men bildet finnes ikke i teksten, den er angitt her og vil bli brukt. * Vis artikkelsammendrag @@ -45,7 +43,8 @@ I denne delen kan du fullt ut tilpasse portalens forsideside, aktiver hvilemodus * Send alle unntatt administratorer fra å lage PHP-sider og PHP-blokker. * Hvem kan se portalelementene – etter "elementer" mener vi blokker og sider. * Hvem kan administrere egne blokker - du kan velge brukergrupper som kan opprette, redigere og slette blokker, bare synlig for dem. -* Hvem kan administrere egne sider - kan du velge brukergrupper som kan opprette, redigere og slette sider. +* Who can manage own pages — you can choose user groups who can create, edit and delete own pages. +* Who can manage any pages — you can choose user groups who can create, edit and delete any pages. * Hvem kan poste portalen sider uten godkjenning - kan du velge brukergrupper som vil kunne legge inn portalsider uten moderasjon. ## Sider og blokker diff --git a/website/i18n/no/docusaurus-plugin-content-docs/current/getting-started/installation.md b/website/i18n/no/docusaurus-plugin-content-docs/current/getting-started/installation.md index 991e879bc..b24eb360a 100644 --- a/website/i18n/no/docusaurus-plugin-content-docs/current/getting-started/installation.md +++ b/website/i18n/no/docusaurus-plugin-content-docs/current/getting-started/installation.md @@ -14,6 +14,6 @@ Det er nok til å laste ned arkivet med portalfiler (i SMF dette kalles en pakke ## Feilsøking Hvis din hosting er for "smart" med tillatelser og portalfiler ikke ble pakket ut under installasjon, du må trekke ut mappene `Temaer` og `Kilder` fra modifikasjonsarkivet til mappen forum (der de samme temaer og kilder mappene allerede ligger, så vel som filer `cron. hp`, `SSI.php`, `Settings.php`, etc) og angi de riktige tillatelsene. Oftest er det `644`, `664` eller `666` for filer, og `755`, `775` eller `777` for mapper. -Du må også pakke ut filen `databasen. hp` fra modifikasjonsarkiv til roten av forumet ditt, angi utførelsesrettigheter for den (`666`) og få tilgang til den gjennom nettleseren (du må være innlogget som en forumadministrator). Denne filen inneholder instruksjoner for å opprette tabellene som brukes av portalen. Melding `Databasens endringer er fullført! Vennligst vent...` vil bekrefte vellykket kjøring av skriptet. +Du må også pakke ut filen `databasen. hp` fra modifikasjonsarkiv til roten av forumet ditt, angi utførelsesrettigheter for den (`666`) og få tilgang til den gjennom nettleseren (du må være innlogget som en forumadministrator). Denne filen inneholder instruksjoner for å opprette tabellene som brukes av portalen. Melding `Database changes are complete! Please wait...` vil bekrefte vellykket kjøring av skriptet. Hvis du etter å ha fullført alle trinnene ovenfor, ikke ser du seksjonen med portalinnstillingene i admin-panelet. Sjekk etter linjen `$sourcedir/LightPortal/app. hp` (variabel `integrate_pre_include`) i tabellen `innstillinger` i databasen. For å gjøre dette må du bruke det innebygde søket på phpMyAdmin eller andre lignende nytte. diff --git a/website/i18n/no/docusaurus-plugin-content-docs/current/getting-started/updating.md b/website/i18n/no/docusaurus-plugin-content-docs/current/getting-started/updating.md index 4cf1bf413..56d05786b 100644 --- a/website/i18n/no/docusaurus-plugin-content-docs/current/getting-started/updating.md +++ b/website/i18n/no/docusaurus-plugin-content-docs/current/getting-started/updating.md @@ -3,9 +3,15 @@ sidebar_position: 2 --- # Oppdaterer versjonen -Hvis det er ingen merknader i endringsloggen til den siste versjonen, det er nok til å trekke ut katalogene `temaer` og`kilder` fra modifikasjonsarkivet til roten av ditt forum, over de eksisterende, og oppdateringen vil være riktig. Men det er best å avinstallere denne versjonen før du installerer den nye versjonen. Samtidig når pakken slettes **IKKE** kryss av i den foreslåtte boksen hvis du ønsker å lagre alle blokker og sider som du har opprettet i databasen. Installer den nye versjonen og fortsett å fungere. +Hvis det er ingen merknader i endringsloggen til den siste versjonen, det er nok til å trekke ut katalogene `temaer` og`kilder` fra modifikasjonsarkivet til roten av ditt forum, over de eksisterende, og oppdateringen vil være riktig. Men det er best å avinstallere denne versjonen før du installerer den nye versjonen. -![Avinstallerer](uninstall.png) +:::info + +Since version 2.1.1 you can upgrade without uninstalling the previous version. Simply download the new archive, go to the Package Manager and click "Upgrade" button next to the uploaded package. + +![Updating](upgrade.png) + +::: ## Feilsøking diff --git a/website/i18n/no/docusaurus-plugin-content-docs/current/getting-started/upgrade.png b/website/i18n/no/docusaurus-plugin-content-docs/current/getting-started/upgrade.png new file mode 100644 index 000000000..752ae26f7 Binary files /dev/null and b/website/i18n/no/docusaurus-plugin-content-docs/current/getting-started/upgrade.png differ diff --git a/website/i18n/no/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png b/website/i18n/no/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png index 37c616484..3378b5c89 100644 Binary files a/website/i18n/no/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png and b/website/i18n/no/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png differ diff --git a/website/i18n/no/docusaurus-plugin-content-docs/current/plugins/create-new.md b/website/i18n/no/docusaurus-plugin-content-docs/current/plugins/create-new.md index 8bb018e4c..a30ea916a 100644 --- a/website/i18n/no/docusaurus-plugin-content-docs/current/plugins/create-new.md +++ b/website/i18n/no/docusaurus-plugin-content-docs/current/plugins/create-new.md @@ -84,11 +84,5 @@ Hvis utvidelsen må hente noen data ved hjelp av SSI-funksjoner, bruk innebygget $data = $this->getFromSsi('toptopTopics', 'views', 10, 'array'); ``` -:::caution - -Uten SSI.php-filen vil ikke ovennevnte metode fungere. - -::: - ## Bruke komponist Plugin kan bruke tredjeparts biblioteker installert gjennom komponist. Pass på at filen `composer.json` ligger i plugin mappen som inneholder de nødvendige avhengighetene. Før du publiserer din plugin, åpne plugin mappen i kommandolinjen og kjør kommandoen: `composer install --no-dev -o`. Deretter kan hele innholdet i plugin mappen pakkes som en separat modifikasjon for SMF (for eksempel se **PluginMaker** pakke). diff --git a/website/i18n/no/docusaurus-plugin-content-docs/current/plugins/download_plugins.png b/website/i18n/no/docusaurus-plugin-content-docs/current/plugins/download_plugins.png index 72f964e77..15499d81a 100644 Binary files a/website/i18n/no/docusaurus-plugin-content-docs/current/plugins/download_plugins.png and b/website/i18n/no/docusaurus-plugin-content-docs/current/plugins/download_plugins.png differ diff --git a/website/i18n/ru/docusaurus-plugin-content-docs/current/getting-started/configuration.md b/website/i18n/ru/docusaurus-plugin-content-docs/current/getting-started/configuration.md index ebb5a5394..cc486037a 100644 --- a/website/i18n/ru/docusaurus-plugin-content-docs/current/getting-started/configuration.md +++ b/website/i18n/ru/docusaurus-plugin-content-docs/current/getting-started/configuration.md @@ -19,8 +19,6 @@ sidebar_position: 3 * Выбранные темы * Выбранные разделы * Заголовок главной страницы — можно изменить название портала, используемое в качестве заголовка страницы и названия вкладки браузера. -* Рубрики — источники статей для первой страницы — отображается в зависимости от выбора варианта первой страницы портала. Позволяет отметить рубрики портала, страницы из которых будут отображаться на главной. -* Разделы — источники статей для первой страницы — отображается в зависимости от выбора варианта первой страницы портала. Позволяет отметить разделы, темы из которых будут отображаться на главной. * Показывать изображения, найденные в статьях — отметьте, отображать ли картинки, найденные в тексте страниц или тем. * URL-адрес картинки-заглушки по умолчанию — если включена опция выше, но картинка в тексте не найдена, будет использоваться указанная здесь. * Отображать краткое содержание статей @@ -45,7 +43,8 @@ sidebar_position: 3 * Запретить всем, кроме администраторов, создание PHP-страниц и PHP-блоков. * Кто может просматривать элементы портала — под «элементами» имеются в виду блоки и страницы. * Кто может управлять своими блоками — можно отметить группы пользователей, которые смогут создавать, редактировать и удалять блоки, видимые только им. -* Кто может управлять своими страницами — можно отметить группы пользователей, которые смогут создавать, редактировать и удалять страницы. +* Кто может управлять своими страницами — можно отметить группы пользователей, которые смогут создавать, редактировать и удалять собственные страницы. +* Кто может управлять любыми страницами — можно отметить группы пользователей, которые смогут создавать, редактировать и удалять любые страницы. * Кто может размещать свои страницы без модерации — можно отметить группы пользователей, которые смогут размещать страницы портала без предварительной модерации. ## Страницы и блоки diff --git a/website/i18n/ru/docusaurus-plugin-content-docs/current/getting-started/updating.md b/website/i18n/ru/docusaurus-plugin-content-docs/current/getting-started/updating.md index 24c4bf2c8..4340c5a61 100644 --- a/website/i18n/ru/docusaurus-plugin-content-docs/current/getting-started/updating.md +++ b/website/i18n/ru/docusaurus-plugin-content-docs/current/getting-started/updating.md @@ -3,9 +3,15 @@ sidebar_position: 2 --- # Обновление вашей версии -Если нет никаких примечаний в списке изменений свежей версии, то по умолчанию для обновления достаточно распаковать директории `Themes` и `Sources` из архива модификации в корень форума, поверх существующих. Но лучше всего перед установкой новой версии удалить текущую. При этом при удалении пакета модификации **НЕ** ставьте предлагаемую галочку, если хотите сохранить все созданные вами блоки и страницы в базе данных. После этого установите новую версию и продолжите работать. +Если нет никаких примечаний в списке изменений свежей версии, то по умолчанию для обновления достаточно распаковать директории `Themes` и `Sources` из архива модификации в корень форума, поверх существующих. Но лучше всего перед установкой новой версии удалить текущую. -![Удаление](uninstall.png) +:::info + +Начиная с версии 2.1.1 вы можете обновиться без удаления предыдущей версии. Просто скачайте новый архив, зайдите в менеджер пакетов и нажмите кнопку «Обновить» рядом с загруженным пакетом. + +![Обновление](upgrade.png) + +::: ## Решение проблем diff --git a/website/i18n/ru/docusaurus-plugin-content-docs/current/getting-started/upgrade.png b/website/i18n/ru/docusaurus-plugin-content-docs/current/getting-started/upgrade.png new file mode 100644 index 000000000..c8908d22a Binary files /dev/null and b/website/i18n/ru/docusaurus-plugin-content-docs/current/getting-started/upgrade.png differ diff --git a/website/i18n/ru/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png b/website/i18n/ru/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png index 595f7252d..59824d17c 100644 Binary files a/website/i18n/ru/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png and b/website/i18n/ru/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png differ diff --git a/website/i18n/ru/docusaurus-plugin-content-docs/current/plugins/create-new.md b/website/i18n/ru/docusaurus-plugin-content-docs/current/plugins/create-new.md index 4b9409440..2f97efa1a 100644 --- a/website/i18n/ru/docusaurus-plugin-content-docs/current/plugins/create-new.md +++ b/website/i18n/ru/docusaurus-plugin-content-docs/current/plugins/create-new.md @@ -84,11 +84,5 @@ class HelloWorld extends Plugin $data = $this->getFromSsi('topTopics', 'views', 10, 'array'); ``` -:::caution - -Без файла SSI.php вышеупомянутый метод работать не будет. - -::: - ## Использование Composer Ваш плагин может использовать сторонние библиотеки, устанавливающиеся через Composer. Убедитесь, что в директории плагина расположен файл `composer.json`, в котором указаны необходимые зависимости. Перед публикацией вашего плагина откройте директорию плагина в командной строке и выполните команду: `composer install --no-dev -o`. После этого всё содержимое директории плагина можно упаковать как отдельную модификацию для SMF (для примера см. пакет **PluginMaker**). diff --git a/website/i18n/ru/docusaurus-plugin-content-docs/current/plugins/download_plugins.png b/website/i18n/ru/docusaurus-plugin-content-docs/current/plugins/download_plugins.png index e49f49d4e..96cbe40da 100644 Binary files a/website/i18n/ru/docusaurus-plugin-content-docs/current/plugins/download_plugins.png and b/website/i18n/ru/docusaurus-plugin-content-docs/current/plugins/download_plugins.png differ diff --git a/website/i18n/sv/docusaurus-plugin-content-docs/current/getting-started/configuration.md b/website/i18n/sv/docusaurus-plugin-content-docs/current/getting-started/configuration.md index cc26cd596..a2a6e10c5 100644 --- a/website/i18n/sv/docusaurus-plugin-content-docs/current/getting-started/configuration.md +++ b/website/i18n/sv/docusaurus-plugin-content-docs/current/getting-started/configuration.md @@ -19,8 +19,6 @@ I det här avsnittet kan du anpassa portalens framsida, aktivera fristående lä * Valda ämnen * Valda tavlor * Huvudsidans titel — du kan ändra namnet på portalen som används som sidtitel och titeln på webbläsarfliken. -* Kategorier - källor till artiklar för framsidan — låter dig välja portalkategorier för dessa framsidslägen: "Alla sidor från valda kategorier". -* Tavlor - källor till artiklar för framsidan — låter dig välja tavlor för dessa framsidslägen: "Alla ämnen från valda tavlor", och "Vald tavla". * Visa bilder som finns i artiklar — kontrollera om du vill visa bilder som finns i texten på sidor eller ämnen. * URL för standard platshållare bild — om alternativet ovan är aktiverat, men bilden finns inte i texten, den som anges här kommer att användas. * Visa sammanfattningen av artikeln @@ -45,7 +43,8 @@ I det här avsnittet kan du anpassa portalens framsida, aktivera fristående lä * Förbjud alla utom administratörer att skapa PHP-sidor och PHP-block. * Vem kan se portalelementen – med "element" menar vi block och sidor. * Vem kan hantera egna block – du kan välja användargrupper som kan skapa, redigera och ta bort block, endast synliga för dem. -* Vem kan hantera egna sidor — du kan välja användargrupper som kan skapa, redigera och ta bort sidor. +* Who can manage own pages — you can choose user groups who can create, edit and delete own pages. +* Who can manage any pages — you can choose user groups who can create, edit and delete any pages. * Vem kan posta portalsidorna utan godkännande — du kan välja användargrupper som kommer att kunna posta portalsidor utan moderation. ## Sidor och block diff --git a/website/i18n/sv/docusaurus-plugin-content-docs/current/getting-started/installation.md b/website/i18n/sv/docusaurus-plugin-content-docs/current/getting-started/installation.md index 187cad4d9..395a27a17 100644 --- a/website/i18n/sv/docusaurus-plugin-content-docs/current/getting-started/installation.md +++ b/website/i18n/sv/docusaurus-plugin-content-docs/current/getting-started/installation.md @@ -14,6 +14,6 @@ Det räcker med att ladda ner arkivet med portalfilerna (i SMF kallas detta ett ## Felsökning Om ditt webbhotell är för "smart" med behörigheter och portalfilerna inte packades upp under installationen, du behöver manuellt extrahera katalogerna `Teman` och `Källor` från ändringsarkivet till din forummapp (där samma teman och källor redan finns, såväl som filer `cron. hk`, `SSI.php`, `Settings.php`, etc) och ange lämpliga tillstånd. Oftast är det `644`, `664` eller `666` för filer, och `755`, `775` eller `777` för mappar. -Också du behöver för att packa upp filen `databas.` från ändringsarkiv till roten av ditt forum, ange utföranderättigheter för det (`666`) och komma åt det via webbläsaren (du måste vara inloggad som forumadministratör). Denna fil innehåller instruktioner för att skapa de tabeller som används av portalen. Meddelandet `Databasändringar är klara! Vänligen vänta...` kommer att bekräfta det lyckade utförandet av skriptet. +Också du behöver för att packa upp filen `databas.` från ändringsarkiv till roten av ditt forum, ange utföranderättigheter för det (`666`) och komma åt det via webbläsaren (du måste vara inloggad som forumadministratör). Denna fil innehåller instruktioner för att skapa de tabeller som används av portalen. Meddelandet `Database changes are complete! Please wait...` kommer att bekräfta det lyckade utförandet av skriptet. Om du efter att ha slutfört alla ovanstående steg fortfarande inte ser avsnittet med portalinställningarna i adminpanelen, kontrollera raden `$sourcedir/LightPortal/app. hp` (variabel `integrate_pre_include`) i tabellen `inställningar` i din databas. För att göra detta, använd den inbyggda sökningen av phpMyAdmin eller ett annat liknande verktyg. diff --git a/website/i18n/sv/docusaurus-plugin-content-docs/current/getting-started/updating.md b/website/i18n/sv/docusaurus-plugin-content-docs/current/getting-started/updating.md index 088484f7c..478f0676f 100644 --- a/website/i18n/sv/docusaurus-plugin-content-docs/current/getting-started/updating.md +++ b/website/i18n/sv/docusaurus-plugin-content-docs/current/getting-started/updating.md @@ -3,9 +3,15 @@ sidebar_position: 2 --- # Uppdaterar din version -Om det inte finns några anteckningar i ändringsloggen av den senaste versionen, det räcker med att extrahera katalogerna `Teman` och`Källor` från ändringsarkivet till roten av ditt forum, över de befintliga, och uppdateringen kommer att vara korrekt. Men det är bäst att avinstallera den aktuella versionen innan du installerar den nya versionen. At the same time, when deleting the modification package, **DO NOT** check the suggested box if you want to save all the blocks and pages you created in the database. Efter det, installera den nya versionen och fortsätta att arbeta. +Om det inte finns några anteckningar i ändringsloggen av den senaste versionen, det räcker med att extrahera katalogerna `Teman` och`Källor` från ändringsarkivet till roten av ditt forum, över de befintliga, och uppdateringen kommer att vara korrekt. Men det är bäst att avinstallera den aktuella versionen innan du installerar den nya versionen. -![Avinstallera](uninstall.png) +:::info + +Since version 2.1.1 you can upgrade without uninstalling the previous version. Simply download the new archive, go to the Package Manager and click "Upgrade" button next to the uploaded package. + +![Updating](upgrade.png) + +::: ## Felsökning diff --git a/website/i18n/sv/docusaurus-plugin-content-docs/current/getting-started/upgrade.png b/website/i18n/sv/docusaurus-plugin-content-docs/current/getting-started/upgrade.png new file mode 100644 index 000000000..752ae26f7 Binary files /dev/null and b/website/i18n/sv/docusaurus-plugin-content-docs/current/getting-started/upgrade.png differ diff --git a/website/i18n/sv/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png b/website/i18n/sv/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png index 37c616484..3378b5c89 100644 Binary files a/website/i18n/sv/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png and b/website/i18n/sv/docusaurus-plugin-content-docs/current/how-to/set_custom_template.png differ diff --git a/website/i18n/sv/docusaurus-plugin-content-docs/current/plugins/create-new.md b/website/i18n/sv/docusaurus-plugin-content-docs/current/plugins/create-new.md index a6885705a..1c0a9724a 100644 --- a/website/i18n/sv/docusaurus-plugin-content-docs/current/plugins/create-new.md +++ b/website/i18n/sv/docusaurus-plugin-content-docs/current/plugins/create-new.md @@ -84,11 +84,5 @@ Om pluginen behöver hämta data med SSI-funktioner, använd den inbyggda `getFr $data = $this->getFromSsi('topics', 'views', 10, 'array'); ``` -:::caution - -Utan SSI.php-filen fungerar inte ovanstående metod. - -::: - ## Använder Composer Din plugin kan använda tredjepartsbibliotek installerade via Composer. Se till att filen `composer.json` finns i plugin-katalogen, som innehåller nödvändiga beroenden. Innan du publicerar din plugin, öppna plugin-katalogen i kommandoraden och kör kommandot: `composer install --no-dev -o`. Efter det kan hela innehållet i plugin-katalogen paketeras som en separat ändring för SMF (till exempel se **PluginMaker** -paketet). diff --git a/website/i18n/sv/docusaurus-plugin-content-docs/current/plugins/download_plugins.png b/website/i18n/sv/docusaurus-plugin-content-docs/current/plugins/download_plugins.png index 72f964e77..15499d81a 100644 Binary files a/website/i18n/sv/docusaurus-plugin-content-docs/current/plugins/download_plugins.png and b/website/i18n/sv/docusaurus-plugin-content-docs/current/plugins/download_plugins.png differ