"New registered" widgets in sidebar wordpress?

F.Mongiello

Member
Hello everyone, I'm looking for a help to recall the registered forum on the sidebar of my wordpress site. The point is that I can not extrapolate user avatars. Does anyone know how I could do? Thank you

I do not know if it's right, so far I've written this:

PHP:
<?php







//XenForo_Application::initialize($fileDir . '/library', $fileDir);

//XenForo_Application::set('page_start_time', $startTime);

  

   //$db = XenForo_Application::getDb();

   //$utente = $db->fetchRow("SELECT * FROM xf_user WHERE username = ?", 'zuleika_scarpa');

   //print_r($utente);

   //$avatar = XenForo_Template_Helper_Core::callHelper('avatar', array($utente, 's'));

  

  

   $fileDir = $_SERVER['DOCUMENT_ROOT'].'/forums/';

require($fileDir . '/src/XF.php');

XF::start($fileDir);

$app = \XF::setupApp('XF\App');



$ip = $app->request->getIp();

$db = $app->getDb();



print_r($db);?>
 
Last edited:
Back
Top Bottom