Home
mfReflex: Add a reflection to images with this Joomla 1.0.x mambot
Logo Joomla! is my favorite CMS. I created a mambot that allows you to easily add Web 2.0 reflection and tilt images. It's called mfReflex and you can use it free of charge.

Use this mambot to give some extra eye-candy to your images. It is very simple to use and uses unobtrusive javascript. Many advanced options are included.

You don't need Photoshop or any other advanced and expensive programs to add a Web 2.0 reflection to and tilt images. Use mfReflex and you're ready to go. Additionally, the original image will be kept intact.

Original

Original Image

Basic setup

Basic setup
{mfreflex beach.jpg}

Advanced configuration

Advanced configuration
{mfreflex beach.jpg|Beautiful beach||50|1|10|left}

Install

  1. Log in to your back-end of the site
  2. Go to "Installers", "Mambots"
  3. Click on "Browse" and navigate to the downloaded ZIP archive
  4. Press "Upload File & Install"
  5. Go to "Mambots", "Site Mambots"
  6. Search for mfReflex and publish it
  7. Download reflex.js
  8. UnZIP the archive and only get reflex.js. Upload it to the following folder on your FTP:

    /mambots/content/mfreflex

    Don't forget to read the license of reflex.js.

How to use

Syntax

Use the following syntax to enable mfReflex on your images:
{mfreflex imgpath/img_name}

The base image path is always: images/stories. For example, if you have an image in your images/stories folder, your syntax will be: {mfreflex img_name}

If you have an image in your images/stories/subfolder folder, your syntax will be: {mfreflex subfolder/img_name}

When the user hasn't enabled JavaScript or the browser doesn't support this script, a non-formatted image will be displayed.

Advanced Configuration

mfReflex has a couple of parameters you can set. Seperate the parameters with the | symbol.

  1. The image location and name. This one has to be used, or else the script will not work.
    Example: {mfreflex imgpath/img_name}
  2. ALT attribute for the image, making it W3C valid. If left empty, no ALT attribute will be used.
    Example: {mfreflex imgpath/img_name|Logo}
  3. Float the image to the left or to the right.
    Example: {mfreflex imgpath/img_name|Logo|right}
  4. Set the opacity of the reflection in percent (0-100%). Default is 33%.
    Example: {mfreflex imgpath/img_name|Logo|right|90}
  5. Set the image border of the image. The reflection will show the border too. Value in pixels, between 0 and 100. Default is 0.
    Example: {mfreflex imgpath/img_name|Logo|right|90|5}
  6. Distance between the image and the reflection. Value in pixels, between 0 and 100. Default is 0.
    Example: {mfreflex imgpath/img_name|Logo|right|90|5|10}
  7. 3D Z-tilt of the image. Choose between right, none or left. By default, the script rotates through the tilt variations.
    Example: {mfreflex imgpath/img_name|Logo|right|90|5|10|none}

Now I would have a reflex image with an ALT attribute called "Logo", floating on the right, with a reflection opacity of 90%, a border of 5 pixels, with a distance of 10 pixels between the image and the reflection and with no Z-tilt.

Only the first parameter must be filled. All others are optional. If you don't want to use the parameter, leave it empty. For example, if you want all default settings, but another Z-tilt, use the following syntax:
{mfreflex imgpath/img_name||||||none}

Download

Attribution-Share Alike 3.0

Don't forget to download mfSyntaxHelper if you need some help with the difficult syntax from this mambot.

Ed from Digital Access USA took the time to create a JCE plugin to help you with the syntax.

The sample image is from socwall.

Feel free to give feedback about this mambot. Enjoy using it!

Changelog

Version 1.1
  • Removed script from Christian Effenberger due to copyright restrictions. You can still download the script at his website.
  • Added a couple empty "index.html" files for no directory listing.
  • Default settings can be placed. Go to the mambot and set your own default settings.
Known bugs
  • Script doesn't work when Joomla! is installed in a subdirectory.
Version 1.2
  • Bugfix: Now works when installed in subdirectory
  • Bugfix: Altered code to remove the "Stack Overflow" error from IE7


Tags:  mambot free joomla webdesign

Interested in this topic? You might enjoy another article I've written called

Comments
Add NewSearchRSS
Don   | 64.201.4.xxx | 2008-02-10 21:40:33
Gravatar image Great releases...

Quick question. Since Joomla! has the source images normally inserted as...

src="http://www.mysite.com/images/stories/example_image.jpg"

Do you simply substitute /images/stories/example_image.jpg in the html to:

src="http://www.mysite.com/{mfreflex example_image.jpg}"

I was a bit confused about whether you add that directly into the html and/or whether you still have to have images/stories before the {mfreflex image_name} line.

Not sure if I explained my question right, but I thought I would give it a shot. I am using Joomla! 1.5 in legacy mode by the way. Installed no problem.

Great mods too... keep up the wonderful work.

Thanks!
Marco - No, just the filename   | 145.74.182.xxx | 2008-02-11 12:27:18
Gravatar image No, you don't add the full directory.

The mambot automatically uses the "/images/stories/" folder. If you have an image in the "images/stories" folder, just use the filename.

Example:
On the FTP:
"/images/stories/photo/photo1.jpg"
Mambot code:
{mfreflex photo/photo1.jpg}

Good luck.
Alain - How does it work ?!   | 62.194.187.xxx | 2008-03-17 21:05:19
Gravatar image Hello Marco,
First of all congratulations for your astounding work !
I only wish I could get it to work :(

So here is my geeky question :
How do I apply the mfReflex script in the HTML code in the following basic case to the image "articles.jpg" (I tried but failed miserably :confused: ) :

Code:
New! YOOsliderKeep playing with the new YOOslider module. Learn more... 


This code extract comes from the basic code of a YooTheme template I installed yesterday, and like Don, I am using Joomla! 1.5 in legacy mode and the plugin install went fine (My install is local using Xammp Lite).

I'm a server side programmer (PHP) and have very little idea about client side programming hence my silly question :dry:

One has to learn, and in our jobs we have to keep on learning or die

Thanks in advance for your help, I can't wait to see your script working !
WC Leung - Great plugin...   | 221.125.194.xxx | 2008-02-11 07:03:14
Gravatar image Great to see a lot of effects with your plugins. BTW, why not to combine all the effects into a single plugin?

I also opt for Joomla 1.5. Ha... legacy mode is not appreciated by me... so a native Joomla 1.5 plugin please.
Marco - Soon   | 145.74.182.xxx | 2008-02-11 11:20:42
Gravatar image Hello WC Leung,

I didn't want to combine all scripts in 1, since some users only want 1 script and not all. I'll make one mambot later with all the scripts for those users who want it.

A Joomla! 1.5 plugin will come when I have more 1.5 experience, since it's pretty new to me.

Hope you like the script.

Greetings,
Nico - Wow! + Question   | 144.44.150.xxx | 2008-02-11 17:36:41
Gravatar image Thanks for the mambots! It is not easy to pick one out, the're all great!

One question though: It would be nice if it allows full pathnames/urls to the image. With this extra option one could use: {mfGlossy {mosimage}} or any other image generating mambot within the mf-mambot. I have no idea if it is feasable... But hey, if one does not ask... :whistle:
Marco - Thanks   | 62.194.187.xxx | 2008-02-11 22:41:45
Gravatar image Hmhm, I'll check it out later. Thanks for the idea!

For now, I released the 1.1 version of all scripts, allowing you to change the default settings in the mambot parameters.

Greetings,
Marco
Ed - Problems?   | 71.76.231.xxx | 2008-02-11 17:58:32
Gravatar image I'm not able to generate any of the effects from your bots. I've used both your Reflect & Corner programs and all I see is just the picture (no effect). My test link is;

http://www.edhathaway.com/blog/index.php?option=com_content&task=view&id=102&Itemid=93

I copied the syntex directly from the bot changing only the path and filename. I've viewed this link with IE6, FF and Netscape and still don't see the bot's effect. Could this be a javascript or template issue?
Marco - Known bug   | 62.194.187.xxx | 2008-02-11 22:40:28
Gravatar image Hi Ed,

I had a couple of comments that it didn't work. I found out, that this was cause because Joomla! is installed in a subdirectory. I placed it on the list of "known bugs" and hope to fix it soon.

I'll keep on updating this article.

Greetings,
Marco
Ed - Thanks!   | 71.76.231.xxx | 2008-02-11 22:59:09
Gravatar image Marco,
Thanks for the update. I'll try your bot on a site I manage that is located in the root directory. Hoping you'll be able to fix the suddirectory issue since most of the Joomla sites I own or manage are not located within the root. Thanks again for your update(s).
Jan - Please, please, please   | 90.227.1.xxx | 2008-02-11 20:33:41
Gravatar image Make a J!1.5 soooon :woohoo:
Anonymous   | 64.201.4.xxx | 2008-02-11 21:06:53
Gravatar image Ahh... maybe that's why I cannot get it to work... because I am using J!1.5 in legacy mode? Do these not run under j1.5 legacy mode?
Pi_R - Problem with IE7   | 82.65.112.xxx | 2008-02-12 01:59:35
Gravatar image it seems as if there's a problem with this plugin and IE7 on my website. I don't understand the issue. Could you help me please ?
Thanks
Dave - Worked for pages with images b   | 213.164.91.xxx | 2008-02-12 11:54:55
Gravatar image What a great plugin. I installed and tried the mambot and it worked great in IE7 for pages _with_ images. I had a "Stack Overflow Error" for pages without images, however. Many of my visitors emailed me to tell me that they received this error message, as a popup dialog box that they had to cancel each page load. It seemed that for me, the pattern was simply that the error appeared only on pages without images included with the plugin.
I have removed the mambot now because I don't want to include an image on every page on my site (Over 3500 pages currently - thats a lot of editing).

Anyway, was fun to play around with the mambot and it gave a really nice effect. If you were to release a new version without the error, then I would more than gladly install again.

Great work, well done.
Marco - Bugfix will be released   | 62.194.187.xxx | 2008-02-14 08:04:20
Gravatar image Hi Dave,

Bugfixes for "stack overflow error" and "installed Joomla! in a subdirectory" will be released in version 1.2. This one will be released tomorrow, I'll still testing.

Stay tuned!
Ed - Version 1.2   | 71.76.231.xxx | 2008-02-16 04:22:48
Gravatar image Marco,
I just download your Version 1.2, 2008 of mfReflex and I'm still not able to see the reflection effect on my (subdirectory) blog site. I un-installed ver. 1.1 and installed ver. 1.2, I downloaded the reflex.js file and placed it into the mambots/contents folder and used the following syntax ({mfreflex food/06-springhs_champs_thm.jpg|Logo|right|90|5|10|none}
)to activate this bot. The direct link to my mfReflex image page is, http://www.edhathaway.com/blog/index.php?option=com_content&task=view&id=102&Itemid=93. Did I miss anything to get your bot to work on my subdirectory web page?
Nico (another user of mf bots) - Permissions set correct?   | 213.233.198.xxx | 2008-02-16 10:43:57
Gravatar image Hi,
I'm not Marco :s but could not resist to look into your problem. I loaded your web page localy on my desktop and running it from that location it works! This might give an idea in which direction the solution can be found. Maybe a file/directory permission problemn of some kind?
Ed - JCE mfReflex Plugin   | 71.76.231.xxx | 2008-02-21 19:53:50
Gravatar image Marco,
Just sent you an email & attachment with the mfReflex plugin for the Joomla JCE text editor I created. It will be a big help for those of us who use this editor and can't remember the syntax!
Edjoy!
Ed
Nico - Good job!   | 213.233.198.xxx | 2008-02-21 20:06:18
Gravatar image That would be of great help!
Thanx Ed.
Ed - Plugin Link   | 71.76.231.xxx | 2008-02-21 20:33:10
Gravatar image If anyone wants to download the JCE plugin I created for mfReflex, go to this web site;

http://www.digitalaccessusa.com

You can access the link from the top left menu options.

Ed

p.s. I did not spend a lot of time formatting the install bot screen. Maybe I'll be able to get to this tomorrow...
Marco - Great help!   | 62.194.187.xxx | 2008-02-21 20:48:40
Gravatar image Thanks! I'm pretty sure this will help all the users. Linked your plugin in the article :).

Greetings,,,
Ed - Plugin Link - Updated   | 71.76.231.xxx | 2008-02-22 04:29:24
Gravatar image I've cleaned up the bot install formatting screen and fixed one minor error to this JCE plug-in. If you have already installed this plug-in, this formatting change is not required to be re-installed. It is just 'eye candy' changes and provides proper credit back to mfReflex.
Ed - SUCCESS!!!   | 71.76.231.xxx | 2008-02-24 16:33:20
Gravatar image Marco,
After an extensive search of ALL the components, modules & mambots installed on my blog site (http://www.edhathaway.com), I was finally able to get mfReflex to work within this subdirectory Joomla install :woohoo:. As it turns out the JCE Utility mambot was the application causing all sorts of problems and issues with not only mfReflex but a host of other 3rd Party java based applications. I've included an example of mfReflex onto my Home Page in the article entitled, Winter Wonderland! Thanks for a great eye candy effect application and now I'm off to play around with your other image effects programs.
Alex - J 1.5   | 90.203.127.xxx | 2008-03-17 20:17:29
Gravatar image How do you install this for J1.5? i have legacy mode enabled. when i install the plugin it creates a mfreflect folder in my plugins/content folder. But the js looks for /mambots/content etc... which doesnt exist...

How can i adjust this?
Marco - Wait or change   | 62.194.187.xxx | 2008-03-17 21:09:53
Gravatar image Hi,

You can wait for a native J! 1.5 version, or try altering the .PHP file yourself ;).

Keep an eye open for updates.
Alex - patience is a virtue   | 90.203.127.xxx | 2008-03-17 21:20:28
Gravatar image B) heh ok thanks - ill wait as wouldnt even know where to start with the php.
obelix - JCE Mambot too simple   | 89.214.73.xxx | 2008-04-06 03:48:57
Gravatar image Hi there although I appreciate the JCE Plugin is there not a way to make it a bit more ºautomaticº?
So one adds the image and then the plugin surrounds the selected image (url html code) with the basic syntax?
It would make things a lot simpler for my normal type of client.
OR perhaps a mambot version that will overide every image in a category/Section?
Thanks
Marco - Working on it!   | 84.80.20.xxx | 2008-04-06 14:25:16
Gravatar image Hi there,

I'm already working on a version that does that. The only problem is that I'm pretty short on time. But it'll come, keep on checking this article for updates :).

Greetings,,,
George - No effect   | 81.155.193.xxx | 2008-04-12 09:42:01
Gravatar image Hi Marco,

Nice plugin, I love it ... if only I could get it work. I have tried everything ... I'm using J 1.0.15 and I have done everything as stated in your instructions. Still ... no effect :( .

Help would be much appreciated. Here is the link:
http://bath-kaposvar.org/index.php/Membership.html and the main page as well.

Thanks,
George
Marco - JS Conflict   | 62.194.187.xxx | 2008-04-12 09:45:06
Gravatar image Probably Prototype from your template is conflicting with the plugin. Try switching to another template (to test) that doesn't have their own .JS files.

If this didn't help, please contact me through the contact form and I'll try to help you over there.

Greetings,
George - Thanks   | 81.155.193.xxx | 2008-04-12 09:49:50
Gravatar image Hi Marco,

Wow, that's what I call fast reply!

You're right. It is my template, why it's not working.

I'll try to work my way around it.

Cheers,
George
Jesus - mfSyntaxHelper don't work   | 213.98.243.xxx | 2008-04-16 11:02:30
Gravatar image Helo, first sorry my bad english.
I installed your mambot and mfsyntaxhelper but this don't work, where i can see this help?
Marco - JS Conflict?   | 145.74.182.xxx | 2008-04-16 11:15:46
Gravatar image Do you have other .JS files loaded by your website? They can conflict with reflex.js .

If this didn't solve the problem, please use the contact form and contact me to get some private help.
alfi - mfrefllex + virtuemart   | 125.160.98.xxx | 2008-04-23 01:16:01
Gravatar image Hi, I got a small probs here,

how to get it work with virtuemart browse page?
Read more...
Name:
Email:
  Gravatar enabled.
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 
Security Image
Please input the anti-spam code that you can read in the image.
Unsubscribe from e-mail notifications.
 
< Prev   Next >
Subscribe
Navigation