Find Jobs
Hire Freelancers

Block Builder

£20-250 GBP

Lezárt
Kiadva ekkor: több mint 9 évvel ezelőtt

£20-250 GBP

Teljesítéskor fizetve
// 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! :)
Projektazonosító: 6922972

A projektről

7 ajánlat
Távolról teljesíthető projekt
Aktiválva: 9 évvel ezelőtt

Szeretne pénzt keresni?

A Freelancer oldalán történő árajánlatadás előnyei

Határozzon meg költségvetést és időkeretet
Kapja meg fizetését a munkáért
Vázolja ajánlatát
Ingyen regisztrálhat és adhat árajánlatot munkákra
7 szabadúszó adott átlagosan £150 GBP összegű árajánlatot erre a munkára
Felhasználó avatár
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 3 napon belül
5,0 (146 értékelés)
6,7
6,7
Felhasználó avatár
A proposal has not yet been provided
£139 GBP 3 napon belül
4,5 (177 értékelés)
5,8
5,8
Felhasználó avatár
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 3 napon belül
4,9 (12 értékelés)
5,3
5,3
Felhasználó avatár
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 1 napon belül
5,0 (20 értékelés)
4,9
4,9
Felhasználó avatár
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 0 napon belül
5,0 (12 értékelés)
4,4
4,4
Felhasználó avatár
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 3 napon belül
5,0 (2 értékelés)
3,3
3,3
Felhasználó avatár
A proposal has not yet been provided
£150 GBP 3 napon belül
5,0 (3 értékelés)
2,8
2,8
Felhasználó avatár
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 2 napon belül
0,0 (0 értékelés)
0,0
0,0

Az ügyfélről

UNITED KINGDOM zászlója
United Kingdom
0,0
0
Tagság kezdete: dec. 31, 2014

Ügyfél-hitelesítés

Köszönjük! E-mailben elküldtük a linket, melyen átveheti ajándék egyenlegét.
E-mailje elküldése során valami hiba történt. Kérjük, próbálja újra.
Regisztrált Felhasználók Összes Közzétett Munka
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Előnézet betöltése
Hozzáférést adott a helymeghatározáshoz.
Belépési munkamenete lejárt, és kijelentkeztettük. Kérjük, lépjen be újra.