Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#166 2011-12-23 03:27:24
- nardo
- Member

- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: mem_moderation - Generic Moderation
Has anyone got mem_moderation_image_form working with Textpattern 4.4.1?
The article submission & moderation process is working for me; also the image submission & moderation … but I can’t get the image to be wrapped in an article.
Offline
#167 2012-01-18 11:18:59
- milosevic
- Member

- From: Madrid, Spain
- Registered: 2005-09-19
- Posts: 390
Re: mem_moderation - Generic Moderation
Hello:
I’m becoming crazy with this pluging! :-D
Everythink works fine except that mem_moderation_article_form never saves the author info. The new articles are posted to the moderation queue but without user info. I have no problem with other fields (custom fields, allow comments, section…etc).
I have tried a fix value (“xxx” a real user with admin level) to submit the author info avoiding possible variables problems but without no result: the user is never saved.
I’m trying this code lines, both at the sametime and only one (“user” for moderation table and “AuthorID” for textpattern table):
<txp:mem_form_hidden name="user" value="xxx" />
<txp:mem_form_hidden name="authorid" value="xxx" />
and its upper & lower case variations such:
<txp:mem_form_hidden name="User" value="xxx" />
<txp:mem_form_hidden name="AuthorId" value="xxx" />
I have installed also mem_self_register, I’m using cbe_forntauth for login and registering, but perhaps some mem_self_register code is needed, but it seems that don’t helps mem_moderation_article_form to work fine.
Any help/idea wellcome!
Last edited by milosevic (2012-01-18 11:23:46)
<txp:rocks/>
Offline
#168 2012-01-18 18:31:10
Re: mem_moderation - Generic Moderation
My implementation doesn’t use mem_moderation or cbe_frontauth, but the same principles might apply— here’s the relevant code:
<txp:mem_form_secret
name="Author"
value='<txp:ign_user_info type="name"/>'/>
Using the single quote on the value attribute lets me pull in the output of another Txp tag.
Offline
#169 2012-01-18 18:51:59
- milosevic
- Member

- From: Madrid, Spain
- Registered: 2005-09-19
- Posts: 390
Re: mem_moderation - Generic Moderation
Thanks, John:
I don’t know why but it doesn’t works to me. Perhaps it is a mysql problem, other plugins are working bad to at that website. I will try to port the website to another hosting. Don’t know what else to try.
<txp:rocks/>
Offline
#170 2012-06-01 10:21:58
- Teemu
- Member
- From: Shanghai
- Registered: 2010-04-27
- Posts: 60
Re: mem_moderation - Generic Moderation
I use mem_moderation_image so that user can submit image from public side, which then gets wrapped to an article.
<txp:mem_moderation_image_form>
<txp:mem_form_file name="thefile" label="Image" break="" /><br/>
<txp:mem_form_secret type="image" name="category" break="" value="images"/>
<txp:mem_form_secret name="article_title" break="" value="test"/>
<txp:mem_form_secret name="article_section" break="" value="test"/>
<txp:mem_form_secret name="article_category1" break="" value="test"/>
<txp:mem_form_submit name="mem_moderation_save" label="Upload" class="button"/>
</txp:mem_moderation_image_form>
This works great and the image wrapped to a article gets added to the que.
What I’m trying to figure out is there tags that show preview of the qued image and/or article for the user on public side? Documentation for these plugins are quite limited.
Offline
#171 2012-06-19 16:16:34
- tom1
- Member
- Registered: 2009-03-20
- Posts: 36
Re: mem_moderation - Generic Moderation
im getting weird Fatal error: Call to undefined function getDefaultSection() in /home/info/public_html/dev/textpattern/lib/txplib_misc.php(653) : eval()’d code on line 934
when trying to open uploaded image ( by click description of it ), any ideas where i’ve gone wrong?
edit 1:
okay i was a bit too quick to post that, i got around it by putting section field in form.. but after that i got missing function called category_popup, and its starting to sound like im missing whole bunch of functions ?
edit 2:
after trial and error, i got into success mode. Installed mem_moderation_article and did some other tricks i don’t know, i got it working for now..
Last edited by tom1 (2012-06-19 16:59:22)
Offline
#172 2015-07-28 22:15:22
Re: mem_moderation - Generic Moderation
Has anyone got mem_moderation and mem_moderation_article working on txp 4.5.7?
I’m bringing a very old site with a very specific function set up to date and after updating I get a “division by zero” error on clicking the moderate tab followed by an sql error (both as browser dialogs that have to be clicked away), followed by “I’m sorry. I’m afraid I can’t do that; moderate is an unsafe operation.” in txp. As far as I can tell the form is submitting but I can’t reach the tab on the admin side at all.
Any advice as to which are the correct working plugins would be most welcome…
TXP Builders – finely-crafted code, design and txp
Online