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 UPDATES VIA RSS | E-mail Get updates via feedburner Get updates via twitter
Home / Coding / MySQL / PHP / Coding:How to fetch user pro… Home / Coding / MySQL / PHP / Coding: Hoe te halen gebruiker pro ...

Coding:How to fetch user profile data with SSI.php from a SMF forum database Coding: Hoe te halen gebruikersprofiel gegevens met SSI.php uit een SMF forum database

Posted on 20. Geplaatst op 20. Jul, 2009 by Dragos in Coding , MySQL , PHP Juli, 2009 door 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. Hoewel SMF een manier om hun forum te integreren in een website biedt, dienen zij niet voldoende informatie over de wijze waarop een aantal fundamentele taken doen, zoals het ophalen van het profiel van een lid gegevens uit de database. Fortunately, Netbeans has a very helpful feature, the code Navigator which shows an instant preview of all functions available in an open file. Gelukkig Netbeans een zeer nuttige functie heeft, de code Navigator die een instant preview van alle functies die beschikbaar zijn in een open dossier blijkt. So finding the function which does our job was pretty easy (though I couldn't find it on SMF's website). Dus het vinden van de functie die wel onze taak was redelijk makkelijk (hoewel ik niet kon vinden op de website van SMF's).

Anyway, to fetch data from the SMF database, using SMF's functions, we need to include SSI.php into our website. Hoe dan ook, de gegevens van de SMF-database te halen, met behulp van SMF functies, moeten we SSI.php opgenomen in onze website.

 include_once('path/to/your/forum/SSI.php'); // replace path/to/your/forum with your path to the SMF forum include_once ( 'pad / naar / uw / forum / SSI.php "); / / vervang pad / naar / uw / forum met uw pad naar de SMF forum 
 $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 () neemt twee parameters: eerste: het lid id als een integer of meer dan een id doorgegeven in een array, in de tweede parameter: de uitgang van de methode als string: 'echo' of ''; 
 print_r($userData); //display the array containing the member's profile data print_r ($ userdata); / / display van de array met het profiel van het lid gegevens 
Translate this post Translate this post


Related posts: Gerelateerde berichten:

  1. PHP Error: Call to a member function fetch_assoc() on a non-object in PHP error: Call to a member function fetch_assoc () op een niet-object in

    blog comments powered by Disqus blog comments powered by Disqus