Sidebar Friends Module with messaging and activity

Register an Account
Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 01-26-2008, 02:36 PM
New Pligger
Pligg Version: Beta 9.8
Pligg Template: yget
 
Join Date: Jan 2008
Posts: 12
Hello, very great work.

If I click on the More-Button (PLIGG_Visual_What_Is_Pligg_Read_More) I have a 404. Whats wrong?

I try to include this in htaccess:

RewriteRule ^user/view/([^/]+)/?$ user.php?login=test&view=viewfriends

but thats unsuccessfully. Can you help me please?

thanks
Reply With Quote
  #12 (permalink)  
Old 01-26-2008, 06:25 PM
AnAlienHolakres3's Avatar
Pligg Donor/Coder
 
Join Date: Jul 2007
Location: Prague
Posts: 116
Send a message via ICQ to AnAlienHolakres3
Quote:
Originally Posted by analogbernd View Post
Hello, very great work.

If I click on the More-Button (PLIGG_Visual_What_Is_Pligg_Read_More) I have a 404. Whats wrong?

I try to include this in htaccess:

RewriteRule ^user/view/([^/]+)/?$ user.php?login=test&view=viewfriends

but thats unsuccessfully. Can you help me please?

thanks
Do you mean more button in friend sidebar?
Check if your more output is like this: http://www.yoursite.com/user.php?view=viewfriends
Reply With Quote
  #13 (permalink)  
Old 01-27-2008, 03:10 AM
New Pligger
Pligg Version: Beta 9.8
Pligg Template: yget
 
Join Date: Jan 2008
Posts: 12
thanks for your fast reply. in your code is another path.


Quote:
Originally Posted by AnAlienHolakres3 View Post
.......elseif(isFriendOnline($friendActivity,$frie ndLogged)==2) {
echo '<td><img src='.my_pligg_base.'/templates/'.$the_template.'/images/friends_idle.ico alt="offline" style="margin-left:4px"></td>';}

echo '<td><a href="#view_message" rel="view_message~!~view=small_msg_compose~!~login =' .$myfriend->user_login . '" class="lbOn">
<img src='.my_pligg_base.'/templates/'.$the_template.'/images/user_message.png border=0 style="margin-left:12px"></a></td>';
echo '</tr>';
}
echo '</table>';
}
else {
return false;
}
}

echo "<div class=\"tlb\" style=\"margin-top:-15px\"><span><a onclick=\"new Effect.toggle('sidefriends','blind', {queue: 'end'}); \"> <img src=\"".my_base_url."/templates/" . $the_template . "/images/expand.png\" width=\"30\" height=\"29\"/></a></span><a href=\"".my_base_url."/user.php?login=test&view=viewfriends\">".$main_smarty->get_config_vars('PLIGG_Visual_Friends')."</a></div><div id=sidefriends>";


do_viewfriendsside();

echo "<li class=\"rmore\"><a href=\"".my_base_url."/user.php?login=test&view=viewfriends\">".$main_smarty->get_config_vars("PLIGG_Visual_What_Is_Pligg_Read_ More")."</a></li>";
echo "</div>";

?>
i´m try this:
Quote:
Check if your more output is like this: http://www.yoursite.com/user.php?view=viewfriends
but now i´m logged out if I click the more button.
Whats wrong?

thanks
Reply With Quote
  #14 (permalink)  
Old 01-27-2008, 10:26 AM
AnAlienHolakres3's Avatar
Pligg Donor/Coder
 
Join Date: Jul 2007
Location: Prague
Posts: 116
Send a message via ICQ to AnAlienHolakres3
Quote:
Originally Posted by analogbernd View Post
but now i´m logged out if I click the more button.
Whats wrong?

thanks
I can not say where the problem is because for me it works perfectly. I use 9.7 version . Please wait until version 1.0 is released, I will try to improve this addon to be true pligg module.
Reply With Quote
  #15 (permalink)  
Old 01-27-2008, 11:04 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
I don´t know why I can´t thank you (anymore) for your work. Great stuff!

Could the display be limited to online and idle users?

Edit: It would suit perfectly to my chat comment suggestion (http://forums.pligg.com/suggestions/...gged-chat.html) !

Last edited by tbones; 01-27-2008 at 11:14 AM.
Reply With Quote
  #16 (permalink)  
Old 01-29-2008, 09:01 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
Could it work slightly modificated without a definition of friends like the who´s online here at the forums?

Edit: Does the display refresh itself automatically or is it F5-triggered?

Last edited by tbones; 01-29-2008 at 09:50 AM.
Reply With Quote
  #17 (permalink)  
Old 02-03-2008, 04:46 AM
Constant Pligger
Pligg Version: 9.9.0
Pligg Template: yget
 
Join Date: Jan 2008
Posts: 159
Great Work I know bring this back up, but great work, installed it on 9.9 and it works perfect thanks

Last edited by manya1011; 02-03-2008 at 04:50 AM.
Reply With Quote
  #18 (permalink)  
Old 02-03-2008, 10:46 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
Could it be that it works just unidirectional?
I have only one friend definition in my database: B is a friend of A.

The display at A´s screen of B´s activity is normal but I don´t see any A activity at B`s screen.
Reply With Quote
  #19 (permalink)  
Old 02-03-2008, 11:25 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
For those who don´t want the messaging column displayed:

In sidebar_friends.php around line 64
Code:
    if ($friends){
      echo "<table border=\"0\" style=\"margin-bottom:25px\"><th style=\"text-align=center\">" .$main_smarty->get_config_vars('PLIGG_Visual_Friends_Username')."</th><th align=\"center\">".
      $main_smarty->get_config_vars('PLIGG_Visual_Friends_Status')."</th><th>" . $main_smarty->get_config_vars('PLIGG_Visual_Friends_Message')."</th>";
delete the last <th> tags and leave the last quotation mark and the semicolon:

Code:
    if ($friends){
      echo "<table border=\"0\" style=\"margin-bottom:25px\"><th style=\"text-align=center\">" .$main_smarty->get_config_vars('PLIGG_Visual_Friends_Username')."</th><th align=\"center\">".
      $main_smarty->get_config_vars('PLIGG_Visual_Friends_Status')."</th>";
Furthermore, comment out the following around line 91:

Code:
//echo '<td><a href="#view_message" rel="view_message~!~view=small_msg_compose~!~login=' .$myfriend->user_login . '" class="lbOn">
//<img src='.my_pligg_base.'/templates/'.$the_template.'/images/user_message.png border=0 style="margin-left:12px"></a></td>';                    
echo '</tr>';
Reply With Quote
  #20 (permalink)  
Old 02-03-2008, 11:54 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
Quote:
Originally Posted by tbones View Post
Could it work slightly modificated without a definition of friends like the who´s online here at the forums?
Probably the easiest solution would be to define a function get_actives_list instead of get_friends_list at the same file, i.e. at /libs/friends.php, that does the SQL query.
Reply With Quote
Reply

Thread Tools
Display Modes




Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development