Thomas Jackson (tjackson) wrote in component_help,
Thomas Jackson

  • Mood:
  • Music:

overriding EntryPage::print_comment(Comment comment)

Hello everyone.

I'm currently working on overriding EntryPage::print_comment(Comment comment). I originally was utilizing this wonderful tutorial by masterslacker. However, now it does not meet my needs, as it only addresses the headers and at the moment I am interested in modifying how the comments themselves are displayed. Specifically I'm trying to add horizontal scrollbars.

While I do realize I am a long way off from completing this, as you can tell from certain threads in my personal livejournal (tjackson). There are a few questions I have.

First, what function is being run, that I could possibly override, where I could change the following. I'm not sure where this code gets put into the liveJournal with regard to functions and such. It's the header for my EntryPage::comment view. Anyone know how I could override this? I'd like to retain it's function, just changing the way it looks. Right now it is placed at the top of the 'comment-section', when such a thing is viewed.

<div><img src="" width="3" height="3" alt="" border="0"></div>

<form style='display: inline' method='post' action='' name='multiform'>
<input type='hidden' name="ditemid" value="562" /><input type='hidden' name="journal" value="chsllama" />
<table cellspacing="0" cellpadding="0" border="0">
<td colspan="3" class="dkLine" width="1"><img src="" width="1" height="1" alt="" border="0" /></td>

<td class="dkLine" width="1"><img src="" width="1" height="1" alt="" border="0" /></td>
<td class="entryHolderBg" width="100%"><b>Comments</b></td>
<td class="dkLine" width="1"><img src="" width="1" height="1" alt="" border="0" /></td>

<td colspan="3" class="dkLine" width="1"><img src="" width="1" height="1" alt="" border="0" /></td>

</div><img src="" width="1" height="3" alt="" border="0" /></div>

I'm also wondering where the print_comment_bottom(); function is called. I'm apparently asking for a 'full-override' guide. I imagine I'm missing the way a 'master function' integrates HTML (probably simple spacers) with other function calls (the HTML pasted above, the print_comment_bottom() function, etc).

The primary reason I'm asking about all this, is for the following reason. In order to maintain my 'skeletal' look, I've currently employed on my liveJournal, I have overridden a great deal. I used my own custom functions to start components, end components, etc. And in order to ensure that all tables/divs and such are operating as intended, I need as much control over functions as I can get. More than likely I'm going to recieve a 'you're shit out of luck' response, as the source for Component is closed. However, I keep hoping that xevinx will read this and help out, even though he is no longer a LiveJournal employee.

Anyone got any suggestions?

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened