![]() |
Pulling thread title from query
What I'm trying to do with the code below is pull both the post title (if there is one) and the thread title from the getlastposts query. What I want it to do is is show "Re: threadtitle" is there is no post title. Can someone please tell me what I am doing wrong?
PHP Code:
|
then you'd do something like this
PHP Code:
|
Here's what i want to do. I want it to loist like this:
posttitle (Thread: threadtitle) Will this do this? And how can I get the actual number of posts if a user has less than 10 posts? |
loist?
anyways, so if there is no post title you want the post title to be "Re: $threadtitle" where $threadtitle is the title of the thread? |
Here's the code I am working with now. I took out all the other stuff because it wasn't working.
PHP Code:
|
Quote:
|
well i look at the query and you aren't getting the post title, you have thread.title so your $posttitle=$getlastpost[title] is really your thread title
is this out of a php file or did you modify it? |
Quote:
LOL My damned keyboard can't spell. |
so you want the post's title AND the thread's title?
|
Quote:
|
All times are GMT. The time now is 01:42 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|