Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-29-2012, 12:31 PM
rares.stanescu rares.stanescu is offline
 
Join Date: May 2010
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Recent threads widget modification

Hello, I am using this template vbcms_searchresult_thread to show new threads from some subforums on my vbulletin forum.

At this moment the widget displays the thread preview text, thread start date and thread author, thread name

Please can anyone tell me how I can change it with last post preview text, last post date, last post author and keep the thread name?

the code is the following

Code:
<div class="cms_widget_post_bit post-list-entry">

	<div class="cms_widget_post_comment<vb:if condition="!$vboptions['avatarenabled']">_noavatar</vb:if>">
		<vb:comment><vb:if condition="$show['gotonewpost']">
			<a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}}" id="thread_gotonew_{vb:raw thread.realthreadid}" class="cms_widget_post_bit"><img class="inlineimg" src="{vb:stylevar imgdir_button}/firstnew.gif" alt="{vb:rawphrase go_to_first_new_post}" border="0" /></a>
		</vb:if></vb:comment>

    <h4 class="cms_widget_post_header"><a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_lastpost}}#post{vb:raw thread.lastpostid}" class="cms_widget_post_bit">{vb:raw thread.title}
</a></h4>
		<p class="cms_widget_post_content">{vb:raw thread.preview}</p>
    <div class="post-list-details">    
    <span class="time forum-sidebar-time" style="padding-top: 12px;">
    {vb:raw thread.starttime}
</span>
    <div style="float:left;">
        {vb:rawphrase thread_starter} <a href="{vb:link member, {vb:raw userinfo}}" class="starter-link cms_widget_post_bit">{vb:raw thread.postusername}</a>
        <br/> {vb:raw thread.startdate}{vb:raw thread.lastpostid}{vb:raw post.username}
    </div>



    <a href="{vb:link thread, {vb:raw thread}}" class="cms_widget_post_bit">
<span class="posts-count

<vb:if condition="$thread['replycount'] > 15">
            post-count-big
<vb:elseif condition="$thread['replycount'] > 6" />
            post-count-medium
<vb:else />
            post-count-small
</vb:if>

" style="margin-left:5px;">
    {vb:raw thread.replycount}
</span></a>



    </div>

</div>
</div>
Thanks a lot
Reply With Quote
  #2  
Old 08-30-2012, 07:13 PM
rares.stanescu rares.stanescu is offline
 
Join Date: May 2010
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, does anyone have a solution for my problem? Pretty please ?
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 01:45 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03289 seconds
  • Memory Usage 2,165KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)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_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