TinyPortal

Development => Resources => Modules => Topic started by: butzie225 on October 09, 2008, 10:24:15 PM

Title: Need Help (Error)
Post by: butzie225 on October 09, 2008, 10:24:15 PM
OK... i am trying to make a Module for the first time!!!! (Private module) but when i do the .xml inside the tp-module folder i basically copied TPTestModule.xml and renamed it to MorpheusShop.xml
<?xml version="1.0"?>
<tpmodule>
<!-- Module name, use EXACTLY the same as the folder name! -->
<name>MorpheusShop</name>
<!-- The title of the module -->
<title>Morpheus Shop</title>

<!-- Versions -->
<version>1.0</version>
<tpversion>1.0</tpversion>
<smfversion>1.1.4</smfversion>

<!-- what string will trigger the module, format is ?action=tpmod;[subquery]=xxx  -->
<subquery>shop</subquery>

<!-- various information about the module  -->
<author>Cdog5000</author>
<contact>cdog5000@hotmail.com</contact>
<website>morpheusscripting.co.cc</website>

<!-- Illustrative picture -->
<logo></logo>

<!-- Description of the module, BBC allowed -->
<description>
</description>

<!-- Main source file -->
<sourcefile>MorpheusShop.php</sourcefile>

<!-- When installing the module for the first time, run this -->
<installfile>install.php</installfile>
<installfunction></installfunction>
<updatefile></updatefile>
<updatefunction></updatefunction>

<!-- install langauges, separate several with a comma, like: english,german,spanish -->
<languages>english</languages>

<!-- permissions used in this module, format is [permission]|[0/1],[permission]|[0/1]-->
<!-- "0/1" indicates if this permission is a admin permission or not, "1" for true -->
<permissions>tp_testme_admin|1</permissions>

<!-- The function to render a block -->
<blockrender></blockrender>

<!-- Deliver notifications for admin/moderator -->
<adminhook></adminhook>

</tpmodule>


And get this error:
Quote
Language files could not be copied to Languages folder.Please check permissions.

What did i do wrong?
Title: Re: Need Help (Error)
Post by: G6Cad on October 09, 2008, 10:55:09 PM
The error tell you the problem.

Permission issues, the files it needs to move to the other folder during the install cant be moved cause of permission issues.

Make sure the folders you are copying the files to have the correct settings.
Title: Re: Need Help (Error)
Post by: butzie225 on October 09, 2008, 11:34:20 PM
Quote from: G6 on October 09, 2008, 10:55:09 PM
The error tell you the problem.

Permission issues, the files it needs to move to the other folder during the install cant be moved cause of permission issues.

Make sure the folders you are copying the files to have the correct settings.
well.... i have all the files in there!
Title: Re: Need Help (Error)
Post by: butzie225 on October 09, 2008, 11:36:54 PM
NVM. Fixed! I named the file's wrong!