TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,993
  • Total Topics: 21,324
  • Online today: 247
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 260
  • Total: 260

Comment text alignment

Started by benten, October 10, 2007, 05:43:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

benten

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

This website is proudly hosted on Crocweb Cloud Website Hosting.