How to custom display the activity data in the postbit?

Status
Not open for further replies.

Trekkan

Customer
I'm working on redesigning my postbit (legacy) in order to clean it up, etc. Anyway, I want to be able to move the vbactivity output to someplace specific (not a hook location).

How would I go about this?

Looking at the plugin which calls the PHP file, the variable $vbactivity_postbit would contain everything I need.

So I guess I'd somehow need to register this variable so it's accessible in the postbit_legacy template? Not sure how to do that though. =)
 
PHP:
vB_Template::preRegister('postbit_legacy', array('vbactivity_postbit' => $vbactivity_postbit));
Should go directly above the template hook call, I should think.

Hopefully that works :)
 
That worked great, thank you!

So now I need to work on how to un-ugly the rest of my postbit. hehe

Also, no idea if this affects anything else for you, but would it be possible to get this change added to the official codebase? I'll have to remember to edit it for every update (not too big a deal really), but I think others can benefit from this as well. I actually did see someone else ask how to do this for vBActivity in a post on the vb.org forums.
 
Status
Not open for further replies.

Legacy vBActivity & Awards

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
1,730
Customer rating
0.00 star(s) 0 ratings
Back
Top