Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Инеграция IP.Downloads с Сервисом Adf.ly

Featured Replies

Posted

Всем привет

После долгих мучений у меня получилось наконец свести вместе   IP.Downloads с Adf.ly

Теперь при добавлении файла на форум , ссылка на файл автоматически будет укорачиватся.

Так-же это как я понимаю может дать маленький доход , ну там на покрыть расходы на хостинг и.т.п.

 

Если кому интересно могу поделится :)

reborns, меня интересует в какой-то степени :) Раньше такая система была на ForumCore, если память не изменяет.

Есть пара вопросов.

  • Каков доход примерно в среднем?
  • Выплаты уже были?
  • Переводы я так понимаю только Paypal?

Заранее спасибо.

  • Author

reborns, меня интересует в какой-то степени :) Раньше такая система была на ForumCore, если память не изменяет.

Да и именно у них это было и делится они не хотели .

 

1, про доходы ничего не знаю

2, //

3, Не уверен но вроде как  только Paypal

Edited by reborns

  • Author

Написанное ниже работает на версии 3.4.2

 

Обратите внимание, обязательно в настройках IP.Download выключить Enable anti-leech и Use dynamic download urls.
####################################################################
Go to ACP -> Look & Feel -> choose skin -> (Downloads) Download Manager -> fileDisplay

Search
##################################

 

<if test="canDownload:|$file['file_cost'] or $file['file_nexus']) OR $purchased == 'ACTIVE' OR $this->memberData['idm_bypass_paid'] OR $this->memberData['member_id'] == $file['file_submitter']">
<if test="dynUrls:|:$this->settings['idm_dynamic_urls']">
<a href='{parse url="app=downloads&amp;module=display&amp;section=download&amp;do=confirm_download&amp;hash={$hash}" base="public" template="idmdd" seotitle="{$file['file_name_furl']}"}' class='download_button rounded right'>
<else />
<a href='{parse url="app=downloads&amp;module=display&amp;section=download&amp;do=confirm_download&amp;id={$file['file_id']}" base="public" template="idmdownload" seotitle="{$file['file_name_furl']}"}' class='download_button rounded right'>
</if>
{$this->lang->words['dpage_button_short']}
</a>
</if>
 

 


##################################
Change to
##################################

 

<php>
$adfAPI = "__api.adf.ly/api.php?key=8890bb3b2fe80dfcfca3f3bb38ccfa9c&uid=2771788&advert_type=int&domain=adf.ly&url=";
$url_hash = $this->registry->getClass('output')->buildSEOUrl( "app=downloads&amp;module=display&amp;section=download&amp;do=confirm_download&amp;hash=".$hash, 'public', $file['file_name_furl'], 'idmdd' );
$url_hash = file_get_contents($adfAPI . $url_hash);$url_id = $this->registry->getClass('output')->buildSEOUrl( "app=downloads&amp;module=display&amp;section=download&amp;do=confirm_download&amp;id={$file['file_id']}", 'public', $file['file_name_furl'], 'idmdownload' );
$url_id = file_get_contents($adfAPI . $url_id);
</php>
<if test="canDownload:|$file['file_cost'] or $file['file_nexus']) OR $purchased == 'ACTIVE' OR $this->memberData['idm_bypass_paid'] OR $this->memberData['member_id'] == $file['file_submitter']">
<if test="dynUrls:|:$this->settings['idm_dynamic_urls']">
<a href='{$url_hash}' target=_blank class='download_button rounded right'>
<else />
<a href='{$url_id}' target=_blank class='download_button rounded right'>
</if>
{$this->lang->words['dpage_button_short']}
</a>
</if>
 

 


##################################

Go to ACP -> Look & Feel -> chọn skin -> Topic View -> Show_attachments
Delete all the code in there and replace it with
##################################

 

<php>
$adfAPI = "__api.adf.ly/api.php?key=8890bb3b2fe80dfcfca3f3bb38ccfa9c&uid=2771788&advert_type=int&domain=adf.ly&url=";
$mainURL = urlencode( "__forum.sysadmin.am/?app=core&amp;module=attach&amp;section=attach&amp;attach_id=" );
$adfURL = "{$adfAPI}{$mainURL}";
$adfURL = preg_replace( "/amp%3B/", "", $adfURL );
</php>
<a href='{parse expression="file_get_contents( $adfURL . $data['attach_id'] )"}'><img src="{$this->settings['public_dir']}<if test="hasmime:|:$data['mime_image']">{$data['mime_image']}<else />style_extra/mime_types/unknown.gif</if>" alt="{$this->lang->words['attached_file']}" /></a>
&nbsp;<a href='{parse expression="file_get_contents( $adfURL . $data['attach_id'] )"}'><strong>{$data['attach_file']}</strong></a> &nbsp;&nbsp;<span class='desc'><strong>{$data['file_size']}</strong></span>
&nbsp;&nbsp;<span class="desc lighter">{$data['attach_hits']} {$this->lang->words['attach_hits']}</span>
 

 


##################################

 

Не забудьте заменить на ваш KEY и UID

Edited by reborns

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.