Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Help creating new pages in ACP (http://www.mysidiaadoptables.com/forum/showthread.php?t=4660)

IntoRain 09-26-2014 12:54 PM

Until HoF can investigate the issue, maybe it's better to implement it on the player side for now, if it's an urgent feature and if there isn't a problem with it

Hall of Famer 09-26-2014 07:49 PM

Do you have lang files for your custom page/script? For every controller in Mys v1.3.4, it must have both a view and a lang file as its counterparts. The lang files store the actual text displayed for the very page.

FounderSim 09-26-2014 11:19 PM

Quote:

Originally Posted by Hall of Famer (Post 31231)
Do you have lang files for your custom page/script? For every controller in Mys v1.3.4, it must have both a view and a lang file as its counterparts. The lang files store the actual text displayed for the very page.

Its funny that you mentioned that because I was out back on my porch smoking a cig thinking about a suggestion to your language folder structure.


I do not believe a "language" file is required for player files as my Tester Controller and View files both worked without including a language file.

Whether its required for ACP files is another story. I will test that when I am done posting and be back with results.


For my suggestion
Make it multi folders in the main "lang" folder. It seems kind of pointless to have language files if you can't seperate them and its even more time consuming and a pain in the ass thinking of names for language variables, and working back and fourth from language var file and your other files when you could just be typing static text in your code. Just some two cents.

I am sure you already have this planned for the future though =)

en for english by default?
fr for french
sp for spanish

IntoRain 09-27-2014 10:36 AM

I completely missed that. Funny thing is, I forgot to add that to my News feature as well, even though I had the lang file on my test site. Sorry about that, Sim :/ And thank you HoF!

FounderSim 09-27-2014 11:21 AM

Ok, I found the solution to my problem although it was a very simple fix a very strange one.

My ACP files was explore and exploreview for view and controller. I renamed them to test and testview and changed to ACPTestView and ACPTestController and then it just seemed to magicly work. No code changes.

It just did not like the name Explore for some reason so it seems. I am confused about it, but I guess I will leave at that as I can now do some real programming.

HoF, if you have time, why does the ACP not like the word Explore? Is it some sort of reserved word?

Hall of Famer 09-27-2014 01:55 PM

Honestly I dont really know why the word 'Explore' wont work for you. I will try on my server when I have more time to see if I can reproduce this issue myself.


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

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.