Find Jobs
Hire Freelancers

Create a simple Wordpress plugin (mood01)

$30-250 USD

Terminado
Publicado hace alrededor de 11 años

$30-250 USD

Pagado a la entrega
Create a new plugin for Wordpress (called "mood01"). The plugin will do four main things 1) Upon installing the plugin, it will create a custom table in MySQL (detail below) 2) Create a shortcode to generate HTML for a form (detail below) 3) Create a hook to process the data from the form defined in #2 (see detail below) 4) Create a shortcode to render HTML for an unordered list of 7 records from the custom table (detail below) #1: CREATING CUSTOM TABLE The custom table should be created ( [login to view URL] ) for storing records created by the [collect_mood_form] plugin. The PHP snippet used for creating this table should be: $table_name = $wpdb->prefix . "mood_sample"; $sql = "CREATE TABLE $table_name ( id mediumint(9) NOT NULL AUTO_INCREMENT , wp_user_id mediumint(9) NOT NULL, sample_time datetime DEFAULT NOW() NOT NULL, mood_code int NOT NULL, annotation varchar(255) DEFAULT '' NOT NULL, serial_month_num int, serial_day_num int, related_post_id mediumint(9), PRIMARY KEY pk_id (id), INDEX ix_user_day (wp_user_id,serial_day_num ASC) );"; #2: SHORTCODE FOR HTML FORM Create a shortcode called [mood_log_form] which renders the following HTML: Enter wordpress user id: Happy Hopeful Determined Stable Guilty Overwhelmed Angry Alone Scared Sad Brief Comments: Save #3: PROCESS FORM When data is POSTed to the /process_mood_sample by the above form, the plugin should insert a record into the mood_sample table created in step 1. It should then redirect to the currently logged in user's profile page. #4: SHORTCODE FOR LATEST RECORDS Create a shortcode called [latest_mood_list] which runs a SELECT query on the mood_sample table and finds the most recent 7 records for the currently logged in user's id ( mood_sample.wp_user_id == get_current_user_id() ). It outputs the records so that they appear as HTML like shown below, with the entries in descending date order (newest sample_time records appearing at the top). sample_time: 2013-02-09 mood_code:7 sample_time: 2013-02-08 mood_code:7 sample_time: 2013-02-07 mood_code:7 sample_time: 2013-01-29 mood_code:7 sample_time: 2013-01-25 mood_code:7 sample_time: 2013-01-19 mood_code:7 sample_time: 2013-01-04 mood_code:7
ID del proyecto: 4232907

Información sobre el proyecto

4 propuestas
Proyecto remoto
Activo hace 11 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
I can build this plugin for you.
$100 USD en 5 días
5,0 (24 comentarios)
5,2
5,2
4 freelancers están ofertando un promedio de $155 USD por este trabajo
Avatar del usuario
understood your requirement and ready to start................
$220 USD en 18 días
4,9 (270 comentarios)
8,2
8,2
Avatar del usuario
Let's Start... Accept our BID. Check PMB. Thanks
$150 USD en 3 días
4,6 (48 comentarios)
6,4
6,4
Avatar del usuario
Dear Sir, Greetings! We are Reform Consulting with 5 years of experience under our belt. We are really interested to work on your project. Please see PM. Thank you. Regards, RCPL.
$150 USD en 5 días
0,0 (3 comentarios)
4,4
4,4

Sobre este cliente

Bandera de UNITED STATES
Mesa, United States
5,0
27
Forma de pago verificada
Miembro desde ene 17, 2013

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.