Implemented [CHARGE=X] BBCodes and Content charge supported outside the forum threads, (XFRM and other add-ons)

Status
Not open for further replies.

Sbenny

Customer
As per title, I'm posting it here in order to not lost its tracks.

The ideal would be being able to replace the download button in XFRM with a charge bbcode, but if it's not feasible, simply adding the ability to parse the CHARGE bbcode in the description of a resource will do the trick, thanks!
 
Upvote 1
This suggestion has been implemented. Votes are no longer accepted.
Hello @Sbenny,

Thank you for your suggestion for DragonByte Credits. Your request will be reviewed by a member of our team shortly.

Unless there are any problems preventing these features from being added to the product, this thread will not receive another reply until it is time to review logged feature requests for implementation.

We appreciate you taking the time to help us improve our products!


- DragonByte Tech Staff
 
Thank you for suggesting this feature, it has now been implemented. We are aiming to include any changes that have been made in a future release (5.6.4).

Change log:
Add CHARGE BBCode support for XFRM Resource Descriptions, XFRM Resource Updates, XFMG Albums, XFMG Comments, and XFMG Media Items

 
If you would like to suggest integration with other add-ons, please note this format that's used to add support:
PHP:
        if ($entity instanceof \XF\Entity\Post)
        {
            return [$entity->user_id, $entity->post_id, 'post'];
        }
        elseif ($entity instanceof \XFRM\Entity\ResourceUpdate)
        {
            return [$entity->Resource->user_id, $entity->resource_update_id, 'resource_update'];
        }
        elseif ($entity instanceof \XFMG\Entity\Album)
        {
            return [$entity->user_id, $entity->album_id, 'xfmg_album'];
        }
        elseif ($entity instanceof \XFMG\Entity\Comment)
        {
            return [$entity->user_id, $entity->comment_id, 'xfmg_comment'];
        }
        elseif ($entity instanceof \XFMG\Entity\MediaItem)
        {
            return [$entity->user_id, $entity->media_id, 'xfmg_media'];
        }
In other words, I will need to know the full namespace to the entity, the way to get the entity's user ID, the content ID, and the content type.

Without this information, and without access to the add-on in question, it is not possible for me to add CHARGE BBCode support.
 
Status
Not open for further replies.

DragonByte Credits

XenForo 1.5.3+ XenForo 2.0.x XenForo 2.1.x XenForo 2.2.x XenForo 2.3.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
4,979
Customer rating
5.00 star(s) 5 ratings
Back
Top