Making module use one word for tag

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Making module use one word for tag

Post 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... ;)
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Making module use one word for tag

Post 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 ...}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Modules/Add-Ons”