Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Please help me troubleshot this template...

(Page 1 of 2)
> >
Quote Reply
Please help me troubleshot this template...
Hello, i am working on the "brewt" template set. Just cutting and pasting code into different tables, basically. I am having trouble with the options templates and the compose_html.htm template. Please have a look and let me know if you see the problem.

Please go to: http://www.critterweb.org/mail and login as test@critterweb.org, password=test. Then compose a message in html mode.

Or, if you prefer, i have attached a text version of the compose_html template.

Thanks,

Bob


.:SEAWEAD:.
Quote Reply
Re: [baidarkabob] Please help me troubleshot this template... In reply to
Also, where is the 'initial login" template?

Thanks,

Bob


.:SEAWEAD:.
Quote Reply
Re: [baidarkabob] Please help me troubleshot this template... In reply to
Hey Bob,

You're missing a set of table closing (or possibly opening) tags somewhere in the template. Your best bet is to go through the template again and just make sure all of the <tr> and <td> opening tags have a matching closing tag and the reverse.

~Charlie
Quote Reply
Re: [baidarkabob] Please help me troubleshot this template... In reply to
Hey Bob,

I think it is login.html and login_include.html.

~Charlie

[edit]
It looke like header_noauth_include.htm and footer_noauth_include.html are also used.
[/edit]

Last edited by:

Chaz: Nov 19, 2003, 9:04 AM
Quote Reply
Re: [Chaz] Please help me troubleshot this template... In reply to
Thanks very much for the reply Charlie. Would you believe I know basically nothing about html? Not even what a proper table looks like in the code. I can scan the original brewt template code with Golive and find the errors but I do not know how to fix them. All I am doing is cutting and pasting the code into a new table. I am not sure why the default code works before I place it in my own table structure, but that is what happens. Golive tells me that in the original brewt compose_html template there is a closing end tag missing at line around line 29 and three start tags missing at lines 292, 293, 294. Because i do not know how to write html I am going to try re-recreating the table 'container' (drag and dropperUnsure) and then moving the code to the appropriate corresponding cells to see if that works.

Thanks again.

Bob


.:SEAWEAD:.
Quote Reply
Re: [baidarkabob] Please help me troubleshot this template... In reply to
If you still have problems after doing that, post the new code and I'll go thought it when I have a little more time (later tonight or tomorrow) and see if I can spot the exact problem.

I haven't used Golive but my guess is it's one of those WYSIWYG editors and they like to *fix* your code for you and that doesn't always mix well with templates.

~Charlie
Quote Reply
Re: [Chaz] Please help me troubleshot this template... In reply to
I am going to have to give up for now. I have managed to get the compose_html page to display properly, but only by maintaining the structure of the original broken code. Not sure how I ended up with this bad template code and I am curious if it is the same as everyone elses who is using 2.2? Another problem with this template is that when you send the email a warning message comes up that says there is nothing in the body, yet there is...

Where can i download a fresh version of the compose_html.htm template so i can check it against the one I have?

thanks,

BOb


.:SEAWEAD:.
Quote Reply
Re: [baidarkabob] Please help me troubleshot this template... In reply to
Hi Bob,

You can always check out the default templates in the admin:

http://freemail.gossamer-threads.com/admin-demo/

Jack.
Quote Reply
Re: [Jack] Please help me troubleshot this template... In reply to
Sorry Jack, I am not understanding. Something after the link you posted? Do I have a username and password that allows me in there?

bob


.:SEAWEAD:.
Quote Reply
Re: [baidarkabob] Please help me troubleshot this template... In reply to
Hi Bob,

Sorry, yes, you can use admin/admin as the user/pass to gain entrance. Then just grab the template you need from within the admin panel demo.

Jack.
Quote Reply
Re: [baidarkabob] Please help me troubleshot this template... In reply to
If you've used the admin editor, then all your changes to a template will be stored in the local directory of the template set directory. That means there will be an original copy of the template in the template directory itself.

Adrian
Quote Reply
Re: [brewt] Please help me troubleshot this template... In reply to
Thanks fellas,

I notice that the demo is 2.1.1. Has the template changed much with the release of 2.2? I checked the code in the admin zone of the link you posted and it is also missing a couple table start and end tags - similar to the original code i have with the 2.2 install, but not exact.

Adrian, I am looking at the original compose_html.htm template when I say that there are table tags missing. The missing tags do not seem to result in any malfunctions as long as I do not modify the template so the tables are within yet another table. But this is just what I am trying to do.

Bob


.:SEAWEAD:.

Last edited by:

baidarkabob: Nov 19, 2003, 4:54 PM
Quote Reply
Re: [baidarkabob] Please help me troubleshot this template... In reply to
Yes there were quite a few changes in 2.2 (namely, Draft support). I would make sure that you work off of the 2.2 version of the template.

Adrian
Quote Reply
Re: [brewt] Please help me troubleshot this template... In reply to
Thanks for the reply Adrian. I have attached the unmodified version 2.2 compose.html.htm template and would appreciate if you would check it against your latest version. I scanned it for syntax errors and included the results in a .gif. I do not know how to fix these errors. If you have a error free, clean version of the template i would appreciate a link.

Thanks,

BOb


.:SEAWEAD:.
Quote Reply
Re: [baidarkabob] Please help me troubleshot this template... In reply to
I checked my copy of the template and there doesn't seem to be any missing ending html. I've attached the latest copy of compose_html.htm

Adrian

Last edited by:

brewt: Nov 20, 2003, 10:23 PM
Quote Reply
Re: [brewt] Please help me troubleshot this template... In reply to
I checked the template you attached and my WYSIWYG editor still comes up with the missing tags at line 29, 292,293, and 294 when the syntax scan is done. I also checked online at LINKSCAN with the same results.

I replaced the template I was using with your attachment anyway to see if the message about "no body" would go away but that was not fixed either. I have attached a screen shot if I am not making myself clear.

Thanks again for your help.

Bob


.:SEAWEAD:.

Last edited by:

baidarkabob: Nov 20, 2003, 10:47 PM
Quote Reply
Re: [baidarkabob] Please help me troubleshot this template... In reply to
I have tried this on 3 different computers now and no matter how much text i type in the body of an html message i get a warning that I am about to send a message without anything in the body. Isn't anyone else seeing this with the 2.2 compose_html.htm template?

bob


.:SEAWEAD:.
Quote Reply
Re: [baidarkabob] Please help me troubleshot this template... In reply to
Well, I just tried it on yours and mine and the same thing happens in both. (see pic) A few notes to help debug: 1) After I get the dialog that says "no subject or body...", none of the other buttons (Save Draft, Spell Check) work, only Send. 2) If I'm in text mode and I switch to HTML mode, all works fine.

[edit]FYI: It does this in the Nessa template set too.[/edit]

My guess is the JS check looks for a value in the hidden compose_body field and something in the HTML editor is not updating that field properly.

I guess us beta testers didn't do a good job testing :)

~Charlie

p.s. I went through the template that Adrian posted by hand and found no missing or extra table tags. HomeSite was reporting extra table closing tags also but it must be all the template tags throwing it off.

Last edited by:

Chaz: Nov 21, 2003, 5:17 PM
Quote Reply
Re: [Chaz] Please help me troubleshot this template... In reply to
Thanks for jumping in the same boat with me Charlie.

What did you do to get "utilities" to show up in the folder list? Thats nice.

Here is another question... kinda embarrassing but, I can not find where to set the default template set for new users? I see through setup>misc options i can set the default if no other is found, but I would like to set the default to be brewt unless the user specifies nessa.

Thanks,

BOb


.:SEAWEAD:.
Quote Reply
Re: [baidarkabob] Please help me troubleshot this template... In reply to
Quote:
What did you do to get "utilities" to show up in the folder list? Thats nice.

GMail by default doesn't have the ability to expand or collapse the nested folders. Anup and I found (well, Anup found it) a neat little JavaScript tool that we integrated into the folder display template that allowed for expanding and collapsing of the folders. The Utilities part is just something else that I was playing around with while putting that all together. I can send you the link to the tree script if you're interested. (Hmm, looks like I may have to ask Anup for the link again, I forgot where he found it and I didn't bookmark it :/)

Quote:
Here is another question... kinda embarrassing but, I can not find where to set the default template set for new users? I see through setup>misc options i can set the default if no other is found, but I would like to set the default to be brewt unless the user specifies nessa.

This is set in GMail::NoAuth::Join. Actually, ...::Join calls the GMail->template_set method to get the user template. If there is no $USER object, it looks for a t input value. If that's a bust (or bad in some way), it returns the default that you set above.

For the most part, it will use the default that you set above because that's what will be in the value of t when someone signs up with join.cgi. That is unless you specifically give them a link with a different template set (join.cgi?t=my_template).

~Charlie
Quote Reply
Re: [Chaz] Please help me troubleshot this template... In reply to
Thanks for the explanation Charlie.

I would love to give that javascript a try.

Bob


.:SEAWEAD:.
Quote Reply
Re: [baidarkabob] Please help me troubleshot this template... In reply to
Here is the link to the Tree script: http://www.destroydrop.com/javascripts/tree/.

I'll have to redo the template with the latest version of GMail and send it to you so you can get it working. There were quite a few modifications needed to get it going.

~Charlie
Quote Reply
Re: [Chaz] Please help me troubleshot this template... In reply to
Hi Charlie.

Thanks for that integration wrt nested folders. I was waiting for you to declare it on forum that such a extension of feature in 2.2 *is possible* and thanks for bearing patiently my repeated persistence to do it for me....

Anup
Quote Reply
Re: [anup123] Please help me troubleshot this template... In reply to
CoolWow charlie, that is very kind of you. Thanks, I am standing by.

Bob


.:SEAWEAD:.
Quote Reply
Re: [Chaz] Please help me troubleshot this template... In reply to
That looks neat. I'll have to see if we can get that integrated into Gossamer Mail.

Adrian
> >