The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
||||
|
||||
We forgot 1 important line in the code-
Code:
global $vbulletin; if (!is_member_of($vbulletin->userinfo, 6)) { $post['posttime'] = ' '; $post['postdate'] = ' '; } |
#22
|
|||
|
|||
Thanks for hanging in there with me all day! It looks like it's working.
|
#23
|
|||
|
|||
I hate to ask for more help but, what are the hooks for the time display on the ForumHome and Thread Display?
|
#24
|
||||
|
||||
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. |
#25
|
|||
|
|||
Thanks, I am trying to figure it out now.
|
#26
|
|||
|
|||
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. |
#27
|
||||
|
||||
What code do you have for the forumhome_complete plugin?
|
#28
|
|||
|
|||
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:
|
#29
|
||||
|
||||
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"> $lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if> <a href="showthread.php?$session[sessionurl]p=$lastpostinfo[lastpostid]#post$lastpostinfo[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a> </div> Code:
<div align="$stylevar[right]" style="white-space:nowrap"> <if condition="is_member_of($bbuserinfo, 6, 22)">$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if></if> <a href="showthread.php?$session[sessionurl]p=$lastpostinfo[lastpostid]#post$lastpostinfo[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a> </div> |
#30
|
|||
|
|||
Thanks again, I'll give it a try.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|