Linkbar links on their own

Oct 24, 2010 22:22

Edit: solved thanks to marilla_pm67. Is there a way of having free standing "add to memories", "edit entry", "edit tags" etc. links? I'm working on a future layout and I'd like to have these links somewhere else than in a linkbar. I've already managed to move the "add comment" and "read comments" links, but the others are a mystery. I only have the Entry:: ( Read more... )

sidebar, link bar

Leave a comment

carnifinda October 25 2010, 11:10:52 UTC
You can see in my current layout that under my title, I have a few lines of information: poster, date, security, etc. In my future layout, I'd like to add other links that I rarely use but that I still want to keep around, in the same style : small icon, followed by "edit tags", "edit entry", "add to memories".

Unfortunately, I haven't been able to find the template for those links. The only one I have is for the permalink ( $*text_comment_permalink). I tried replacing some elements but it doesn't work.

The rest of the funtion amounts (basically) to this:
          var Link link;
          var string url;
          var string text;
          foreach var string link_key ($.link_keyseq) {
            $link = $this->get_link($link_key);
            $url = $link.url;
            $text = $link_caption{$link_key} != "" ? $link_caption{$link_key} : $link.caption;
            if (defined $link) {
              print safe """
  • $text
  • """;
                  $link->print_raw();
                }
              }

    and I haven't managed to select which links I want. (For example, I'm not interested in the "track this" or "share" links.)

    I hope I was clearer :)

    Reply

    marilla_pm67 October 25 2010, 11:23:30 UTC
    So in other words you would like to pull them out the entry? - I don't think that's possible.

    But to change the text into images that's possible and to 'delete' or make some of them 'not visible' that's possible too :)

    Here is the code to change the link into images:
    http://www.livejournal.com/customize/advanced/layersource.bml?id=9265575

    And here is the code to format the links you want/not want :
    http://babytest.livejournal.com/11527.html#cutid1

    Any chance to get a view at your theme layer?

    Sam

    Reply

    carnifinda October 26 2010, 15:31:00 UTC
    Thanks for your help! I managed to turn those links into small images and then put them where I wanted to put them. However, there's a space on their left that I can't remove... I have no idea where it comes from.



    I'd like the paperclip to be aligned with the clock and the star above. I apologize for taking advantage of you, but you wouldn't know how to fix that, would you? My layer is here (it's very messy, I know!)

    Reply

    marilla_pm67 October 26 2010, 15:34:56 UTC
    Sweety I need to see the layer you have to make it viewable like :

    layerinfo source_viewable = 1;

    And I will help you
    Sam

    Reply

    carnifinda October 26 2010, 15:39:50 UTC
    Um, yeah. It would have worked better if I had linked you to the right layer.
    Here.

    Sorry, it's been a long day :)

    Reply

    marilla_pm67 October 26 2010, 17:43:22 UTC
    Don't worry, find this bit of code

    .entryLinkbar {
    margin-left: 0px;
    padding: 0px;
    text-align: left;}

    and change it to

    .entryLinkbar {
    padding: 0px;
    text-align: left; width: 200px; margin-left: -45px; border: 1px solid red; }

    Once you have the code the way you want you can delete this : border: 1px solid red;

    I use it to 'see' where the changes are or are not :)

    Sam

    Reply


    Leave a comment

    Up