Ext Admin Problem

Hi, i need help i have this error (pic) this are my codes admin/controller.php
<?php

namespace Pterodactyl\Http\Controllers\Admin\Extensions\__identifier__;

use Illuminate\View\View;
use Illuminate\View\Factory as ViewFactory;
use Pterodactyl\Http\Controllers\Controller;
use Illuminate\Contracts\Config\Repository as ConfigRepository;
use Pterodactyl\Contracts\Repository\SettingsRepositoryInterface;
use Pterodactyl\Http\Requests\Admin\AdminFormRequest;
use Illuminate\Http\RedirectResponse;

use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Admin\BlueprintAdminLibrary as BlueprintExtensionLibrary;

class __identifier__ExtensionController extends Controller
{
public function __construct(
private ViewFactory $view,
private BlueprintExtensionLibrary $blueprint,
private ConfigRepository $config,
private SettingsRepositoryInterface $settings,
) {}...
<?php

namespace Pterodactyl\Http\Controllers\Admin\Extensions\__identifier__;

use Illuminate\View\View;
use Illuminate\View\Factory as ViewFactory;
use Pterodactyl\Http\Controllers\Controller;
use Illuminate\Contracts\Config\Repository as ConfigRepository;
use Pterodactyl\Contracts\Repository\SettingsRepositoryInterface;
use Pterodactyl\Http\Requests\Admin\AdminFormRequest;
use Illuminate\Http\RedirectResponse;

use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Admin\BlueprintAdminLibrary as BlueprintExtensionLibrary;

class __identifier__ExtensionController extends Controller
{
public function __construct(
private ViewFactory $view,
private BlueprintExtensionLibrary $blueprint,
private ConfigRepository $config,
private SettingsRepositoryInterface $settings,
) {}...
admin/view.blade.php
<form id="config-form" action="" method="POST">
<script>
// Show save button upon form input changes.
document.addEventListener("DOMContentLoaded", function () {showSaveButton()});
function showSaveButton() {
const __identifier___configForm = document.getElementById("config-form");
const __identifier___saveOverlay = document.getElementById("save-overlay");

__identifier___configForm.addEventListener("change", function () {
__identifier___saveOverlay.style.display = "inline";
setTimeout(() => {
__identifier___saveOverlay.style.bottom = "10px";
}, 100)
});
}
</script>
<form id="config-form" action="" method="POST">
<script>
// Show save button upon form input changes.
document.addEventListener("DOMContentLoaded", function () {showSaveButton()});
function showSaveButton() {
const __identifier___configForm = document.getElementById("config-form");
const __identifier___saveOverlay = document.getElementById("save-overlay");

__identifier___configForm.addEventListener("change", function () {
__identifier___saveOverlay.style.display = "inline";
setTimeout(() => {
__identifier___saveOverlay.style.bottom = "10px";
}, 100)
});
}
</script>
No description
Solution:
You cannot use legacy placeholders on extensions targeting beta, use the new placeholders instead.
Jump to solution
5 Replies
Solution
Emma
Emma23h ago
You cannot use legacy placeholders on extensions targeting beta, use the new placeholders instead.
Emma
Emma23h ago
blueprint.zip
Powerful, fast and developer-friendly extension framework for Pterodactyl. Utilize extension APIs, inject HTML, modify stylesheets, package extensions and so much more.
Partymann2000
Partymann2000OP23h ago
ok thx i replace the old ones __identifier__ with {identifier} for saving i need also {identifier} is this right? like this ^#identifier#^ to {identifier}
Emma
Emma23h ago
yes
Partymann2000
Partymann2000OP23h ago
thx for help

Did you find this page helpful?