![]() |
Solved myself!
Right after this: $posttitle=$getlastpost[title]; ADD this: if (strlen($getlastpost[title]) > 40) { $posttitle = substr($getlastpost[title], 0, 37) . '...'; } It works on my forum! |
does anybody know how to get this working with maybe an if/then/else statement?
here's what i want to do. i want it to instead of ALWAYS showing the thread title that was posted in, i want it to be something like if thread title exists, it will use that UNLESS there is also an individual post subject that someone has manually entered along the line, then it would use that? see what I mean? thanks. |
Does anyone know what I did? All I did was simple copy and paste, but it gives me errors. See what I mean:
PHP Code:
|
Works fine on vB2.3.0 except if user has made no post then it doesn't display the No Posts Made template.. I am also using your Hide Un-entered fields..
|
Quote:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
All times are GMT. The time now is 01:15 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:
|