amnesiac18

Visitors
  • Content count

    12
  • Joined

  • Last visited


About amnesiac18

  • Rank
    core_member_rank_11

amnesiac18's Activity

  1. amnesiac18 added a post in a topic: Link to profile and profile pic -- PHP   

    Yeah I've looked at your site before and I have seen that. It's pretty much exactly what I'm trying to do. I'll PM you the code. The other thing with this page is that it runs dynamically with a point system when you click on the squad names, and the members will automatically be moved about the roster when you change their 'Squad Name' in their profile or you change their member group in Admin CP.
  2. amnesiac18 added a post in a topic: Link to profile and profile pic -- PHP   

    Same thing happening... I'm getting no profile link and the avatar/profile image is coming up as the default
     
    http://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?s=100&d=http%3A%2F%2Fwww.exiled-clan.com%2Fpublic%2Fstyle_images%2Fdeviant3%2Fprofile%2Fdefault_large.png
     
    but the mini version obviously...
     
    If we can get this working brother I have a nice donation for you because I really do appreciate you taking time out of your day to help me with this. Do you want to look at the full code?
  3. amnesiac18 added a post in a topic: Link to profile and profile pic -- PHP   

    $result = mysql_query($obleader); while($row = mysql_fetch_array($result)){ echo IPSMember::buildProfilePhoto( $row['name'], $size=mini, $noCache=false ); echo $this->registry->output->getTemplate('global')->userHoverCard($row); }  
    like this? My member disapeared. Also, the buildProfilePhoto is just bringing up the default profile icon. Is this because it just builds gravatar profile icons and not uploaded?
  4. amnesiac18 added a post in a topic: Link to profile and profile pic -- PHP   

    Yeah, same thing... Showing up, but not clickable which doesn't make sense because I am logged in and am able to view profiles.
  5. amnesiac18 added a post in a topic: Link to profile and profile pic -- PHP   

    Ok thanks... so I got that all sorted now, but when I use the makeProfileLink function, it doesn't allow me to click and go to profile. Am I still missing something here?
    $result = mysql_query($obleader); while($row = mysql_fetch_array($result)){ echo IPSMember::makeProfileLink($row['name'],$row['member_id'],$_seoName=$row['name'],$className='snames', $title=$row['name'], 0); } echo"</td>";  
    By the way, I greatly appreciate your help and time. Thank you.
  6. amnesiac18 added a post in a topic: Link to profile and profile pic -- PHP   

    I can just initiate at the top of the page right?
    Also for the forum path...  would that just be the index?
    http://www.exiled-clan.com/index.php?/index
     
     
    hmmm I'm getting all kinds of errors when I do that.
  7. amnesiac18 added a post in a topic: Link to profile and profile pic -- PHP   

    I am doing this in IP Content Page Manager. So would I still need to initialize the registry? Would I do this via uploading an auth.php file to FTP?
  8. amnesiac18 added a post in a topic: Link to profile and profile pic -- PHP   

    In regards to making a profile link...
     
    $result = mysql_query($obleader); while($row = mysql_fetch_array($result)){ IPSMember::makeProfileLink( $row['name'], $row['member_id'], $_seoName=$row['name'], $className='snames', $title='name', 0 ); }  
    Is there something I am missing with this function? It's not showing up as a link. I have the correct info queried from the database, I am just having trouble using the internal methods as I have never used them before. Thanks for the help!
  9. amnesiac18 added a post in a topic: Link to profile and profile pic -- PHP   

    <?php $result = mysql_query($obleader); while($row = mysql_fetch_array($result)){ echo "<a href='http://www.exiled-clan.com/index.php?/user/" . $row['member_id'] . "-" . $row['name'] . "/'"; echo $row['name'] . "</a><br />"; } ?>  
    Ok so I have a roster page that lists all of my members in their correct group. I'm trying to code in a link to their profile and profile pic to appear next to it to add some dynamic bling to my roster. I'm having some trouble getting this to work. The above code isn't working at all. Anyone have suggestions on how to accomplish this? Is there something in the database that would work to help me?
  10. amnesiac18 added a post in a topic: Permissions based on pfields content   

    I"M SUCH A DUMMY!!! Was putting in the wrong field! No wonder it didn't work. Thanks for your help guys.
  11. amnesiac18 added a post in a topic: Permissions based on pfields content   

    Hmmm... not working at all.
    if ( in_array( $this->memberData['field_19'], array( 'COS', 'CO', 'XO', 'BC', 'COUNCIL' ) ) ){ echo "member data worked"; }else{ echo "<script> alert('You do not have access'); </script>"; die();}  
    Is it because the field I'm looking to get from the logged in user is from table 'pfields_content' and not 'members'? Does that matter, because it runs for me when I do this...
    if ( $this->memberData['name'] == 'amnesiac18' ){ echo "member data worked"; }else{ echo "<script> alert('You do not have access'); </script>"; die();}
  12. amnesiac18 added a post in a topic: Permissions based on pfields content   

    Ok thanks Martin
  13. amnesiac18 added a post in a topic: Permissions based on pfields content   

    right ok i'll try that... so i'll have to do the whole
    $this->memberData['field_19'] for each part of my if statement?
  14. amnesiac18 added a post in a topic: Permissions based on pfields content   

    $pos = "memberData['pfields_content'.'field_21']"; $squad = "memberData['pfields_content'.'field_19']"; if(($pos == 'COUNCIL')||($pos == 'COS')||($pos == 'CO')||($pos == 'XO')||($pos == 'BC')){ "<script> onclick='getForm()'</script>"; }   here is a bit of an example of the code I have right now... I know the memberdata is not correct and I don't even know if it can work outside of the member table. Obviously what I have now is showing up as a string, but I wanted to give you an idea of the code I am looking at...   Again thanks for the time.
  15. amnesiac18 added a post in a topic: Permissions based on pfields content   

    Hey guys, can someone direct me towards the PHP code I need here to accomplish this...
     
    I have an if statement in which I need to take in pfields_content.field_19 and pfields_content.field_21 for the member viewing the page so I can set permissions for running a script. How would I go about doing this? Can I somehow use memberData? Please let me know how I can access the "Logged in member's profile values"
     
    Thanks for the help guys! I appreciate your time greatly.

About Me

Status Feed