Analyzing an add-on, trying to fix 1.2 issues

chrisj

Active member
I was trying to fix this add-on for 1.2:

http://xenforo.com/community/resources/recentstatus.160/

The structure off the add-on is:

Controllers:
ClearCache.php - Doesn't seem to be used but would reset the cache.
Controller - Empty file, probably does nothing.
Public.php - adds status and status comments to the response->params.

DataWriter:
ProfilePost.php - saves the profile post and resets the recent status cache. (so clearcache seems extraneous)

Listener:
DataWriter.php - triggers the ProfilePost datawriter.
LoadClassController.php -triggers the Public.php code.
TemplateHook.php - adds status and status comments to the templete. (so Public.php seems extraneous)

I've written an add-on before but I didn't hook into Xenforo as much. Am I correct in stating that it can be cut down to:

DataWriter:
ProfilePost.php

Listener:
DataWriter.php
TemplateHook.php
 
Not answering your question, but i would highly recommend xfrocks bd widget framework addon. A widget for the recent status already exists within that package and allows you far more configurability as well as able to add different things to your forum, anywhere you would like with it.
 
Back
Top Bottom