Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-18-2006, 07:18 AM
New Pligger
 
Join Date: Mar 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
view people who've added me as a friend

if open /user.php?view=viewfriends2

Fatal error: Call to undefined function: do_viewfriends2() in
***\www\templates_c\%%57^577^577DBABB%%user_center .tpl.php on line 196
Reply With Quote
  #2 (permalink)  
Old 03-18-2006, 10:45 AM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
Add this code to the bottom of /user.php


function do_viewfriends2(){
global $db, $user;
$friend = new Friend;
$friends = $friend->get_friend_list_2();

echo "People who have added me as a friend<BR/>";

if ($friends){
foreach($friends as $myfriend) {
echo '<a href="/user.php?login=' . $myfriend->user_login . '">' . $myfriend->user_login;
if(Enable_Gravatar){
echo ' <img src="http://www.gravatar.com/avatar.php?gravatar_id='. md5($myfriend->user_email) .'&size=20&rating=' . Gravatar_Maxrating . '">';
}
echo '</a><BR/>';
}
}
else {
echo "<br><br>nobody has added you as a friend";
}
}
__________________
- Ash
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Friend Module BuG searched&destroyed :) AnAlienHolakres3 Bug Report 0 09-08-2007 01:22 PM
How to customize 'successfully added friend' message? rohitsax Template Support 0 05-21-2007 07:29 AM
Pligg beta 9.5 [updated] kbeeveer46 Current Version 0 04-29-2007 09:58 PM
Viewing your friends in ones that added you eH9116 General Help 1 02-09-2007 06:22 PM


Search Engine Friendly URLs by vBSEO 3.2.0