Thomas Jackson (tjackson) wrote in component_help,
Thomas Jackson
tjackson
component_help

  • 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="http://test.livejournal.org/palimg/component/clear.gif" width="3" height="3" alt="" border="0"></div>
</div>

<form style='display: inline' method='post' action='http://test.livejournal.org/talkmulti.bml' name='multiform'>
<input type='hidden' name="ditemid" value="562" /><input type='hidden' name="journal" value="chsllama" />
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="3" class="dkLine" width="1"><img src="http://test.livejournal.org/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
</tr>

<tr>
<td class="dkLine" width="1"><img src="http://test.livejournal.org/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
<td class="entryHolderBg" width="100%"><b>Comments</b></td>
<td class="dkLine" width="1"><img src="http://test.livejournal.org/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
</tr>

<tr>
<td colspan="3" class="dkLine" width="1"><img src="http://test.livejournal.org/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
</tr>
</table>

</div><img src="http://test.livejournal.org/palimg/component/clear.gif" 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?
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 0 comments