Page 1 of 1

Meta title??

Posted: Mon Apr 30, 2007 9:39 pm
by rj
The string below the entry that has the name, date, title comments, trackbacks... Called the Meta Title Box?

Well hemingway, I someone got it up in the top right and the comments and trackbacks show in FF but not IE.

I need to get this thing back down to the bottom where it belongs and the comments showing in IE.

I have spent hours in that area in the sytle.css and I have a feeling that is not the place! :)

I would also like to remove trackbacks and add a DIGG and a EMAIL THIS the tail end of it.

I need a starting point! :)

RJ

Posted: Mon Apr 30, 2007 10:56 pm
by judebert
That should be added in the entries.tpl. You could try modifying it there to move it where you want it to go. You can also remove the trackback section, and add any links you like (including DIGG and EMAIL THIS).

Note that the social-bookmarking services are included in the FindMore plugin, too; that way you don't have to modify the template on your own.

Posted: Tue May 01, 2007 2:34 am
by rj
Thanx Judebert...
I dunno about that entries.tpl file, it has an alien look to it! :)
I look at it and I cant seem to find anything that makes sense to me.
I understand some of the index.tpl file and fiddle with that, but that entries one just seems over my head. Whats an {if ?? :)

I been using the findmore plugin... I understand that.
I just want ALL OF IT to be one 100% long string instead of columned which takes up so much height in each entry.

As a starting point. What would I do in the entries.tpl to eliminate the trackbacks presentation.
To me trackbacks means nothing other than spam generator. :)
It may have some other purpose, but I havent found what yet. :)


RJ

Posted: Tue May 01, 2007 3:43 am
by rj
As you can see from the link, my entries footer is on top rather than bottom and all I want to do is get it down where it belongs! :)
Entries.tpl is over my head. I dont understand an {if of it. :)

Have spent way too many hours at this and I need help.

http://rackjite.com/serendipity/

And to top it off, when viewed in IE, the trackbacks and comments do not show up.

Hey, if Garvin is listening, I FIXED THE FOOTER! :)

RJ

Posted: Tue May 01, 2007 4:43 pm
by judebert
Okay, step 1: I opened the page in FireFox and IE, and I can see the footer in each. So far, so good. The single-entry page looks correct, too -- I can see the comment area on both FireFox and IE.

Now, the entries.tpl. This is where you'll have to make the modifications. There's no help for it, unless you want to totally rework your CSS to use absolute positioning or something (OMG, please don't).

Here's what's going on:

The entries.tpl is a kind of code known as Smarty templating. You can think of it as code, if you're familiar with any kind of programming.

Smarty gets mixed in directly with HTML, so we need a way to distinguish between the Smarty stuff and the HTML stuff. If it's {surrounded by braces}, it's something Smarty does. This can be as simple as printing a value like {$CONST.POSTED_BY}. It can be more complex, like making a decision, or looping through all the available entries.

To make a decision, Smarty uses {if}. You might say "{if I really want to print this}Print all this stuff.{/if}" for instance. Note that Smarty uses / just like HTML, to mark when we're done talking about a particular block of stuff.

To loop through all the available entries, Smarty uses {foreach}. Of course, there's a matching {/foreach}. You won't be needing it for your project, but it's nice to understand what you're looking at.

In your entries.tpl, Smarty starts by looking at each date ({foreach from=$entries item="dategroup"}). It probably prints a date header. Then, while it's still looking at this date, it looks at each entry for this date ({foreach from=$dategroup.entries item="entry"}). Now it's going to start printing the stuff for this entry.

In your template, it probably starts with a <div> for the serendipity_entryFooter. If this comes right after the {foreach}, or right after the serendipity_entry div, you're golden. Just cut everything inside the serendipity_entryFooter div, including the <div> and </div> tags themselves. (If it's inside an {if} or something like that, you'll have to decide if you want to take the whole {if} block, too. It depends on what's in there, and how much you want to move.)

If you save the template and reload the page now (might have to clear your browser cache), the "footer" should be gone!

Now we just need to paste it where we want it. Find the serendipity_entry div. This will contain the ENTIRE entry, including its header, content, extended body, and footer (which we just removed). Move past the header and content. Find the end </div> tag for the serendipity_entry div. Paste the serendipity_entryFooter just ABOVE the serendipity_entry end </div> tag, so the serendipity_entry contains the serendipity_entryFooter.

If you save the template and reload the page now (might have to clear your browser cache), the "footer" should now be below the entry body. Woo-hoo!

You can use this technique to move stuff anywhere within the entry you like. The entries.tpl defines what the list of entries will look like, including what each individual entry will look like. If you want to mix up the entries, this is where you do it. You can also change their order, indentation, or background coloring; you can insert Google ads; you can number or bullet them; you can remove the ones you don't like, or the pieces you don't like. (Don't want a "date" separator? Yank it out!)

I can't find the Hemingway template anywhere, so if you need more detailed help, you'll have to provide either code examples, or a link to the template so I can look at the entries.tpl myself.

Good luck!

Posted: Tue May 01, 2007 6:21 pm
by rj
I am going to get into this later today, but at the onset I need to make sure about something most important in this.

What we are calling the Entry Footer.
In FF I see one line of information including title, name, category and date. Then below it is a blank line, and then below that are the words TRACKBACKS (0)
COMMENTS (0)
in a column.

In IE6, iIf there are no comments to the article, I do not see anything below the first line. There is no TRACKBACKS and COMMENTS in any form. If there is already a comment I see it but no trackbacks. And when I click on that 1 comment, I get a nastygram rather than the nice please register I wrote.

And you say in IE, you see
Comments (0)
Trackbacks (0)

Is something going on with MY IE?
Or who I am? :)
I did try this on other computers with the same results.
Comments does not show in IE but does in FF.

Posted: Tue May 01, 2007 9:18 pm
by judebert
rj wrote:I am going to get into this later today, but at the onset I need to make sure about something most important in this.

What we are calling the Entry Footer.
In FF I see one line of information including title, name, category and date. Then below it is a blank line, and then below that are the words TRACKBACKS (0)
COMMENTS (0)
in a column.
Actually, in my Firefox, I don't see the trackbacks or comments unless there are more than 0. It appears above the article; for instance, on "Crazyass Fox News Sunday", I see the attribution line with title, name, and date, a blank line, and "Comment (1)". This is identical for me on FireFox 1.5.0.11 and IE 6.0.2900.2180.xpsp_sp2_gdr, both running on WinXP SP2.

The display is the same whether I'm on the front page article listing, or the individual article.
rj wrote:In IE6, iIf there are no comments to the article, I do not see anything below the first line. There is no TRACKBACKS and COMMENTS in any form. If there is already a comment I see it but no trackbacks. And when I click on that 1 comment, I get a nastygram rather than the nice please register I wrote.
When I click the comment, I see it, and I get "Only registered users may post comments here.", followed by instructions on how to register and post comments. Then I see "The author does not allow comments to this entry." All in red. Same in IE and FF.
rj wrote:And you say in IE, you see
Comments (0)
Trackbacks (0)

Is something going on with MY IE?
Or who I am? :)
I did try this on other computers with the same results.
Comments does not show in IE but does in FF.
No, you're normal. I'm just exceptional. 8)

I'm not seeing the "Comments (0)" in either browser. For instance, on "Family Value Conservatives Destroy Families", I see the attribution line, a blank line, and then it skips to the entry body's title. Same thing in the entry listing and individual entry, identical in FF and IE.

Oh, the attribution line doesn't have a title or time in the individual entry view. I missed that difference when I was first looking at it, but it's the same in both browsers for me.

Yes, the attribution line, the comment count, and the trackback count are all in the <div> with the class "serendipity_entryFooter" (your template may vary, but I'll bet one answer without attitude that it doesn't). There's probably a bunch of {Smarty} stuff in there, but if you get everything from the <div> to the </div>, you can move it anywhere inside its {foreach}{/foreach} without breaking it. Top, bottom, whatever. Even delete it, if it's a problem. It's all good.

Posted: Wed May 02, 2007 1:17 am
by rj
Oh no! :)

I am stuck in some conceptual morass here. :)

If in both browsers you DO NOT see the word COMMENT unless there is already a COMMENT, how would the first COMMENT ever get made?

Maybe I am seeing this all wrong?
Maybe this meta title isnt even what I think it is! :)
This is what I would like to see below each article in one single horizontal string:
Title - Author - Category - Time - Make Comment (0) - Digg (0) - Email to friend END. With an easy way to add TECHNORATI or DELICIOUS if I wish.

That is how all my WP competition looks.

And I do not like that embedded note about comments.
When someone clicks comment I want the registration screen to come up with my far more nicely worded explanation, NOT IN ANGRY RED!
If I were making my first comment on a blog and saw that, I would say screw this guy, I'm moving on.

It should say

THANKYOU for your interest, we want your comment, we want your participation, we love you! Please take the time to register and then make your comment, PLEASE... and THANK YOU :)
Not a big red slap in the face. :)

But I think you made one thing clear, it is not the browser but how the browsers see me. FF knows I am the ADMIN, IE doesnt. And thats the difference I suspect. I don't have FF on the other computers to compare.


RJ

Posted: Wed May 02, 2007 8:14 pm
by judebert
Not a problem; we can definitely get where you want to be, without too much trouble.

I see you moved the footer into the ... um ... footer. Congratulations!

First off, the footer allows you to go LOOK at the comments, not MAKE comments. To make comments, you have to go to the single-entry page. Once there, you'll see the link to make comments.

Because you're the admin, you get to see the links. Because I'm not, I get to see "The author does not allow comments to this entry" and other such stuff. You could try modifying your configuration so others can make comments, or you could search the language files to find those strings and modify them. Just modify serendipity_lang_en.inc.php, in the lang/ directory. You're looking for COMMENTS_CLOSED.

To avoid the red, I think you'll have to edit the entries.tpl again. Find the COMMENTS_CLOSED, and take off the class serendipity_msg_important. You can still emphasize it with normal HTML, or even create your own class in the style.css (say, rj_msg_persuasion) and assign it in the entries.tpl instead of serendipity_msg_important.

The "Only registered users" message probably comes from the User Self-Registration plugin, in the serendipity_plugin_adduser/ directory. Edit the lang_en.inc.php in that directory; you're looking for the PLUGIN_ADDUSER_REGISTERED_ONLY_REASON variable. Make it nicer. The only way I can immediately see to change the color is to change the definition of serendipity_msg_important in the style.css, or to set the message to a blank string (""). In that case, just change COMMENTS_CLOSED to point to the registration screen.

If you want to change the destination for the comment link, just edit the entries.tpl and change it. It can point to the registration screen if you like. But how are you going to make it so users can read the comments without registering? Our current method is to point the comment link at the comment section of the single-entry page, where users can then make comments, if they're allowed.

If you follow this paradigm, and make the changes mentioned above, your users will be able to see the entries and read the comments in peace, even if they're not logged in. Registered users will be able to make comments, too.

Incidentally, I created an account and logged in. I saw the Comments() lines we're talking about. No red nasties. I also saw the comment and trackback counts on the main page. Those are superflous, in my opinion. I'd take them out. (I'd also provide a login link on the front page, but that's just my opinion.)