![]() |
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:
|
Quote:
Yes, I want to get them both. :) |
LOL, ya we are cross posting
ok try this, it's late so it might not be perfect and if it's not i'll fix it tomorrow cuz my bed's calling me :) PHP Code:
|
Thank you, sir. Works great. With just a few tweaks I got it running smooth. I owe you one. ;)
|
oh cool :D i guess i can code when im asleep ;)
|
How do you then get this into postbit template to display the RE: threadtitle on all replies after the initial threadpost? I've been looking for something like this as well to avoid an empty field in my postbit.
|
In newreply.php, find:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Thank you..got it working now. Also made it put it in using the quick reply box.
Appreciate the help. |
Quote:
|
All times are GMT. The time now is 05:02 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:
|