English Support Forum

icon
Avatar
alanfoot
Posts: 1
Hello, the module mod_me_latest_images_150, works well but It can be used just ones on a site,

when i try to duplicate de module for used as Featured images of propertys, It display a FATAL ERROR cannot redeclare (some vars) I have modified the module files, to works as a fEatured Module,

I made just few changes in file
the xml:
iconCode:
<filename module="mod_me_featured_images">mod_me_featured_images.php</filename>

and use for default the Featured radio button
iconCode:
<param name="featured" type="radio" default="1" label="Show only featured properties?" description="Show only pictures of featured properties.">


and the php change the names of the follow Functions:
getLastestPropertiesList to getFeaturedPropertiesList
getPicture to getPicture1
reate_latest_images to reate_latest_images1

And It works, i can have one module for Lastest images, and other for Featured Images at same time

The file mod_me_featured_images.zip is attached.
[Last edited by alanfoot, 09.08.2009 22:12]
09.08.2009 06:38
Avatar
admin
Moderator
Posts: 887
Hi,

it is not possible to duplicate current ME modules until they are 100% native. I´m gonna adjust them to be native too after finishing the native core component.

Thanks for the module, I´m gonna check and publish it later.

best regards
12.08.2009 14:28
icon