Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
Hi guys,
Â
i'm trying to embed the users avatar from jReviews into the comments, so i've created template override which works fine in /wp-content/themes/mytheme/wpdiscuz/layouts/1/avatar.html, but then when i add the php code there nothing happens, only the html is rendered. Can you please let me know how can i sort this out?
Â
thanks,
Baze
Hello Baze,
Please let us know what code have you added to the file?Â
Any php code is not rendered, not even a simple echo, and currently i have this but on the front end i don't see anything:
<?php require_once ABSPATH.'/wp-content/plugins/jreviews/jreviews/framework.php'; S2App::import('Component','userprofiles_profile','jreviews'); S2App::import('Model','everywhere_com_content','jreviews'); $profile = UserprofilesProfileComponent::getOneProfile($userId = null); echo $profile; ?>
Even this is only showing the avatar and the author name, not the echo
<div class="{AVATAR_WRAPPER_CLASSES}"> {AVATAR} <div class="auth">{AUTHOR}</div> <?php echo "baze"; ?> </div>