• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » Make users photo entries display on the profile page?
Make users photo entries display on the profile page?
Harina
Posts: 62
Reputation: 0

Message # 1 | 10:13 AM
Is there any code that can do that?
Soldierdevil
Posts: 154
Reputation: 1

Message # 2 | 3:28 AM
Harina,

insert this code in appearance of photo
Code
<span style="display:none;">
<div align="center" style="margin: 0 auto; display: block;">
<span id="export-photos">
<a href="$PHOTO_URL$" style="text-decoration:none;">
<div style="background:url($PHOTO_DIRECT_URL$) no-repeat center center; background-size:cover; margin-top: 10px; height: 100px; width: 100px;"></div>
<a href="$PHOTO_URL$" style="text-decoration:none;"></a>
</div>
</span>


and this where you want the photos to appear on the profile page

<div class="import-photos"></div>
<script type="text/javascript">
$('.import-photos').load('$_PHOTO_ACTIVITY_URL$ #export-photos:lt(6)');
</script>

good luck

Systems developer
joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 3 | 8:56 PM
Quote Soldierdevil ()
:lt(6)

Small note: this means that it will display up to 6 entries.

hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
Soldierdevil
Posts: 154
Reputation: 1

Message # 4 | 1:19 AM
bigblog, am not sure if anyone would love to post an entire gallery on the profile page and thats why i include :It(6) but she can change to any number she can prefer
Systems developer
uCoz Community » For Webmasters » Custom Solutions » Make users photo entries display on the profile page?
  • Page 1 of 1
  • 1
Search: