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

Доброго времени всем! Вопрос к знатокам/кодерам.Как можно вывести ссылку на весь контент Автора,в данном случае на посты в Страницах (Pages).

599195626_2022-07-1014-20-59.thumb.png.1e388b4ccc12e64289e1ba198fbbb6a0.png

Есть какая-либо переменная в шаблонах(движке) для подобного вывода ?

  • Author

Из файла hovercard скопировал ссылку

<a href="{url="app=core&module=members&controller=profile&do=content&id={$member->member_id}" base="front" seoTemplate="profile_content" seoTitle="$member->members_seo_name"}">{lang="find_content"}</a> 

на контент пользователя,вставил в файле record (Pages) и на выходе получается ссылка в таком виде site.ru/profile/0-/content/ . Всю голову поломал уже как решить этот вопрос.

  • Author
3 минуты назад, Xontero сказал:

Что именно ты имеешь ввиду? Вы хотите отображать пользовательский контент на отдельной странице.

Да хотя бы вывести ссылку на контент автора.

 

<!--Использование в других местах-->
{{if \IPS\Member::loggedIn()->member_id and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'members', 'front' ) )}}
{{$member = \IPS\Member::loggedIn();}}
  <li data-menuItem='profile'><a href="{url="app=core&module=members&controller=profile&do=content&id={$member->member_id}" base="front" seoTemplate="find_content" seoTitle="$member->members_seo_name"}" title='{lang="view_my_profile"}'>{lang="find_content"}</a></li>
{{endif}}
<!--В темах-->
<li data-ipstooltip="" _title="{lang="Find_Contents"}"><a href="{url="app=core&module=members&controller=profile&do=content&id={$comment->author()->member_id}" base="front" seoTemplate="profile_content" seoTitle="$comment->author()->members_seo_name"}">{lang="find_content"}</a></li> 

 

7 часов назад, AHristich сказал:

вставил в файле record (Pages) и на выходе получается ссылка в таком виде site.ru/profile/0-/content/ . Всю голову поломал уже как решить этот вопрос.

переменные же менять нужно под текущий шаблон. т.к. в текущем нет $member

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.