We continue to actively work on the Users module and today we are pleased to present a long-awaited update - one of the most important updates for its further development: we now have support for the $URI_ID$ and $PAGE_ID$ codes in the templates of this module.
This update is available on all servers.
If you are not familiar with these codes, but actively use the "Users" module, then you should read this post with special attention, since the capabilities available to you with these codes allow you to add information to pages with unique identifiers that are not available in "Design Management".
How to find out the unique page ID?
If you are an administrator and have access to the Design Management peru phone number material section and the admin panel, go to any page of the Users module and click on the puzzle icon to see a list of page variables and their values:
How to use codes?
Let's look at a concrete example. How can we add additional information to the "Send a private message" page without adding it to other pages of the single private message template? It's very simple:
<?if($URI_ID$='userpmNew')?>Не спамьте при отправке личных сообщений!<?endif?>
Where:
userpmNew — $URI_ID$ value;
Don't spam when sending private messages! - text displayed only on the private message sending page.
Examples of supported codes and responses
"My profile" and viewing someone else's profile:
$URI_ID$ - userDetails15759
$PAGE_ID$ - userdetails
$MODULE_ID$ - index
Profile edit page:
$URI_ID$ - userEdit15759
$PAGE_ID$ - useredit
$MODULE_ID$ - index
Accepted drugs:
$URI_ID$ — userpmInbox
$PAGE_ID$ — userpm
$MODULE_ID$ — index
Sent PMs:
$URI_ID$ — userpmSendbox
$PAGE_ID$ — userpm
$MODULE_ID$ — index
Page for sending PM:
$URI_ID$ — userpmNew
$PAGE_ID$ — userpm
$MODULE_ID$ — index
Mass mailing of personal messages:
$URI_ID$ - userpmNewToGroup
$PAGE_ID$ - userpm
$MODULE_ID$ - index
List of users:
$URI_ID$ — usersList
$PAGE_ID$ — userslist
$MODULE_ID$ — index
Other updates and bugfixes
support for the $AVATAR_URL$ code on the article material page in the "Article Catalog" module → done ;
correct operation of the $_STATUS$ code when the user status is “Hidden” → done ;
correct canonical output when https is connected → done ;
корректное отображение количества похожих материалов при использовании кода $RELATED_ENTRIES$ → done;
исправлены ошибки в работе кода $ONTOP$ в модуле «Доска объявлений» → done;
мелкие правки, связанные с багами во внешнем виде новой панели управления → done.
New options for customizing the design of the Users moduleup. 7-2017
-
- Posts: 36
- Joined: Thu Dec 05, 2024 4:58 am