Page 1 of 1

Making module use one word for tag

Posted: Sat Sep 01, 2007 7:24 pm
by Dr.CSS
I've gone thru the function.news.php and changed it to make it so I can just use {comments} as a tag instead of {cms_module module="comments"} like we use for menu or news now...

Question is if I made a module how would I go about making it install this function.modulename.php when the module gets installed?...

I've done it for Comments but I have to FTP/upload the file whenever I use the Comments on a new site, I've changed Comments to be a Review module so they can put it in a page and ppl. can leave reviews of what ever and now they want it to be 3 more diff. modules and I don't want to have to FTP the file for each one, it would be nice to have these function.nameofmodule.php files for all modules like Album...

I'm too lazy and lacking in my PHP (non existant) coding abilities to find it in News... ;)

Re: Making module use one word for tag

Posted: Sat Sep 01, 2007 8:02 pm
by calguy1000
You don't have to do that anymore..... function.news.php and function.search.php will go away in 1.2,

In all modules now, you just need to call RegisterModulePlugin(), and then the tag becomes {News ...} or {Search...} or {FrontEndUsers ...}