Hi Deciphered,

First of all, thank you for this module.

Second of all, pardon my ignorance but I'm having a hard time figuring out how to get the content part working.

I'll go step-by-step what I did and hopefully someone will find this info useful as well:

1) Downloaded and enabled the "Mobile Codes" module (../sites/all/modules/mobile_codes/)
2) I set up a new input format: (* see image filter-1.jpg)

Admin > Site Configuration > Input formats > Add input format >
../admin/settings/filters/add

3) Configured the new Input Format (Mobile Code) (* see image filter-2.jpg)

Mobile Code Type:
Datamatrix

Data Type:
Text

Mobile Code Size:
Medium

Convert URLs to Tiny URLs (left unchecked)

4) Saved the new input format

5) ran update.php

6) Create a new "Story", selected "Mobile Code" input format and typed in the code as indicated by instructions
(* see image view-1.jpg)

[mobilecode type="dm" data="text" size="medium" name="tester" tinyurl="0"]content[/mobilecode]

7) Viewed my newly created "Story page" (* see image view-2.jpg)

and indeed, the mobile code was generated

8) Edited the CONTENT section of the code and changed it from:

[mobilecode type="dm" data="text" size="medium" name="tester" tinyurl="0"]content[/mobilecode]

to

[mobilecode type="dm" data="text" size="medium" name="tester" tinyurl="0"]content[tester content]

and saved it

9) Viewed my newly created "Story page" (* see image view-4.jpg)

But the code is displayed as text and not a mobile code...

So I'm wondering whether the syntax I'm using for content[] is wrong or if I'm missing something here.

Thanks in advance for any tips!

CommentFileSizeAuthor
#2 view-1.jpg77.92 KBvasheck
#2 view-2.jpg25.1 KBvasheck
#2 view-3.jpg74.88 KBvasheck
#2 view-4.jpg32.34 KBvasheck
#1 filter-1.jpg65.29 KBvasheck
#1 filter-2.jpg62.16 KBvasheck

Comments

vasheck’s picture

StatusFileSize
new62.16 KB
new65.29 KB

oops, seems like the images that I tried to attach didn't upload...

vasheck’s picture

StatusFileSize
new32.34 KB
new74.88 KB
new25.1 KB
new77.92 KB
vasheck’s picture

Oops, the answer was right in my face but I just didn't see it...

so if someone's wondering, this is the answer:

[mobilecode type="dm" data="text" size="medium" name="tester" tinyurl="0"]content[/mobilecode]

should have been changed to

[mobilecode type="dm" data="text" size="medium" name="tester" tinyurl="0"]tester - content comes here[/mobilecode]
vasheck’s picture

Status: Active » Closed (fixed)

I guess I can close this issue now.

deciphered’s picture

Glad I could help :)

newToo’s picture

I followed these instructions but no code image is displayed, only the red "x" where the image is suppose to be. On the server a .png image was created but its file size is "0" blank. I've tried reinstalling but none of the code images are created.

deciphered’s picture

It appears that the Nokia Mobilecodes site, the source of the codes, is dead... will look into a solution when I have a chance.

canadrian’s picture

The Nokia site appears to be back up, though really, really slow.

If you have to abandon Nokia, will the generator at TECISoftware work? Their site is http://www.tec-it.com/

deciphered’s picture

I intend to release a new version when I have some time that is completely modular, allowing for multiple different mobile code generators, including local libraries. So yes, chances are that generator will be an option, if not by default, easily added by users.

But I haven't had much time of late.

Cheers,
Deciphered.

deciphered’s picture

Just a note, work on 2.x has begun and you can now define mobile code providers, including the ability to use PHP QR Code to generate your own code.

Current development is at http://github.com/Decipher/mobile_codes