![]() |
Problem writing a plugin to modify lastposter on forum homepage.
I'm in the process of writing plugins to modify the displayed username of anyone who has an email address in their username. I have it working fine in several places, but I'm stuck on how to get it working on the "Last Post" part of the main forum listing on the homepage. I've tried every variation on the following code that I can find. The code works and properly modifies the variables I'm targeting, but no matter what I do, the templates still display the unmodified version of the lastposter username.
I've got the following code attached to the "forumbit_display" hook... Code:
if($pos=strpos($lastpostinfo['lastposter'],"@")) Code:
// Attached this dirty code to forumhome_complete hook. EDIT: I've got it working properly now!!! I could have sworn I tried this already, but I attached the following code to the "forumbits_display" hook and suddenly it works: Code:
foreach($vbulletin->forumcache as $k=>$v) |
Still making progress, but it's slow going. I'm stuck in the displaythread.php plugin that rewrites post usernames in the list of post links in hybrid and threaded views. I've got the username rewriting properly in the actual posts themselves, but I can't figure out what hook to use to rewrite the post usernames in the box of links above the posts. Anyone? I just need to know where the $links variable that is used in the template actually gets its data from.
|
All times are GMT. The time now is 07:38 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:
|