Перейти к публикации
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.

Добавить блок о редактирование в Links

Опубликовано:

Как можно реализовать что бы в приложение Links, при редактирование записи добавлялся блок кем и когда запись была отредактирована.

 

Нужные поля в таблице базы я создал - edit_name и edit_time, в шаблоны также добавлю информацию, а вот насчёт реализации этого в файлах приложения у меня не хватает знаний :(

Рекомендованные сообщения

Опубликовано:

admin/applications_addon/other/links/modules_public/links/links.php

Найти

			/* Update & redirect */

Выше добавить

		$link['edit_name'] = $this->memberData['members_display_name'];
		$link['edit_time'] = time();

Опубликовано:
  • Автор

@newbie,

Спасибо большое, то что надо!

Опубликовано:
  • Автор

Хотел такое же реализовать и для комментариев Линкс, сделал подобное, но не получается. :(

Опубликовано:

admin/applications_addon/other/links/modules_public/links/comments.php

Найти

		/* Update it... */

Ниже добавить

		$update = array();
		$update['edit_name'] = $this->memberData['members_display_name'];
		$update['edit_time'] = time();
		$update['comment_content'] = $commentText;

 

Найти

		$this->DB->update( 'links_comments', array( 'comment_content' => $commentText ), 'comment_id = ' . $comment[ 'comment_id' ] );

Заменить на

		$this->DB->update( 'links_comments', $update, 'comment_id = ' . $comment[ 'comment_id' ] );

Опубликовано:
  • Автор

@newbie,

Спасибо, то что надо.

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

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.