Hi all! I got an idea. Would it be possibile to add a custom format using Colorbox and Mobile Codes modules? So that phone numbers are displayed as text links which lead to a colorbox popup with a QR code of the phone number itself (generated by the Mobile Codes module). Would it be possibile at module level?

Comments

ckng’s picture

Category: feature » support
Status: Active » Closed (fixed)

I believe it is possible.
You can try to use Custom Formatters to create the needed link to Mobile Codes (assuming the link will generate the QR code) and configure Colorbox to trigger on that link.

cesareaugusto’s picture

You can try to use Custom Formatters to create the needed link to Mobile Codes (assuming the link will generate the QR code) and configure Colorbox to trigger on that link.

I tried this way but I couldn't figure out how (somhow hard to get preloaded QR codes). I was wondering whether it would be implemented at module level, as a defalut or selectable formatter.

ckng’s picture

If you cannot get it to work using Custom Formatters, I doubt you can implement it at module level, because they are practically the same.

javdich’s picture

Can this be done without a colorbox link? So the QR code is displayed directly on the page instead of through a link?

ckng’s picture

Yes, refer to mobile codes custom formatters example, just call the theme('mobilecode' ...

javdich’s picture

Hmmm... if your referring to the built in examples in custom formatters, perhaps I'm missing one. The only example formatters I have are: Example: Image (PHP) and Example: Image (HTML + Token). Please let me know if I'm missing something.

Also, if you have the export code, that would be helpful as well...

Thanks for the fast response.