Topic date under topic title on SubSilver2 ?

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Anti-Spam Guide
Locked
PrinceWords
Registered User
Posts: 104
Joined: Wed Oct 22, 2008 12:40 pm

Topic date under topic title on SubSilver2 ?

Post by PrinceWords » Mon Jun 08, 2009 12:19 pm

hi, got a question please, how to show the date of the topic under topic title in subsilver2, for example in View forum page or View active topics:
http://www.phpbb.com/styles/demo/3.0/?style_id=2

what code to put to show the topic date under every topic and in what page exactly? :)
If You Still have The power to smile..You have everything... :)

User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Re: Topic date under topic title on SubSilver2 ?

Post by Arty » Mon Jun 08, 2009 2:12 pm

What date/time are you talking about? If its last post time, its shown that way on all styles.
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework

PrinceWords
Registered User
Posts: 104
Joined: Wed Oct 22, 2008 12:40 pm

Re: Topic date under topic title on SubSilver2 ?

Post by PrinceWords » Mon Jun 08, 2009 7:17 pm

hey CA...happy you who answered here cause I ask about SubSilver 2 as its close for Avalon style, sorry I didn't clear the problem...I will do it by screen-shots. I meant topic start date, not last post :


Image

Here where I want the topic start date to appear, ( or in a single line alone between the title in-forum lines if you think this is better for the style and won't cause problem ) :roll:



By the way, Can I do the same thing with ( post date ) place in view topic page:

Image

I want to move the post date from the box below to the place of pink line.
Maybe its easy thing to do, sorry If I'm so Noob :oops: and thanks so much for your time :)
If You Still have The power to smile..You have everything... :)

User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Re: Topic date under topic title on SubSilver2 ?

Post by Arty » Mon Jun 08, 2009 9:12 pm

Search results: open search_results.html, find this

Code: Select all

				<!-- ELSE -->
					<p class="gensmall">{L_IN} <a href="{searchresults.U_VIEW_FORUM}">{searchresults.FORUM_TITLE}</a></p>
				<!-- ENDIF -->
and add after it

Code: Select all

<p class="gensmall">{L_POSTED}: {searchresults.FIRST_POST_TIME}</p>
viewforum.php: in viewforum_body.html find this

Code: Select all

				<!-- IF topicrow.PAGINATION -->
					<p class="gensmall"> [ {GOTO_PAGE_IMG}{L_GOTO_PAGE}: {topicrow.PAGINATION} ] </p>
				<!-- ENDIF -->
and add after it

Code: Select all

<p class="gensmall">{L_POSTED}: {topicrow.FIRST_POST_TIME}</p>
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework

PrinceWords
Registered User
Posts: 104
Joined: Wed Oct 22, 2008 12:40 pm

Re: Topic date under topic title on SubSilver2 ?

Post by PrinceWords » Tue Jun 09, 2009 11:14 am

Thanks so much! :D it worked so well, By the way, I tried to figure our the same thing for the ( Viewtopic_body.php ) to move the date as the image I posted above, but I couldn't see where to move the post_date code exactly
here is my postrow tag in Viewtopic_body code:

Code: Select all

<!-- BEGIN postrow -->
	<!-- IF postrow.S_FIRST_ROW or $CA_SPLIT_POSTS -->
	{$CA_BLOCK_START}
	{$CA_CAP2_START}{TOPIC_TITLE}{$CA_CAP2_END}
	<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
        <!-- IF not $CA_SPLIT_POSTS -->
        <tr>
            <th>{L_AUTHOR}</th>
            <th width="100%">{L_MESSAGE}</th>
        </tr>
        <!-- ENDIF -->
	<!-- ENDIF -->
	<!-- IF postrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->

	<!-- IF postrow.S_IGNORE_POST -->
			<td class="gensmall row" colspan="2" height="25" align="center"><!-- IF postrow.S_FIRST_UNREAD --><a name="unread"></a><!-- ENDIF --><a name="p{postrow.POST_ID}"></a>{postrow.L_IGNORE_POST}</td>
	<!-- ELSE -->

			<td align="center" valign="top" class="row">
				<!-- IF postrow.S_FIRST_UNREAD --><a name="unread"></a><!-- ENDIF --><a name="p{postrow.POST_ID}"></a>
				<div class="postauthor"><a href="<!-- IF postrow.U_POST_AUTHOR -->{postrow.U_POST_AUTHOR}<!-- ELSE -->javascript:void(0);<!-- ENDIF -->"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR};"<!-- ENDIF -->>{postrow.POST_AUTHOR}</a></div>
            <!-- IF postrow.ONLINE_IMG && postrow.S_ONLINE --><div class="postonline">{postrow.ONLINE_IMG}</div><!-- ENDIF -->
            <!-- IF postrow.RANK_TITLE --><div class="posterrank">{postrow.RANK_TITLE}</div><!-- ENDIF -->
            <!-- IF postrow.RANK_IMG --><div class="postrankimg">{postrow.RANK_IMG}</div><!-- ENDIF --><br>
            <!-- IF postrow.POSTER_AVATAR --><div class="postavatar"><!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}"><!-- ENDIF -->{postrow.POSTER_AVATAR}<!-- IF postrow.U_POST_AUTHOR --></a><!-- ENDIF --></div><!-- ENDIF -->

				<div class="postdetails">
					<!-- IF postrow.POSTER_POSTS != '' --><br /><b>{L_POSTS}:</b><br> {postrow.POSTER_POSTS}<!-- ENDIF -->
					<!-- IF postrow.POSTER_FROM --><br /><b>{L_LOCATION}:</b><br> {postrow.POSTER_FROM}<!-- ENDIF -->

					<!-- IF postrow.S_PROFILE_FIELD1 -->
						<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
						<br /><b>{postrow.PROFILE_FIELD1_NAME}:</b> {postrow.PROFILE_FIELD1_VALUE}
					<!-- ENDIF -->

					<!-- BEGIN custom_fields -->
						<br /><b>{postrow.custom_fields.PROFILE_FIELD_NAME}:</b><br> {postrow.custom_fields.PROFILE_FIELD_VALUE}
					<!-- END custom_fields -->
				</div>
				<img src="{T_THEME_PATH}/images/spacer.gif" width="120" height="1" alt="" />
			</td>
			<td width="100%" height="25" class="row" valign="top">
				<!-- IF not S_IS_BOT --><div style="float: {S_CONTENT_FLOW_END};"><!-- IF postrow.U_EDIT --><a href="{postrow.U_EDIT}">{EDIT_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_QUOTE --><a href="{postrow.U_QUOTE}">{QUOTE_IMG}</a><!-- ENDIF --></div><!-- ENDIF -->
				<div class="postsubject"><!-- IF S_IS_BOT -->{postrow.MINI_POST_IMG}<!-- ELSE --><a href="{postrow.U_MINI_POST}"><!-- IF postrow.POST_ICON_IMG --><img src="{T_ICONS_PATH}{postrow.POST_ICON_IMG}" width="{postrow.POST_ICON_IMG_WIDTH}" height="{postrow.POST_ICON_IMG_HEIGHT}" alt="" /><!-- ELSE -->{postrow.MINI_POST_IMG}<!-- ENDIF --></a><!-- ENDIF -->&nbsp;{postrow.POST_SUBJECT}</div>

					<!-- IF postrow.S_POST_UNAPPROVED or postrow.S_POST_REPORTED -->
						<div class="gensmall"><!-- IF postrow.S_POST_UNAPPROVED --><span class="postapprove">{UNAPPROVED_IMG} <a href="{postrow.U_MCP_APPROVE}">{L_POST_UNAPPROVED}</a></span> <!-- ENDIF --> <!-- IF postrow.S_POST_REPORTED --><span class="postreported">{REPORTED_IMG} <a href="{postrow.U_MCP_REPORT}">{L_POST_REPORTED}</a></span><!-- ENDIF --></div>
					<!-- ENDIF -->
<br>
<br>
					
						<div class="postbody">{postrow.MESSAGE}</div>

					<!-- IF postrow.S_HAS_ATTACHMENTS -->
						<br clear="all" /><br />

						<div class="attachwrapper"><div class="attachtitle">{L_ATTACHMENTS}:</div>
						<!-- BEGIN attachment -->
						<div class="attachcontent">{postrow.attachment.DISPLAY_ATTACHMENT}</div>
						<!-- END attachment -->
						</div>
					<!-- ENDIF -->

					<!-- IF postrow.S_DISPLAY_NOTICE -->
						<span class="gensmall error"><br /><br />{L_DOWNLOAD_NOTICE}</span>
					<!-- ENDIF -->
					<!-- IF postrow.SIGNATURE -->
						<span class="postbody signature"><br /><span class="line">_________________</span><br />{postrow.SIGNATURE}</span>
					<!-- ENDIF -->

					<!-- IF postrow.EDITED_MESSAGE or postrow.EDIT_REASON -->
						<!-- IF postrow.EDIT_REASON -->
							<br /><br />
							<div class="edited">
								<p class="gensmall">{postrow.EDITED_MESSAGE}</p>
								<p class="genmed">{postrow.EDIT_REASON}</p>
							</div>
						<!-- ELSE -->
							<br /><br />
							<div class="edited">
    							<p class="gensmall">{postrow.EDITED_MESSAGE}</p>
    						</div>
						<!-- ENDIF -->
					<!-- ENDIF -->

					<!-- IF postrow.BUMPED_MESSAGE -->
						<span class="gensmall">{postrow.BUMPED_MESSAGE}</span>
					<!-- ENDIF -->

					<!-- IF not postrow.S_HAS_ATTACHMENTS --><br clear="all" /><br /><!-- ENDIF -->
			</td>
		</tr>

		<!-- IF postrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->

			<td class="postbottom" align="center">{postrow.POST_DATE}</td>
			<td class="postbottom postbuttons" valign="middle">
				<!-- IF not S_IS_BOT -->
					<div style="float: {S_CONTENT_FLOW_END}">
					<!-- IF postrow.U_REPORT --><a href="{postrow.U_REPORT}">{REPORT_IMG}</a> <!-- ENDIF --> 
					<!-- IF postrow.U_INFO --><a href="{postrow.U_INFO}">{INFO_IMG}</a> <!-- ENDIF --> 
					<!-- IF postrow.U_WARN --><a href="{postrow.U_WARN}">{WARN_IMG}</a> <!-- ENDIF --> 
					<!-- IF postrow.U_DELETE --><a href="{postrow.U_DELETE}">{DELETE_IMG}</a> <!-- ENDIF -->
					</div>
				<!-- ENDIF -->
				<!-- IF postrow.U_PROFILE --><a href="{postrow.U_PROFILE}">{PROFILE_IMG}</a> <!-- ENDIF -->
				<!-- IF postrow.U_PM --><a href="{postrow.U_PM}">{PM_IMG}</a> <!-- ENDIF --> 
				<!-- IF postrow.U_EMAIL --><a href="{postrow.U_EMAIL}">{EMAIL_IMG}</a> <!-- ENDIF --> 
                <!-- IF postrow.U_MSN --><a href="{postrow.U_MSN}">{MSN_IMG}</a> <!-- ENDIF --> 
                <!-- IF postrow.U_ICQ --><a href="{postrow.U_ICQ}">{ICQ_IMG}</a> <!-- ENDIF --> 
                <!-- IF postrow.U_YIM --><a href="{postrow.U_YIM}">{YIM_IMG}</a> <!-- ENDIF --> 
                <!-- IF postrow.U_AIM --><a href="{postrow.U_AIM}">{AIM_IMG}</a> <!-- ENDIF --> 
                <!-- IF postrow.U_JABBER --><a href="{postrow.U_JABBER}">{JABBER_IMG}</a> <!-- ENDIF --> 
				<!-- IF postrow.U_WWW --><a href="{postrow.U_WWW}">{WWW_IMG}</a> <!-- ENDIF -->
			</td>
    	<!-- ENDIF -->
		</tr>
	<!-- IF $CA_SPLIT_POSTS and not postrow.S_LAST_ROW -->
	</table>
	{$CA_BLOCK_END}
	<br />
	<!-- ELSEIF not $CA_SKIP_LAST_SPACER or not postrow.S_LAST_ROW -->
	<tr>
		<td class="spacer" colspan="2" height="1"><img src="{T_THEME_PATH}/images/spacer.gif" alt="" width="1" height="1" /></td>
	</tr>
	<!-- ENDIF -->
	
<!-- BEGINELSE -->
	{$CA_BLOCK_START}
	{$CA_CAP2_START}{TOPIC_TITLE}{$CA_CAP2_END}
	<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
	
<!-- END postrow -->
If You Still have The power to smile..You have everything... :)

PrinceWords
Registered User
Posts: 104
Joined: Wed Oct 22, 2008 12:40 pm

Re: Topic date under topic title on SubSilver2 ?

Post by PrinceWords » Mon Jan 04, 2010 1:55 am

Can somebody help with the last point? how to put the date under the topic name in viewtopic page?
If You Still have The power to smile..You have everything... :)

Locked

Return to “[3.0.x] Styles Support & Discussion”