• 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: 53
Reputation: 0

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

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

I hate politics, people who do not make an effort with people and those who try hard to be cool
bigblog
JOE-vascript
Posts: 1641
Reputation: 73

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, sorry for the late replies
icon by ch-chau

I'm still here for some godforsaken reason
Soldierdevil
Posts: 142
Reputation: 0

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
I hate politics, people who do not make an effort with people and those who try hard to be cool
uCoz Community » For Webmasters » Custom Solutions » Make users photo entries display on the profile page?
  • Page 1 of 1
  • 1
Search: