digitalpoint
Well-known member
Lol... just in case of what? In case I don't release them before?Can you release this and more addons just in case?

Lol... just in case of what? In case I don't release them before?Can you release this and more addons just in case?
lol yeah but ignore me, I just read the article and panicked.Lol... just in case of what? In case I don't release them before?![]()
Ask yourself this... If someone takes a plea deal just to be done with it, do you think they are going to agree to a 20 year (max possible) sentence? Lollol yeah but ignore me, I just read the article and panicked.
Already in use.Release Date?![]()
<?php
class DigitalPointSearch_TemplateCallback_Attribution
{
/*
* Item ID is the numeric identifier for the item in the Digital Point Marketplace
*
* For example, this item: https://marketplace.digitalpoint.com/digital-point-spy.993/item
*
* ...has an item ID of 993
*/
protected static $_itemId = 1772;
/*
* This should be the HTML of your attribution link that is returned if the user does not have a brand-free license.
*/
protected static $_attributionHtml = '</ul><ul class="footerLinks" style="padding-left:20px;float:none"><li><a href="https://marketplace.digitalpoint.com/digital-point-search.1772/item" target="_blank" style="display:inline-block">Digital Point Search</a></li>';
protected static function _checkBranding($matches)
{
$return = @$matches[1];
$client = XenForo_Helper_Http::getClient('https://api.digitalpoint.com/v1/marketplace/branding');
$client->setParameterGet(array(
'item_id' => self::$_itemId,
'url' => XenForo_Application::get('options')->boardUrl
));
$response = $client->request('GET');
$response = @json_decode($response->getBody());
if (!@$response->results->has_brand_removal)
{
$return .= self::$_attributionHtml;
}
return $return;
}
public static function insert($matches)
{
return self::_checkBranding($matches);
}
}
Come on now... don't be dumb. Give me some credit.A request to your page on EACH page with the branding, just to test if it's a brand removal exists or not?
Wouldn't this be better suited as option and daily cronjob?D
Sorry, i thought it's a template callback (not template modification callback)It's a Template Modification callback... meaning it's only called when that specific template (footer in this case) is compiled... As in only when the footer template is EDITED (not viewed).
credit,credit,creditCome on now... don't be dumb. Give me some credit.![]()
I don't *want* people to make API calls with every page request (my end could handle it, but well... just a total waste)... The API system had a built-in rate throttle just in case some dummy tried to do that.Sorry, i thought it's a template callback (not template modification callback)
That's a really sexy way![]()
We use essential cookies to make this site work, and optional cookies to enhance your experience.