![]() |
Help creating new pages in ACP
I cant seem to find any proper documentation on how to create modifications for mysidia. Here's what I have tried so far and can't figure out.
I have modified the class/class_page.php get_page to add my :EXPLORE: page the list of ACP pages if its even required. I have created my explore.php page following the flow of other pages. To keep it simple, i only created the content first to see if it was even going to work which it didnt. Code:
public function add(){ Code:
/** so since I could not get the page to be displayed at myurl.com/adminacp/explore/add I decided i would just add the method to another page to see if that was the problem. So i threw my add method into the image.php admin class and went to myurl.com/adminacp/image/add and the same problem continues. Code:
Internal Server Error I am guessing that i have to somehow register the files or methods before actual using them? Will the same concept of creating an acp file apply for creating a player file |
In 1.3.4, pages are divided into Controller and View. That means for each new page you need a Controller and a View file. The View is what you show to the user and the Controller is basically treating the information and passing it to the View
For example, your yoursite.com/adopt page is built using the files: adopt.php (controller) and adoptview.php (viewer). All view pages are inside view folders (there are two: one in your mysidia folder, related to player pages, and one inside admincp folder for ACP pages). To create an yoursite.com/explore page, you need to: 1) Create an explore.php file (same directory as adopt.php, account.php, etc.) with at least these contents: PHP Code:
2) Create an exploreview.php file (inside the view folder with adoptview.php, accountview.php, etc.): PHP Code:
This is also the same concept for ACP pages. |
I am using 1.3.3 so what options do I have?
|
I haven't worked with 1.3.3 in a while now and I don't remember having that error x.x but the page building should be almost the same, for example:
PHP Code:
Did you try making the content simple before building the form to see if it outputs anything? An alternative way of doing forms is in register.php Do the other pages work (/image/upload for example) or also spit out an Internal Server Error? |
I have commented out all the form building and left only the title code and same error. I have even added another method on another page with the following code:
Code:
$mysidia = Registry::get("mysidia"); But if i go to mysite.com/adminacp/image/upload it will work. Every time I think I figure it out. It doesn't want to work. It is starting to get very frustrating. |
I am updated to 1.3.4
I got to my explore/add admin acp page and get same error. still no luck and just as confused. explore.php ACP Code:
<?php Code:
<?php Quote:
|
Is your .htaccess file inside the ACP folder like this or similar?
Code:
RewriteEngine On Besides that and the .htaccess, I don't know what's causing that, HoF might be more useful x.x |
.htaccess file is 100% identical and file permissions are set to 644.
I already messaged HoF once directing him to this thread. I guess we will see if he comes and responds. |
I'm sorry I can't help more, never had that happen to me when creating new pages. Does it happen as well when creating those pages outside ACP?
|
Ok, So I came to the conclusion I am not so crazy afterall, just frustrated.
Code:
<?php Code:
<?php These files will work on PLAYER SIDE, but if i change the class names to ACPTesterView and ACPTester and move to correct locations, they will error and provide Code:
Internal Server Error |
All times are GMT -5. The time now is 09:54 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.