Is there a sortcode to show the avatar from the account that's logged in in _sub_header.html?
I tried <bx_if:show_thumbail>__thumbnail__</bx_if:show_thumbail> ( extra_sm_thumbnail.html ) but that's didn't work.
Is there a sortcode to show the avatar from the account that's logged in in _sub_header.html? I tried <bx_if:show_thumbail>__thumbnail__</bx_if:show_thumbail> ( extra_sm_thumbnail.html ) but that's didn't work. |
I would think you could move the thumbnail. Did you try clearing the caches. Geeks, making the world a better place |
No there is not. https://www.deanbassett.com |
Can't i just put some code in inc/classes/BxDolTemplate.php so <bx_if:show_thumbail>__thumbnail__</bx_if:show_thumbail> works in _sub_header.html? |
You can also create your own keys that you might need. For example, I needed to hide my custom menu that replaces the standard Dolphin navigation menu; The Dolphin Menu is still needed to generate the submenu items so it is just hidden from view. In order to be able to hide my custom menu from guest viewing, I crated a key that generates the menu and in the code it checks for guest viewing of the menu. In the template, I just add the key for the menu. In my answer I did say "I would think" So yes, you can but you need to do a little extra work; as Deano pointed out, to accomplish what you want. Geeks, making the world a better place |
Can't i just put some code in inc/classes/BxDolTemplate.php so <bx_if:show_thumbail>__thumbnail__</bx_if:show_thumbail> works in _sub_header.html? This script, inc/classes/BxDolTemplate.php, must contain the thumbnail key. Or generate a slightly different key name so you can keep up with it. You need to add the code to that script that will generate the key because the _sub_header.html template file is parsed by BxDolTemplate.php. Study how this is done by looking at the original thumbnail key code. Geeks, making the world a better place |