Facebook Timeline Wall Script 2.0 with PHP, Mysql, jQuery

Hi Guys, Today I am going to share my facebook timeline wall script version 2.0 with more interesting features. I have added live commenting system with smileys option. I had received lots of request from my visitors to update the existing facebook wallscript version 1. So today I am very glad to share this wonderful code to all.

Facebook Timeline Wall Script Version 3.0 โ€“ Updated Click here

I had published facebook style dynamic ย timeline wall script version 1.0 previously – check it out

Facebook Dynamic Timeline Wall Script Version 2.0
Facebook Dynamic Timeline Wall Script Version 2.0

Contents

Features

1. Upload pictures
2. Share updates
3. Share youtube videos
4. Delete post
5. Facebook timeline design
6. Live commenting system
7. Smiley support using PHP
8. Delete comment
9. Infinite scroll – Auto load more

Database Design for Facebook Timeline Wall Script Version 2.0

Database design for Facebook wall script version 2.0. Contains two tables – Posts & Comments

facebook wallscript version 2 - DB Structure
Facebook Wallscript Version 2 – DB Structure

Facebook Timeline Wall Script – Version 2.0 contains 4 folders

  • assets
    • Stylesheets
    • Javascripts
    • Images
    • Smileys – contains smiley icons
  • Includes
    • config.php
    • security.php
    • SimpleImage.php – used to upload images
    • Smileys – Used to parse smileys
  • Uploads – all pictures are uploaded to this folder

All you have to do is simply download and upload the sql file. finally some minor changes to be done in config.php

Config.php

define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_DATABASE', 'fb_wall');
define('ImageUploadPath', 'uploads/');
$post_limit = 10; // set number of records to load by default
$connection = mysql_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD) or die(mysql_error());
$database = mysql_select_db(DB_DATABASE) or die(mysql_error());
mysql_query ("set character_set_results='utf8'");
$base_url='http://localhost/facebook-timeline-part-2/'; // with trailing slash
$base_folder = "facebook-timeline-part-2/"; //leave empty if you using root folder
$smiley_folder = $base_url.'assets/smileys/'; // your smiley icons folder

Smileys.php

Here is the code to parse smiley inside the content.

function get_smiley_array()
{
$smileys = array(

// smiley image name width height alt
':)' => array('grin.gif', '19', '19', 'grin'),
':-)' => array('grin.gif', '19', '19', 'laugh'),
':lol:' => array('lol.gif', '19', '19', 'LOL'),
':cheese:' => array('cheese.gif', '19', '19', 'cheese'),
':)' => array('smile.gif', '19', '19', 'smile'),
';-)' => array('wink.gif', '19', '19', 'wink'),
';)' => array('wink.gif', '19', '19', 'wink'),
':smirk:' => array('smirk.gif', '19', '19', 'smirk'),
':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'),
':-S' => array('confused.gif', '19', '19', 'confused'),
':wow:' => array('surprise.gif', '19', '19', 'surprised'),
':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'),
':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'),
'%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'),
';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'),
':P' => array('rasberry.gif', '19', '19', 'rasberry'),
':blank:' => array('blank.gif', '19', '19', 'blank stare'),
':long:' => array('longface.gif', '19', '19', 'long face'),
':ohh:' => array('ohh.gif', '19', '19', 'ohh'),
':grrr:' => array('grrr.gif', '19', '19', 'grrr'),
':gulp:' => array('gulp.gif', '19', '19', 'gulp'),
'8-/' => array('ohoh.gif', '19', '19', 'oh oh'),
':down:' => array('downer.gif', '19', '19', 'downer'),
':red:' => array('embarrassed.gif', '19', '19', 'red face'),
':sick:' => array('sick.gif', '19', '19', 'sick'),
':shut:' => array('shuteye.gif', '19', '19', 'shut eye'),
':-/' => array('hmm.gif', '19', '19', 'hmmm'),
'>:(' => array('mad.gif', '19', '19', 'mad'),
':mad:' => array('mad.gif', '19', '19', 'mad'),
'>:-(' => array('angry.gif', '19', '19', 'angry'),
':angry:' => array('angry.gif', '19', '19', 'angry'),
':zip:' => array('zip.gif', '19', '19', 'zipper'),
':kiss:' => array('kiss.gif', '19', '19', 'kiss'),
':ahhh:' => array('shock.gif', '19', '19', 'shock'),
':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'),
':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'),
':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'),
':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'),
':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'),
':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'),
':vampire:' => array('vampire.gif', '19', '19', 'vampire'),
':snake:' => array('snake.gif', '19', '19', 'snake'),
':exclaim:' => array('exclaim.gif', '19', '19', 'excaim'),
':question:' => array('question.gif', '19', '19', 'question') // no comma after last item

);
return $smileys;
}
function parse_smileys($str = '', $image_url = '', $smileys = NULL)
{
if ($image_url == '')
{
return $str;
}

if ( ! is_array($smileys))
{
if (FALSE === ($smileys = get_smiley_array()))
{
return $str;
}
}

// Add a trailing slash to the file path if needed
$image_url = preg_replace("/(.+?)\/*$/", "\\1/", $image_url);

foreach ($smileys as $key => $val)
{
$str = str_replace($key, "<img style="0border: 0;" alt="\&quot;&quot;.$smileys[$key][3].&quot;\&quot;" src="\&quot;&quot;.$image_url.$smileys[$key][0].&quot;\&quot;" width="\&quot;&quot;.$smileys[$key][1].&quot;\&quot;" height="\&quot;&quot;.$smileys[$key][2].&quot;\&quot;" />", $str);
}

return $str;
}
//usage
echo parse_smileys($message, $smiley_folder);

Please donโ€™t forget to share and subscribe to latest updates of the blog. Also any comments and feedback are all welcome!

Thanks!

View Live Demo
Facebook Timeline Wall Script Version 3.0 – User Login, User Registration, Facebook style Like System, Add Friend & many more features – https://w3lessons.info/2013/04/21/facebook-wall-script-3-0-timeline-oauth-location-sharing-smileys-many-more/

Subscribe to my blog & get more updates on Facebook timeline wall script ๐Ÿ™‚

You May Also Like

Never Miss Any Web Tutorials, Guides, Tips and Free eBooks

Join Our Community Of 50,000+ Web Lovers and get a weekly newsletter in your inbox

 

I hate spam too. Unsubscribe at any time.

217 thoughts on “Facebook Timeline Wall Script 2.0 with PHP, Mysql, jQuery”

  1. I subscribed with you but am unable to download the script. Error: Email does not exist in our database. Please use below form to subscribe

    Reply
  2. Hi, I’ve already subscribed, but download error “Email does not exist in our database. Please use below form to subscribe”

    Awesome post btw.

    Cheers!

    Reply
    • More than 10hours have passed since I subscribed, I still cant download the file.

      Does someone have a clean copy of this script? Please send it t my mail. I would greatly appreciate it.

      email: ikoymaster@gmail.com

      Thanks!

      Reply
  3. Please – I have registered and still no access. Same happened with another site using feedburner. That’s a crazy system, and this will cause people to lose interest and go else where – a drop-off. Please, provide the code, else get rid of this page. It’s just frustrating! 10 hours!?

    Reply
  4. if u really intend to distribute your code then do it because after registering to your site , I am not getting the download. I am seeing in the comment section that many people are facing the same issue. So stop this registration crap if u are not willing to share the code.

    Reply
  5. Bro i just want learn the sctruture of this function only.my email,matchartproduction@gmail.com ..Your resourse is well appreciated

    Reply
  6. Hello
    I was unable to download to download the Facebook Timeline Wall Script 2.0 with PHP, Mysql, jQuery after the link was sent to my email. Whe i click the link, the following message appear in dropbox We’re sorry, but we can’t preview this file.zip
    And i can’t download the file to give it a test before paying for Facebook Timeline Wall Script 5.0 with PHP, Mysql, jQuery

    Reply
  7. Karthikeyan Thank you for this free download. Mine is not working properly. The page does not update the feed unless I refresh the page for every new post. The photo upload will select a photos but does not upload a photo to the uploads folder nor to the database. The video will post but only if I refresh the page with a post in the box. The db connects and updates the post but not the index.php page without refreshing the page. Any help to make it all work would be greatly appreciated. Thanks again.

    Reply
  8. thank you for this great work . i really want to use it in my project , can you please update your DB ๐Ÿ™ pls pls pls

    Reply
  9. Hi Karthik, I really like your technology, especially the timeline posting mechanism. I would also appreciate it if you could update your database so I can download some of your scripts. Thanks.

    Reply
  10. Hi Karthik !
    Pls help me, I copy content from a website but error fonts , Please help me.

    Album Thร†ยฐร†ยกng Nhaยปโ€บ – Ngaยปยc Sร†ยกn
    1 TAยฌnh Nhaยปย Mau QuAยชn – Ngaยปยc Sร†ยกn 00:00
    2 Vaยปย Laยบยกi Aยaยปโ€œi Sim – Ngaยปยc Sร†ยกn; Yaยบยฟn Khoa 05:08

    Reply
  11. ” Email does not exist in our database. Please use below form to subscribe ”
    Did you ever update your database ,or it’s just kind of scam ????
    cause two days ago subscribed and till now can’t download the Script yet.???

    Reply
  12. Hy!
    I have a problem with character encoding, like:
    รฉ,รก,ลฑ,รบ etc.
    And when I post a comment, he text comes in one line

    Reply
  13. “email address does not exist” even after I had added my email address more than 10 hours.
    can you just send it to my email? please. thanks

    Reply
  14. The download does not work. We register our email but when we try to download it says the email does not exist. Is the download a scam in other words is it a way to collect our email address ??

    otherwise
    subscription list is not maintaining well so that we are getting “email address does not exist” message.. Please check it out.. its more than a 10 hrs i got subscription..

    Reply
  15. This is what I call :”Well-made”, thanks to you I’m able to build my project and learn more about php, mysql and DB structure, thank for you whole effort on it.

    Reply
  16. ะšะฐะบ ะตะณะพ ัะบะฐั‡ะฐั‚ัŒ, ะฒั€ะพะดะต email ะทะฐั€ะตะณะธัั‚ั€ะธั€ะพะฒะฐะป ะธ ะฟั€ะพัˆะปะพ ัƒะถะต 10 ั‡ะฐัะพะฒ, ะฝะพ ะฝะต ะธะดั‘ั‚

    Reply
  17. The download does not work. We register our email but when we try to download it says the email does not exist. Is the download a scam in other to collect our email adress ?

    Reply
  18. hi ,, Mr. Karthikeyan

    please update the database. or email me.. (tharindu12@gmail.com)

    thank you very much.. have a nice day!

    Reply
  19. 10 hours has passed and I still get the error of not subscribed. can you please update the database. thanks for the great work

    Reply
  20. i already subscribed but i cannot get the script from download link

    Email does not exist in our database. Please use below form to subscribe

    Reply
  21. Hi Karthikeyan could you please update your database coz i subscribed yesterday. Thanks for your awesome work and i appreciate and am dying to have this script.

    Reply
  22. Hello, i subscribe but i can’t get the script. I get this message: Email does not exist in our database. Please use below form to subscribe.

    Reply
  23. Is there a good and an easy way to jump to points on this timeline, like Facebook did with the dates and the scrolling?

    Reply
  24. Hi, Your work is so amazing. Will now be able to make a good web because of you. hehehe.
    Is this for free? Can I download the project ? T_T

    Reply
  25. Hello, i subscribe but i can’t get the script. I get this message: Email does not exist in our database. Please use below form to subscribe.

    Reply
  26. hello, i subscribe and i can;t get the script..
    Email does not exist in our database. Please use below form to subscribe

    Reply
    • Hi Kreshna Budi,

      I just now checked your email in my subscriber database. Your email does not exists..

      Any way I have sent you an email with download script

      Thanks

      Reply
  27. I was unable to get the script. i have already subscribed , but each time I tried to get this script, the error “Email does not exist in our database. Please use below form to subscribe”
    It’s a very worth script to get! Thanks

    Reply
  28. Hi. I would like to integrate this script to my site. It is really great. I already have subscribed but not sure how to get the script.

    Reply
        • Hi Dirival,

          Facebook Timeline Wall Script Version 3 is almost ready ๐Ÿ™‚ It will be available in another 2 – 3 days ๐Ÿ™‚

          Features

          1. all features in version 2.0
          2. Facebook like Where are you? ( location sharing )
          3. Facebook Login System ( OAuth )
          4. Facebook like Who are you with ( I am with $$ friends now )
          5. Facebook like Exact Timeline Design ( including profile pic + cover page )
          6. Facebook like Lightbox Image Viewer

          Keep in touch.. Thanks!

          Reply
          • Wow that would be great! I have one question. Is there anyway that we can have the post all highligted instead of having left and right?

          • Hi Thanks for quick reply. I edited the post_update.php same as you mentioned and it works. but when I refresh the page it goes back to left and right.

            this is what I have

            $lft = array(‘highlight’ => ‘0’); ?>

          • Wow that would be great! I have one question. Is there anyway that we can have the posts all shown highlighted instead of having left and right?

  29. I like your programming source code, because its more simple, and actually you give some comment for us to understand your code. =)

    Reply
  30. thank’s , very nice script,

    you can pass the wall facebook adding some options:

    – Display an information framework for the mouse pass over the names of friends

    – Ability to make a tag on the image, with display of an information frame with

    – Colored part of a comment in green with the most number of I like

    – Slider in the main header wall

    And more element other trick ^ _ ^ …

    Reply
  31. Please send me the script. I like all about php, jquery, etc., and facebook style apps. Thanks! (sorry for my english, i’m from argentina). Regards.

    Reply
  32. Your script is very good compared to other facebook wall script.

    We expect the next version to be more like facebook ๐Ÿ™‚

    Reply
  33. Thanks for this. It looks great. Pardon my ignorance though – where do you use this exactly – on our websites or on Facebook itself? I assume it must be on our websites – yes?

    And yes, like all the others – not sure where to download? I have been a subscriber to your site for some time and always look forward to your posts.

    Thanks again…

    Reply
  34. i subscribe, how download it? And I would like Facebook timeline wall script v3.0, where is download links or how download it?

    Reply

Leave a Comment