2 blueyed Oct 27, 2006 21:01

I looked and found a few things, however, I'm not sure how to implement this.
To use this LDAP plugin, I would have to have an LDAP server first? I'm not sure if SMF supports LDAP. Maybe I'm overthinking this?
I've meant: look how the LDAP plugin does it (abstract the SMF DB as a LDAP DB in your mind).
Hook the LoginAttempt (http://doc.b2evolution.net/v-1-8/plugins/Plugin.html#methodLoginAttempt) event (as the LDAP plugin does) and use the $DB global (see http://doc.b2evolution.net/v-1-8/evocore/DB.html) to see if the user exists in the SMF database. If he/she does (and the password matches), create it in b2evo. That's how the LDAP plugin does it.
So, I would be *cheking* the SMF user database, and if the user doesn't already exist inside the b2evolution user database, it would create an entry in b2's database?
Yes. That's what I've understood.. you want to use the existing SMF user database.
Of course, if the password is correct, you would also log the user in..
On the next page request inside b2evo the user is logged in (and exists in b2evo's own DB), so the SMF DB does not need to get checked.
baldhead.nl, what do you mean? Seems like you've hit the wrong thread? If so, I'll delete the post(s).
Alright, so I have to write my own LoginAttempt function to check SMF. Where would I put this code at? Most members have the information stored in thier cookies. Would I put it on my blog summary page?
change conf/formatting.php
$use_html_checker = 1;
change in
$use_html_checker = 0;
go back to your weblog
now go write
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="450" height="450" id="http://Yourflash.swf" align="middle">
<param name="allowScriptAccess" value="sameDomain">
<param name="movie" value="http://Yourflash.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#006699">
<embed src="http://Yourflash.swf" quality="high" bgcolor="#006699" width="450" height="450" name="http://Yourflash.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed></param></param></param></param></object>
You would create your own plugin.
See http://manual.b2evolution.net/CreatingPlugin for an introduction.
Yes, it would be possible.
There are plugin hooks for this.
See the shipped _ldap_plugin and search in the forums. I've said something like this before.. ;)