vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   activity stream widget help (https://vborg.vbsupport.ru/showthread.php?t=289163)

DevonGman 10-16-2012 11:13 PM

activity stream widget help
 
hi guys.. i apologize for any stupid questions i may ask.. ive never even set up a facebook page and now I run a forum. i tell u the last 7 days have been a crash course from hell.. anyway im having issues with my home screen widget..

vbcms_widget_recentthreads_page is the templet name of the widget i created.. all is fine except on the widget in the homescreen it displays the oldest post in that thread...

is there anyway to either show the newest post in the thread or at the absolute least no post at all?.. just most recent thread?

i appreciate any help guys im totally lost with this.. thank you

Lynne 10-17-2012 12:34 AM

You may edit the template and just remove the code that adds in the post text. Probably just remove this:

HTML Code:

                                                <p class="cms_widget_post_content widget_post_content">{vb:raw thread.previewtext}</p>

                                                {vb:rawphrase last_post_by}:
                                                <vb:if condition="$thread['lastposterid']" >
                                                        <a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}">{vb:raw thread.lastposter}</a>
                                                <vb:else />
                                                        {vb:rawphrase by_x_guest, {vb:raw thread.lastposter}}
                                                </vb:if>
                                                {vb:raw thread.lastpostdate}<vb:if condition="!$thread['detailedtime']">, <span class="time">{vb:raw thread.lastposttime}</span></vb:if>
                                                <a href="{vb:raw thread.lastposturl}"><img class="inlineimg" src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" border="0" /></a>


DevonGman 10-17-2012 02:03 AM

Wow thankyou.. that did it.. ty ty ty.. is there any way to have it say who posted last? after the code modification it doesnt show it anymore.. if thats too much to ask dont worry about it.. thank you again.. that has been bugging the crap out of me


All times are GMT. The time now is 08:21 PM.

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.02715 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete