How to install a module that is a php file...?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
Darwin Web Design
Forum Members
Forum Members
Posts: 212
Joined: Tue May 30, 2006 3:12 am

How to install a module that is a php file...?

Post by Darwin Web Design »

Hi,
I've just downloaded the random images module "function multiple random images" which is a php file not an xml file and would like to give it a go.  Can you please direct me on how to install a module like this (ie a single php file)...  I've tried putting the php file in the modules directory but it doesn't show up in admin.  Also ofcourse I have tried to install it via admin in 'modules' but this section only lets you install via an xml file.

Thanks  ???
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: How to install a module that is a php file...?

Post by RonnyK »

If it is called function****.php you can FTP it to your CMS installation in the folder called "scriptsplugins" (I think it was scripts, check if more function***'s are there). If you put it there it is available in the list of tags under "Extensions".

EDIT, it was "plugins" not "scripts"!!


Ronny
Last edited by RonnyK on Wed Mar 21, 2007 1:20 pm, edited 1 time in total.
User avatar
Darwin Web Design
Forum Members
Forum Members
Posts: 212
Joined: Tue May 30, 2006 3:12 am

Re: How to install a module that is a php file...?

Post by Darwin Web Design »

Thank you!
So simple, and worked first time.

;D
biliousfrog

Re: How to install a module that is a php file...?

Post by biliousfrog »

Sorry to dig this up but I have a question regarding the script....

I've placed the tag into the template but when the page is loaded it just displays the image path rather than the image.

for example, it doesn't display header_01, it displays the path to that file: uploads/header/header01.jpg

What am I doing wrong?

BTW, I'm using the latest version of the script; random_image_selective
Post Reply

Return to “CMSMS Core”