Author Topic: Friends display on profiles  (Read 1137 times)

keith

  • Active Member
  • **
  • Posts: 505
  • Karma: +4/-0
    • MatchMeUK - Free Dating
Friends display on profiles
« on: October 05, 2008, 06:32:37 AM »
When I view a profile that has friends attached to the right hand side
some people have a lot of friends, is there a simple way to get a link at the bottom to say "view all friends" and maybe display a total of friends at the top title

Keith

keith

  • Active Member
  • **
  • Posts: 505
  • Karma: +4/-0
    • MatchMeUK - Free Dating
Re: Friends display on profiles
« Reply #1 on: October 18, 2008, 11:45:01 AM »
any one any solution to this

Keith

admin2

  • Administrator
  • Active Member
  • *****
  • Posts: 2588
  • Karma: +20/-2
    • Social Networking and dating script builder
Re: Friends display on profiles
« Reply #2 on: October 19, 2008, 05:02:20 AM »
Add this in the friends box in profile.html:
Code: [Select]
<a class="content-link simple" href="{tplvars.relative_url}search.php?st=net&amp;uid={output.uid}&amp;nid=1">See all</a>

keith

  • Active Member
  • **
  • Posts: 505
  • Karma: +4/-0
    • MatchMeUK - Free Dating
Re: Friends display on profiles
« Reply #3 on: October 19, 2008, 09:40:59 AM »
Cheers,

I did it like this so if they dont have freinds it hides the "see all"

Code: [Select]
<!--loop name="loop_friends"-->
<a class="content-link simple" href="{tplvars.relative_url}search.php?st=net&amp;uid={output.uid}&amp;nid=1">See all</a>
<!--/loop name="loop_friends"-->

Many thanks


Keith

admin2

  • Administrator
  • Active Member
  • *****
  • Posts: 2588
  • Karma: +20/-2
    • Social Networking and dating script builder
Re: Friends display on profiles
« Reply #4 on: October 19, 2008, 09:51:25 AM »
That will display the link once for every friend displayed. So if 3 friends are displayed you will see the link 3 times.

keith

  • Active Member
  • **
  • Posts: 505
  • Karma: +4/-0
    • MatchMeUK - Free Dating
Re: Friends display on profiles
« Reply #5 on: October 19, 2008, 10:13:51 AM »
whoops your right  :D


strawberries90

  • Active Member
  • **
  • Posts: 482
  • Karma: +16/-0
Re: Friends display on profiles
« Reply #6 on: October 19, 2008, 11:36:57 AM »
I must save Dan's new code.

Great stuff.

Johnboy

  • Active Member
  • **
  • Posts: 532
  • Karma: +25/-0
Re: Friends display on profiles
« Reply #7 on: October 19, 2008, 03:48:18 PM »
YES it works beautifully.
Highly recommended.
I LOVE these forums!!! So helpful...

keith

  • Active Member
  • **
  • Posts: 505
  • Karma: +4/-0
    • MatchMeUK - Free Dating
Re: Friends display on profiles
« Reply #8 on: October 19, 2008, 03:55:48 PM »
maybe Dan could add it to the next release

so if there isnt any friends it hides and with friends it shows the counts as well

another idea i had was to display all the friends in a scrollable window (java) so display the first 5, then scroll away

Johnboy

  • Active Member
  • **
  • Posts: 532
  • Karma: +25/-0
Re: Friends display on profiles
« Reply #9 on: October 19, 2008, 04:02:58 PM »
YES scrolling window would be good, because the one problem I have found doing it with the code below is that there is NO LINK back to the members profile. Is there a code for this too??

Is there an ETANO handy tricks and codes book available?..... I'd buy it  ;)
« Last Edit: October 20, 2008, 12:10:01 AM by Johnboy »
I LOVE these forums!!! So helpful...

keith

  • Active Member
  • **
  • Posts: 505
  • Karma: +4/-0
    • MatchMeUK - Free Dating
Re: Friends display on profiles
« Reply #10 on: October 19, 2008, 04:06:13 PM »
on dsb, i had links set to target new window on whos online page, this way the can view all and click and get brand new window and still have whos online

I know its a cheap work around but effective


treehugger

  • Active Member
  • **
  • Posts: 73
  • Karma: +0/-0
Re: Friends display on profiles
« Reply #11 on: February 04, 2012, 01:45:31 PM »
When I look at someone's profile, on the left I see boxes with Connect, General Profile, My Account and Friends. It would be good if more than 4 friends could be seen. Is this the Friends box that is being discussed in this thread please?

When I go to public_html/skins_site/def/profile.html I'm not seeing anything about friends box and when I put Dan's script at the end of the file before </script> nothing (that I could discover) happened.

Help please. :D

maverick

  • Active Member
  • **
  • Posts: 1382
  • Karma: +93/-1
    • Etano Templates
Re: Friends display on profiles
« Reply #12 on: February 04, 2012, 03:15:33 PM »
It appears that you've had the friends moved from the right side to the left side menu, therefore try looking in the skins_site/def/profile_left.html file.
« Last Edit: February 04, 2012, 03:17:10 PM by maverick »
Etano Templates and Mods

http://www.maverickwebworks.com

treehugger

  • Active Member
  • **
  • Posts: 73
  • Karma: +0/-0
Re: Friends display on profiles
« Reply #13 on: February 04, 2012, 04:08:59 PM »
You're as brilliant as ever. Thank you Maverick, found it and Dan's code worked fine. :D