₦airaland Forum

Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 1,945,701 members, 4,031,104 topics. Date: Wednesday, 17 January 2018 at 02:19 PM

10 Nights Of Cloning Nairaland With PHP - Programming (4) - Nairaland

Nairaland Forum / Science/Technology / Programming / 10 Nights Of Cloning Nairaland With PHP (7282 Views)

A Month Of Cloning Facebook, G+ And LIS. The Result= Gisthive.com / EMV Chip Cloning Software / If You Want To Learn Angularjs With Php..using XAMP ...why Not Join In Here (1) (2) (3) (4)

(0) (1) (2) (3) (4) (Reply) (Go Down)

Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 10:52pm On Nov 04, 2017
Modify to suit my system and with a little bit of functions in Rust i was able to train it to do the placing of smileys.

but when images are blurry , it fails to do anything.

In this example, it identified the pornographic image ( exposed breasts + butt + little covering) and placed the appriopriate smileys

Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 11:11pm On Nov 04, 2017
Ok, deviating from ML and itx associated wahala....

I did a little time function



<?php
function time2str($ts) {
if(!ctype_digit($ts)) {
$ts = strtotime($ts);
}
$diff = time() - $ts;
if($diff == 0) {
return 'now';
} elseif($diff > 0) {
$day_diff = floor($diff / 86400);
if($day_diff == 0) {
if($diff < 60) return 'just now';
if($diff < 120) return '1 minute ago';
if($diff < 3600) return floor($diff / 60) . ' minutes ago';

}

if($day_diff == 1) { return 'Tomorrow'; }
if($day_diff < 4) { return date('l', $ts); }
if($day_diff < 7 + (7 - date('w'))) { return 'next week'; }
if(ceil($day_diff / 7) < 4) { return 'in ' . ceil($day_diff / 7) . ' weeks'; }
if(date('n', $ts) == date('n') + 1) { return 'next month'; }
return date('F Y', $ts);
}
}
?>



And added a fontawesome reply button. I think i will stink to instagrams style of not using nested comments.....becos i dont know how to do it tongue

Re: 10 Nights Of Cloning Nairaland With PHP by romeo911999: 3:08pm On Dec 22, 2017
Nice. I've seen something almost like this at www.gisthive.com. Try signing up and see the similarity.
Re: 10 Nights Of Cloning Nairaland With PHP by stanliwise(m): 3:41pm On Dec 22, 2017
I love what you're doing Op but make sure it responsive for small screen too.
Re: 10 Nights Of Cloning Nairaland With PHP by nijabazaar: 8:46am On Dec 23, 2017
more updates should be in the works ...lol
Re: 10 Nights Of Cloning Nairaland With PHP by Lamzzyy(m): 8:47am On Dec 23, 2017
kanayoNickel:
when not logged
great work I see here I have this crazy app idea that could be of good for both of us if interested I've got all the design already all is up to u to bring it to reality
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 8:57am On Dec 23, 2017
romeo911999:
Nice. I've seen something almost like this at www.gisthive.com. Try signing up and see the similarity.

I do see it... chai.

I will sue him or her to court.....lol

Maybe I will steal some features. I kinda dumped this project. but I am getting back to it. Coming up with nifty features soon. there are some stuff I stole from instagram.
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 8:58am On Dec 23, 2017
Lamzzyy:
great work I see here I have this crazy app idea that could be of good for both of us if interested I've got all the design already all is up to u to bring it to reality
Thank u.

Here x my mobile 09056821885
Re: 10 Nights Of Cloning Nairaland With PHP by romeo911999: 4:43pm On Jan 02
kanayoNickel:


I do see it... chai.

I will sue him or her to court.....lol

Maybe I will steal some features. I kinda dumped this project. but I am getting back to it. Coming up with nifty features soon. there are some stuff I stole from instagram.

Who wan steal ma features?!? sad sad angry grin

Just visit gisthive.com and sign up. No thieving. Hear!!!
Re: 10 Nights Of Cloning Nairaland With PHP by directonpc(m): 5:18pm On Jan 02
kanayoNickel:

Thank u.

Here x my mobile 09056821885
Happy new year Kanayo!

You seem like a very young developer. You ability to write PHP codes that perform CRUD operations is a huge step in the right direction.

Keep improving, and when you are alone always tell yourself that you know nothing.
Re: 10 Nights Of Cloning Nairaland With PHP by olamil34(m): 5:41pm On Jan 02
kanayoNickel:

Thank u.

Here x my mobile 09056821885

My brother is back oooooo
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 12:34pm On Jan 03
directonpc:

Happy new year Kanayo!

You seem like a very young developer. You ability to write PHP codes that perform CRUD operations is a huge step in the right direction.

Keep improving, and when you are alone always tell yourself that you know nothing.

Same to you Master. May the year bring glad tidings

Yes, I always tell myself that I must learn more. I really want to be "Renaissance Man"

1 Like

Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 12:38pm On Jan 03
olamil34:


My brother is back oooooo

Happy New year Bruv.
2018 is the year for the younf and adventurous in Programming. What are you waiting for...its time to topple Jeff Bezos
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 8:03pm On Jan 07
I saw a thread here with ideas on what they hope NL can add as feature for 2018....

As usual, Being the lazy little thief, I stole one particular nifty idea that stood out => Direct Messaging instead of routing via gmail.

Its still in beta but I am working to integrate it fully online before 12:00 AM today. Hopefully

Its all Jquery and Ajax anyway. But my fears linger on its compatibilty with older versions of Opera. This is always my biggest wahala. Opera.

For the chat bubbles i simply used the default bootstrap labels, working on appending User pics with bevels around each bubble ala instagram

Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 8:07pm On Jan 07
I discovered a very nice blog. You guys should check him out. I am getting loads of stuff from him.
https://sourcey.com/archives/
Re: 10 Nights Of Cloning Nairaland With PHP by Luminee: 6:45am On Jan 08
.
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 7:25am On Jan 08
kanayoNickel:
I saw a thread here with ideas on what they hope NL can add as feature for 2018....

As usual, Being the lazy little thief, I stole one particular nifty idea that stood out => Direct Messaging instead of routing via gmail.

Its still in beta but I am working to integrate it fully online before 12:00 AM today. Hopefully

Its all Jquery and Ajax anyway. But my fears linger on its compatibilty with older versions of Opera. This is always my biggest wahala. Opera.

For the chat bubbles i simply used the default bootstrap labels, working on appending User pics with bevels around each bubble ala instagram






Nna mehnn, the thing is seriously up against me. It's not working for older versions of Opera, and i cant just ignore Opera. this is just flabbergasting. what do I do? sad Well, let me give it another day.

It must work. Or i won't drink Coke again


Maanwhile, I've also been researching on how to retrieve youtube and vimeo video titles from the video id. If anyone is also facing that challenge. look no further, here. this code shoulde treat the malady.

Getting YouTube Video Info using YouTube API v3

The request URL for Video API is as follows:

GET https://www.googleapis.com/youtube/v3/videos?part=snippet%2CcontentDetails%2Cstatistics&id={VIDEO_ID}&key={YOUR_API_KEY}

All you need to do is call this URL with your Video ID and API Key. Most noteworthy, the part parameter specifies a comma-separated list of one or more video resource properties that the API response will include

When you call the above API, it will respond back with JSON data containing snippet, content details and statics about the Video.

The snippet contains information like Video title, description, channel Id, Published Time, Thumbnail URL and so on.

Here is for the PHP

<?php
$api_key = 'YOUR_API_KEY';

$video_url = 'the url of the video';

$api_url = 'https://www.googleapis.com/youtube/v3/videos?part=snippet%2CcontentDetails%2Cstatistics&id=' . getYouTubeVideoID($video_url) . '&key=' . $api_key;

$data = json_decode(file_get_contents($api_url));

// Accessing Video Info
echo '<strong>Title: </strong>' . $data->items[0]->snippet->title . '<br>';
echo '<strong>publishedAt: </strong>' . $data->items[0]->snippet->publishedAt . '<br>';

?>

very unfortunate that this platform does not hightlight codes angry sad cry
Re: 10 Nights Of Cloning Nairaland With PHP by Ruke1989: 9:57am On Jan 10
though I am busy with many other work. I am interested in this your nairaland improvement work and will like to work with you. I believe there should be a new feature called, miss or Mr nairaland contest. people should be able to apply or vote by click of a button and the winners and prizes displayed on the front page to make it more interactive. also, other Africans e.g Kenyans, south African and ghana visit nairaland so there should be a country page e.g nairaland.co.za. ads and content should be country-specific so as to make them more relevant and boost revenue. also ads payment and display should be automated. I believe it is a matter of time before someone more innovative will displace nairaland which I think is overdue for renovation. I have once dreamt of developing a feature-rich and modern nairaland but didn't want to start from scratch at the time because I was working on a complex hospital and school website. abt 3 projects then

if you will like me to work with you, no probs. it takes time and effort to get there. so don't give up
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 9:00am On Jan 13
@Ruke, Of course i'd be interested to partner with ya. heres ma mobile 09056821885

(0) (1) (2) (3) (4) (Reply)

Running Python Codes In Php / Programming Made Easy - Join Whatsapp Group / Epicworship: FREE Church Presentation Software

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (0) (1) (2) (3) (4) (5) (6) (7) (8) (9)

Nairaland - Copyright © 2005 - 2018 Oluwaseun Osewa. All rights reserved. See How To Advertise. 87
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.