Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-23-2014, 03:00 PM
FounderSim FounderSim is offline
Member
 
Join Date: Sep 2014
Posts: 65
Gender: Male
Credits: 7,890
FounderSim is on a distinguished road
Default 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(){
	    $mysidia = Registry::get("mysidia");
		$document = $mysidia->frame->getDocument();	
			
		$document->setTitle($mysidia->lang->explore_title);
		$exploreForm = new Form("addform", "add", "post");
		$exploreForm->buildComment("<u><strong>Add new status:</strong></u>")
		               ->buildComment("Status Description: ", FALSE)->buildTextField("textDesc")
					   ->buildComment("Status Chance %: ", FALSE)->buildTextField("textDescPerc")
					   ->buildComment("<b>Add Explore Pet</b>")
					   ->buildDropDownList("adopt", "AdoptTypeList")
		               ->buildComment("Pet %: ", FALSE)->buildTextField("textPetPerc")
					   ->buildComment("<b>Add Explore Item:</b>")
					   ->buildDropDownList("item", "ItemList")
		               ->buildComment("Item %: ", FALSE)->buildTextField("textPetPerc")					   
					   ->buildComment("<b>Coin % Chance: </b>")
					   ->builtComment("Coin Low Amount", FALSE)->buildTextField("textCoinLow")
					   ->buildComment("Coin High Amount: ", FALSE)->buildTextField("textCoinHigh")
					   ->buildButton("Modify Explore", "submit", "submit");
		$document->add($exploreForm);
	}
I found i had to build my own itemList form helper as there was not one already made so i did so in the class_formhelper.php

Code:
	/**
     * The buildItemList method, builds a dropdown list for available items.
	 * @param String  $name
     * @access public
     * @return DropdownList
     */		
	public function buildItemList($name){
        $mysidia = Registry::get("mysidia");
		$itemList = new DropdownList($name);
	    $iids = $mysidia->db->select("items", array("id"))->fetchAll(PDO::FETCH_COLUMN);
		$inames = $mysidia->db->select("items", array("items"), "1 ORDER BY id")->fetchAll(PDO::FETCH_COLUMN);
	    $itemList->add(new Option("No Item Selected", "none"));
	    $itemList->fill($inames, $iids);
		return $itemList;
	}

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

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, blahblahblah and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

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
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Image Folder Abronsyth Questions and Supports 0 10-05-2014 09:12 AM
Error when creating new levels v.1.3.3 Hwona Questions and Supports 1 07-14-2014 02:06 PM
Creating the actual site? BunnyWorld Questions and Supports 1 01-05-2013 09:05 PM
Creating my own? konzair Templates and Themes 7 01-26-2011 03:21 AM
[request] website creating :P powerchaos Webmasters Area 3 04-03-2009 04:37 PM


All times are GMT -5. The time now is 08:40 AM.

Currently Active Users: 827 (0 members and 827 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636