Abstimmung wordpress: Unterschied zwischen den Versionen

Aus Wikizone
Wechseln zu: Navigation, Suche
Zeile 50: Zeile 50:
 
=== Ablauf der Umfrage ===
 
=== Ablauf der Umfrage ===
 
=== Auswertung der Umfrage ===
 
=== Auswertung der Umfrage ===
 +
 +
 +
=== Anpassungen  am Plugin Yop poll===
 +
 +
yop-poll => inc => admin.php
 +
 +
Hier die DB mit prefix versehen. "kas_"
 +
 +
 +
 +
yop-poll => inc => yop_poll_model.php
 +
yop-poll => inc => db_schema.php
 +
 +
yop-poll => js => yop_poll_public.js

Version vom 16. Oktober 2014, 11:50 Uhr

Wordpress Extension Yop Poll - verwendet bei Mascha im Blog intern:


yop poll Anpassungen

Da bei einem custom text field bei der fragesstellung nur 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.


Abfrage für Antworten mit Kommentar

SELECT *
FROM `kas_wp_yop_poll_logs`
LEFT OUTER JOIN `kas_wp_yop_poll_votes_custom_fields` ON `kas_wp_yop_poll_logs`.`vote_id` = `kas_wp_yop_poll_votes_custom_fields`.`vote_id`
WHERE `kas_wp_yop_poll_logs`.`poll_id` =13


Neue Umfrage Erstellen

Vorlagen für Mascha

Artikel Vorlagen erstellen und bei der Kategorie "Dekra direkt" einordnen.

Neue Abstimmung erstellen mit "Block by Personal Number"

Abstimmung in den Artikel einpflegen

Ablauf der Umfrage

Auswertung der Umfrage

Anpassungen am Plugin Yop poll

yop-poll => inc => admin.php

Hier die DB mit prefix versehen. "kas_"


yop-poll => inc => yop_poll_model.php yop-poll => inc => db_schema.php

yop-poll => js => yop_poll_public.js