Replies To: How do I incorporate this Pre-Written PHP code into my website?

Re: How do I incorporate this Pre-Written PHP code into my website?

Posted 27 November 2010 - 11:13 AM

This forum is for people looking to learn/improve at php. If you're looking for some one to fix this for you, then this belongs in Post a Job.
If you want to get this working with some help, you should post the code here, not in another site and wrapped in Flash! You should also demonstrate that you've made an effort by describing in detail what you have tried and what the results were.

Re: How do I incorporate this Pre-Written PHP code into my website?

Posted 27 November 2010 - 11:23 AM

CTphpnwb is right, however in a quick gander at the file, yes you have to have a database, you have to code up the dbcon.php file to connect to your database and you have to build the tables as shown on FaceBook Style Wall Posting and Comments.

In other words, this script doesn't work out of the box. You have to do a bit of coding yourself and setup of a MySQL Database with those tables specified.

Re: How do I incorporate this Pre-Written PHP code into my website?

I'm working with a the same code from 99points.com facebook wallpost system.
I managed to get user post limited to there page but can't get the javascrpit working for comment and delete working ,

Here is the code: profile.php

Spoiler

<?php
/* Web Intersect Social Network Template System and CMS v1.33
* Copyright (c) 2010 Adam Khoury
* Licensed under the GNU General Public License version 3.0 (GPLv3)
* http://www.webintersect.com/license.php
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Date: October 7, 2010
*------------------------------------------------------------------------------------------------*/
// Start_session, check if user is logged in or not, and connect to the database all in one included file
include_once("scripts/checkuserlog.php");
// Include the class files for auto making links out of full URLs and for Time Ago date formatting
include_once("wi_class_files/autoMakeLinks.php");
include_once ("wi_class_files/agoTimeFormat.php");
// Create the two new objects before we can use them below in this script
$activeLinkObject = new autoActiveLink;
$myObject = new convertToAgo;
?>