Ricardoneud.com
Website
Website
Discord Community
Community Forum
  1. Installation
  • Home
  • Frequently Asked Questions
  • Api
    • User Login
    • Changelog
      • v1
      • v2
      • v3
      • v4
    • v1
      • Clients
        • Licenses
          • Get Licenses
      • Tools
        • Get Subdomains
        • Mail DNS Checker
        • Get DNS Information
    • v2
      • Clients
        • Licenses
          • Get Licenses
      • Games
        • Minecraft
          • Get Minecraft Server
      • Reseller
        • Licenses
          • Check License
          • Generate License
          • Update License
          • Delete License
      • Tools
        • Get Subdomains
        • Mail DNS Checker
        • Get DNS Information
    • v3
      • Games
        • Minecraft
          • Get Minecraft Server
        • Fivem
          • Get Fivem Server
      • Reseller
        • Licenses
          • Check License
          • Generate License
          • Update License
          • Delete License
      • Tools
        • Get Subdomains
        • Mail DNS Checker
        • Get Domain Information
        • Get DNS Information
      • User Login
    • v4
      • Games
        • Minecraft
          • Get Minecraft Server
      • Tools
        • Get DNS Information
        • Get Domain Information
        • Mail DNS Checker
        • Validate Email Host
        • Get Subdomains
        • Geo IP
      • User Login
        • Create Secret
        • Revoke Secret
    • Oauth2
      • Access Token
        POST
      • Read Profile
        GET
  • Products
    • Next.js Docs Template
      • Installation
        • VPS Installation
        • Pterodactyl Installation
    • Game Panels
      • Pterodactyl
        • Eggs
          • Installation
            • Next.js Egg
        • Extensions
          • Installation
            • Pterodactyl Livechat
      • Pelican
        • Eggs
          • Installation
            • Next.js Egg
    • Donate Me
      • Installation
        • VPS Installation
        • Pterodactyl Installation
    • LicenseForge
      • Installation
        • VPS Installation
        • Webhost Installation
    • Billing Portals
      • Paymenter
        • Extensions
          • Discord Linked Roles
            • Installation
            • Setting Up
          • CyberPanel
            • Installation
            • Setting Up
          • NeudAuth
            • Installation
            • Setting Up
      • WHMCS
        • Extensions
          • Installation
            • Ticket Spam Checker
            • Chatwoot Livechat
  • ProbeCore
    • Introduction
    • Self Hosting
      • Installation
        • VPS Installation
        • Pterodactyl Installation
  1. Installation

Pterodactyl Livechat

Livechat Integration for Pterodactyl#

This guide will help you integrate a Livechat feature into your Pterodactyl installation by updating routes, views, providers, and frontend components.

1. Download and Upload#

You can download the extension files from one of the following sources:
From SourceXchange:
Download Pterodactyl Livechat Extension
From Ricardoneud.com:
Download Pterodactyl Livechat Extension
Once downloaded, upload the extracted files into your Pterodactyl installation directory.

2. Register Livechat Routes#

Open /routes/admin.php in your Pterodactyl installation and add the following route group:
Add this below the existing line:

3. Add Livechat Menu Item#

Open /resources/views/layouts/admin.blade.php and add this menu item:
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.livechat') ?: 'active' }}">
    <a href="{{ route('admin.livechat') }}">
        <i data-lucide="message-square"></i><span>Livechat</span>
    </a>
</li>
Place it below the existing menu item for settings:
<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.settings') ?: 'active' }}">
    <a href="{{ route('admin.settings') }}">
        <i data-lucide="settings"></i> <span>Settings</span>
    </a>
</li>
If your installation uses a custom theme, add it under the corresponding theme menu section.

4. Register Livechat API Routes#

Open /app/Providers/RouteServiceProvider.php and add this inside the map method or where routes are grouped:
Add this below the existing route groups, for example below:

5. Load Livechat Script on Frontend#

Open /resources/scripts/components/elements/PageContentBlock.tsx and add the following useEffect hook:
useEffect(() => {
    fetch('/api/livechat')
        .then(res => res.text())
        .then(html => {
            const wrapper = document.createElement('div');
            wrapper.innerHTML = html;

            const scripts = wrapper.querySelectorAll('script');
            scripts.forEach(script => {
                const s = document.createElement('script');
                if (script.src) {
                    s.src = script.src;
                    s.async = script.async;
                } else {
                    s.textContent = script.textContent;
                }
                document.body.appendChild(s);
            });
        })
        .catch(e => console.error('Failed to load livechat script', e));
}, []);
Add this below the existing useEffect that sets the document title:
useEffect(() => {
    if (title) {
        document.title = title;
    }
}, [title]);
If no such title useEffect exists, simply add the above code directly below the line
const PageContentBlock: React.FC<PageContentBlockProps> =

✅ You're Done!#

The extension has been successfully installed and works as it should. You can now configure it via the Pterodactyl admin panel. Good luck!
Modified at 2025-07-27 17:20:38
Previous
Next.js Egg
Next
Next.js Egg
Built with