I AM NOT SHOUTING, I AM JUST STUCK THIS WAY (tricky_disco) wrote in component_help,

  • Mood:
  • Music:

Little tweaks with the new 'customizing entires' tutorial

Why hello there my little gentlebeings! Good to see you all alive and well and still using component!

Ya, I haven't posted here in absolutely ages, but since I last changed my code, embedding stuff like YouTube vids and such has become immensely popular, and thus terribly annoying for my little self, for it screws up my journal like fury. Yay!
So it was about time I finally upgraded my layer. The whole embedding screwy issue is definitely somewhere in the 'customizing the entries' code I was using, which I think was posted here back in ..2004? 5? Well, a long time ago anyways.

So, I am now using the new cte (which is actually 2 years old by now..go me!) which works like a charm!
BUT..there are a few tweaks and personalizations I was using in my old layout that I cannot for the life of me figure out in this new one.

For clarification, here are both screencaps and links to both new and old layer to compare. (The old one is fifteen shades of hack and five miles long, so beware!)


#1. I want to have the username above the icon. Usually I've used this:
if($e.poster.name != "") {
<div align="center"><b>$e.poster.name</b></div>""";
     if (defined $e.userpic) { """
      <td><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

but with the new 'cte' code I have absolutely no idea where I would implement this.

#2. I want the permalink moved to under the usericon. SOLVED!

#3. I had it set up so that the post subject was centered in brackets, and if a poster did not specify an subject, it would show up like [* * *]. I used the same code I used for my old layer to implement this, but for some reason the no subject code does not work, I just get a blank. I am thinking it could be because in the new 'cte' code the value for no subject simply does not exist? SOLVED!

#4. Ok, this one has been a problem from the beginning...I want to have the security icon and the subject line show up in the same line, but if the post requires a security icon, the subject appears a line below. If no security icon is required, the subject line shows up at the top of the page. Any chance we can marry those two together, so they can live in the same line? SOLVED!


#6. I want rid of that icon! Boo! Hiss! SOLVED!

#7. How can I replace these fugly things with my own images? I knew it used to be really simple, but I am at a stump right now. SOLVED!

#8. Now, here is a two-parter: I want the mood (with the mood image) to show up first in the metadata, followed by anything else that does not require images.
And second; Why does the new 'cte' not recognise that I have already specified what text I want to show up instead of 'mood, 'listening to', tags, etc etc? Where do I change those so it does? SOLVED!

Thanks for listening, I know some of these are probably really simple, but I haven't messed with my code in ages so I am more than a little rusty...

Component rules!
Tags: /topic-entry: linkbar, /topic-entry: metadata, /topic-entry: permalink, /topic-entry: security, /topic-entry: subject, /topic-entry: usernames, status: closed

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened