PDA


View Full Version : How to make a module file? Brian


tomshawk
06-05-2005, 12:47 AM
Hello Brian,

I have a mod that worked in CMPS 1.0.1

Now that I did the upgrade and verified it works in CMPS 2.0, I wanted to try to backup and then restore it into a clean test board.

the backup seemed to go rather well, but, when I restore it, I get nothing.

this paticular module needs a php file as well as a template, seems simple enough, but, it created the file and its contents seem to be intact, but the template was never created though it did add the template name into the box that says Templates Used.

any help would be created, I dont think I missed a step, I've done both sides, the backup and the restore a dozen times.

but...

anyway, is there a way to read or modify the .module files

I tryed with a text editor and HTML kit and they both blow up the module file so vbadvance say it is not a valid module file.

Thanks for any help you can provide

tomshawk
06-05-2005, 01:07 AM
Interesting, when I delete the module and try to upload it, it tells me there is a template by the same name, even though it doesn't show up in the list ?!?!?!

tomshawk
06-05-2005, 01:14 AM
Interesting, when I delete the module and try to upload it, it tells me there is a template by the same name, even though it doesn't show up in the list ?!?!?!

OK, WTF.

Does this thing have a delay on it.

I swear I didn't do anything, it just appeared.

Thats just freaky.

thanks Brian, its working

Brian
06-05-2005, 10:53 AM
Not sure why you were having problems, but I'm glad it worked itself out. :)

tomshawk
06-05-2005, 11:27 AM
Not sure why you were having problems, but I'm glad it worked itself out. :)

sort of and sometimes.

I deleted it, so I could try it again and now I cant get it back
I deleted the module, I ftp'd in and deleted the file because the script doesn't do that, I manually deleted the template.

I tryed the upload again, and it does not create the template again.

Very strange

Brian
06-05-2005, 11:43 AM
Can you attach the .module file that you're using here?

tomshawk
06-05-2005, 11:48 AM
Can you attach the .module file that you're using here?

You bet, here you go

Thanks for looking at it, but, how do we edit these and still make them useable by the program, What editor?

As a side note, this wont actually work for you, because there is still a missing file, but you should get the idea


Then again maybe I cant, it says invalid file type

On the list of file types, it says .module instead of module like the other extensions.

Brian
06-05-2005, 11:56 AM
Whoops :o

Try now.

tomshawk
06-05-2005, 11:57 AM
I went ahead and uploaded to my site temporarily, so you can see it

http://www.tech-unity.com/forums/files/vb/threats.module

tomshawk
06-05-2005, 11:58 AM
Here you go

Brian
06-05-2005, 04:48 PM
If you'll look in your vba_cmps_admin.php file for this bit of code:
}

// Insert module


And replace it with this:
build_all_styles(0, 0);
}

// Insert module


That should take care of the problem.

tomshawk
06-05-2005, 09:12 PM
Thank you Brian, That fixed that problem, will post another in a minute ;)

internext
06-06-2005, 04:55 PM
}

// Insert module

Sorry I am a little confused here, because the code is repeated twice in my vba_cmps_admin.php file, at line 862 and at line 1624.

So would I be correct in editing both?

Thanks in advance

tomshawk
06-06-2005, 07:14 PM
Yes, it is the second one :p

internext
06-07-2005, 04:09 AM
thanks very much tomshawk :)