Back to vBulletin 4.x Add-ons

[Widget] Recent Forum Posts only with Title and Time [update 10-jul-'10]
Mod Version: 1.01, by we_are_borg

vB Version: 4.0.4 Rating: (1 vote - 5.00 average) Installs: 11
Released: 01 Jul 2010 Last Update: Never Downloads: 0
Not Supported Template Edits  

This alteration is to show less information in the Recent Forum Posts. Normal use is Avatar, Title, Post, User name, Date + Time and Link to Last post. When you use this code the following information will be gone Avatar, Post, User name, Date. Title
I myself feel that there is no room for avatars in a widget its not to show off the widget needs to be clean and neat. The user name is not displayed because you want to give all the same treatment this way all users have equal opportunity to get visitors. The Post is removed because you want people to visit the forums and not read the posts on the front page also when people need to go to the forums it can be extra page view. Date is removed because the widget is called Recent Forum Posts so all posts are recent in the time set in the options of the Widget, and why should you display a date that on our big boards is always the actual date of the day.
Why i made this well you can now display more information the save is 3 lines so you can get more posts in there in the same room, you now promote more topics in the same space.

http://img687.imageshack.us/i/42971764.jpg/

How to get the above result well we need to alter one template.

Login to AdminCP go to Styles & Templates>Search in Templates find vbcms_searchresult_post

Replace all the code whit the one below.

Code:
<div class="cms_widget_post_bit">
	<div class="cms_widget_post_comment>
		<vb:if condition="post.posttitle">
			<p class="cms_widget_post_content">
			<vb:if condition="!$show['detailedtime']">
				<span class="time">{vb:date {vb:raw post.postdateline}, {vb:raw vboptions.timeformat}}
					<h4 class="cms_widget_post_header">
						<a href="{vb:link thread, {vb:raw threadinfo}}">{vb:raw post.threadtitle}</a>
						&nbsp <a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}">
						<img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
					</h4>
				</span></vb:if> 
		</vb:if>
</p>
			<vb:comment>
			<div class="cms_widget_views">{vb:raw post.replycount}&nbsp;{vb:rawphrase replies}</div>
			</vb:comment>
		</div>
</div>

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024