Move last message below

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • glenv
    Senior Member
    • Feb 2001
    • 542

    Move last message below

    When I add a left column to my forums it scrunches the "Forum" and "Last Post" columns.

    I would like to remidie this by having the "Forum" description row and then a new row under that for the "Last Post"

    Can someone give me easy instructions?
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Go to your:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> FORUMHOME

    Remove the red code:

    Code:
    	<tr align="center">
    	  <td class="thead">&nbsp;</td>
    	  <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
    	  [color=red]<td class="thead" width="175">$vbphrase[last_post]</td>[/color]
    	  <td class="thead">$vbphrase[threads]</td>
    	  <td class="thead">$vbphrase[posts]</td>
    	  <if condition="$vboptions['showmoderatorcolumn']">
    	  <td class="thead">$vbphrase[moderator]</td>
    	  </if>
    	</tr>
    </thead>
    $forumbits
    Make a similar change to the FORUMDISPLAY template.

    Then go to your:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> forumhome_forumbit_level2_post

    Remove the red code and add the green code:

    Code:
    <tr align="center">
    	<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
    	<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
    		<div>
    			<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
    			<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
    		</div>
    		<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
    		<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
    		<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
    		[color=green]$forum[lastpostinfo][/color]
    	</td>
    	[color=red]<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>[/color]
    	<td class="alt1">$forum[threadcount]</td>
    	<td class="alt2">$forum[replycount]</td>
    	<if condition="$vboptions['showmoderatorcolumn']">
    	<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
    	</if>
    </tr>
    $childforumbits
    Make a similar change to the forumhome_forumbit_level1_post template.

    Comment

    • glenv
      Senior Member
      • Feb 2001
      • 542

      #3
      Can you look here:


      It came out great.

      However, I would like to take the vbphrase "Last Post:" and have it on the same line as the actual "last post". Preferably just before the icon in the post.

      Can you tell me how to do that?

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        It looks like you figured it out?

        Comment

        • glenv
          Senior Member
          • Feb 2001
          • 542

          #5
          Originally posted by Jake Bunce
          It looks like you figured it out?
          Not really, please see where it says on each forum "Last Post:"

          I want the next line to start immediately after that phrase, on the same line..

          Comment

          • Jake Bunce
            Senior Member
            • Dec 2000
            • 46598
            • 3.6.x

            #6
            In the forumhome_lastpostby template, add the red code near the top:

            Code:
            <if condition="$show['lastpostinfo']">
            <div class="smallfont" align="$stylevar[left]">
            	<div style="clear:both">[color=red]Last Post:[/color] 
            		<if condition="$show['icon']"><img class="inlineimg" src="$icon[iconpath]" alt="$icon[title]" border="0" /></if>
            		<a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$lastpostinfo[lastthreadid]" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a>
            	</div>

            Comment

            • glenv
              Senior Member
              • Feb 2001
              • 542

              #7
              Thanks!

              It must be getting late.

              Can you tell me what template I stuck the extra "Last Post:" that is above what you just told me to fix? I need to remove it
              Last edited by glenv; Tue 15 Jun '04, 3:44pm.

              Comment

              • glenv
                Senior Member
                • Feb 2001
                • 542

                #8
                found it

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...