Strange problem with IE7

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Strange problem with IE7

Post by treehstn »

I'm not quite sure what to make of this problem. If I view my blog home page in Firefox all is well. When I view it in IE7 the title of the first shown entry is missing. I'm not sure where to even start trying to figure this out! I've been working on building the site using Firefox and did not check it in other browsers until today. Which won't be much help in tracking down when it became a problem!

Here's the home page:

http://www.rummyheads.com/serendipity/
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Looks like you are using a template named /templates/brownpaper/brownpaper/.... not sure why you have the template buried under a second, identically named folder.... but let's move on.

In templates/brownpaper/brownpaper/ there should be a file named entries.tpl. You need to open that file with a text editor, such as notepad or wordpad (NOT MS Word).

Beginning on the 12th line, you will see this:

Code: Select all

{if $dategroup.is_sticky}
<h4 class="serendipity_date">{$CONST.STICKY_POSTINGS}</h3>
{else}
<h4 class="serendipity_date">{$dategroup.date|@formatTime:DATE_FORMAT_ENTRY}</h3>
{/if}
change both instances of /h3 to /h4, in other words, it should look like this:

Code: Select all

{if $dategroup.is_sticky}
<h4 class="serendipity_date">{$CONST.STICKY_POSTINGS}</h4>
{else}
<h4 class="serendipity_date">{$dategroup.date|@formatTime:DATE_FORMAT_ENTRY}</h4>
{/if}
I do not know if that will solve your problem, but it IS a problem to start with.
Last edited by Don Chambers on Tue Sep 25, 2007 10:39 pm, edited 1 time in total.
=Don=
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Post by treehstn »

Don,

I've looked in my entries.tpl file and it is showing up the way you said it should look with h4 at the beginning of those two lines and h3 at the end. Where are you seeing it with h4 at the end also?
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Sorry about that - I modified the wrong code example - I originally showed the correction as the problem, and vice versa. Both have been corrected in my original post.
=Don=
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Post by treehstn »

I think I figured out what the problem is. I was 'commenting out' some of the code in the entry footer area of entries.tpl.

I just edited the entries.tpl file to reverse the <-- & --> coding that I was experimenting with. Now it looks like it did before I started messing with it.

What I really want is to get rid of the names of the person posting the entries, the date and time of posting and the record of trackbacks. So this is what it looks like by default under each entry:

Posted by Nancy Lopez at 00:00 | Comments (0) | Trackbacks (0)

I want it to look like this:

Comments (0)

And under sticky postings I don't want anything in the footer at all for those entries.

(Can you tell that I am not proficient in these technologies? I know just enough to be dangerous!!)
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

You took out a few comment lines that need to remain. Look for this:

Code: Select all

        <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
                 xmlns:dc="http://purl.org/dc/elements/1.1/">
        <rdf:Description
                 rdf:about="http://rummyheads.com/serendipity/index.php?/feeds/ei_20.rdf"
                 trackback:ping="http://rummyheads.com/serendipity/comment.php?type=trackback&entry_id=20"
                 dc:title="Kathleen (antiques_from_homewood)"
                 dc:identifier="http://rummyheads.com/serendipity/index.php?/archives/20-Kathleen-antiques_from_homewood.html" />
        </rdf:RDF> 
This needs to come before that block

Code: Select all

        <!--
and this needs to come after it:

Code: Select all

        -->
The new 1.2 template "bulletproof" can handle everything you want regarding the display of sticky entries differently than the rest, and eliminating unwanted entry info from the entry footer. It may not be what you want graphically though.

Let's see if we can get you what you want in this template.

In entries.tpl, look for this line:

Code: Select all

    <div class="serendipity_Entry_Date">
and replace it with this:

Code: Select all

    <div class="serendipity_Entry_Date{if $dategroup.is_sticky} sticky_Entry{/if}">
In your css file, add this:

Code: Select all

.sticky_Entry .serendipity_entryFooter {display:none}
That should eliminate your entry footer for sticky entries.

The posted by info, date/time and track back sections can just be commented out or deleted. If deleted, this is what it would look like.....

from

Code: Select all

            <div class='serendipity_entryFooter'>
to here (once you restore the comment tag):

Code: Select all

        <!--
        <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
You would insert this in place of what is already there:

Code: Select all

                {if $entry.has_comments}
                    {if $use_popups}
                        <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=480,height=480,scrollbars=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a>
                    {else}
                        <a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a>
                    {/if}
                {/if}

                {if $entry.is_entry_owner and not $is_preview}
                        | <a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a>
                {/if}
                {$entry.add_footer}
            </div>
        </div>
None of this is tested, but I'm fairly certain it will work. Always keep a backup of your files before making these kinds of changes so they are easy to un-do if needed.
=Don=
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Post by treehstn »

Don Chambers wrote: The posted by info, date/time and track back sections can just be commented out or deleted. If deleted, this is what it would look like.....

from

Code: Select all

            <div class='serendipity_entryFooter'>
to here (once you restore the comment tag):

Code: Select all

        <!--
        <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
You would insert this in place of what is already there:

Code: Select all

                {if $entry.has_comments}
                    {if $use_popups}
                        <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=480,height=480,scrollbars=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a>
                    {else}
                        <a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a>
                    {/if}
                {/if}

                {if $entry.is_entry_owner and not $is_preview}
                        | <a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a>
                {/if}
                {$entry.add_footer}
            </div>
        </div>
None of this is tested, but I'm fairly certain it will work. Always keep a backup of your files before making these kinds of changes so they are easy to un-do if needed.
You've lost me a little on this part. I'm not sure what I should be changing and where.... (sorry to be such a pain!)
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Post by treehstn »

I think I figured out what your instructions were on that last part. The footer is gone on the sticky posting.

1. There's not much space between the bottom of it and the first regular posting.
2. The footer is unchanged on the regular entries.

Thanks!!
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

nancy - the separation between entries is due to the fact that the template author created bottom separation on the entry footer, not on the entry itself (which would have included the entry footer).

Find this in your style.css file:

Code: Select all

div.serendipity_entryFooter {
    font-family:Verdana, Arial, Geneva, Helvetica, sans-serif;
    font-size: x-small;
    padding-top: 10px;
padding-bottom: 4px;
    margin-top: 20px;
	margin-bottom:5em;
    clear: both;
}
Change that margin-bottom to 0, perhaps even the padding-bottom to zero. Directly below that, add this:

Code: Select all

.serendipity_entry {
    margin-bottom 2em;
}
That is a reduction in the original margin, but I thought the original was excessive. Keep it at 5em if you prefer.

Regarding the "posted by", trackbacks, etc, it does not appear that you edited entries.tpl per my previous suggestion... otherwise, they would be gone. What did you do there?
=Don=
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Post by treehstn »

Don,

Looks like I got it to work correctly now. I think that I ended up with the incorrect versions of the files loaded. I wasn't keeping the file versions organized well enough to keep track of what changes I was making.

Thank you so much for the help!!!
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

I was thinking you had a chance of confusing the files, especially with your directory/folder structure.

Looks like you eliminated the display of "sticky postings" at some point in your editing. The text might be gone, but the "container" still exists, which is adding a bit of space to the top of your entry. You can add this to your style.css file to completely eliminate it:

Code: Select all

.sticky_Entry .serendipity_date {display: none}
=Don=
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Post by treehstn »

Awesome!!! I really appreciate the help!!

I'm usually better about file management. I'm just a little overloaded at the moment. I'm not sure how I ended up with a double layer for the theme. I think it might have had something to do with an automatic installation but I'm not sure. Is there a way to correct that without undoing all the work I've done so far?
Post Reply