「雫羅」 dara (sashwizzled) wrote in component_help,
「雫羅」 dara
sashwizzled
component_help

  • Mood:

Comments - Reading/Posting

OK, here is the code I'm using for comment links: (I've used [ and ] in place of > and < here)

if ($e.comments.enabled) {
"""[IMG SRC = "http://img53.photobucket.com/albums/v162/KoochiZibble/LJ_backgrounds/IndoComment.gif" USEMAP = "#2" NAME = "Indo" ALT = "Post or Read Comments" BORDER = "0"]
[MAP NAME = "2"]
[AREA SHAPE = "RECT" COORDS = " 0, 0, 23, 12" HREF = "$e.comments.post_url" ALT = "Post a Comment" TITLE = "Post a Comment"]
[AREA SHAPE = "RECT" COORDS = " 76, 41, 101, 53" HREF = "$e.comments.read_url" ALT = "Read $e.comments.count" TITLE = "Read $e.comments.count"]
[AREA SHAPE = "DEFAULT" NOHREF]
[/MAP]
""";
}

Now, the problem is, the only thing these link to and refer to is the most recent entry I've made, not the corresponding entry. Does anyone have any ideas? :)

Edit: completely unrelated, but I'm trying to put this code into my Profile component for the user pic section:
...code, blah, blah, blah...""";
if($p.journal.default_pic!=""){"""[td align="center"]$p.journal.default_pic[/td]""";}
if($p.journal.default_pic==""){"""[td align="center"][img src="http://img53.photobucket.com/albums/v162/KoochiZibble/LJ_backgrounds/LJNoIcon.gif" border="0"[/img][/td]""";}"""

As you may have gathered, this code should displays the user pic if defined, and if not defined, displays a picture I've chosen. Whenever I try to implement this code, I get the error message: The types of the left and right hand side of equality test expression don't match. - I've got an idea what that means, but I'm not entirely sure... Can anyone help?
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 0 comments