MyBB Community Forums
[How To?] PM folders options in different templates - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] PM folders options in different templates (/thread-221872.html)



PM folders options in different templates - Adriano - 2019-02-08

Hello there,

I wanted to change the select field "jump to folder" in Private Messaging (private_jump_folders & private_jump_folders_folder) to html/css tabs. Unfortunately it seems like the template private_jump_folders_folder is being used also in fields: "Move to folder" and "Search folders" in Advanced Search.

I'm using PHP in Templates plugin, therefore I'm wondering whether it's possible to set the private_jump_folders_folder content:
In private template to:

<a href="{$mybb->settings['bburl']}/private.php?fid={$folder_id}" class="ucp-tabs__item"><i class="far fa-file"></i> {$folder_name}</a>
Elsewhere to:
<option value="{$folder_id}"{$sel}>{$folder_name}</option>

Or maybe can I somehow generate my own list of available folders in private template? Or should I forget all above?

Thank you in advance!