phpBB - Show Search Posts with Mark Topics/Forums & Time

Gizmo

Chief Mogwai Officer
Package Team
Joined
Nov 3, 2010
Messages
28,668
Reaction score
8,127
FP$
1,971
Custom code created by Fluffy.
Place this somewhere in the overall_header.html file of your forum.
Code:
<div class="customsearch"><table width="100%"><tbody><tr><td align="left">{LAST_VISIT_DATE} <!-- IF not S_USER_LOGGED_IN -->Log in or Register to view.<!-- ENDIF --></td><td align="right">
	{CURRENT_TIME}</td></tr></tbody></table>
<hr />
<table width="100%"><tbody><tr><td align="left"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> &bull; <a href="{U_SEARCH_UNREAD}">{L_SEARCH_UNREAD}</a> &bull; <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> &bull; <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a> &bull; <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></td><td align="right"><!-- IF not S_IS_BOT and U_MARK_FORUMS --><a href="{U_MARK_FORUMS}" accesskey="m">{L_MARK_FORUMS_READ}</a><!-- ENDIF -->&nbsp;<!-- IF not S_IS_BOT and U_MARK_TOPICS --><a href="{U_MARK_TOPICS}" accesskey="m">{L_MARK_TOPICS_READ}</a><!-- ENDIF -->
</td></tr></tbody></table>
</div>

Next. Put
Code:
.customsearch {
	background-color: #FFFFFF;
	padding: 4px;
	margin-bottom: 5px;
	border: 3px solid #336699;
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
}

Into /styles/YOURTHEME/theme/common.css at the bottom of the file.

Go to your ACP and refresh your template and theme and purge the cache. Now clear your cache and it should appear.

Notes: You may change the code how you wish. It's very easy to change the CSS and HTML but remember to always purge the cache, refresh the template/theme and do clear browser cache.

This was mostly created for the search posts to be put somewhere different than the index page. Although I decided to put the others in too to make more space elsewhere on the board.

Please note that once it's up you can delete the code for these links in any other area they're in. Such as index page.
 
Back
Top Bottom