Abstimmung wordpress: Unterschied zwischen den Versionen

Aus Wikizone
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „verwendet bei Mascha im Blog intern: yop poll da bei einem custom text field bei der fragsestellung nur en einzeiliger text möglich war, musst die datei /wp-c…“)
 
Zeile 19: Zeile 19:
  
 
$temp_string = str_ireplace( '%POLL-CUSTOM-FIELD-TEXT-INPUT%', '<textarea rows="4" cols="50" type="text" value="" name="yop_poll_customfield['.$custom_field['id'].']" id="yop-poll-customfield-'.$custom_field['id'].'"></textarea>', $temp_string );
 
$temp_string = str_ireplace( '%POLL-CUSTOM-FIELD-TEXT-INPUT%', '<textarea rows="4" cols="50" type="text" value="" name="yop_poll_customfield['.$custom_field['id'].']" id="yop-poll-customfield-'.$custom_field['id'].'"></textarea>', $temp_string );
 +
 +
 +
 +
In der datenbank die Tabelle:
 +
kas_wp_yop_poll_votes_custom_fields
 +
 +
Feld: custom_field_value
 +
 +
von varchar (255) auf Text geändert.

Version vom 19. September 2013, 14:09 Uhr

verwendet bei Mascha im Blog intern:

yop poll


da bei einem custom text field bei der fragsestellung nur en einzeiliger text möglich war, musst die datei /wp-content/plugins/yop-poll/inc/yop_poll_model.php


angepasst werden.


In Zeile 2877

orginal: $temp_string = str_ireplace( '%POLL-CUSTOM-FIELD-TEXT-INPUT%', '<input type="text" value="" name="yop_poll_customfield['.$custom_field['id'].']" id="yop-poll-customfield-'.$custom_field['id'].'" />', $temp_string );


ersetzten durch:

$temp_string = str_ireplace( '%POLL-CUSTOM-FIELD-TEXT-INPUT%', '<textarea rows="4" cols="50" type="text" value="" name="yop_poll_customfield['.$custom_field['id'].']" id="yop-poll-customfield-'.$custom_field['id'].'"></textarea>', $temp_string );


In der datenbank die Tabelle: kas_wp_yop_poll_votes_custom_fields

Feld: custom_field_value

von varchar (255) auf Text geändert.