<![CDATA[ The New MODx Download Repository is Here - My Forums]]> https://forums.modx.com/thread/?thread=152 <![CDATA[Re: The New MODx Download Repository is Here]]> https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1410 Quote from: garryn at Jun 30, 2006, 08:44 PM

There is no use of the SMF Bridge at all in the repository. When the new entry is posted, the document’s "createdby" field is set to the SMF ID (but with a minus eg. -3977). The minus sign stops any interference with existing manager or web users who may be set up.
Ah, I see. So you don’t actually have to have a MODx-authenticated user to create document objects. Now that I think about it, it makes sense, and was probably where I was having a hangup overall. I wanted some sort of single-signon for webusers that didn’t require MODx driving the registration/user management, but now it looks like everything I actually need can be done by authentication via the SMF SSI. Cool. Thanks for the breakthrough. smiley

Quote from: kylej

I’m not sure why they don’t have this functionality in the api.
Heh. Probably the ususal "These functions are subject to change, so we don’t support ’em" kind of deal. Better add that function to the "test it in case it breaks" list for the next SMF upgrade...]]>
Fellini 8.5 Jul 03, 2006, 04:27 PM https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1410
<![CDATA[Re: The New MODx Download Repository is Here]]> https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1409 Quote from: Djamoer at Jun 30, 2006, 05:11 AM

I think we need to fix this on the next release of MODx. I believe this is caused by the uncache header setting that is being sent out to the browser so that the page will not be cached and needs to be refreshed all the time. Correct me if I’m wrong.
Agreed. More talk about this here, don’t know if anything been made yet.. I believe it hasn’t been logged to the bugtracker yet.]]>
doze Jul 01, 2006, 01:39 PM https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1409
<![CDATA[Re: The New MODx Download Repository is Here]]> https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1408 Quote from: garryn at Jun 30, 2006, 08:44 PM

Kyle will probably confirm this ... but if you include the ’Sources/Sub-Posts.php’ from your SMF install (in addition to the SSI.php) in your snippet then you will have access to the createPost() function. (Have a look at this function and you’ll see the types of values you can pass into it)

Garry is correct. If you look in the file Sub-Posts you can see how easy it is to programatically make a post. I can give more details on this tommorow, I don’t have time now.

I’m not sure why they don’t have this functionality in the api.
]]>
kjaebker Jun 30, 2006, 04:24 PM https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1408
<![CDATA[Re: The New MODx Download Repository is Here]]> https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1407
A quick starter question -- when a repository item "document" is created, are you actually storing it as authored by a web user that was created via the SMF Bridge? Or are you just storing it with some generic authorship and storing the SMF username in a TV?
There is no use of the SMF Bridge at all in the repository. When the new entry is posted, the document’s "createdby" field is set to the SMF ID (but with a minus eg. -3977). The minus sign stops any interference with existing manager or web users who may be set up.


Was the "auto-generated forum post" bit straightforward to implement; that is, did it use standard SMF API calls, or did it require some funky hacks to SMF?
Kyle will probably confirm this ... but if you include the ’Sources/Sub-Posts.php’ from your SMF install (in addition to the SSI.php) in your snippet then you will have access to the createPost() function. (Have a look at this function and you’ll see the types of values you can pass into it)

There is absolutely no additional hacking to SMF needed (aside from that required for using SSI) to do the things we have done in the repository grin

Hope that helps,
Garry


]]>
garryn Jun 30, 2006, 03:44 PM https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1407
<![CDATA[Re: The New MODx Download Repository is Here]]> https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1406 ), but I can usually make better progress with a decent starting-point.

A quick starter question -- when a repository item "document" is created, are you actually storing it as authored by a web user that was created via the SMF Bridge? Or are you just storing it with some generic authorship and storing the SMF username in a TV?

A second quick question while I’m here... laugh -- Was the "auto-generated forum post" bit straightforward to implement; that is, did it use standard SMF API calls, or did it require some funky hacks to SMF?
]]>
Fellini 8.5 Jun 30, 2006, 02:28 PM https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1406
<![CDATA[Re: The New MODx Download Repository is Here]]> https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1405



On second thought...it’s not so bad. laugh J/K! Good job, guys! I’m very proud of ya all! Keep up the great work!

Jeff]]>
Bravado Jun 30, 2006, 07:24 AM https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1405
<![CDATA[Re: The New MODx Download Repository is Here]]> https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1404 Quote from: heliotrope at Jun 30, 2006, 08:01 AM

Great job smiley

perhaps you should update the "resources" pointer in the top menu of the forum wich still links to http://modxcms.com/forums/index.php/topic,2425.msg16420.html#msg16420

Thanks for the suggestion, we already placed a short note in the topic, and locked the thread for future submissions. Once we get all resource in the repository, we will modify the top menu link also. smiley

best regards,

zi

edit: spelling error]]>
zaigham Jun 30, 2006, 06:09 AM https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1404
<![CDATA[Re: The New MODx Download Repository is Here]]> https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1403

Quote from: ProWebscape at Jun 30, 2006, 07:57 AM

This might make a great tutorial BTW. It would be a good real world example of how to use MODx natively and the available resources we already have. Is there a module involved in this?
Cool idea! When the Repository is fully bedded in, I think it would be great to get a tutorial done on how we created this from the ground up.

There’s no module ... yet. So far, the concentration has been on the frontend but we have discussed creating a module for the backend administration.

Quote from: heliotrope at Jun 30, 2006, 08:01 AM

perhaps you should update the "resources" pointer in the top menu of the forum wich still links to http://modxcms.com/forums/index.php/topic,2425.msg16420.html#msg16420
I think it’s best to wait a short while until the new Repository has the full complement of resources ... then we can make the switch.

Cheers,
Garry
]]>
garryn Jun 30, 2006, 04:42 AM https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1403
<![CDATA[Re: The New MODx Download Repository is Here]]> https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1402 marc Jun 30, 2006, 04:27 AM https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1402 <![CDATA[Re: The New MODx Download Repository is Here]]> https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1401

It should be no pain to find the rigth ressources now ... Thanks]]>
cwbsoft Jun 30, 2006, 04:16 AM https://forums.modx.com/thread/152/the-new-modx-download-repository-is-here?page=3#dis-post-1401