First thanks for this great module. Have been used days finding the right one for Drupal 6 - not easy but ended using this. I have one question that I hope some one could help me with, please. I'm NOT a programmer though so can't see whats wrong or if it's NOT possible?

Additional script:

a2a_num_services = 4;

a2a_config.templates = {
    email: {
        subject: "Check this out for '#findtoilet': ${title}",
        body: "Click the link:\n${link}"
    }
};

a2a_config.templates = {
twitter: {
"#findtoilet ${title} ${link}"
    }
};

Comments

tinem created an issue. See original summary.

tinem’s picture

Issue summary: View changes
tinem’s picture

I have changed some of the code to and have figure out the first is functioning and last but not in the middle. If I change the order for the 2 last code again the first and last is functioning, so must me something wrong with my code?

a2a_num_services = 4;

a2a_config.templates = {
twitter:"#findtoilet ${title} ${link}"
};

a2a_config.templates = {
    email: {
        subject: "Check this out for '#findtoilet': ${title}",
        body: "Click the link:\n${link}"
    }
};
micropat’s picture

Category: Bug report » Support request
Priority: Critical » Normal
Status: Active » Closed (fixed)

I have one question that I hope some one could help me with, please.

Do not label issues as critical bug reports when you're requesting support.

One way to write the JavaScript syntax for multiple AddToAny templates, etc.:

a2a_config.num_services = 4;

a2a_config.templates = {
    twitter: "#findtoilet ${title} ${link}",
    email: {
        subject: "Check this out for '#findtoilet': ${title}",
        body: "Click the link:\n${link}"
    }
};
tinem’s picture

Hej micropat for helping me and sorry for reporting the issue the wrong way. Will try to do it better next time.
Do you think I have made it OK http://beta.findtoilet.dk/content/under-amager-torv-ved-h%C3%B8jbro-plads or can I do it even better, please?

micropat’s picture

Perfect!