• Page 1 of 1
  • 1
uCause Community » uCoz Templates and Scripts » Custom Coding and Solutions » How to Display avatar in a Posted Entry
How to Display avatar in a Posted Entry
AnimorphDate: Tuesday, 2011-08-30, 9:02 PM | Message # 1
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
Hello everyone , i started trying to make a script when i read this from Khen
http://forum.ucoz.com/forum/10-14259-1

Living example in all uCause Entry's

At first i thought it was impossible but a friend of me mike told me that it should be possible with using jquery so i tried in tons of different ways and finally i got it working:

Now the first thing that you need to do is go to CP ---> Design ---> Design management (templates) ---> User ---> User Personal page

Find:
Code
$_AVATAR$


Replace by:
Code
<span id="uCauseAvatar">$_AVATAR$</span>


Then go to Cp --> Design --> Design management (templates) ---> Your Module ---> Appearance of entries or Entry Full text andhis comments --> add this at the top of the page or after
Code
</head>


Code
<script type="text/javascript">
  // Copyright uCause ~ http://uCause.ucoz.com/  
    $(document).ready(function(){
    $('span.uCauseAvatar$ID$').load('/index/8-$UID$ #uCauseAvatar');
    });
    </script>


and then add this on the place where you want the avatar to appear:

Code
<span class="uCauseAvatar$ID$">loading...</span>
tags-zB11How, to, Display, avatar, in, a, Posted, Entry
 
0 Thanked you For This Useful Post:
Maczo12310Date: Tuesday, 2011-08-30, 9:18 PM | Message # 2
Member
Group: Senior Members
Messages: 987
Awards: 12
Reputation: 11
Status: :-(
Hmm.. Its a really nice script, good that you have shared it biggrin


Visit my Graphic forum board on uCause !!!
 
0 Thanked you For This Useful Post:
khenDate: Wednesday, 2011-08-31, 4:41 AM | Message # 3
Member
Group: Senior Members
Messages: 6
Awards: 0
Reputation: 0
Status: :-(
Animorph, you're awesome Animorph. It really works. Big thanks for the help! cool . Keep it up Animorph.
 
0 Thanked you For This Useful Post:
ParadoxDate: Wednesday, 2011-08-31, 9:16 AM | Message # 4
Haunter
Group: Senior Members
Messages: 468
Awards: 6
Reputation: 11
Status: :-(
Cool script. This will be useful for my site once I finally start working on it again. biggrin

Request Terminated_
 
0 Thanked you For This Useful Post:
jackassDate: Thursday, 2011-09-01, 1:30 AM | Message # 5
Member
Group: Senior Members
Messages: 262
Awards: 4
Reputation: 8
Status: :-(
Why my post was deleted?
It was not rude or something like that cry


 
0 Thanked you For This Useful Post:
Maczo12310Date: Thursday, 2011-09-01, 2:21 AM | Message # 6
Member
Group: Senior Members
Messages: 987
Awards: 12
Reputation: 11
Status: :-(
jackass, Maybe it felt as an Insult to one of out staff members. So please dont make a big thing of this. If something has been deleted without any response then it ment to be.


Visit my Graphic forum board on uCause !!!
 
0 Thanked you For This Useful Post:
interoutDate: Saturday, 2011-09-03, 3:03 AM | Message # 7
Member
Group: Senior Members
Messages: 146
Awards: 1
Reputation: 4
Status: :-(
Very very big Thanks



 
0 Thanked you For This Useful Post:
AnimorphDate: Saturday, 2011-09-03, 1:20 PM | Message # 8
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
interout, no problem smile
 
0 Thanked you For This Useful Post:
rys3rDate: Sunday, 2011-10-09, 0:59 AM | Message # 9
Member
Group: Senior Members
Messages: 6
Awards: 0
Reputation: 0
Status: :-(
it is possible resize the avatar?
 
0 Thanked you For This Useful Post:
SirDarknight(Tonmoy)Date: Sunday, 2011-10-09, 5:54 AM | Message # 10
Member
Group: Senior Members
Messages: 894
Awards: 10
Reputation: 15
Status: :-(
rys3r, I think yes

Please Give Me A Award or + Rep If My Post Helps You

Please Give Me A Award or + Rep If You Like my Scripts
 
0 Thanked you For This Useful Post:
uCause Community » uCoz Templates and Scripts » Custom Coding and Solutions » How to Display avatar in a Posted Entry
  • Page 1 of 1
  • 1
Search:


"Making uCoz web designs simple and easy to use"
- uCause Developers