Forum Replies Created

Viewing 14 Topics - 1 through 14 (of 14 total)
Author Posts
April 22, 2013 at 11:56 am in reply to: Text cut off after using "&" in content field 2686
Sparhamster Sparhamster

Thx tareq 😉

April 17, 2013 at 11:19 pm in reply to: Change post status if usergroup = admin 2401
Sparhamster Sparhamster This reply has been marked as private.
April 17, 2013 at 11:05 pm in reply to: Change post status if usergroup = admin 2399
Sparhamster Sparhamster

hm..it wont work… the submit / edit button is loading and loading … 🙁

April 17, 2013 at 10:59 pm in reply to: Change post status if usergroup = admin 2398
Sparhamster Sparhamster This reply has been marked as private.
April 17, 2013 at 8:32 pm in reply to: post published date changed after edit 2388
Sparhamster Sparhamster This reply has been marked as private.
April 17, 2013 at 5:29 pm in reply to: post published date changed after edit 2384
Sparhamster Sparhamster

when it will be out? that is very important for me. with that default value magic, i cant integrate the form in my working system. can i use a function like in the “no comment thread” ?

April 17, 2013 at 5:28 pm in reply to: UserID changed after edit post 2382
Sparhamster Sparhamster

Yes from frontend over the wpuf edit page.

April 12, 2013 at 3:22 pm in reply to: edit $_POST values before posting into database 2105
Sparhamster Sparhamster

thx for the great support and the best form plugin for wp 😉

April 12, 2013 at 3:19 pm in reply to: Hidden Category 2104
Sparhamster Sparhamster

Thx a lot.. but u forgot the return value 😉

function wpufe_add_category( $postarr ) {
if ( isset( $postarr[‘post_category’] ) ) {
array_push( $postarr[‘post_category’], 1);
}
return $postarr;
}

worked 😉

April 12, 2013 at 4:55 am in reply to: edit $_POST values before posting into database 2072
Sparhamster Sparhamster

like that?

function wpuf_editpostdata( $form_vars ) {

$form_vars[‘Preis’] = str_replace(“,”, “.”, $form_vars[‘Preis’]);
$form_vars[‘Stattpreis’] = str_replace(“,”, “.”, $form_vars[‘Stattpreis’]);

return $form_vars;
}

add_filter( ‘wpuf_add_post_after_insert’, ‘wpuf_editpostdata’ );

but it didn’t work … $form_vars[‘Preis’] & $form_vars[‘Stattpreis’] are costum fields of the form.

can u show me how the $form_vars oder $form_settings array is build?

April 12, 2013 at 4:47 am in reply to: Hidden Category 2071
Sparhamster Sparhamster

Yes my form have checkbox for category.

“But you want to add an additional category automatically after the post has been submitted?” -> Yes i do 😉

array_push($_POST[‘Category’], “1″); ?

April 11, 2013 at 11:17 pm in reply to: edit $_POST values before posting into database 2055
Sparhamster Sparhamster

can u tell me, why it works with $_POST and not with the parameter $postarr?

function wpuf_editpostdata( $postarr ) {

$_POST[‘Preis’] = str_replace(“,”, “.”, $_POST[‘Preis’]);
$_POST[‘Stattpreis’] = str_replace(“,”, “.”, $_POST[‘Stattpreis’]);
array_push($_POST[‘Kategorie’], “1”);

return $postarr;
}

add_filter( ‘wpuf_add_post_args’, ‘wpuf_editpostdata’ );

it is possible to print_r in functions? every time i try to print_r an array like postarr, the site ist loading and loading 😉

and i try in that line: array_push($_POST[‘Kategorie’], “1”); to add the category id 1 to the category array..it does’t work. which function i have to choose?

April 11, 2013 at 12:55 pm in reply to: Hidden Category 2042
Sparhamster Sparhamster

the category has to be additional to the selected categories.

for example: category 23, 56 and 117 are selected. category 1 has to be added.

April 11, 2013 at 9:46 am in reply to: Change Uploadfolder & Uploadsize 2025
Sparhamster Sparhamster

thx a lot -> solved 😉

Viewing 14 Topics - 1 through 14 (of 14 total)