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.

Что поменять? Страница с ipb в ips

Featured Replies

Posted
<?php
	if(!defined( 'IN_IPB' ))
	{
        		print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
        		exit();
	}

	class public_usercp_Main_Index extends ipsCommand 
	{
		public function doExecute( ipsRegistry $registry )
		{
			if ( !$this->memberData['g_mem_info'] )
	 		{
	 			$this->registry->output->showError( 'Для доступа к странице требуется авторизация', 10221, null, null, 403 );
			}

			if($this->request['id'])
			{
				if($this->memberData['member_id'] == $this->request['id'])
				{
					$show = 0;
					$user_id = $this->memberData['member_id'];
				}else{
					$show = 1;
					$user_id = $this->request['id'];
				}
			}else{
				$show = 0;
				$user_id = $this->memberData['member_id'];
			}

			$output .= '
				<link rel="stylesheet" href="public/boostrap/bootstrap.css" >

				<h3 class="maintitle">Название</h3>
				<div class="ipsBox_container">
			';

 				if($show)
				{
					$output .= '
						<div class="div_alert alert alert-warning" role="alert">
							<center>
								Что-то не так
							</center>
						</div>
					';
				}else{
					//	
				}

			$this->output =  $output;
			$this->registry->output->setTitle( "Заголовок" );
			$this->registry->output->addContent( $this->output );
			$this->registry->output->sendOutput(); 

		}
	}

?>

 

Здравствуйте! Подскажите, как переписать под ips community? Стоял на локалке ipb 3.4x, решил поставить ips. 

Это код со страниц ,которые создавались отдельно на ipb. Сейчас в менеджере страниц создал страницу, вставляю код, но не работает ничего. Много ошибок всеразличных.

Думаю, решение будет многим полезно, как и мне в целом.

Кстати, вопрос: где хранится php файл созданной страницы в менеджере файлов? 

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.