Jump to content
View in the app

A better way to browse. Learn more.

Дизайн и модификация 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.

Создание блока портала(синтаксис)

Создаю блок вида:

Случайное фото галереи

 

<?php 
echo('<Center><table border=0><TR>');
$MZresult = $this->DB->query("SELECT newipb_gallery_images.id as picid,newipb_members.members_display_name as mname,`file_size`,`medium_file_name`,`masked_file_name`,`directory`,`caption`,`description`,`comments`,`views` 
FROM `newipb_gallery_images` , `newipb_members` 
WHERE newipb_gallery_images.member_id = newipb_members.member_id and newipb_gallery_images.approved=1 and newipb_gallery_images.pinned=1 
ORDER BY rand() LIMIT 1");
WHILE ($MZrow = $this->DB->fetch($MZresult))
if (($MZrow['file_size']) < 90000)
{ echo('<TD ALIGN=center width=99%><a href="../index.php?app=gallery&module=images&section=viewimage&img='.$MZrow['picid'].'">');
echo('<B>'.$MZrow['caption'].'</B><BR><BR><IMG SRC="../uploads/');
echo($MZrow['directory']. '/'.$MZrow['masked_file_name'].'" alt="click HERE more info on the image"'. 'class="linked-image"'. 'border=0 ></a><BR><i>'.$MZrow['description'].'</i><BR><BR>Добавил '.$MZrow['mname'].'<br><img src="../public/style_images/fantasy/comments.png">  <b>Коментарий</b>: '.$MZrow['comments'].' :: <a href="../index.php?app=gallery&module=images&section=viewimage&img='.$MZrow['picid'].'">Просмотр коментарий</a>');
echo (' :: <img src="../public/style_images/fantasy/blog/views.png">  Views: '.$MZrow['views'].'</TD></TR></TR>');
}
else
{ echo('<TD ALIGN=center width=99%><a href="/index.php?app=gallery&module=images&section=viewimage&img='.$MZrow['picid'].'">');
echo('<B>'.$MZrow['caption'].'</B><BR><BR><IMG SRC="../uploads/');
echo($MZrow['directory']. '/'.$MZrow['medium_file_name'].'" alt="click HERE more info on the image"'. 'class="linked-image"'. 'border=0 ></a><BR><i>'.$MZrow['description'].'</i><BR><BR>Добавил '.$MZrow['mname'].'<br><img src="../public/style_images/fantasy/comments.png"> <b>Коментарий</b>: '.$MZrow['comments'].' :: <a href="/index.php?app=gallery&module=images&section=viewimage&img='.$MZrow['picid'].'">Просмотр коментарий</a>');
echo (' :: <img src="../public/style_images/fantasy/blog/views.png"> Views: '.$MZrow['views'].'</TD></TR></TR>');
}
echo('</TR></TABLE>');
?>

Болк не отображается скрин прилагается!

 

Создаю блок CS мониторинга, тоже самое!

 

создаю блок ХТМЛ все нормуль! А ПХП не получается мб с синтаксисом что не правильно?

post-16-1269582160_thumb.png

Featured Replies

мне бы тоже понадобилась такая вещь, так как на 3.0.4 у меня не выходит установить Custom Sidebar Blocks вроде устанавливается, а в итоге не работает нечего :( вот мне тоже бы не помешал блок на форуме справа, и чтобы его самому вставить можно было.

мне бы тоже понадобилась такая вещь,

Вставлять свой php код?

 

так как на 3.0.4

Лучше обновится до 3.0.5

 

у меня не выходит установить Custom Sidebar Blocks вроде устанавливается

(e$30) Custom Sidebar Blocks ставили с нормального ресурса? Тогда будет работать.

у меня с данным модам проблем, я его вроде устанавливаю всё окей, но после того как в админке, в меню наверху в приложения я нажимаю на него, меня просто выкидывает на главную страницу админки :)

Значит что-то неправильно установилось.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.