vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > Add-On Modules & Modifications > vBa CMPS v4.x > Add-On Modules (version 4.x)

Reply
 
Thread Tools Display Modes
  #1  
Old 03-12-2012, 08:57 PM
cdoyle cdoyle is offline
Member
 
Join Date: Nov 2004
Posts: 37
Default Recent Threads, have it display part of the first post

Hi,
I searched but didn't see this anywhere, but is it possible with the Recent Thread Module, to have it display part of the first post?

something like
My Thread Title
blah blah blah, my firstpost text is here Read More >>>

Has this been done before?
Reply With Quote
  #2  
Old 03-13-2012, 02:00 AM
CareyCrew CareyCrew is offline
Gone. vB is worthless now
 
Join Date: Sep 2007
Posts: 1,676
Default

Just increase the word count and the module will do pretty much what you want.
Reply With Quote
  #3  
Old 03-13-2012, 09:04 AM
cdoyle cdoyle is offline
Member
 
Join Date: Nov 2004
Posts: 37
Default

Quote:
Originally Posted by CareyCrew View Post
Just increase the word count and the module will do pretty much what you want.
This doesn't work, the only word count you can increase is the title. The module doesn't currently display anything from the message part of the thread.
Reply With Quote
  #4  
Old 03-15-2012, 08:48 AM
cdoyle cdoyle is offline
Member
 
Join Date: Nov 2004
Posts: 37
Default

anyone know how to do it?
Reply With Quote
  #5  
Old 03-16-2012, 09:03 AM
cdoyle cdoyle is offline
Member
 
Join Date: Nov 2004
Posts: 37
Default

Are there any other modules out there that will do this?
Reply With Quote
  #6  
Old 03-17-2012, 11:03 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

If you hold your mouse over the thread title then you should see a preview of the first post. If you want that shown on the page without having to hold your mouse over the title then you could edit your 'adv_portal_recthreads' template and change the code in there.
__________________
Frequently Asked Questions
CMPS Users Manual

For vBadvanced software assistance, please use the support forums.
Unsolicted PMs, IMs, and email will not be responded to.
If you have a non-software related question or problem with your account, please submit a support ticket.
Reply With Quote
  #7  
Old 03-17-2012, 11:09 AM
cdoyle cdoyle is offline
Member
 
Join Date: Nov 2004
Posts: 37
Default

What template do I change?

I did a search for adv_portal_recthreads

and 3 come up;
adv_portal_recthreads_exp:
adv_portal_recthreads_exp_head:
adv_portal_recthreads_lean:

any suggestions on what I need to add to the template?
Reply With Quote
  #8  
Old 04-05-2012, 11:54 AM
Morrus Morrus is offline
Member
 
Join Date: Feb 2004
Posts: 79
Default

I can't remember the exact code offhand. In the templates find the thread title. It's called thread[title]. Then move $thread[preview], which is near it, to wherever you want it to be.

For example, in v3 (the version I'm using; I can't speak for v4):

Code:
<a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$thread[threadid]" title="$thread[preview]"><if condition="$show['gotonewpost']"><strong>$thread[title]</strong> <else />$thread[title]</if></a> <br><small>$thread[preview]</small>
Reply With Quote
  #9  
Old 04-05-2012, 10:18 PM
cdoyle cdoyle is offline
Member
 
Join Date: Nov 2004
Posts: 37
Default

Quote:
Originally Posted by Morrus View Post
I can't remember the exact code offhand. In the templates find the thread title. It's called thread[title]. Then move $thread[preview], which is near it, to wherever you want it to be.

For example, in v3 (the version I'm using; I can't speak for v4):

Code:
<a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$thread[threadid]" title="$thread[preview]"><if condition="$show['gotonewpost']"><strong>$thread[title]</strong> <else />$thread[title]</if></a> <br><small>$thread[preview]</small>
Are you saying all I need to do is move $thread[preview]? Seems that anytime I add that to somewhere in my page, it just displays $thread[preview] in that spot.

Is there other code needed to display that variable?
Reply With Quote
  #10  
Old 04-09-2012, 12:41 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

Are you running vB3 or vB4? If you're running vB3 the variable would be $thread[preview], and if you're running vB4 it should be {vb:raw thread.preview}.
__________________
Frequently Asked Questions
CMPS Users Manual

For vBadvanced software assistance, please use the support forums.
Unsolicted PMs, IMs, and email will not be responded to.
If you have a non-software related question or problem with your account, please submit a support ticket.
Reply With Quote
  #11  
Old 04-10-2012, 10:33 AM
cdoyle cdoyle is offline
Member
 
Join Date: Nov 2004
Posts: 37
Default

Quote:
Originally Posted by Brian View Post
Are you running vB3 or vB4? If you're running vB3 the variable would be $thread[preview], and if you're running vB4 it should be {vb:raw thread.preview}.
OK, I got it working. I'm using VB4 and this worked {vb:raw thread.preview}

I have another question, is there a way to limit the amount of characters that I display on the homepage?

I don't want to modify the actual hover preview in the forums. Just the text on the portal page.
Reply With Quote
  #12  
Old 04-16-2012, 08:09 PM
Gorgasm Gorgasm is offline
Junior Member
 
Join Date: Jul 2011
Posts: 10
Default

This is what I was looking for as well. Although, didn't worked for me, or I did it wrong... I'm editing the adv_portal_recthreads_lean, but nothing...
Reply With Quote
  #13  
Old 04-16-2012, 09:37 PM
cdoyle cdoyle is offline
Member
 
Join Date: Nov 2004
Posts: 37
Default

Quote:
Originally Posted by Gorgasm View Post
This is what I was looking for as well. Although, didn't worked for me, or I did it wrong... I'm editing the adv_portal_recthreads_lean, but nothing...
Were you not able to get the preview to appear at all, or were you not able to reduce the amount of text displayed?
Reply With Quote
  #14  
Old 04-16-2012, 09:49 PM
Gorgasm Gorgasm is offline
Junior Member
 
Join Date: Jul 2011
Posts: 10
Default

Well, I edit, but I don't have much experience with this Java code thing... Everything is the same, nothing happens with the Lean version. With the Expanded version of the CMS, I do see some text... But I can't controll how much appear, and the BBcodes does't work...
Reply With Quote
Reply


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to display complete first post in recent threads veenuisthebest "How Do I..." Questions 1 10-04-2008 10:50 PM
Recent threads module: display 1st post, 1st attachment sfnet Module & Modification Discussion & Requests 0 01-10-2008 05:54 PM
Recent Threads > Go to Last Post Gord Troubleshooting & Problems 4 09-12-2006 09:58 AM
Recent Threads fo to Last Post RaceJunkies "How Do I..." Questions 3 12-14-2005 12:20 PM


All times are GMT -4. The time now is 09:53 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.