Snippet Time!
As promised here are a few custom snippets I wrote for the MODx blog:
Update: Snippets have been reposted in the forums due to file corruption.
SMF integrated UserComments snippet version 1.0.
[Download Code]
UserCommentsCount snippet version 1.0.
[Download Code]
NewsListing 6.3.
[Download Code]
Comments:
2
SMF module vs. SMF integration by OpenGeek 16-Jan-06 11:17 AM
Not at all, since we are not logging users into the MODx site, we are simply using the SMF API to check if a user is logged in and then grab different data (like the user avatars) if they are.
However, this integration required some core SMF code be modified slightly, as it will crash if a user is authenticated against any other session on the domain, since SMF attempts to ini_set several session config settings when included in another script. Needs an if statement around it to check if a session is already started. LOL! Not real conducive to federated user management or SSO (single sign-on) integrations.
However, this integration required some core SMF code be modified slightly, as it will crash if a user is authenticated against any other session on the domain, since SMF attempts to ini_set several session config settings when included in another script. Needs an if statement around it to check if a session is already started. LOL! Not real conducive to federated user management or SSO (single sign-on) integrations.
3
Email notifications... by rthrash 17-Jan-06 09:24 AM
I was just about to PM about that same thing... :) Mr. Version Rocket, time to get back at it!
4
Exactly what kind of notification? by Mark 17-Jan-06 02:29 PM
Exactly what kind of notification? RSS? Email?
5
Notification type by rthrash 18-Jan-06 12:23 AM
Email to the author when folks make a new comment... perhaps only one per "visit"... so you don't get a lot of comment notifications... heck, maybe even be able to subscribe to just the comments would be cool, too.
6
Using the SMF API to check user login w/o the module? by Fellini 8.5 20-Jan-06 09:14 AM
You're using the SMF API to check user login w/o the SMF Module?
Umm, I can't quite figure out how you're doing that. All I see in the code are calls to modx-> webuser functions... Then again, I'm a PHP newb...
Umm, I can't quite figure out how you're doing that. All I see in the code are calls to modx-> webuser functions... Then again, I'm a PHP newb...
7
Older code by Mark 20-Jan-06 09:19 PM
I left some of the older code in there because I didn't have time to dissect what was still needed.
14
function? by bugsmi0 24-Mar-06 06:59 PM
How about some description on each of these ?
what do they each do ?
what do they each do ?
15
question! by edipo 06-Apr-06 07:33 AM
Can I use the SMF integrated UserComments snippet with the SMF bridge and a single sign-on on MODx?
17
Nice work on this exelent Tool by Dimmy 27-Mar-07 07:33 AM
This is an exelent intergration snippet nice to have some parts from the forum profile reflect on the modx site.
You must be logged into the forums to comment. Please login
I didn't think SMF integrated UserComments snippet was a "standalone", I thought SMF Module would be required. Is it ?
Comment counts is a definite must-have ! Since I did not yet create a blog with MODx, do we have email notification upon new comments ?