Penerbit - Konfigurasi Asas
Konfigurasi Asas Penerbit
Section titled “Konfigurasi Asas Penerbit”Konfigurasikan tetapan modul Penerbit, keutamaan dan pilihan umum untuk pemasangan XOOPS anda.
Mengakses Konfigurasi
Section titled “Mengakses Konfigurasi”Navigasi Panel Pentadbir
Section titled “Navigasi Panel Pentadbir”XOOPS Admin Panel└── Modules └── Publisher ├── Preferences ├── Settings └── Configuration- Log masuk sebagai Pentadbir
- Pergi ke Panel Pentadbiran → Modul
- Cari modul Penerbit
- Klik pautan Preferences atau Admin
Tetapan Umum
Section titled “Tetapan Umum”Konfigurasi Akses
Section titled “Konfigurasi Akses”Admin Panel → Modules → PublisherKlik ikon gear atau Tetapan untuk pilihan ini:
Pilihan Paparan
Section titled “Pilihan Paparan”| Tetapan | Pilihan | Lalai | Penerangan |
|---|---|---|---|
| Item setiap halaman | 5-50 | 10 | Artikel yang ditunjukkan dalam senarai |
| Tunjukkan serbuk roti | Yes/No | Ya | Paparan jejak navigasi |
| Gunakan paging | Yes/No | Ya | Halaman senarai panjang |
| Tunjukkan tarikh | Yes/No | Ya | Paparkan tarikh artikel |
| Tunjukkan kategori | Yes/No | Ya | Tunjukkan kategori artikel |
| Tunjukkan pengarang | Yes/No | Ya | Tunjukkan pengarang artikel |
| Tunjukkan paparan | Yes/No | Ya | Tunjukkan kiraan paparan artikel |
Contoh Konfigurasi:
Items Per Page: 15Show Breadcrumb: YesUse Paging: YesShow Date: YesShow Category: YesShow Author: YesShow Views: YesPilihan Pengarang
Section titled “Pilihan Pengarang”| Tetapan | Lalai | Penerangan |
|---|---|---|
| Tunjukkan nama pengarang | Ya | Paparkan nama sebenar atau nama pengguna |
| Gunakan nama pengguna | Tidak | Tunjukkan nama pengguna dan bukannya nama |
| Tunjukkan e-mel pengarang | Tidak | Paparkan e-mel hubungan pengarang |
| Tunjukkan avatar pengarang | Ya | Paparkan avatar pengguna |
Konfigurasi Editor
Section titled “Konfigurasi Editor”Pilih WYSIWYG Editor
Section titled “Pilih WYSIWYG Editor”Penerbit menyokong berbilang editor:
Editor Tersedia
Section titled “Editor Tersedia”graph LR A[Editor Selection] -->|CKEditor| B[Modern, feature-rich] A -->|FCKeditor| C[Legacy, compatible] A -->|TinyMCE| D[Lightweight, simple] A -->|DHTML Editor| E[Very basic, minimal]CKEditor (Disyorkan)
Section titled “CKEditor (Disyorkan)”Terbaik untuk: Kebanyakan pengguna, penyemak imbas moden, ciri penuh
- Pergi ke Preferences
- Set Editor: CKEditor
- Konfigurasikan pilihan:
Editor: CKEditor 4.xToolbar: FullHeight: 400pxWidth: 100%Remove plugins: []Add plugins: [mathjax, codesnippet]FCKeditor
Section titled “FCKeditor”Terbaik untuk: Keserasian, sistem yang lebih lama
Editor: FCKeditorToolbar: DefaultCustom config: (optional)TinyMCE
Section titled “TinyMCE”Terbaik untuk: Jejak minimum, penyuntingan asas
Editor: TinyMCEPlugins: [paste, table, link, image]Toolbar: minimalTetapan Fail & Muat Naik
Section titled “Tetapan Fail & Muat Naik”Konfigurasikan Direktori Muat Naik
Section titled “Konfigurasikan Direktori Muat Naik”Admin → Publisher → Preferences → Upload SettingsTetapan Jenis Fail
Section titled “Tetapan Jenis Fail”Allowed File Types: Images: - jpg - jpeg - gif - png - webp Documents: - pdf - doc - docx - xls - xlsx - ppt - pptx Archives: - zip - rar - 7z Media: - mp3 - mp4 - webm - movHad Saiz Fail
Section titled “Had Saiz Fail”| Jenis Fail | Saiz Maks | Nota |
|---|---|---|
| Imej | 5 MB | Setiap fail imej |
| Dokumen | 10 MB | PDF, Fail pejabat |
| Media | 50 MB | Video/audio fail |
| Semua fail | 100 MB | Jumlah setiap muat naik |
Tatarajah:
Max Image Upload Size: 5 MBMax Document Upload Size: 10 MBMax Media Upload Size: 50 MBTotal Upload Size: 100 MBMax Files per Article: 5Saiz Semula Imej
Section titled “Saiz Semula Imej”Penerbit menukar saiz imej secara automatik untuk konsisten:
Thumbnail Size: Width: 150 Height: 150 Mode: Crop/Resize
Category Image Size: Width: 300 Height: 200 Mode: Resize
Article Featured Image: Width: 600 Height: 400 Mode: ResizeTetapan Komen & Interaksi
Section titled “Tetapan Komen & Interaksi”Konfigurasi Komen
Section titled “Konfigurasi Komen”Preferences → Comments SectionPilihan Komen
Section titled “Pilihan Komen”Allow Comments: - Enabled: Yes/No - Default: Yes - Per-article override: Yes
Comment Moderation: - Moderate comments: Yes/No - Moderate guest comments only: Yes/No - Spam filter: Enabled - Max comments per day: (unlimited)
Comment Display: - Display format: Threaded/Flat - Comments per page: 10 - Date format: Full date/Time ago - Show comment count: Yes/NoKonfigurasi Penilaian
Section titled “Konfigurasi Penilaian”Allow Ratings: - Enabled: Yes/No - Default: Yes - Per-article override: Yes
Rating Options: - Rating scale: 5 stars (default) - Allow user to rate own: No - Show average rating: Yes - Show rating count: YesSEO & URL Tetapan
Section titled “SEO & URL Tetapan”Pengoptimuman Enjin Carian
Section titled “Pengoptimuman Enjin Carian”Preferences → SEO SettingsURL Konfigurasi
Section titled “URL Konfigurasi”SEO URLs: - Enabled: No (set to Yes for SEO URLs) - URL rewriting: None/Apache mod_rewrite/IIS rewrite
URL Format: - Category: /category/news - Article: /article/welcome-to-site - Archive: /archive/2024/01
Meta Description: - Auto-generate: Yes - Max length: 160 characters
Meta Keywords: - Auto-generate: Yes - From: Article tags, titleDayakan SEO URL (Lanjutan)
Section titled “Dayakan SEO URL (Lanjutan)”Prasyarat:
- Apache dengan
mod_rewritedidayakan .htaccesssokongan didayakan
Langkah Konfigurasi:
- Pergi ke Preferences → SEO Settings
- Tetapkan SEO URL: Ya
- Tetapkan URL Penulisan Semula: Apache mod_rewrite
- Sahkan fail
.htaccesswujud dalam folder Penerbit
.htaccess Konfigurasi:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /modules/publisher/
# Category rewrites RewriteRule ^category/([0-9]+)-(.*)\.html$ index.php?op=showcategory&categoryid=$1 [L,QSA]
# Article rewrites RewriteRule ^article/([0-9]+)-(.*)\.html$ index.php?op=showitem&itemid=$1 [L,QSA]
# Archive rewrites RewriteRule ^archive/([0-9]+)/([0-9]+)/$ index.php?op=archive&year=$1&month=$2 [L,QSA]</IfModule>Cache & Prestasi
Section titled “Cache & Prestasi”Konfigurasi Caching
Section titled “Konfigurasi Caching”Preferences → Cache SettingsEnable Caching: - Enabled: Yes - Cache type: File (or Memcache)
Cache Lifetime: - Category lists: 3600 seconds (1 hour) - Article lists: 1800 seconds (30 minutes) - Single article: 7200 seconds (2 hours) - Recent articles block: 900 seconds (15 minutes)
Cache Clear: - Manual clear: Available in admin - Auto-clear on article save: Yes - Clear on category change: YesKosongkan Cache
Section titled “Kosongkan Cache”Manual Cache Clear:
- Pergi ke Pentadbir → Penerbit → Alat
- Klik Kosongkan Cache
- Pilih jenis cache untuk dikosongkan:
- Cache kategori
- Cache artikel
- Sekat cache
- Semua cache
- Klik Kosongkan Dipilih
Barisan Perintah:
# Clear all Publisher cachephp /path/to/xoops/admin/cache_manage.php publisher
# Or directly delete cache filesrm -rf /path/to/xoops/var/cache/publisher/*Pemberitahuan & Aliran Kerja
Section titled “Pemberitahuan & Aliran Kerja”Pemberitahuan E-mel
Section titled “Pemberitahuan E-mel”Preferences → NotificationsNotify Admin on New Article: - Enabled: Yes - Recipient: Admin email - Include summary: Yes
Notify Moderators: - Enabled: Yes - On new submission: Yes - On pending articles: Yes
Notify Author: - On approval: Yes - On rejection: Yes - On comment: No (optional)Aliran Kerja Penyerahan
Section titled “Aliran Kerja Penyerahan”Require Approval: - Enabled: Yes - Editor approval: Yes - Admin approval: No
Draft Save: - Auto-save interval: 60 seconds - Save local versions: Yes - Revision history: Last 5 versionsTetapan Kandungan
Section titled “Tetapan Kandungan”Lalai Penerbitan
Section titled “Lalai Penerbitan”Preferences → Content SettingsDefault Article Status: - Draft/Published: Draft - Featured by default: No - Auto-publish time: None
Default Visibility: - Public/Private: Public - Show on front page: Yes - Show in categories: Yes
Scheduled Publishing: - Enabled: Yes - Allow per-article: Yes
Content Expiration: - Enabled: No - Auto-archive old: No - Archive after days: (unlimited)WYSIWYG Pilihan Kandungan
Section titled “WYSIWYG Pilihan Kandungan”Allow HTML: - In articles: Yes - In comments: No
Allow Embedded Media: - Videos (iframe): Yes - Images: Yes - Plugins: No
Content Filtering: - Strip tags: No - XSS filter: Yes (recommended)Tetapan Enjin Carian
Section titled “Tetapan Enjin Carian”Konfigurasikan Penyepaduan Carian
Section titled “Konfigurasikan Penyepaduan Carian”Preferences → Search SettingsEnable Article Indexing: - Include in site search: Yes - Index type: Full text/Title only
Search Options: - Search in titles: Yes - Search in content: Yes - Search in comments: Yes
Meta Tags: - Auto generate: Yes - OG tags (social): Yes - Twitter cards: YesTetapan Lanjutan
Section titled “Tetapan Lanjutan”Mod Nyahpepijat (Pembangunan Sahaja)
Section titled “Mod Nyahpepijat (Pembangunan Sahaja)”Preferences → AdvancedDebug Mode: - Enabled: No (only for development!)
Development Features: - Show SQL queries: No - Log errors: Yes - Error email: admin@example.comPengoptimuman Pangkalan Data
Section titled “Pengoptimuman Pangkalan Data”Admin → Tools → Optimize Database# Manual optimizationmysql> OPTIMIZE TABLE publisher_items;mysql> OPTIMIZE TABLE publisher_categories;mysql> OPTIMIZE TABLE publisher_comments;Penyesuaian Modul
Section titled “Penyesuaian Modul”Templat Tema
Section titled “Templat Tema”Preferences → Display → TemplatesPilih set templat:
- Lalai
- Klasik
- Moden
- Gelap
- Adat
Setiap templat mengawal:
- Susun atur artikel
- Penyenaraian kategori
- Paparan arkib
- Paparan ulasan
Petua Konfigurasi
Section titled “Petua Konfigurasi”Amalan Terbaik
Section titled “Amalan Terbaik”graph TD A[Configuration Strategy] -->|Start| B[Enable basic features] B -->|Test| C[Verify functionality] C -->|Scale| D[Enable advanced features] D -->|Optimize| E[Performance tune] E -->|Secure| F[Apply security settings]- Mula Mudah - Dayakan ciri teras dahulu
- Uji Setiap Perubahan - Sahkan sebelum meneruskan
- Dayakan Caching - Meningkatkan prestasi
- Sandaran Dahulu - Tetapan eksport sebelum perubahan besar
- Log Pantau - Semak log ralat dengan kerap
Pengoptimuman Prestasi
Section titled “Pengoptimuman Prestasi”For Better Performance: - Enable caching: Yes - Cache lifetime: 3600 seconds - Limit items per page: 10-15 - Compress images: Yes - Minify CSS/JS: Yes (if available)Pengerasan Keselamatan
Section titled “Pengerasan Keselamatan”For Better Security: - Moderate comments: Yes - Disable HTML in comments: Yes - XSS filtering: Yes - File type whitelist: Strict - Max upload size: Reasonable limitExport/Import Tetapan
Section titled “Export/Import Tetapan”Konfigurasi Sandaran
Section titled “Konfigurasi Sandaran”Admin → Tools → Export SettingsUntuk menyandarkan konfigurasi semasa:
- Klik Konfigurasi Eksport
- Simpan fail
.cfgyang dimuat turun - Simpan di tempat yang selamat
Untuk memulihkan:
- Klik Konfigurasi Import
- Pilih fail
.cfg - Klik Pulihkan
Panduan Konfigurasi Berkaitan
Section titled “Panduan Konfigurasi Berkaitan”- Pengurusan Kategori
- Penciptaan Artikel
- Konfigurasi Kebenaran
- Panduan Pemasangan
Konfigurasi Penyelesaian Masalah
Section titled “Konfigurasi Penyelesaian Masalah”Tetapan Tidak Akan Menyimpan
Section titled “Tetapan Tidak Akan Menyimpan”Penyelesaian:
- Semak kebenaran direktori pada
/var/config/ - Sahkan PHP akses tulis
- Semak PHP log ralat untuk isu
- Kosongkan cache penyemak imbas dan cuba lagi
Editor Tidak Muncul
Section titled “Editor Tidak Muncul”Penyelesaian:
- Sahkan pemalam editor dipasang
- Semak XOOPS konfigurasi editor
- Cuba pilihan editor yang berbeza
- Semak konsol penyemak imbas untuk ralat JavaScript
Isu Prestasi
Section titled “Isu Prestasi”Penyelesaian:
- Dayakan caching
- Kurangkan item setiap halaman
- Memampatkan imej
- Semak pengoptimuman pangkalan data
- Semak log pertanyaan perlahan
Langkah Seterusnya
Section titled “Langkah Seterusnya”- Konfigurasikan Kebenaran Kumpulan
- Buat Artikel pertama anda
- Sediakan Kategori
- Semak Templat Tersuai
#penerbit #konfigurasi #keutamaan #tetapan #XOOPS