![]() |
Editing forumhome_lastpostby template
Was pointed here by the vBulletin Support Team.
I need to alter the "Last Post" bit in certain forums to go to the first post instead... Here is the email I received that I suggested to contact you guys. "That requires editing this template: Admin CP -> Styles & Templates -> Style Manager -> ? ? -> Forum Home Templates -> forumhome_lastpostby But I don't have exact code for you. If you need help with specific code then the people on www.vbulletin.org may be able to help." Would anyone know exactly what has to be changed? Here is my current forumhome_lastpostby template : Code:
<if condition="$show['lastpostinfo']"> |
You'd have to do more than just edit the template if you want to go to the first post instead of the last post. You'd have to modify the code to get the username, time, and postid for the first post also.
|
I'm assuming that all the "lastpost" tags in the html need to be changed to something like "firstpost"? But I am not that advanced in html or vbulletin. Is this even possible to do? Any advice would be appreciated.
|
Just about anything is possible if you code it. I'm pretty sure (but not positive) that the lastpostinfo is in the forumcache which means if you change it, you will have to instead do a query for every single one of those forums. If you are OK at coding, I'm sure you can optimize the query to not be too bad, but it won't be as nice as just grabbing it from the cache.
|
All times are GMT. The time now is 02:22 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:
|