You are currently browsing the archives for the phpizabi category


Socialnetwork platforms in php

socialnetwork is the most popular destination for the netizens. Today most of the people spend time on socialnetwork like facebook, hi5, linkedin, myspace. Many people also want to build there own social network which focus on special subject matter of their interest. In building such network, there are many platforms available today to help you build your own social network out of the box. The most preferred programming language today in php for the web applications. So i will be mentioning only platforms based in php and mysql. There are also online webapplications available like ning, and kickapps which help you build socialnetwork. you don’t need to get hosting or domain name. you can get the socialnetwork just by filling out some form. But as these don’t provide much flexibility i willnot be focusing on such services.

Below are some of the platform i have reviewed and will recommend you to try it out.

  1. socialengine
  2. -Of all the platforms i find this one as a real platform of choice, It’s a total socialnetowk out of the box.? But’s it’s not a free, it costs $250 for core and $40 each for the plugins. Once you get the socialengine installed and go through it’s codes you can start developing your socialnetwork. I recommed this as the best platform. The tamplating system used is smarty so you can easily change the look and feel of your site. you can go to the site here

  3. phpizabi
  4. -The easiest to modify socialnetwork framework. Specially theme designing is easy with this socialnetwork framework. It’s free and opensource framework. But was regarded as the looser in the socialnetwork framework battle due to the fact that, it could not handle more users. Scalability was the issue with this framework. But I personally liked this framework. Cleanely coded, own theme engine, easy to modify was the pros of this framework. Why i mention this framework here is because with some modifications we can make it work better and make a robust social network out of it. It just need some rehaul in the coding and it can handle everything needed for the socialnetwork. To go to the site click here

  5. boonex dolphin
  6. -The socialnetwork framework with lot’s of features. They have reay done good job in their latest releases. It’s soon getting pace in it’s development and they have also announced of their future releases they are working on and they hype that it is going to be the best choice among all other. I hope to get the releases soon. click here

  7. phpfox
  8. -The most popular platform i think. It costs $300 for full liscence. With it you get 6 month of support and upgrades. There are several modules available for this platform. Installation and modification service is also available in the site. It’s also a out of the box socialnetwork platform click here

There are many platforms available for socialnetwork. you can also use joomla, wordpress, drupal to build a socialnetwork, but the best will be to start coding your own custom platform so that you can make it work as you want. As for other who want to make their own socialnetwork rapidly above are the platforms they should consider.

phpizabi contact and gallery db based

Hello, Any one interested in getting phpizabi contact and gallery converted to database based. I have done this and I want to sell it. Any one willing to buy it can contact me. The price is minimal. thanks

Changing unpk/pk function to database based in phpizabi

ok here is some ideas to do it. I have done it. But i don’t use phpizabi any more. I have developed my own script. And i had transferred the users, contacts, user gallery to my new script using this method so it can be used by you to convert the phpizabi contact, gallery system to database based.
Below is how databse structure will be like for contact and gallery system:

CREATE TABLE IF NOT EXISTS `phpizabi_contact` (
`id` int(9) NOT NULL auto_increment,
`user` int(9) NOT NULL,
`friend` int(9) NOT NULL,
`date` int(32) NOT NULL,
`is_blocked` tinyint(1) NOT NULL default '0',
PRIMARY KEY  (`id`)
) ENGINE=MyISAM ;

CREATE TABLE IF NOT EXISTS `phpizabi_contact_request` (
`id` int(9) NOT NULL auto_increment,
`for_user` int(9) NOT NULL,
`from_user` int(9) NOT NULL,
`date` int(32) NOT NULL,
PRIMARY KEY  (`id`)
) ENGINE=MyISAM ;

-- --------------------------------------------------------

--
-- Table structure for table `phpizabi_gallery`
--

CREATE TABLE IF NOT EXISTS `phpizabi_gallery` (
`id` int(11) NOT NULL auto_increment,
`user` int(10) NOT NULL default '0',
`img` varchar(100) NOT NULL default '0',
`date` int(32) NOT NULL,
`album_id` int(32) NOT NULL default '0',
`title` varchar(250) NOT NULL default '',
`description` longtext NOT NULL,
`views` int(10) NOT NULL default '0',
`comments` int(10) NOT NULL default '0',
`rating` float NOT NULL default '0',
`votes` int(11) NOT NULL default '0',
`is_mainpicture` tinyint(1) NOT NULL default '0',
PRIMARY KEY `id` (`id`),
FULLTEXT KEY `title` (`title`,`description`)
) ENGINE=MyISAM ;

CREATE TABLE IF NOT EXISTS `phpizabi_gallery_album` (
`id` int(11) NOT NULL auto_increment,
`user` int(10) NOT NULL default '0',
`date` int(64) NOT NULL default '0',
`cover_img` varchar(64) NOT NULL,
`album_name` varchar(20) NOT NULL default '',
`album_description` text NOT NULL,
PRIMARY KEY `id` (`id`),
FULLTEXT KEY `album_name` (`album_name`,`album_description`)
) ENGINE=MyISAM ;

Now to load the contents of the users from the old phpizabi database to new tables we can use the following script.
Inserting pictures to new gallery table.

$sql = myQ("SELECT `id`,`pictures`, `username` FROM `[x]users`");
while($row = myF($sql)){
$pictures = unpk($row["pictures"]);
if (!is_array($pictures)) $pictures = array();

foreach ($pictures as $pic) {
myQ("
INSERT INTO `[x]gallery` (`user`,`img`,`date`,`title`,`description`,`is_mainpicture`)
VALUES
('{$row["id"]}','{$pic["FILE"]}','".time()."','{$pic["NAME"]}','{$pic["DESCRIPTION"]}','{$pic["MAIN"]}')
");
}
}

Inserting contacts to new table:

$sql = myQ("SELECT `id`,`contacts` FROM `[x]users`");
while($row = myF($sql)){
$contacts = unpk($row["contacts"]);
if (!is_array($contacts)) $contacts = array();

foreach ($contacts as $groupName => $usersArray) {

if (is_array($usersArray)) foreach ($usersArray as $userArrayKey => $userEntity) {
myQ("
INSERT INTO `[x]contact` (`user`,`friend`,`date`)
VALUES
('{$row["id"]}','{$userEntity}','".time()."')
");

}
}

This should now transfer all the contacts and gallery pictures to the new table. I think i have covered the main part where you were confused about. After you get the informations in a table. You can code php to function with contact and gallery system. i hope it will be helpful.

is phpizabi back??

I just saw an security fix update at www.phpizabi.net posted on july,9th. What it does is provide security against the attack used in comment form to reveal other user sensitive informations. The below code protects you from that attack at line 75:


// SQL INJECTIONS / XSS HACKS PROTECTION //////////////////////////////////////////////
$entities = array(";"=>"&amp;#059;", """=>"&amp;quot;", "'"=>"&amp;#039;", "<"=>"&amp;lt;", ">"=>"&amp;gt;", "\"=>"&amp;#092;", "^"=>"&amp;#094;", "{"=>"&amp;#123;", "}"=>"&amp;#125;");

if (isset($_POST)) foreach($_POST as $var => $val)
if (!is_array($val) and substr($var, 0, 1) != "_")
$_POST[$var] = trim(strtr(stripslashes($val), $entities));

if (isset($_GET)) foreach($_GET as $var => $val)
if (!is_array($val) and substr($var, 0, 1) != "_")
$_GET[$var] = trim(strtr(stripslashes($val), $entities));

unset ($var, $val, $entities);

I hope phpizabi will be back soon and become stronger. Let’s hope for it as it was the best script i have ever used.

kiratisaathi.com in new look and features

Kiratisaathi.com is updated with new look and features check them out.

www.kiratisaathi.com

scrapbook mod for phpizabi

Scrapbook mod for phpizabi provides scrap feature in your phpizabi site, something similar to orkut scrapbook. try it out

Cost: free

download

mod rewrite mod

This mod will create short urls for your phpizabi site. That is you can access your blogs page from link www.yoursite.com/blogs and similar to other.

Cost: free

download


Tags