Find Jobs
Hire Freelancers

Block Builder

£20-250 GBP

Closed
Posted over 9 years ago

£20-250 GBP

Paid on delivery
// 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! :)
Project ID: 6922972

About the project

7 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
7 freelancers are bidding on average £150 GBP for this job
User Avatar
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 in 3 days
5.0 (146 reviews)
6.7
6.7
User Avatar
A proposal has not yet been provided
£139 GBP in 3 days
4.5 (177 reviews)
5.8
5.8
User Avatar
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 in 3 days
4.9 (12 reviews)
5.3
5.3
User Avatar
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 in 1 day
5.0 (20 reviews)
4.9
4.9
User Avatar
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 in 0 day
5.0 (12 reviews)
4.4
4.4
User Avatar
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 in 3 days
5.0 (2 reviews)
3.3
3.3
User Avatar
A proposal has not yet been provided
£150 GBP in 3 days
5.0 (3 reviews)
2.8
2.8
User Avatar
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 in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
United Kingdom
0.0
0
Member since Dec 31, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.