Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 01 Jun 2009, 14:10
smirkley smirkley is offline
 
Join Date: Apr 2008
Need help with variable data on showthread page

I am desperatly trying to figure out how to utilize the variable $thread[preview] on the showthread pages.

Basically I am trying to extract and use the variablename $thread[preview] in any particular thread page, just like is found in the forumdisplay pages, thread title views on mouseover.

I just cant seem to find out how to get the variable data for this made available inside a template in any showthread page.


Any help or clues GREATLY appreciated for this weather-worn coder.
Reply With Quote
  #2  
Old 01 Jun 2009, 15:17
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
$thread[preview] is the first xxx characters of the first post in the thread. What are you going to do with it in the actual thread? The whole first post is there, so why do you want just the first xxx characters?
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 01 Jun 2009, 21:41
smirkley smirkley is offline
 
Join Date: Apr 2008
True, and I understand the uniqueness of the desire.

I want to fill my meta desc with that variable on thread view pages.

But the variable is empty on that page and I want to figure out how to load it for this purpose.

Thanks.
Reply With Quote
  #4  
Old 01 Jun 2009, 21:54
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
The data isn't available at the time that the header template is evaled. You'd have to write a plugin to grab this information prior to the header template being evaled.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #5  
Old 01 Jun 2009, 22:10
smirkley smirkley is offline
 
Join Date: Apr 2008
Being fairly new to vB systems, that is where I am stumped.
Before I migrated my forum to vB, I knew the former scripts inside and out.
But alas, I am lost at this stage on where to begin.
So I was hoping to solicit for advice or help in this from one of the experts here.

Thanks again.
Reply With Quote
  #6  
Old 01 Jun 2009, 23:09
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You may want to look at some SEO type of mods. I think they often do something like what you want.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
Reply



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 03:44.

Layout Options | Width: Wide Color: