Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: mem_moderation - Generic Moderation
A quick little update. Resolved most issues with the client and will wrap everything in to a new version to serve as a baseline for all installations.
Offline
Re: mem_moderation - Generic Moderation
Manfre wrote:
A quick little update. Resolved most issues with the client and will wrap everything in to a new version to serve as a baseline for all installations.
Awesome! Can’t wait to check it out…
Offline
Re: mem_moderation - Generic Moderation
I can’t wait either! : )
Offline
#79 2007-06-27 10:26:18
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: mem_moderation - Generic Moderation
hello Manfre, thank you for picking up the work on this plugin again.
Which features do you plain to include in the next release(s)?
will image upload/embed possible and if so will there be the possibility to limit size/kind for the images?
I’m currently using the sed_afu plugin to allow users to upload files (images) because that plugin seems to make a rather thorough check of the uploaded files.
my php skills aren’t enough to develop such a plugin myself…
thank you and good luck.
what was that again…?
Offline
Re: mem_moderation - Generic Moderation
Offline
#81 2007-08-10 10:41:50
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: mem_moderation - Generic Moderation
hello Manfre, can’t access your svn…
I’m still trying to figure how mem_moderation_image works and I have a question:
in the function mem_image_save which I assume is the function that actually saves/uploads the file to textpattern, there’s this line:
if ($extensions[$extension]) { et cetera…
which, if I understand good, verifies that the extension of the file is one of the extensions accepted by the textpattern installation.
or am I wrong?
if it is so, why wouldn’t something like if ($extension==$myExtension) { work? (where myExtension is an attribute assignable to the public tag; ie <txp:mem_moderation_image type='jpg' />)
the same goes for the size of the image.
thanks
what was that again…?
Offline
Re: mem_moderation - Generic Moderation
feragnoli wrote:
hello Manfre, can’t access your svn…
I’m still trying to figure how mem_moderation_image works and I have a question:
in the functionmem_image_savewhich I assume is the function that actually saves/uploads the file to textpattern, there’s this line:
if ($extensions[$extension]) {et cetera…which, if I understand good, verifies that the extension of the file is one of the extensions accepted by the textpattern installation.
or am I wrong?if it is so, why wouldn’t something like
if ($extension==$myExtension) {work? (where myExtension is an attribute assignable to the public tag; ie<txp:mem_moderation_image type='jpg' />)the same goes for the size of the image.
thanks
Your analysis is correct. That check will make sure that the image format is one that textpattern recognizes. I have added the arguments ‘accept’ and ‘maxfilesize’ to the tag modimg_form.
accept will allow a CSV mimetype list to allow the browser to restrict the type of files that are uploaded.
maxfilesize will add the MAX_FILE_SIZE hidden input field before the file input field to allow the user’s browser to restrict the file upload.
You can try accessing my svn by clicking this link http://manfre.net/svn/txp
Offline
#83 2007-08-11 10:32:15
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: mem_moderation - Generic Moderation
manfre wrote:
accept will allow a CSV mimetype list to allow the browser to restrict the type of files that are uploaded.
maxfilesize will add the MAX_FILE_SIZE hidden input field before the file input field to allow the user’s browser to restrict the file upload.
but wouldn’t be safer to make those checks also on the uploaded temporary file?
the hidden form fields can be easily bypassed, so a check on the temporary file would increase the safety of the uploaded file.
also: is the image resizing/thumbnail creation working for you?
I installed version 0.4.8 of mem_moderation and tried to install. after installing, when trying to open the moderate tab, it gives this:
Warning: Table 'd005373b.txp_moderation`, `txp_users' doesn't exist select txp_moderation.* from
`txp_moderation``, ``txp_users` where txp_moderation.user=txp_users.name AND (DATE_SUB( NOW(),
INTERVAL 7 DAY ) > txp_moderation.submitted OR txp_users.privs = 1) order by txp_moderation.submitted
asc limit 0,25 in /www/htdocs/v135192/test/textpattern/lib/txplib_db.php on line 84
Failed to access table. Table 'd005373b.txp_moderation`, `txp_users' doesn't exist
where d005373b is the name of my database
thank you
Last edited by feragnoli (2007-08-11 11:24:07)
what was that again…?
Offline
Re: mem_moderation - Generic Moderation
The plugins at Michael’s SVN page don’t work for me – entering them into TXP’s plugin page gives an “Badly formed or empty plugin code” error.
What’s the best way to get the plugins into TXP?
Also, can someone tell me which plugins are necessary for something like this:
- User submission of articles
- Users get their own page to edit/delete articles (not TXP backend)
Not sure if I can do this with Michael’s plugins (perhaps with igner’s plugin), but I’d like to test it out, or get some other ideas from people here….
Offline
Re: mem_moderation - Generic Moderation
My SVN stores the development template of the plugins. These plugins must be “compiled” to the format accepted by Textpattern. Anything pulled from my SVN should also be treated as non-production versions.
ign_password_protect, mem_moderation and mem_moderation_article will allow you to grant users access to a protected section where they each will be given the ability to submit an article through a form you design. The submitted articles are put in to a queue where they can be reviewed (admin side) before accepting (or deleting).
Offline
Re: mem_moderation - Generic Moderation
Thanks Michael. Its a little confusing because in some places the plugins that I can use (from Textpattern resources) say that mem_admin_parse is required.
Are the plugins on TXP Resources the latest “production” versions? Would it be more advisable to use those, or the versions you link to above?
Actually, I think some of your plugins are not listed on the Resources site…
Offline
Re: mem_moderation - Generic Moderation
Not all of my plugins are listed elsewhere. Quite a few were created for specific people, out of boredom or I never officially released. All of the resources should link to files on my site, which will generally be the newest. I update files so the same link should point to the newest version.
Offline
Re: mem_moderation - Generic Moderation
Tried to install the mem_moderation and mem_moderation_article plugins, but get an error about not including the mem_admin_parse plugin. Do you have a link for this so I can test it out?
Presumably mem_moderation should be activated first? Does it create any new tables in the DB?
Offline
Re: mem_moderation - Generic Moderation
Installed admin_parse 0.2.1, mem_moderation 0.4.5 and mem_moderation_article 0.4.4. Errors appear after choosing install wizard. Warnings like:
“Warning: Table ‘site.txp_moderation’ doesn’t exist select count(*) from txp_moderation where 1 in /Users/jonathan/Sites/site/textpattern/lib/txplib_db.php on line 84”
Any ideas???
Offline
Re: mem_moderation - Generic Moderation
jstubbs, it’s been a while since I installed mem_moderation and I can’t remember exactly which version it was, but you first needed to do a once only click on a “Start install wizard” in the plug-in help so that the database tables are set up – that would explain your error message. After that the plug-in finds the tables and works. I remember too that the link address itself wasn’t quite correct – the answer was to copy the link, paste it into the browser and add “/textpattern/ before the index.php?event=…
TXP Builders – finely-crafted code, design and txp
Online