![]() |
Quote:
Code:
global $vbulletin; |
Thanks for hanging in there with me all day! It looks like it's working.
|
I hate to ask for more help but, what are the hooks for the time display on the ForumHome and Thread Display?
|
Probably forumhome_complete and threadbit_process...
However you also need to change the variable, $post only works in postbit. For forumhome it looks like: $lastpostinfo['lastpostdate'] and for threadbit it looks like: $thread['lastpostdate'] The way I did this by the way for future reference was to go to Admin CP -> Options -> General Settings -> Add Template Name in HTML Comments -> set to YES Then load the pages you are curios about- in the source of the page will be comments saying what template the data is coming from. Then I look in that template and see the variables being used where I want- Template variables either look like {vb: raw thread.lastpostdate} or $thread['lastpostdate'] depending how they are used... but in plugins and php files they are ALWAYS the latter. |
Thanks, I am trying to figure it out now.
|
I have it working in threadbit_process. I just had to change the variable to ['lastposttime'] in order to remove the time.
Just not able to find it in Forumhome. |
What code do you have for the forumhome_complete plugin?
|
This is one of many that I have tried.
PHP Code:
Haha! I'm learning...or lucky. It olny took me three tries to get it off the Search Results Page with. search_results_threadbit PHP Code:
|
Been looking at forumhome... seems to be a very unusual situation here. First the actual hook would have been forumbit_display, not forumhome_complete. But even that doesn't work. There is no hook to let us alter the date/time on this page.
Instead you will need to edit the template directly. In your style manger choose your style -> edit templates Find the template: forumhome_lastpostby Find the code: Code:
<div align="$stylevar[right]" style="white-space:nowrap"> Code:
<div align="$stylevar[right]" style="white-space:nowrap"> |
Thanks again, I'll give it a try.
|
All times are GMT. The time now is 07:30 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:
|