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

Guides & Snippets for phpBB3. Try the Snippets here and share Your own Snippets
There is no support here! Only Read Access!
Locked
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 847
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

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

Post 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
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

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

Post by KukY13 »

Nice one... :thumb:
Image
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

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

Post by cisco007 »

very nice and useful, thanks Steve!
User avatar
Nashra
BBCoder II
BBCoder II
Posts: 5
Joined: 03 May 2010, 18:14
BBCodes: 49
Favourite BBCode: youtubehs
Favourite MOD: Highslide Attachment
Location: Wachtendonk / Germany
Contact:

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

Post by Nashra »

Thank you :thumb:
Locked