This is a translated page. The original can be found here: http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/
UPDATES VIA RSS | Email Aggiornamenti via RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / MySQL / PHP / Coding:How to fetch user pro… Home / Coding / MySQL / PHP / Coding: Come scaricare Pro User ...

Coding:How to fetch user profile data with SSI.php from a SMF forum database Coding: Come recuperare i dati del profilo utente con SSI.php da un database forum SMF

Posted on 20. Posted on 20. Jul, 2009 by Dragos in Coding , MySQL , PHP Luglio, 2009 da Dragos in Coding, MySQL, PHP

Even though SMF offers a way to integrate their forum into any website, they do not provide enough information on how to do some basic tasks, eg fetching a member's profile details from the database. Anche se SMF offre un modo per integrare le loro forum in qualsiasi sito web, che non forniscono sufficienti informazioni su come eseguire alcuni compiti di base, ad esempio, andare a prendere i dettagli di un membro profilo dal database. Fortunately, Netbeans has a very helpful feature, the code Navigator which shows an instant preview of all functions available in an open file. Fortunatamente, Netbeans ha una caratteristica molto utile, il codice di Navigator, che mostra un anteprima in tempo reale di tutte le funzioni disponibili in un file aperto. So finding the function which does our job was pretty easy (though I couldn't find it on SMF's website). Così trovare la funzione che fa il nostro lavoro è stato piuttosto facile (anche se non ho trovato sul sito web SMF).

Anyway, to fetch data from the SMF database, using SMF's functions, we need to include SSI.php into our website. Comunque, per recuperare i dati dal database di SMF, utilizzando le funzioni SMF, abbiamo bisogno di includere SSI.php nel nostro sito web.

 include_once('path/to/your/forum/SSI.php'); // replace path/to/your/forum with your path to the SMF forum include_once ( 'path / to / your / forum / SSI.php'); / / Replace path / to / your / forum con il vostro percorso per il forum SMF 
 $userData=ssi_fetchMember(1,''); //ssi_fetchMember() takes two parameters: first: the member id as an integer or more than one id passed in an array; second parameter: output method as string: 'echo' or ''; $ userdata = ssi_fetchMember (1 ,''); / / ssi_fetchMember () accetta due parametri: in primo luogo: il membro id come un intero o più ID passati in un array; secondo parametro: metodo di uscita come stringa: 'echo' o ''; 
 print_r($userData); //display the array containing the member's profile data print_r ($ userdata); / / visualizza l'array contenente i dati del profilo del membro 
Translate this post Traduci questo post


Related posts: Related posts:

  1. PHP Error: Call to a member function fetch_assoc() on a non-object in PHP Errore: Chiamata a una funzione membro fetch_assoc () su un non-oggetto in

    blog comments powered by Disqus commenti del blog powered by Disqus