06-10-2013, 08:31 PM
07-04-2013, 03:53 PM
Hi, it's me again
In the MyBB portal, I want to use template conditional to check if that announcement is first post or last post in the current page.
Because, when a new thread was created, it will be the first announcement!
For example:
In the MyBB portal, I want to use template conditional to check if that announcement is first post or last post in the current page.
Because, when a new thread was created, it will be the first announcement!
For example:
PHP Code:
|
Which condition I need to use in this case ?
Is there any way to check if that announcement is sticky thread or not ?
Because I want to something like Featured Post...
07-06-2013, 02:21 AM
Hello, I'm too fool when try to get the first post in portal.
The base of this is all about 'dateline' column in mybb_threads
And MyBB did that work for us, now we just need to compare between two query and we get the first post in portal as I want
But how about to know that if that announcement is a superb thread or not ? (superb thread is a custom thread field)
How to get the custom thread field variable in portal.php ?
The base of this is all about 'dateline' column in mybb_threads
And MyBB did that work for us, now we just need to compare between two query and we get the first post in portal as I want
But how about to know that if that announcement is a superb thread or not ? (superb thread is a custom thread field)
How to get the custom thread field variable in portal.php ?
07-06-2013, 06:35 AM
I've merged your threads.
You can use $threadfields['key'] in the portal_announcement.
You can use $threadfields['key'] in the portal_announcement.