|
Post by rhondairv on May 16, 2010 16:09:57 GMT -8
Is there a way to have an option for a 2nd avatar in the profiles? I know there is 1 code out there but it puts it in only 1 post. I am hoping for a way for members to go to their profile and upload a 2nd avatar. The reason being is we give ''badges'' out for won contests and this would be a way for them to show their fav or newest one. Thanks for all your support
|
|
|
Post by Wormopolis on May 16, 2010 18:04:40 GMT -8
puts it only in 1 post? do you have a link to that code?
|
|
|
Post by rhondairv on May 16, 2010 18:32:37 GMT -8
I am hoping for a way for there to be 2 avatars all the time showing.
[CB] Second, post specific, avatar..
This will allow a member to have a second avatar in any post they make. The second avatar will appear below the member's main avatar.
<script type="text/javascript"> <!-- /* Second, post specific, avatar.. Copyright © 2008 Please keep this header intact */
// Add option to post area..
if(document.postForm && pb_username != 'Guest') { var avTR = document.createElement('TR'); var avTD1 = document.createElement('TD'); var avTD2 = document.createElement('TD'); avTD1.setAttribute('CLASS','windowbg2'); avTD1.className = 'windowbg2'; avTD2.setAttribute('CLASS','windowbg2'); avTD2.className = 'windowbg2'; avTD1.innerHTML = '<font size="2">Add Avatar:</font>'; avTD2.innerHTML = '<input id="avatar" name="avatar" size="72" maxlength="80" type="text" title="Please ensure the maximum width of avatar is 100 pixels">';
avTR.appendChild(avTD1); avTR.appendChild(avTD2); var messageRow = document.postForm.message.parentNode.parentNode.parentNode; messageRow.parentNode.insertBefore(avTR,messageRow);
function addAvatar() { var avatar = document.getElementById('avatar'); if(avatar.value.match('http://')) { document.postForm.message.value = '[url='+avatar.value+'] [/url]'+document.postForm.message.value; }} document.postForm.onsubmit = addAvatar; }
// Remove avatar from quoted/modified posts..
if(document.postForm && document.postForm.message.value.match(/\] \[\/url\]/)) { if(document.location.href.match('modifypost')) { var avatar = document.getElementById('avatar'); avatar.value = document.postForm.message.value.split('=')[1].split('] ')[0]; } document.postForm.message.value = document.postForm.message.value.replace(/\[url=(.)+\] \[\/url\]/,''); }
// Add avatar to posters mini profile..
if(document.location.href.match('action=display')) { var avPost = document.getElementsByTagName('font'); for(a=0; a<avPost.length; a++) { if(avPost[a].innerHTML.match('- google_ad_section_start -') && avPost[a].getElementsByTagName('a').length > 0) { var newAvatar = avPost[a].innerHTML.split('"')[1]; var avPostTR = avPost[a].parentNode; while(avPostTR.parentNode.firstChild.width != '20%') { avPostTR = avPostTR.parentNode; } avPostTR = avPostTR.parentNode.firstChild.getElementsByTagName('center')[0]; var newAv = new Image(); newAv.src = newAvatar; avPostTR.insertBefore(newAv,avPostTR.firstChild.nextSibling); avPostTR.insertBefore(document.createElement('BR'),avPostTR.firstChild.nextSibling); }}} // --> </script>
|
|
|
Post by Wormopolis on May 17, 2010 14:28:26 GMT -8
I see. it should actually put the second avatar on ANY post that they add the embed to.
you are wanting something that will give them a second avatar no matter what. you want this where a member can add the avatar or only staff can add it?
|
|
|
Post by rhondairv on May 17, 2010 15:08:41 GMT -8
You got it! So that a member can.
|
|
|
Post by Wormopolis on May 17, 2010 16:41:42 GMT -8
going to have to sacrifice some space.. personal text or signature?
|
|
|
Post by rhondairv on May 17, 2010 20:02:13 GMT -8
Well i never have personal text. It is there when the page is loading (with code from the shop) then disappears when the page loads.
If it is signature does that mean it will be in the signature space?
|
|
|
Post by Wormopolis on May 18, 2010 1:12:46 GMT -8
no, I will remove it from signature and put it under the normal avatar. I just need spac to store the 2nd avatar URL.
|
|
|
Post by rhondairv on May 18, 2010 4:27:47 GMT -8
If you can put in personal text that would be best. If not then sig is ok.
|
|
|
Post by Wormopolis on May 25, 2010 19:49:57 GMT -8
do you currently have any codes utilizing the personal text space? if you do.. then you are likely going to have issues. URLs are kinda long, and you only get something like 120 characters to the personal space.
check and make sure, because storing a URL in there is going to be an issue, especially if later you decide to use a code that ALSO stores stuff in PT.
|
|
|
Post by rhondairv on May 26, 2010 13:15:27 GMT -8
I have the colored names that uses it i believe. I don't know if there is anything else. What constitutes something needing to use that space? Maybe we can put this on hold til i find out. It sounds like it might be a waste of your time. If you make it and i can't use it i'll feel like crap.
|
|
|
Post by Wormopolis on May 26, 2010 16:01:08 GMT -8
if you have any code that that has the element "modifyForm.personaltext" anywhere in it, then it will be using personal text space.
the signature can hold 250 characters so it might be better off to steal some of that space.
|
|
|
Post by rhondairv on May 26, 2010 18:11:23 GMT -8
That is fine.
If i turn signature off in the general settings would it turn off this code if i had it? I am wondering because if there isn't much left for a sig then it might be best to turn it off instead of getting a bunch of Q's why they can't do much.
Whatever is best i am happy with.
|
|
|
Post by Wormopolis on May 26, 2010 18:55:09 GMT -8
ooohh.. good question. if you turn off signatures, then signature are never written to the page - thus defeating the code as well. you will definately need to have signatures turned on. What you COULD do however, is have a code that hide the ability to edit signatures on the modify profile page. then no one will ever be able to use it. but a URL will only take up around 20-40 characters. that leaves plenty of space for users to add in more signature stuff of their own. if they go over board however, some of their stuff will get cut off. like if they put a bunch of tables and pictures into their signatures. you will just have to moderate them if they try. most people dont however. most people put what you see on PBS profiles.
let me work out the kinks of the countdown code and then I can get on this.
|
|
|
Post by rhondairv on May 27, 2010 13:16:00 GMT -8
OK, sounds great. I was thinking it would take up much more than 20-40 characters. So, i can leave the signature on and just make sure no one goes wild. I prefer very little to none anyway.
BTW, the countdown is looking FANTASTIC!
|
|