Closed (fixed)
Project:
Subscriptions
Version:
6.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2010 at 03:58 UTC
Updated:
25 Apr 2010 at 23:00 UTC
Hi. I use the subscription module and I am wondering if there is a way to limit the amount of the posts that are showing up in the actual email. I notice that members read the post through their email notification and don't always make it back to the site - can I either remove the text and leave some basic notification that a post has been posted, or shorten the amount of comment included in the email?
Any help is greatly appreciated!
Thank you!
Melissa
http://www.thewomensnest.com
http://www.megansway.com
Comments
Comment #1
salvisYou can include or remove any element. Shortening is not supported though. Go to admin/build/mail-edit.
Comment #2
happythoughts commentedWithin the Subscriptions module, there is a Mail-edit LINK, but it just takes me back to Drupal.
What I'm trying to do is make it so that only part of the post or just notification of a post show up.
Here's a bit more specifics - Currently we receive notifications that look like this (below) and WHAT I'D LIKE TO DO - is to remove the entire middle (new comment) part from the notification, or even just shorten it so it won't show the whole post. Is either possible?:
Greetings, thinkhappy.
|
| Your subscription on The Women's Nest
| notifies you of new comments:
|
| Category: March '10 Healthy Challenge
| Author: thinkhappy
| Contact: http://thewomensnest.com/xxxx/contact
| Title: March 2010 Healthy Chalenge!
| Link: http://thewomensnest.com/content/march_2010_healthy_chalenge
| Direct unsubscribe link (content type):
|
http://thewomensnest.com/s/del/nxxxxxx
| --------------------------------------------------------------------
|New comment:
| Author: thinkhappy
| Title: Fruity Girls!
(THIS IS THE PART I WANT TO REMOVE - THE ACTUAL POST ITSELF or MOST OF IT)
Actual text of the comment is posted here - I changed it for the Drupal page....
| Link:
http://thewomensnest.com/content/march_xxxxx
| --------------------------------------------------------------------
| This is an automated message. Please do NOT reply to the sender address!
| To manage your subscriptions go to
| http://thewomensnest.com/xxxxxsubscriptions
Comment #3
salvisYes, as I said, go to http://example.com/admin/build/mail-edit where you'll find a list of all the templates that you can customize. The comment template is at http://example.com/admin/build/mail-edit/subscriptions_content_node-nid/en
If you haven't installed Mail Editor yet, then the link takes you to where you can download it. It should be self-explaining...
Comment #4
happythoughts commentedI'm sorry - those links are not working - they send me to a NOT FOUND error code page. Thank you, though. We'll follow the mail-edit screen and try to go from there.
Comment #5
salvisHave you installed http://drupal.org/project/mail_edit ?
Comment #6
gregarios commentedHave you replaced the
http://example.compart of the links with your own domain?Comment #7
happythoughts commentedThank you. Apparently I don't have the mail-edit portion installed. Someone else installed the subscriptions for me. If I upload the mail_edit portion, can you tell me if I have to upload it to a certain folder? And do I have to do some type of configuration to then make it work with the subscription module?
Gregarios - I cannot believe I didn't see that! Nope! User error!! I went to the correct link and I do not see a list of templates, which is why I assume that I don't have it installed.
Comment #8
gregarios commentedI'm afraid 'happy thoughts' aren't going to get very far unless this is read and understood well:
http://drupal.org/getting-started/install-contrib
:-)
Comment #9
happythoughts commentedYes, thank you. I have downloaded and used modules before, but it's been months and I couldn't remember where they should go. Thank you for the link!
And, btw, if you continually have happy thoughts, then when issues like this arise, they don't get you down. It's easier to move on, get help, figure them out, then go on to the next one:-)
Thank you again for all of the help and for the helpful links. I really appreciate your time!
Comment #10
happythoughts commentedI use 6.x and there's only a 6.x DEV module. Is it okay to download a DEV module or should I wait until it's been tested and out of DEV mode?
Comment #11
gregarios commentedThe answer is somewhat subjective... it mostly depends on how professional (or non-professional) and how skilled the maintainer for the module is. I can't vouch for Mail Edit module's, but I had to drop it quite a while ago because I couldn't get any version of it to work with HTML email through Mime Mail module. I just modified the main Subscriptions mail template and have been using that instead. (I wouldn't recommend that for a new user though)
Comment #12
salvisUnfortunately, many contributed modules never get enough user feedback for the maintainer to properly assess how well it works.
At the bottom of the page there's a link to usage statistics. There you can see that there are over 1000 sites that have Mail Editor 6.x-1.x-dev installed. There is no way to tell which exact -dev version they are using, but with that many sites using it and only a few open bug reports, you can assume that the module doesn't bite.
I've been using Mail Editor for many years along with Subscriptions and I happened to become co-maintainer of it a few months ago, and I can assure you that it works fine with Subscriptions, at least as long as you don't try to create HTML mails with it.
@gregarios: Do we still have an open issue regarding HTML mail?
Comment #13
happythoughts commentedThank you. I'm going to try to do it today.
Many thanks for all of your time and explanations.
Comment #14
gregarios commentedI had an issue open with Mail Editor, but it was well over 15 months ago, and it seems to have been closed, since I cannot find it now.
Comment #15
happythoughts commentedI have successfully uploaded the mail-edit and see the templates! YEAH!
But I have another question. I am trying to figure out how to move the comment link above the unsubscribe link on one type and to remove the body of the comment from the second type. It's confusing to have the unsubscribe link above the actual comment link.
Can anyone advise me as to where that particular part is?
HERE'S EXAMPLE #1 (I'd like to move everything from under ------- (new comment, author, title, link) to above the ------- so it's above the Unsubscribe link.
Greetings, thinkhappy.|| Your subscription on The Women's Nest| notifies you of new comments:|| Category: Daily Dose of Exercise Motivation & Tips| Author: thinkhappy| Contact: http://thewomensnest.com/xxxxxxxxxxx/contact| Title: 3/15/10 Mon DAILY DOSE of Exercise Motivation| Link: http://thewomensnest.com/content/31510_mon_daily_xxxxxxxxxxxxxxx| Direct unsubscribe link (category):| http://thewomensnest.com/s/del/xxxxxxxxxxxxxxxxxxxx1| --------------------------------------------------------------------
| New comment: | Author: thinkhappy | Title: Sleep.... | Link: http://thewomensnest.com/content/31510_mon_daily_dose_xxxxxxxxxxxxxxxxxx
|
HERE's EXAMPLE #2 (too much of a teaser - I'd like to keep the title and remove the teaser):
Greetings, thinkhappy.|| Your subscription on The Women's Nest| notifies you of a new post:|| Category: Daily Dose of Exercise Motivation & Tips| Author: thinkhappy| Contact: http://thewomensnest.com/xxxxx/contact| Title: 3/16/10 Tues DAILY DOSE of Exercise Motivation Thought I'd share this article from Greg Landry. Hope it helps! I knowI really liked some of these and every bit of motivation is helpful when youare waxing and waning: Top 7 Keys To Motivation To Exercise: | Link: http://thewomensnest.com/content/31610_tues_daily_dosexxxxxxx| Direct unsubscribe link (category):| http://thewomensnest.com/s/del/node/xxxxxxxxxxxxxxxxx
Thanks so much!!
Comment #16
salvisThere's only one comment template shared by all content types. You cannot make the comments different depending on content type.
Note: On this site, use <code>
</code>
to get back to normal text. Also, use the [Preview] button to verify that your post really appears as intended.
Comment #17
happythoughts commentedSalvis, sorry about not previewing the post.
What the above post refers to are templates for the subscriptions, not the actual comment itself.
I can't figure out which template effects the New Topics and/or New Comments. I assumed it was subscriptions_content_node-nid for comments and subscriptions_content_node-type-forum for topics, so I edited them, but now some comments look like the example below, and some look different. I also thought it might be handled by subscriptions_taxonomy_node-tid, so I edited that one, too - but now I'm receiving three different types of email subscriptions (user error, I know, but live and learn, right?).
I'm trying to make the subscription notification contain only the following, and in the following order:
Greetings, thinkhappy.
|
| Your subscription on The Women's Nest
| notifies you of a new post:
|
| Category: Family Members
| Author: thinkhappy
| Contact: http://thewomensnest.com/xxxxx/contact
| Title: This is so nice!
BRIEF TEASER HERE
| Link: http://thewomensnest.com/content/so_nice
| Direct unsubscribe link (category):
|
http://thewomensnest.com/s/xxxxxxxxxxxxxxxxxxxxxxxxxxxx
| --------------------------------------------------------------------
| This is an automated message. Please do NOT reply to the sender address!
| To manage your subscriptions go to
| http://thewomensnest.com/xxxxx/subscriptions
Comment #18
salvisGo to admin/settings/subscriptions/settings. At the bottom, turn on "Append the mailkey to every notification". This will help you figure out which template is used for what.
Comment #19
happythoughts commentedMany thanks!
Comment #20
happythoughts commentedHere's one for you - This is the mailkey on two subscriptions, but the content comes up different on the two:
Mailkey: subscriptions_taxonomy_node-tid/en
Here's how they differ:
One has the Unsubscribe Link under the comment, and one has it before.
The one with the comment reads, "New comment" and includes the entire comment, while the one with the teaser just has the teaser after the title.
Any ideas why they differ with the same Mailkey?
Also, the forum subscription is posting as one long thread with a "l" between each heading instead of starting each on a new line. I compared the code with the ones that are being sent correctly, and there's no difference that I can see. Any help as to how I can fix that? I compared the forum subs coding to that of the node-tid and didn't see a difference.
Comment #21
salvisNo, not really. Maybe one has a comment and the other doesn't? At this point it's getting difficult to help without being able to experiment and seeing the result.
You seem to contradict yourself. First you imply that both have a comment, and then "the one with the comment"...
I'd really have to see it to understand what you mean. It sounds like you have digest enabled, otherwise you wouldn't see more than one subject/title line (that's probably what you mean with "heading") within one email message.
Try to focus one one issue at a time and to make only one change at a time, so you don't lose track of what you're doing.
Comment #22
happythoughts commentedThat's a great suggestion, and perhaps I should clarify.
I am receiving subscriptions for the Mailkey: subscriptions_taxonomy_node-tid/en.
Sometimes it shows a full comment and sometimes it just shows a teaser of the actual comment (in both instances, the post has a comment). In the first instance, below, the comment shows up under the "NEW COMMENT" toward the bottom of the subscription email, and in the second it shows up as a teaser below the header, "TITLE".
Two subscriptions, both with titles and comments, and both different. I'd like to fix them to appear like the second example, where it shows just the teaser below the title.
This is confusing to explain, and I tried to post the difference below. I would love to email the actual subscription to someone to see what I'm trying to say, if you'd be willing to receive the emails.
I hope this is more clear. Thank you so much. If I'm able to fix this, then perhaps I can post about the way the forums subscriptions are showing up. Sorry it has been so confusing. I really appreciate the help.
Comment #23
salvisYou seem to be slightly confused about the terminology. The initial post in a topic/thread is a node (of type forum topic). When a user clicks "Add new comment" (on the node) or "reply" (on a comment), then s/he adds a comment.
This is a node, it uses the subscriptions_taxonomy_node-tid/en template. It's the initial piece of content in a thread.
This notification is for a comment. It also uses the subscriptions_taxonomy_node-tid/en template for displaying parts of the node to which the comment belongs, to give the user some context.
By default, that template has the following
This means the body of the node is included only if the node is new or updated (not old, as is the case when we notify about new comments to a node that was already advertised).
[Please see the README.txt file for an explanation of the
{{condition?then:else}}syntax! You need to understand this!]Then it adds the link to the node, then a dashed line, then
the template includes comments (the
!commentsvariable) and another dashed line, if the variable!has_new_commentsequals 1.The content of the
!commentsvariable is formatted using the comment template on the admin/build/mail-edit/subscriptions_content_node-nid/en page (which by default includes the entire comment body and a link to the comment). This is the only template that includes a comment template (additional entry fields on the page), and the latter is used for all Subscriptions templates that include the !comments variable.Something is broken here. The
<p>and</p>shouldn't be here and the lines shouldn't be wrapped, of course. I'm puzzled about what is going on — out of the couple thousand sites using Subscriptions I can't remember anyone else reporting this problem...Comment #24
happythoughts commentedThank you for the explanation. I'll read what you suggested and try to digest it so I can understand it better.
I am just as baffled but would like to fix it.
Comment #25
happythoughts commentedDear Salvis,
Thank you for all of your explanations on the Drupal Subscriptions Mail_edit module. I have read all of the data that you suggested and have done my best to process it. I understand now my error in terminology as well as what the correct context of the subscriptions_taxonomy_node-tid/en template should contain.
Would you be willing to just look at the code I pasted below and see if you can easily see what is causing the error with the subscriptions? I'm sure it's my fault. When I first tried to remove the body of the node, I probably deleted something that is causing the
<p></p>to appear and the lines to run together, but since I don't know what the original code looked like, I'm not sure of the error I made.If you cannot spot it easily, then I'll reinstall the module and see if that works. I am very thankful for your help and really love the whole subscription module. It is really beneficial to my site.
| Greetings, !name. | | Your subscription on !site | notifies you of {{!is_new==0?:a new post: }}{{!is_updated==0?:an updated post: }}{{!is_old==0?:new comments: }}| {{!is_published==1?:| ***** This post is unpublished! ***** }}{{!term_name==!term_name?:| Category: !term_name }}{{!sender_name==!sender_name?:| Author: !sender_name }}{{!sender_has_contact_page==0?:| Contact: !sender_contact_page }}| Title: !title {{!is_old==1?: !teaser }}| Link: !url | Direct unsubscribe link (!subs_type): | !unsubscribe_url {{!has_new_comments==1?| -------------------------------------------------------------------- !comments:}}| -------------------------------------------------------------------- | This is an automated message. Please do NOT reply to the sender address! | To manage your subscriptions go to | !manage_urlMany thanks, and yes, now I have learned that before trying to modify anything I should copy and paste the original code into a document for when I mess it up. It's all a learning process. Thank you.
Melissa
Comment #26
salvisThank you for your kind words, Melissa. I like your site and admire the effort and dedication you put into it. Your site encourages women to get on-line and become active — that's a GOOD THING! As a father of two daughters, one of whom is studying Computer Science, I have a weakness for women who dare to venture into technology. I wish we had more of you. :-)
I wonder how you managed to post as you did in #25. The gray background seems to indicate that you did use <code> as I suggested in #16, yet this didn't result in a block with a border, and the lines wrapped. Try putting the <code> and </code> tags on lines of their own... and get used to Preview before Save whenever you post something with non-trivial formatting.
Comment #27
happythoughts commentedThanks, Salvis. I try to so as much as I can myself for the site, but as you can see from this issue, sometimes it causes more issues than good:-)
I actually did Preview before Save, but I didn't realize that the box was missing until you mentioned it (sorry).
Did you happen to notice anything in that coding that stood out and screamed that it was incorrect? Here it is with the proper box:-)
The line wrapping is exactly how the code looks in my subscriptions_taxonomy_node-tid/en template.
(Wahoo! Just previewed it and it worked! Baby steps...)
Comment #28
salvisOuch, this shouldn't be wrapped, of course. It wasn't the lack of the box that bothered me, but I thought the wrapping was produced by your way of posting (which produced an unusual result (no box)). If the lines really have all run together in your Mail Editor, then it certainly won't work correctly.
The vertical bars are supposed to start new lines to help the receiver distinguish the form text from the text in the posting. The default subscriptions_content_node-type-* templates are identical for all content types, so you can take any one that you haven't touched yet.
Here's what it should look like:
Be sure not to have any spaces at the ends of the lines, because that can affect how the mail client displays the message.
Learning where you can touch/push/pull and where you shouldn't, is a great challenge. Over time you start doing the right thing intuitively, but only experience can teach you this. Women are often afraid to experiment and are more easily frustrated when something goes wrong, because they tend to think it was their fault. Of course this is not true. Making mistakes and learning from them is the normal way to gain experience.
Comment #29
happythoughts commentedMany thanks, Savlis. Luckily, I grew up with six brothers and have six kids (5 of which are male), so I don't have the fear I probably should with technology. It backfires, though (not being too worried about messing up) because with trial and error, there can be a LOT of errors.
I actually really enjoy learning to do all of this stuff. When I started TWN I used a php board and it was simple. Moving to Drupal was a huge step, and if you look at my issues over the past two years, they're have been many. I might mess up a lot but I think the challenge of it is what makes it fun, and since my site is free and I earn no income from it, we're often left in the red from development/maintenance costs - so in the long run, the more I can do on my own the better!
I deleted the mail_edit file and re-uploaded it to start fresh. It was too hard to keep track of what I had and hadn't done. I now know to copy/paste originals:-)
I would like to remove the body of the node (when updated with replies) and include a teaser instead in the subscription notification.
In post #23 you mentioned that by default, the template subscriptions_taxonomy_node-tid/en has:
But I am looking in the template and I don't see that to remove it. What am I missing?
Comment #30
salvis!body is for nodes only, not for comments.
If a node has one or more comments that need to be advertised, then those are preformatted into a list and this list is inserted via the !comments variable.
Open the "Replacement patterns" fieldset and locate the !comment variable at the bottom. You'll see a link to admin/build/mail-edit/subscriptions_content_node-nid/en#edit-comment-body — that's where you define the look of the comments, and it's shared among all subscription / content-type types.
The text of the comment is inserted via the !comment_text variable. Unfortunately for your plan, comments don't have the concept of teasers, so the only easy solution is to leave !comment_text away completely.
Comment #31
happythoughts commentedThank you, Salvis.
Comment #32
happythoughts commentedI found the replacement pattern, but am confused as to the link that I should go to to in order to remove the !comment_text.
I do see where it says "Comment Body" in the subscription_content_node-nid but I assume that's not where I remove it.
I see this above the "Replacement Patterns":
"The ID for excluding or including this element is: edit-comment-body - the path is: admin/build/mail-edit/subscriptions_content_node-nid/en"
I understand how to do the path, but not the element. When I add "edit-comment-body" to the end of the path I end up on the same subscription edit page (I tried it with "/", "_", and with no separation between "en" and "edit-comment body").
I'm probably missing something very simple here, and I'm sorry for frustrating you.
One last thing - just to confirm before I do it.
If I want to delete the author contact info, I just delete the following, right?
Comment #33
happythoughts commentedSalvis,
Something is very wrong and I'm sure it's my fault but have no clue why.
I have uninstalled the Mail Editor module three times and then reinstalled it each time. I uninstalled in admin/build/modules/uninstall.
There must be some reserve memory data somewhere because even with the fresh installs, here is how my subs are reading (exactly w/wrapping of lines and everything):
What am I missing? I don't understand why when I disable, uninstall, then reinstall and enable the notifications aren't coming up as the standard templates. I'm sure I can do this, but there's a missing link somewhere in my process.
Comment #34
salvisYes it is. Why not? Why don't you just try it?
What??? I have no idea where that sentence in quotes is coming from. The path of the page is admin/build/mail-edit/subscriptions_content_node-nid/en . You can append a # (hash sign) followed by an ID, edit-comment-body in this case, to scroll to a certain position within that page, exactly as I typed it: admin/build/mail-edit/subscriptions_content_node-nid/en#edit-comment-body . If that's a source of confusion then forget that I mentioned it. Just locate the Comment body on that page — that's it.
Yes.
Hmm, your #33 looks worse than #22 did. But on the Mail Editor pages the template looks like #28, no? Or does it run together, too? Check whether you have spaces at the ends of the lines. There shouldn't be any, i.e. when you position the cursor after the last visible character and you hit the CursorRight key, the cursor should go to the beginning of the next line.
I'm beginning to think that you either have another module installed that messes with your outgoing mail, or your mail client (the program on your PC that you use for displaying the notification mails) is weird.
What version of Subscriptions are you using? You selected 6.x-1.0??? You should always use the latest version, of course...
If you have a way to look at your database, then you should be able to find the mail_edit and mail_edit_registry tables. When you uninstall Mail Editor, these tables should be gone. Try out what you get from Subscriptions without Mail Editor. Then put it back and try again.
Comment #35
happythoughts commentedNo, my Mail Edit template (newly installed) doesn't look like #22, it looks like #27.
I'm going to try what you said and uninstall Mail Editor and see what my subs look like without it.
I want to check the registry tables - where would I find them? I'm on Filezilla when I delete or upload a file to my host's server.
Thank you again, Salvis, for all of your time.
Comment #36
salvisYou need local help for that, I can't do this remotely.
I hope you don't use your live site for experimenting — see http://drupal.org/node/22282
Do all of your Subscriptions templates look like #27? If you have one that is still intact, then copy and paste it over the broken ones.
What's your version of Subscriptions?
Comment #37
happythoughts commentedThis is what the subscription notifications look like when I delete the Mail Editor module. Is it correct to begin with?:
Comment #38
salvisYes, that's what it should look like.
(Don't overlook my #36 above)
Comment #39
happythoughts commentedSorry, my subscription is 6.x-1.0.
Darn it! I knew I forgot a step! I should be testing on my dev site. I haven't done it in so long that I forgot. Thank you for the reminder. Unfortunately, I had just uploaded the Mail Editor again. I'll post what the notification looks like as soon as I get it, and from here on out I'll try this on my dev site, not the live one.
Comment #40
happythoughts commentedOkay, I uninstalled the mail editor module from my site, then deleted it from my desktop where I had downloaded it. I re-downloaded it and reuploaded it and voila - now we have the typical template! YES!!
Here's the new subscription notification:
If I am understanding correctly how I can fix what is in the notification - I make the following changes to the subscriptions_taxonomy_node-tid/en template:
To remove the content of the comment I delete the following in the Comment Body:
To remove the contact author info, I delete the following:
To add a blank line between the URL and the unsubscribe URL I would add:
Then the only other question, and please forgive me if I missed it above - Is it possible for the node to show a shorter teaser? If so, what exactly should I do? If not, no sweat:-)
Thank you for not giving up on me!!
Comment #41
salvisYou really need to update to the current version, otherwise you're wasting my time and your time!
The vertical bar characters (|) don't carry any special meaning. I like to have them to distinguish the "preprinted" text from the "hand-written" one. Newlines appear wherever you put them in the template, as do vertical bars.
You still have two lines run together (fifth and second from the bottom). I'm at a loss to say why this happens to you. Maybe those are bugs in the obsolete Subscriptions version...
Yes, except for it's on admin/build/mail-edit/subscriptions_content_node-nid/en, if you have the current version.
Yes, except for the line-wrapping is as in #28, if you have the current version.
Comment #42
happythoughts commentedThanks, Salvis.
I didn't realize the Subscriptions module wasn't the current version. There was apparently an update days after the install of the version I have installed.
I am using the most current version of Mail Editor.
I have now installed the current version of Subscriptions and here is how the notification looks - It's correct, right? So I can try to make my changes?:
Comment #43
happythoughts commentedWell Salvis, it looks like making those changes is not as simple as I had hoped.
After reinstalling both modules, I made the two changes noted in post #31, and this is what I have received - there are no extra spaces in the template. Perhaps I should give up trying to remove the comments and author contact info.
Any further ideas?
Comment #44
salvis6.x-1.1 was published on September 28, 2009, 6.x-1.2 on February 17.
You're saying "there are no extra spaces in the template," but your post shows the contrary:
The marked spaces should not be there.
I'm out of ideas about what is going wrong for you.
When things just won't work, then try to take the smallest possible steps and verify the result after each step:
This way you'll find out where things go wrong...
Comment #45
happythoughts commentedI wasn't the person who originally installed Subscriptions, and when I went to look at them (with these postings), this is what I saw (below), so I assumed they were posted 11 days apart:
I see where you are pointing to the extra spaces. I didn't realize those were empty spaces. That text was not modified at all, so I assumed they were supposed to be there. I have noticed that the way you've posted the templates in #28 is not how they ever look in my template area. No matter how many times I uninstall and then reinstall they always appear like #27 - all one paragraph.
Thank you for your help. I'm not sure I can fix this one. The last change I tried to make was simply removing !comment_text and even that made the lines run together.
I want to thank you, Salvis. Your support has been very kind and very helpful. This may be one area that I just have to leave alone because I just can't seem to get it right and I'm afraid I'll do something irreparable. I'm not afraid of the challenge, but I've tried for several hours, followed your instructions, and still it is not working. I realize it's not you or your instructions that are lacking- they're very clear. It's surely something I've done incorrectly without being able to pinpoint just what it's been.
I appreciate your efforts with me in any case. Subscriptions is a great module and I'm sure Mail Editor is as well. But it looks like it's something I'll have to hire someone else to revise for me.
Many thanks:-) And good luck to your daughters!
Comment #46
happythoughts commentedSalis,
I had to give this one more try. It's been bugging me.
I changed just one element, as you said to, and immediately, although the template doesn't look like it changes at all when I save it, the notification comes as one wrapping line (all info included) and also has extra space at the end of sentences. I then went in and deleted the extra spaces in the template, and still it wraps.
So it appears that just by entering the Template edit screen and saving, spaces are added automatically. Endless cycle. Any idea what would cause that?
Also, FYI - my template always, from the moment they are installed, look like #27 not #28 no matter how many times I uninstall and reinstall.
What do you think?
Comment #47
happythoughts commentedIssue closed -
Salvis, I did it!
Check out my subs:
The only issue now is that "New" falls on a different line than "comment details:" but I'm not going to try to fix that and I'll tell you why.
Every time I go into any template it wraps all the words. The only way to make it appear as your #28 appears is to go into Source and manually do it - then NOT click Source again, but click Save.
Any change requires me to go back in and restructure (EVERY TIME) the Source because the code wraps into one line (EVERY TIME). It was a painful and annoying process and I uninstalled and reinstalled the Sub and the M_E modules 7 times, and each time it did the same thing. Two times it stopped producing the title and url at all, too. So it may just be my flukey site or something, but I didn't let it beat me.
Goes to show you, Salis, women can do technical work:-) It took me days and days and hours and hours, but I'm satisfied, or at least mostly-and unwilling to do it again to fix the "New".
Thanks for a great module. I do love it!! Worth the work!
Comment #48
salvisOh, congratulations!
This is the type of thing that's pretty much impossible to fix remotely. I suspect that you're doing something in your workflow that seems normal to you but that I never do. Or you're using some tool (an odd browser or an odd browser add-on) that somehow interferes.
I don't understand what you mean with "go into Source and manually do it - then NOT click Source again, but click Save." I'm not aware of any tool that let's you "go into Source and manually do it" — it may be precisely that tool (the one that offers you the possibility to "click Source") that is causing all the trouble, and probably more, down the road...
I just happen to realize that we have buttons like [Remove en translation] in Mail Editor. These should let you remove any one translation (and get back the original template including all the newlines and without any extraneous spaces) at any time without having to uninstall anything. I'm sorry I didn't think of that before.
Comment #49
happythoughts commentedThat's okay, Salvis. We live and learn:-)
On the edit bar, it says "Source", and when you click it, you can see the codes for line breaks, etc. That's where I had to do the editing. If I did it in the regular edit box, it didn't work. The code remains all run together in the template, but now my notifications are great.
I use Firefox with no add ons. It was pretty frustrating b/c the way I understand (from above) that editing should work, is just to remove whatever code (ex: !title) you want and replace it with another. But any change made the notifications run together. I'm sure something ia flippy in my site and making it not work, but honestly, now that it's okay, I'm not going back in to try anything else. I'm just happy it worked, and I couldn't have done it without your help.
Thanks for hanging in there!
Comment #50
gregarios commentedIf the textarea has a button for "source" then you're default configuration has you writing in an HTML editor. If you put line-breaks in the box in your code view, they will not show up in normal view because HTML shows line-breaks as spaces. This is probably why your template looks strange and "all run together" when you view it in your normal editor.
If your subscription emails are all plaintext emails, then you want to be editing and viewing your template only in "source" or plaintext mode.
Comment #51
salvisYou're welcome.
My Firefox does NOT have an edit bar. When I right-click in the toolbar area, I see "Menu Bar", "Navigation Toolbar", etc. but no "Edit bar".
Get rid of that piece of software that has caused us to lose a couple of hours, and the world will be a better place!
---
It just dawned on me that you may have some kind of WYSIWYG editor module installed on your site that should provide formatting capabilities when you edit a node. Such modules should be configured in such a way that they NEVER affect any textareas under admin, or you'll always have problems.
I'd even say it's a bug of that module, if it doesn't leave alone admin textareas by default.
Comment #52
happythoughts commentedSalvis,
It's not a firefox add on, it's the WYSIWYG editor that I use (where I click Source). It doesn't seem to make changes in my admin areas, and this is the first real issue I've had with editing. Maybe it doesn't interface well with your module.
Gregarios,
Thank you. Yes, I figured that out. I only edited in Source mode.
Comment #53
salvisWell, if this thing won't even let you put newlines where you need them, then all bets are off. Believe me, this will cause more headaches down the road...
Your textareas under admin should look exactly like the textareas here on drupal.org. If there's anything fancy at all beyond a simple rectangle (and possibly the resize border at the bottom), then you'll never know what the thing does.
If you have Firefox, then maybe you also have NoScript installed. Turning scripts off temporarily for your site might let you disable the beast...
Best wishes!