Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,148,360 members, 7,800,728 topics. Date: Thursday, 18 April 2024 at 03:46 AM

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

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

[Tutorial Post] How To Integrate Paystack Payment System With PHP / A Month Of Cloning Facebook, G+ And LIS. The Result= Gisthive.com / EMV Chip Cloning Software (2) (3) (4)

(1) (2) (3) (4) (5) (6) (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

1 Like 1 Share

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, 2018
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 [url]gisthive.com[/url] and sign up. No thieving. Hear!!!
Re: 10 Nights Of Cloning Nairaland With PHP by directonpc(m): 5:18pm On Jan 02, 2018
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, 2018
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, 2018
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 1 Share

Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 12:38pm On Jan 03, 2018
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, 2018
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, 2018
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(f): 6:45am On Jan 08, 2018
.
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 7:25am On Jan 08, 2018
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, 2018
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

1 Like

Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 9:00am On Jan 13, 2018
@Ruke, Of course i'd be interested to partner with ya. heres ma mobile 09056821885
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 2:00pm On Apr 13, 2018
My chat has passed beta stage. Now published..

Beforehand i was putting an Ajax call in a function and use setInterval to execute that function every 5 seconds and append the response in a content div. But then wahala grew tentacles...

I learnt that Using setInterval() is not a good idea when continuously polling a URL. If the request takes longer than 2 seconds to complete then you will end up with overlapping requests.

Using Using setTimeout(), immediately after the request is done, is a better idea.

Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 4:17pm On Apr 13, 2018
Have you ever been in a situation where your form submission using Ajax submits twice into the database?
Submitting twice is causing duplicate entries in the database.

Somehow i battled this for two hrs and nearly gave up!

until i found this >>
e.preventDefault();
e.stopImmediatePropagation();


well, i found that this works perfectly

See sample

Re: 10 Nights Of Cloning Nairaland With PHP by dauddy97(m): 8:32am On Apr 15, 2018
kanayoNickel:
Have you ever been in a situation where your form submission using Ajax submits twice into the database?
Submitting twice is causing duplicate entries in the database.

Somehow i battled this for two hrs and nearly gave up!

until i found this >>
e.preventDefault();
e.stopImmediatePropagation();


well, i found that this works perfectly See sample
baba u are doing good. I want to be like you. I have copied ur number and i will give u a call or msg u on whatsapp. Pls, how do i improve on my programming skill and be able to handle big project like u did. Pls, help the upcoming programmers. You can reccomend a video tutorial to watch and ebonks for me/we. Thanks. I wish to be like u some days.
Re: 10 Nights Of Cloning Nairaland With PHP by GenghisAlexa1(m): 12:05am On Apr 24, 2018
kanayoNickel:
I neva knew i could achieve all this this year. Thanks to all who guided me @DanieltheGeek, @Olamil34, @DharkPoet , @LinuxMint et al.

so, I went back to my village. Here theres abundant lite and GLO is superb....imagine.

I am taking a break , for the rest of this month ,to goto that other side of me ---- Game character Development

this month alone i have gained a lot in:
1. having a function that detects if the browser function is Opera Mini or UC WEB (thanks @LinuxMint for pointin out this)
2. Jquery drag and Drops
3. Masonic grid layouts that are responsive regardless of screen size
4. Lightbox pop-ups on picture click (check gallery of user Kanye)
5. Ajax fetch
6. Infinite scroll extended to topics
8. I began using password_hash thanks to the advice of

Thanks once again to every body.

I know there are still major stuff that I had to review (like that page margin and one page view for all categories) but i dont have to let them bug me angry sad undecided. Do u know that in this my almost-getting-futile-attempt to prettify my url, i'd discovered several stuff. Like i am trying to solve a problem and hitting gold nuggets grin

I might add augmented reality-like stuff used in Snapchat next November. Users might start adding Dog Ear lobes, Rabbit Nose and funny glasses to their pics. DON't LAFF or SCOFF, I am looking at a tutorial on it as i writeth cool grin. Stay tuned.

FOR NOW itx Blender and Zbrush

Hi. I do have an Augmented reality project I'm working on, and I need extra minds, on this one. Please message me on whatsapp 07039787010 if you're interested, it's for a festival and we have assurance of maximum media exposure. We plan to use it to enhance another project and we thought the festival would be very great as a grand announcement for the team and our other projects.
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 10:30am On Apr 25, 2018
GenghisAlexa1:


Hi. I do have an Augmented reality project I'm working on, and I need extra minds, on this one. Please message me on whatsapp 07039787010 if you're interested, it's for a festival and we have assurance of maximum media exposure. We plan to use it to enhance another project and we thought the festival would be very great as a grand announcement for the team and our other projects.

Definitely, thank you for reaching out to me.

I will whatsapp asap
Re: 10 Nights Of Cloning Nairaland With PHP by mrlarhdesuyi: 11:20pm On Apr 26, 2018
I think you should go back to your psychology, those that told you so are telling you the right thing - you will do well to listen to them.



that is how they use to tell me to go to my M.B.B.S back then




but if you are like me - ANYTHING THEY SAY GOES IN THROUGH THE LEFT EAR AND OUT THROUGH THE RIGHT EAR!
Hey bro..also studying MBBS..started programming 2 years ago..can I av your contact..it'll be nice to talk to someone that passed tru what I'm passing thru.(programming-wise )...thanks..
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 9:51am On Apr 27, 2018
mrlarhdesuyi:

Hey bro..also studying MBBS..started programming 2 years ago..can I av your contact..it'll be nice to talk to someone that passed tru what I'm passing thru.(programming-wise )...thanks..

grin grin welcome to the club. Perseverance is the key to this hubris world of programming.
here 09056821885,

The Muses Struck Me Last two days ago, and i decided to change the look of the if(!IsMobile) grin look

and I was able to also add a feature that bounces the image in the chat window upon POST or Load. I burrowed it from Skype.
And another ability for the user to change background of the chat window....another feature stolen from Whatsapp.

I am just a confirmed thief....real lazy youth grin cool

The chat is still lacking file attachment with ajax features, anyway. working on that

Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 10:04am On Apr 27, 2018
dauddy97:
baba u are doing good. I want to be like you. I have copied ur number and i will give u a call or msg u on whatsapp. Pls, how do i improve on my programming skill and be able to handle big project like u did. Pls, help the upcoming programmers. You can reccomend a video tutorial to watch and ebonks for me/we. Thanks. I wish to be like u some days.

Try briefbox.me

Make yourself an ardent disciple of ajax and Jquery channels on youtube. Trust me you wont regret it one bit

1 Like

Re: 10 Nights Of Cloning Nairaland With PHP by nijabazaar: 10:45am On Apr 27, 2018
getting woke shocked
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 10:46am On Apr 27, 2018
Dear Lord give me a partner....My very own Steve Wozniak smiley

This project is getting rather vast for one person to handle.....Help

The film download section has a new upgrade with Jquery mouse over bounce

1 Like 1 Share

Re: 10 Nights Of Cloning Nairaland With PHP by dauddy97(m): 5:56pm On Apr 27, 2018
kanayoNickel:


Try briefbox.me

Make yourself an ardent disciple of ajax and Jquery channels on youtube. Trust me you wont regret it one bit
can I have your number.so,i can message u on WhatsApp
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 10:35am On Apr 30, 2018
dauddy97:
can I have your number.so,i can message u on WhatsApp

here is it: 09056821885

Meanwhile, let me update you guys with my recent progress with 3D asset building peradventure there's an indie game maker in the hauz.
I decided to stay off programming over the weekend..

Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 8:51pm On May 20, 2018
A simply image cropping tool done with Jquery and ajax and a lot of font awesome css

check it out here
www.flixori.com/crop/

(1) (2) (3) (4) (5) (6) (Reply)

Challenge Me / Are Mini Laptops Good For Programming? / Why Self Taught Programmers Over “Exaggerate”.

(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: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

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