Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 22 Mar 2018, 02:23
hilaryl hilaryl is offline
 
Join Date: Jan 2006
How to add last post content snippet to New Posts list?

I'd like to add a snippet of the content of the last post in each thread to the list that's shown in New Posts. So I'd like to show the thread title, a snippet of the last post, the name of the last poster and then some thread stats.

I'm looking at the search_threadbit template.

I've got the title, thread status etc all working.

This is the top part of the code that I've got so far (it's not all of it so ignore if <div></div>s don't match up)...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Would the bit in blue show a post snippet if I can get it looking at the correct post?

And for the avatar bit in red, how do I change that code so it's looking at the avatar for the lastposter? (that bit of code is copied from postbits)

Thank you in advance to anyone who is better vb coder than me
Reply With Quote
  #2  
Old 04 Apr 2018, 15:20
scottkoz20 scottkoz20 is offline
 
Join Date: Jan 2016
Real name: Scott
check this mod information out

https://www.vbulletin.org/forum/show...0&postcount=58
Reply With Quote
  #3  
Old 04 Apr 2018, 15:36
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
You might also be interested in this:

Enhanced Thread Preview
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #4  
Old 04 Apr 2018, 18:05
scottkoz20 scottkoz20 is offline
 
Join Date: Jan 2016
Real name: Scott
i forgot about that mod Mark
Reply With Quote
  #5  
Old 04 Apr 2018, 18:42
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by scottkoz20 View Post
i forgot about that mod Mark
Yeah, I don't know if that would be sufficient for the OP, but it was the closest thing I could think of. It avoids cluttering the threadbits.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #6  
Old 05 Apr 2018, 04:54
hilaryl hilaryl is offline
 
Join Date: Jan 2006
Thanks - I will try that out
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forum Home Enhancements Most active user Last X (last day/last week/last month/ever) Fully controlled Omranic vBulletin 3.6 Add-ons 70 03 Nov 2011 18:05



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 02:39.

Layout Options | Width: Wide Color: