TinyPortal

Development => Support => Topic started by: benten on October 10, 2007, 05:43:57 PM

Title: Comment text alignment
Post by: benten on October 10, 2007, 05:43:57 PM
Made this post as I can't find my post that was made on the TPLite forum after the change/fix over.

It was in regard to moving the text to the right from a front pages:

* by User and Date & Time
* comments | Write comment 

IchBin did kindly inform me that all this would be controlled from the "TPortal.template.php" file which I have been staring at for a while now and test different things online to see the effects.

I managed to find the part for by User/Date/Time


// any options for author and date?
if(isset($story['options']['author']) || $story['is_boardnews'])
echo '<span class="smalltext"><em>' , $txt['tp-by'] , ' <b>' , $story['poster']['link'] , '</b></em></span>';
if(isset($story['options']['date']) || $story['is_boardnews'])
echo '<span class="smalltext"><em> ' , $txt[30] , ' ' , $story['time'] , '</em></span>';


and by copying a line that mentioned alignment to beginning of code

echo '</div><div style="text-align: right; margin-top: 1ex;">';

I managed to move that part to the right but the whole post also moved to which I can't seem to fix.

The other is the comments | Write comment at the bottom of a post which I can't even seem to move at all with the code I tried in any places that mentioned code.

Using SMF 1.1.4 | TP 0.983
Link for example http://benten.purplecloud.net/smf/index.php

Thank you