Mar 09, 2022 12:42 pm
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
5 Replies
Mar 10, 2022 8:15 am
Hello Baze,
Please let us know what code have you added to the file?
Mar 10, 2022 8:47 am
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; ?>
Mar 10, 2022 1:31 pm
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>