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.

Как реализовать Открытия внешних ссылок через определенное время для гостей

Featured Replies

Posted

есть такой хук >Скрытие ссылок от гостей 1.0.0 который закрывает внешние ссылки для гостей....а возможно реализовать так,чтобы для каждого не Зарегистрированного пользователя шол отсчет времени до открытия ссылки(типа как на скачку на платных файлообменниках)     

  • Author

Редирект ссылак называется ну или перенаправление, заказывайте чтобы вам сделали ну и на сколько я помню идет стандартом в релизе 3.4.1 от ибр.

Не нужно мне перенаправления, нужно что бы открывались закрытые ссылки через время  

  • Author

как это сделать...помогите

Вот сам код скрытия:

class dg_hideLinkGuest extends skin_topic(~id~)
{
      function post($post, $displayData, $topic, $forum=array())
      {
		if($this->settings['dg_hideLinkGuest_onoff'] == 1)
		{
       		if (!$this->memberData['member_id'])
            	{
				$dg_acc_register = $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=core&module=global&section=register", "public",'' ), "", "" );
				$dg_acc_login = $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=core&module=global&section=login", "public",'' ), "", "" );
            		$post['post']['post'] = preg_replace('#<a(.*?)rel='nofollow external'(.*?)<(.*?)a>#', ' <p class='message error'><span style='font-size:10pt'>Пожалуйста, войдите <a href="'.$dg_acc_login.'" style='text-decoration:none;'><b>ЗДЕСЬ</b></a> или Зарегистрируйтесь <a href="'.$dg_acc_register.'" style='text-decoration:none;'><b>ЗДЕСЬ<b></a> для просмотра ссылок!</span></p> ', $post['post']['post']);
			}
      	}
	      return parent::post($post, $displayData, $topic, $forum=array());
	}

как сюда вставить функцию setTimeout или что то типа

  • 2 недели спустя...

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.