Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-05-2016, 10:43 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 92,236
Kyttias is on a distinguished road
Default Friend System Questions

1) I've created a link on my user profiles to display a link to send a friend request. I'd like to prevent it from displaying on the profiles of users you're already friends with? Currently in classes/class_userprofile.php I have something like this:
PHP Code:
    if (($mysidia->user->username != $mysidia->input->get("user")) && ($mysidia->user->usergroup->gid 5)){
      
$member = new Member($mysidia->input->get("user"));
      
$friendrequest "<a href='../../friends/request/{$member->uid}'>Send Friend Request</a>";      
    } 
2) What exactly happens when you remove from your friend list? I was unable to refriend a user I had accidentally removed because the database kept the status as 'confirmed'. It wouldn't allow me to send a request again because the entry was never removed. I had to set it back to 'pending' manually and then have the other user go into their account settings and reapprove the request. How can I go about making refriending someone possible? Perhaps just remove the original entry from adopts_friend_requests while the friend is removed?
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 01-05-2016 at 10:45 PM.
Reply With Quote
 


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

Forum Jump


All times are GMT -5. The time now is 11:35 PM.

Currently Active Users: 1049 (0 members and 1049 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636