Find Jobs
Hire Freelancers

DLE (datalife engine) Modification

$250-750 USD

Cancelled
Posted over 12 years ago

$250-750 USD

Paid on delivery
Version 9.4 of Datalife Engine you can add a " {image-x} " tag in [login to view URL] & topnews.tpl. this displays an image upload on the news post. So for example, if you add "{image-1}" it will display the first image from the post. I need someone who is familiar with Datalife Engine, or PHP& Smarty PHP. The sauce is from [login to view URL] if (stripos ( $tpl->copy_template, "{image-" ) !== false) { $images = array(); preg_match_all('/(img|src)=("|\')[^"\'>]+/i', $row['short_story'], $media); $data=preg_replace('/(img|src)("|\'|="|=\')(.*)/i',"$3",$media[0]); foreach($data as $url) { $info = pathinfo($url); if (isset($info['extension'])) { $info['extension'] = strtolower($info['extension']); if (($info['extension'] == 'jpg') || ($info['extension'] == 'jpeg') || ($info['extension'] == 'gif') || ($info['extension'] == 'png')) array_push($images, $url); } } if ( count($images) ) { $i=0; foreach($images as $url) { $i++; $tpl->copy_template = str_replace( '{image-'.$i.'}', $url, $tpl->copy_template ); } } $tpl->copy_template = preg_replace( "#\\{image-(.+?)\\}#i", "", $tpl->copy_template ); }
Project ID: 1279230

About the project

2 proposals
Remote project
Active 13 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
2 freelancers are bidding on average $350 USD for this job
User Avatar
Hi. Please check your PM. Thanks
$400 USD in 1 day
5.0 (39 reviews)
4.9
4.9
User Avatar
HELLO SIR PLEASE CHECK PMB
$300 USD in 4 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of SOUTH AFRICA
Jeffreys Bay, South Africa
5.0
1
Member since Nov 5, 2011

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)
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.