//

Modul Ollama Chat Assistant | Chatbot AI Joomla Offline dan Online

tampilan AI

 Explanation:

Toko Youtube TikTok  DONASI
  • The file named  mod_ollama_chat_v1_up j3.7_j4_j5.zip  is specifically intended for Joomla version 3.7 and above, with a minimum requirement of PHP 7.xx. For Joomla 4.xx and 5.xx, PHP 8.1 or higher is required.
  • The file named mod_ollama_chat_v0.8_J3.0-J3.6.x.zip is specifically intended for Joomla versions 3.6.x and below, and requires a minimum of PHP 5.xx.  

Download membaca kecepatan token AI Lokal


1. Complete Explanation of the Ollama Chat Assistant Module for Joomla, Including All Technical Aspects and Functionalities: 

  1. Module Description
    This module adds an Ollama-based AI Chatbot to a Joomla website. Its main features include:
  • Floating chat display in the corner of the screen
  • Integration with the Ollama API (self-hosted or cloud-based)
  • Conversation history stored in session
  • Supports various AI models (Llama3, Mistral, etc.)

2. System Requirements

Component Minimum Version
Joomla 3.xx, 4.xx, 5.xx
PHP 5.x, 7.x,8.x
PHP Extensions cURL, JSON
Ollama Server v0.1.20+

3. How It Works

diagram alur modul ollama

4. Configuration in Joomla Backend
In the Module Manager, the admin can configure:

  • Assistant Name: The name displayed for the bot
  • AI Model: Choice of model (Llama3 is the default)
  • API URL: Ollama endpoint (e.g., http://localhost:11434)

5. Security
Implemented protection features:

  • CSRF Token: Applied to all requests
  • Input Sanitization: Uses strip_tags() and htmlspecialchars()
  • License Validation: GPL header included in all PHP files
  • Session Management: Chat history is stored server-side

6. Error Handling
The module handles errors through:

  • User-Friendly Notifications: Clear messages shown to users when something goes wrong
  • Error Logging: Errors are logged to the browser console for debugging
  • Fallback Response: A default response is displayed if the API request fails (e.g., “Sorry, I'm currently unavailable. Please try again later.”)

7. This Module Is Suitable For:

  • Websites that require an AI assistant
  • Self-hosted AI solutions
  • Local AI integration without cloud dependencies

8. Structur:

struktur data chat AI

? mod_ollama_chat Module Directory Structure

  1. mod_ollama_chat.xml
    Manifest file (required)
    Used by Joomla to recognize the module: metadata, listed files, module position, etc.

  2. mod_ollama_chat.php
    Module entry point
    The main file executed by Joomla to display the module on a page.

  3. helper.php
    Ollama API logic
    Contains helper functions or classes, for example to communicate with the Ollama API or handle internal logic.

  4. tmpl/default.php
    Display template
    This file defines how the module’s HTML output appears on the Joomla frontend.

  5. chatbox.css
    Stylesheet
    Contains CSS rules to style the chat interface (layout, colors, fonts, etc.).

  6. chatbox.js
    AJAX interaction
    JavaScript file used for dynamic interactions such as sending/displaying messages without page reload.

  7. en-GB.mod_ollama_chat.ini
    Frontend language file
    Language file used on the website's frontend (user-facing labels and text).

  8. en-GB.mod_ollama_chat.sys.ini
    Admin language file
    Language file used in the Joomla backend (for settings and admin interface).


? Brief Execution Flow 

  1. Joomla reads mod_ollama_chat.xml to load the module.
  2. When rendering the module, Joomla executes mod_ollama_chat.php.
  3. The entry file may call functions from helper.php.
  4. Output is processed and displayed using tmpl/default.php.
  5. The display is styled with chatbox.css.
  6. User interactions are handled by chatbox.js.
  7. Texts and labels are localized using .ini language files.  

 

Download modul Chatbot AI di Joomla 3.xx use Ollama

Video on how to install and set up the Ollama AI chatbot module

Informasi Pemilik Blog
JokoVlog
Author: JokoVlogWebsite: https://s.id/jokovlogEmail: This email address is being protected from spambots. You need JavaScript enabled to view it.
Assalamualaikum wr. wb salam satu Server
Blog ini hanya untuk menceritakan kegiatan sehari-hari. Saat ini masih aktif menjadi akademisi. Youtube Channel : https://s.id/jokovlog Donasi: https://saweria.co/jokovlog

Bacaan asik lainnya..!

Thursday, 09 November 2023 15:10

Non-Fungible Toke atau NFT adalah salah satu aset yang termasuk dalam cryptocurrency. Dengan...

Sunday, 26 February 2023 23:03

Jika terjadi kejadian seperti digambar diatas dimana nilai huruf tidak muncul maka akan berakibat...

Wednesday, 26 February 2025 08:43

Suatu hari, di sebuah meja kerja yang berantakan, ada sebuah keyboard yang sudah lama menemani...

Sunday, 15 February 2015 08:47

Valentine, biasa dirayakan oleh kaum muda baik adam ataupun hawa, dimana hari valentine biasa...

AI JokoVlog ×
Ask me anything, and I'll answer you.

Tentang JokoVlog

JokoVlog berawal dari sebuah chanel youtube yang dibuat 26 Juni tahun 2017. Sekarang Jokovlog berkembang menjadi web blog. Melalui platform ini, saya Joko Supriyanto yang merupakan pemilik web blog ini membagikan berbagai konten, termasuk vlog harian, tips dan trik, serta diskusi mengenai perangkat lunak. Saya juga memiliki profil di GitHub dengan username "joklin12" yang akan digunakan untuk berbagi kode berbagai proyek terkait teknologi
 

 

Peta Lokasi

peta rumah

Top