Page 1 of 1

Change new posts,unanswered posts etc on index page ..

Posted: 04 Aug 2010, 19:33
by Steve
.. to look the the active tabs.
Description:
Basicly removes the boring text link to use a background image as used in user control panel etc.Works with many prosilver based styles also.

Open styles/prosilver/template/index_body.html


find:

Code: Select all

<!-- IF S_DISPLAY_SEARCH or (S_USER_LOGGED_IN and not S_IS_BOT) -->
<ul class="linklist">
	<!-- IF S_DISPLAY_SEARCH -->
		<li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><!-- IF S_USER_LOGGED_IN --> &bull; <a href="{U_SEARCH_UNREAD}">{L_SEARCH_UNREAD}</a> &bull; <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><!-- ENDIF --> &bull; <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></li>
	<!-- ENDIF -->
	<!-- IF not S_IS_BOT and U_MARK_FORUMS --><li class="rightside"><a href="{U_MARK_FORUMS}" accesskey="m">{L_MARK_FORUMS_READ}</a></li><!-- ENDIF -->
</ul>
<!-- ENDIF -->
replace with:

Code: Select all

<!-- IF S_DISPLAY_SEARCH or (S_USER_LOGGED_IN and not S_IS_BOT) -->
<div id="tabs" style="margin-bottom: 1px;">
	<ul>	
	<!-- IF not S_IS_BOT and U_MARK_FORUMS --><li class="activetab" style="float:right;padding-right: 5px;"><a href="{U_MARK_FORUMS}" accesskey="m"><span>{L_MARK_FORUMS_READ}</span></a></li><!-- ENDIF -->
	<!-- IF S_DISPLAY_SEARCH -->	
	<li class="activetab"><a href="{U_SEARCH_UNANSWERED}"><span>{L_SEARCH_UNANSWERED}</span></a></li><!-- IF S_USER_LOGGED_IN --><li class="activetab"><a href="{U_SEARCH_UNREAD}"><span>{L_SEARCH_UNREAD}</span></a></li><li class="activetab"><a href="{U_SEARCH_NEW}"><span>{L_SEARCH_NEW}</span></a></li><!-- ENDIF --><li class="activetab"><a href="{U_SEARCH_ACTIVE_TOPICS}"><span>{L_SEARCH_ACTIVE_TOPICS}</span></a></li>
	<!-- ENDIF -->
	</ul>
</div>
<!-- ENDIF -->
Refresh template for prosilver.
pic b4:
b4.PNG
after pic:
after.PNG

Re: Change new posts,unanswered posts etc on index page ..

Posted: 05 Aug 2010, 10:32
by KukY13
Nice one... :thumb:

Re: Change new posts,unanswered posts etc on index page ..

Posted: 05 Aug 2010, 15:37
by cisco007
very nice and useful, thanks Steve!

Re: Change new posts,unanswered posts etc on index page ..

Posted: 06 Aug 2010, 20:23
by Nashra
Thank you :thumb: