Find Jobs
Hire Freelancers

Block Builder

£20-250 GBP

Cerrado
Publicado hace más de 9 años

£20-250 GBP

Pagado a la entrega
// Apologies as this might get long due to being difficult to explain. I am working on a database-driven block builder in PHP. A table called page_blocks contains the id (unique for the block), page_id (relating to which page the block shows on), block_name (can be multiple blocks of the same name, such as standard-content-block etc.), block_order (an integer increasing from 1). I use a function called get_blocks to return all the blocks related to the current page in order by block_order. Then a foreach loop to loop through each block and display them: <?php $blocks = get_blocks(); foreach($blocks as $block) { if($block['block_name'] == 'standard-content-block') { the_element('content', $block['id']); } } ?> While this works as expected, it does not do exactly what I require. The element function utilises a table called block_elements that contains every element for every block (such as 'content' for the standard-content-block above). However, for the function to work I must pass the element name AS WELL AS the block id. Preferrably I would not want to pass the block id in, but for this to be known prior. I have tried something like the below: <?php if(have_block('standard-content-block')) { the_element('content'); } ?> The function have_block sets up a global for that block name which then allows the_element function to no longer need the second argument. have_block works as expected but I cannot find a way to loop through all the blocks in order, and then call each block with this function. I am therefore looking for an experienced PHP coder to come in and to write a couple of functions that would loop through each block from the database, in the order stated by block_order, then use a function like have_block to set-up a global variable for that block to allow for easier usage further down. Willing to discuss further if more clarification is needed, I did say it was difficult to explain! :)
ID del proyecto: 6922972

Información sobre el proyecto

7 propuestas
Proyecto remoto
Activo hace 9 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
7 freelancers están ofertando un promedio de £150 GBP por este trabajo
Avatar del usuario
Hello, I'm ready to assist. I may need to see the table with actual data and current php functions to understand better. So let's start. Best regards.
£250 GBP en 3 días
5,0 (146 comentarios)
6,7
6,7
Avatar del usuario
A proposal has not yet been provided
£139 GBP en 3 días
4,5 (177 comentarios)
5,8
5,8
Avatar del usuario
Hi Sir/Ma'am, My name is Sunny, and I am a Website Developer by profession. I came across your project posting and thought of writing to you. I have read all your requirements and interested to attempt this project. Our team has an experience of approx. 5 years and has developed close to 200 Websites & Portals till date. We are efficient in creating fresh, clean, elegant & corporate designs for websites as well as themes using GUI, HTML5, CSS3, jQuery & Bootstrap. We work on responsive websites (Front-end & Back-end) and Mobile Applications (Android & IOS). In addition, we are an expert in PHP, CakePHP, Zend, CMS, OOPS, Ajax, JavaScript, MySQL, WordPress, Joomla, Drupal, Magento, Prestashop, CRM & others. I have few questions regarding the project and would like to discuss them with you as per your convenience. Let me know how you would like to take the conversation ahead. Thanks, Sunny (WEB DESIGN PLUS)
£263 GBP en 3 días
4,9 (12 comentarios)
5,3
5,3
Avatar del usuario
I have 20 years experience writing tools in PHP/MySQL and other languages. From searchengines to complex analytics tools. I would be happy to discuss this project with you further.
£50 GBP en 1 día
5,0 (20 comentarios)
4,9
4,9
Avatar del usuario
This isn't a big deal. I've been doing DB programming for nearly 20 years -- PHP for 4. I've got a Computer Engineering degree from CMU. Let's chat about it but I'd like to do it. I'm wrapping something else up and then I can probably take care of it in a couple of hours.
£50 GBP en 0 día
5,0 (12 comentarios)
4,4
4,4
Avatar del usuario
First you need to send us the table structure of page_blocks with some data and your php script for our test. it could take less than 3 days you should to be available for questions or clarification.
£199 GBP en 3 días
5,0 (2 comentarios)
3,3
3,3
Avatar del usuario
A proposal has not yet been provided
£150 GBP en 3 días
5,0 (3 comentarios)
2,8
2,8
Avatar del usuario
I can read and understand the existing code of others. Moreover, I can modify files based on Customer's requirements. Beside, I work at Lexmark Research and Development Corp. I developed tools and scripts that the Development Team utilize it. I have a strong background in data processing and string manipulation using PHP, Perl, python, bash and scripting in General. I can start as early possible depending on your approval and acceptance. In relation to this application, I can rest assured I will impart a high quality and reliable, efficient and accurate with the output. Give me a try and I will try to get the best results and finish the project far before the deadline. Thanks, Cracken
£166 GBP en 2 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED KINGDOM
United Kingdom
0,0
0
Miembro desde dic 31, 2014

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.