Customizing SMF > Portals, Bridges, and Integrations

New tools to help integrating SMF with something else

<< < (20/27) > >>

EpicorUsersGroup:
I have been poking around in the source code.  yes it looks like createboard is the correct routine.  I just have to figure out all the parameters.

Thanks for your help.

trushkevich:
Thank you Andre for the API! Man you saved several days of my life!

nathanmc:
Hi there,

I've newly installed SMF and generally found it far easier than others (such as phpBB) to integrate my website and it's functionality.

I'm trying to install and setup the API to automate logging in, logging out and member info edits. I've created my own system, so I'm trying to use the API to do the same functions behind the scenes with SMF.

I cannot seem to find any documentation for the API. Where can I find an explanatory document and any "how to's" for the functions I want to set up? Would seem fairly run of the mill functionality for the API and would therefore have at least a basic document.

Can someone please help me with this.

Thanks very much.

Andre N:
Hi :)

There is a lot of documentation inside the API file itself at the top that will explain how to use the functions. They are pretty easy to use.

1. include the API in your file
2. call the function(s)

--- Code: ---smfapi_login($username);
--- End code ---
now they are logged in

If you get stuck just reply with your problem and I'll help you :)

nathanmc:
Hi Andre,

Thanks for replying so quickly.

I'm attempting to add in a new registration and it doesn't want to work. Can you point out any error I have in my code.

require_once("forum/smf_2_api.php");
$regOptions = array('member_name' => $_POST['reguser'], 'email' => $_POST['email'], 'password' => $_POST['regpass'], 'memberGroup' => 4);
smfapi_registerMember($regOptions);

Thank you.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version