Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[Widget] Recent Forum Posts only with Title and Time [update 10-jul-'10] Details »»
[Widget] Recent Forum Posts only with Title and Time [update 10-jul-'10]
Version: 1.01, by we_are_borg we_are_borg is offline
Developer Last Online: Jul 2017 Show Printable Version Email this Page

Category: vBulletin CMS Widgets - Version: 4.0.4 Rating:
Released: 06-29-2010 Last Update: Never Installs: 11
Template Edits
 
No support by the author.

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.



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>

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-15-2010, 06:36 PM
Sinsemilla Sinsemilla is offline
 
Join Date: Jun 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not working for me. I have 4.0.5

Edit: Nevermind, I was trying to do this for recent articles. Do you know how this could be accomplished?
Reply With Quote
  #3  
Old 07-16-2010, 02:19 PM
NeXtCentury NeXtCentury is offline
 
Join Date: Mar 2010
Location: Netherlands
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sinsemilla View Post
Not working for me. I have 4.0.5

Edit: Nevermind, I was trying to do this for recent articles. Do you know how this could be accomplished?
That would indeed be nice to know
Looking also for a widget that only shows the latest X articles that are posted in the sections WITHOUT a part of contents. So just a listing of the postdate, poster (?) and the article title.
Would be nice to be able to configure the number of article and a bonus would be to be able to select from which sections the article title should be taken.

Thanks,
Reply With Quote
  #4  
Old 10-26-2010, 11:59 AM
The_Rayman's Avatar
The_Rayman The_Rayman is offline
 
Join Date: Jul 2005
Location: Amsterdam - Netherlands
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No Go here... VB 4.08
Reply With Quote
  #5  
Old 11-12-2010, 05:18 PM
tikkas tikkas is offline
 
Join Date: Feb 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try changing this vbcms_widget_recentposts_page

Reply With Quote
  #6  
Old 04-18-2012, 07:24 AM
Tri@de's Avatar
Tri@de Tri@de is offline
 
Join Date: Sep 2003
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's a way to invclude the user avatar?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03952 seconds
  • Memory Usage 2,267KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete