Monday, 16 January 2012

fbtip v 1.0

 fb style minimal tool tip for jcow  avatar images by using tipsy tool tip script.when a mouse over a avatar image    it display a fb style tooltip containing username of avatar an image






please follow the installation instruction carefully

1.uploade and extract fbtip.zip to your jcow/modules folder.

2.now go to Home > Admin Panel > Modules check fbtip and click on update modules.

3.open file  common.inc.php in jcow/includes/libs in your text/code editor and than find this code



function avatar($row, $type = 'small') {
global $uhome, $ubase;
if ($row['uid']) {
$row['id'] = $row['uid'];
}
if (!$row['avatar']) {
$row['avatar'] = 'undefined.jpg';
}

if ($type == 'small') {
$row['avatar'] = 's_'.$row['avatar'];
}

if (is_numeric($type)) {
$row['avatar'] = 's_'.$row['avatar'];
$csize = ' width="'.$type.'" height="'.$type.'" ';
}
return '<a href="'.$ubase.'u/'.$row['username'].'">
<img '.$csize.' src="'.$uhome.'/uploads/avatars/'.$row['avatar'].'" class="avatar" /></a>';
}


4. replace the above code with this one


function avatar($row, $type = 'small') {
global $uhome, $ubase,$client;

if ($row['uid']) {
$row['id'] = $row['uid'];

}
if (!$row['avatar']) {
$row['avatar'] = 'undefined.jpg';
}

if ($type == 'small') {
$row['avatar'] = 's_'.$row['avatar'];
}

if ($client['id'] && $row['uid']==$client['id'] ) {
$title = 'you';
}
else{
$title = $row['username'];
}
if (is_numeric($type)) {
$row['avatar'] = 's_'.$row['avatar'];
$csize = ' width="'.$type.'" height="'.$type.'" ';
}


return '<a href="'.$ubase.'u/'.$row['username'].'">
<img '.$csize.' src="'.$uhome.'/uploads/avatars/'.$row['avatar'].'" class="avatar" title="'.$title.'"/></a>';
}
5. done

Tuesday, 3 January 2012

recent profile visitors [recento v1.0]

recento display recent profile visitors on users profile page in sidebar.also display  recent profile visitors and top profile visitors  in a facebook style popup box.




















download







please follow the installation instruction carefully


Instructions:


1.  extract and uploade recento to your jcow/modules folder.


2.now go to Home > Admin Panel > Modules check recento and click on update modules.


3.open file u.module.php in jcow/includes/libs in your text/code editor and than find function show_sidebar 




// following
$res = sql_query("select u.id,u.username,u.avatar from ".tb()."followers as f left join ".tb()."accounts as u on u.id=f.fid where f.uid='{$owner['id']}' order by u.lastlogin DESC limit 10");
$output = '';
while ($row = sql_fetch_array($res)) {
$f = 1;
$output .= avatar($row);
}
ass(array('title'=>t('Following'), 'content' => '<div class="toolbar">'.url('u/'.$owner['username'] .'/following',t('See all')).'</div>'.$output));


// friends
$res = sql_query("SELECT u.* FROM `".tb()."friends` as f left join `".tb()."accounts` as u on u.id=f.fid where f.uid={$owner['id']} ".dbhold('f')." ORDER BY f.created DESC LIMIT 9");
$output = '';
while ($row = sql_fetch_array($res)) {
$f = 1;
$output .= avatar($row);
}
ass(array('title'=>t('Friends'), 'content' => '<div class="toolbar">'.url('u/'.$owner['username'] .'/friends',t('See all')).'</div>'.$output));


4. insert this code below the above code




 // recent visitor
if ($client['id']) {
if ($client['id'] == $owner['id']) {
$res = sql_query("select u.* from ".tb()."recent_visitor as r left join ".tb()."accounts as u on u.id=r.vid where r.uid='{$owner['id']}' order by r.recent_visited DESC limit 10");
$output = '';
while ($row = sql_fetch_array($res)) {
$r = 1;
$output .= avatar($row);

$i++;
}

$recentvisitedlink= '<a href="#" onclick="jQuery.facebox({ ajax: \''.url('recento/recentvisited/'.$owner['id']  ).  '\' });return false;" >'.t('see all').'</a>';
ass(array('title'=>t('recent visitor'), 'content' => '<div class="toolbar">'.$recentvisitedlink.'</div>' .$output));
}
else
{
sql_query("INSERT INTO `".tb()."recent_visitor` (uid, vid, first_visited, recent_visited, visiting_count) VALUES
(  {$owner['id']},{$client['id']},current_timestamp, current_timestamp, 1)
ON DUPLICATE KEY UPDATE `visiting_count` = `visiting_count`+1;");

}
}
 // end of recent visitor


5.done









screen shots...


1.













2.



















Tuesday, 20 December 2011

fuser v1.0


fuser display friend and following in a facebook style popup box on users profile page.fuser module used facebox script which is already installed  jcow  for displaying liked users. so it will not give any extra burden to your network.











.


download


please follow the installation instruction carefully

1.uploade and extract fuser.zip to your jcow/modules folder.

2.now go to Home > Admin Panel > Modules check fuser and click on update modules.

3.open file u.module.php in jcow/includes/libs in your text/code editor and than find this code


// following
$res = sql_query("select u.id,u.username,u.avatar from ".tb()."followers as f left join ".tb()."accounts as u on u.id=f.fid where f.uid='{$owner['id']}' order by u.lastlogin DESC limit 10");
$output = '';
while ($row = sql_fetch_array($res)) {
$f = 1;
$output .= avatar($row);
}
ass(array('title'=>t('Following'), 'content' => '<div class="toolbar">'.url('u/'.$owner['username'] .'/following',t('See all')).'</div>'.$output));


// friends
$res = sql_query("SELECT u.* FROM `".tb()."friends` as f left join `".tb()."accounts` as u on u.id=f.fid where f.uid={$owner['id']} ".dbhold('f')." ORDER BY f.created DESC LIMIT 9");
$output = '';
while ($row = sql_fetch_array($res)) {
$f = 1;
$output .= avatar($row);
}
ass(array('title'=>t('Friends'), 'content' => '<div class="toolbar">'.url('u/'.$owner['username'] .'/friends',t('See all')).'</div>'.$output));

4. replace the above code with this one


// following
$res = sql_query("select u.id,u.username,u.avatar from ".tb()."followers as f left join ".tb()."accounts as u on u.id=f.fid where f.uid='{$owner['id']}' order by u.lastlogin DESC limit 10");
$output = '';
while ($row = sql_fetch_array($res)) {
$f = 1;
$output .= avatar($row);
}
$fllwrlink= '<a href="#" onclick="jQuery.facebox({ ajax: \''.url('fuser/fllwrfuser/'.$owner['id']  ).  '\' });return false;" >'.t('see all').'</a>';
ass(array('title'=>t('Following'), 'content' => '<div class="toolbar">'.$fllwrlink.'</div>'.$output));


// friends
$res = sql_query("SELECT u.* FROM `".tb()."friends` as f left join `".tb()."accounts` as u on u.id=f.fid where f.uid={$owner['id']} ".dbhold('f')." ORDER BY f.created DESC LIMIT 9");
$output = '';
while ($row = sql_fetch_array($res)) {
$f = 1;
$output .= avatar($row);
}
$frndslink= '<a href="#" onclick="jQuery.facebox({ ajax: \''.url('fuser/frndsfuser/'.$owner['id']  ).  '\' });return false;" >'.t('see all').'</a>';
ass(array('title'=>t('Friends'), 'content' => '<div class="toolbar">'.$frndslink.'</div>' .$vivek.$output));


5.done

Saturday, 17 December 2011

install jcow on local host

As a newbie you may get difficulties to install jcow on loacalhost.well i found a very good localhost script AMPPS from the Softaculous.AMPPS is an easy to install software stack of Apache, Mysql, PHP, Perl, Python and Softaculous auto-installer that can be used on Desktops and office servers.just download download and install AMPPS on your system than launch AMPPS install jcow in few clicks using Softaculous auto-installer


Saturday, 12 November 2011

jcow sns

jcow sns is an  Social Networking CMS  Built on php

Jcow Built-in Modules
These modules are free to use.

  1. Activity Streams.
  2. Friendship: add/pending/approve friends.
  3. Notifications.
  4. Private Message, Inbox/SentBox.
  5. Events: Create/Join events.
  6. Photo uploading, Photo albums.
  7. Blogs.
  8. Videos.
  9. Site search.