Post by Kent Laiton on Dec 21, 2012 7:51:03 GMT -8
V4 Forum: Click
V5 Forum: Click
Add Content to End of Miniprofile
I use this code to add awards to profiles and it would be great if it could work on v5.
Here is the code:
And here is an example of how it should work in a profile:
V5 Forum: Click
Add Content to End of Miniprofile
I use this code to add awards to profiles and it would be great if it could work on v5.
Here is the code:
<font size="2"><font class="code" face="Courier New" size="2"><script type="text/Javascript">
// Add Content to End of Miniprofile by Chris
// Do not redistribute without permission of the creator
var aTD = document.getElementsByTagName("td");
function addContent(un, da){
if(location.href.match(/action=(display|(calendar|pm)?view)/i) || document.title.match(/\s-\s(Preview|Search\sResults)/i)){
for(a=0;a<aTD.length;a++){
if(aTD[a].width == "20%" && aTD[a].innerHTML.match(new RegExp("user="+un+"[\"'\\s>]", "i"))){
aTD[a].innerHTML += da;
}
}
}
}
// SYNTAX: addContent("username_of_the_user", "HTML here to be added. Make sure to use <br /> to add line breaks.");
// Repeat line as necessary.
addContent("username", "Data here.");
</script></font></font>
And here is an example of how it should work in a profile:
addContent("admin",
"<div width='100%' style='padding: 1px; border: 1px solid #22411f;
background-color:#2b6724; color:#6ba075;'><div class='inventory'
style='text-align: center;'><b>Awards
Collection</b></br></div></div><div
width='100%' style='padding: 1px; border: 1px solid #22411f;
background-color:#070d04; color:#6ba075;'><div class='inventory'
style='text-align: center;'><a href='javascript:void(0)'
onClick='var
n=this.parentNode.nextSibling;n.style.display=(n.style.display=="+'"none")?"":"none";'+"'>[hide/show]</a></div><div
style='display:none'><table width='100%' style='text-align:
center;'><img
src='http://i276./kk25/Kitsunegirl2000/500.png'
title='Reached 500 Posts'><img
src='http://i1170./r523/brightyellowduck/totmfs.png'
title='Participated in Thread OTM, April 2012'><img
src='http://i1170./r523/brightyellowduck/motmfs.png'
title='Member OTM, May & June 2012'><img
src='http://i1170./r523/brightyellowduck/fotmfs.png'
title='Friendship OTM with Dark Cloud, October 2012'><img
src='http://i1170./r523/brightyellowduck/Gotmfs.png'
title='Group OTM, Alpha of Aressence Pack, October 2012'><img
src='http://i276./kk25/Kitsunegirl2000/Pokemonlover_zps50e22f87.png'
title='Pokemon Lover - Shiny Hunter - Favourite: Reshiram'><img
src='http://i1170./r523/brightyellowduck/king.png'
title='Leader of a Pack'><img
src='http://i1170./r523/brightyellowduck/love.png'
title='Fell in Love (Isali)'><img
src='http://i276./kk25/Kitsunegirl2000/lostlove_zps264a3a42.png'
title='Lost a Love (Teara)'><img
src='http://i1170./r523/brightyellowduck/mate.png'
title='Found a Mate (Isali)'><img
src='http://i276./kk25/Kitsunegirl2000/LostMate_zps1bb17ea5.png'
title='Lost a Mate (Teara)'><img
src='http://i1170./r523/brightyellowduck/parent.png'
title='Became a Parent'><img
src='http://i1102./g459/BleedingXRazorXWrist/lostchild.png'
title='Lost a Child (Orchid and Stillborn Pups)'><img
src='http://i1170./r523/brightyellowduck/ac1.png'
title='Replied to Activity Check #1'><img
src='http://i1102./g459/BleedingXRazorXWrist/ac2.png'
title='Replied to Activity Check #2'><img
src='http://i1170./r523/brightyellowduck/birthday.png'
title='FS First Birthday'><img
src='http://i1170./r523/brightyellowduck/easter12.png'
title='Was Online during Easter 2012'><img
src='http://i1102./g459/BleedingXRazorXWrist/HalloweenAward.png'
title='Was Online during Halloween 2012'><img
src='http://i1102./g459/BleedingXRazorXWrist/HauntedCastle.png'
title='Haunted Castle
Award'></td></tr></table></div></div></div><br><div
width='100%' style='padding: 1px; border: 1px solid #22411f;
background-color:#2b6724; color:#6ba075;'><div class='inventory'
style='text-align: center;'><b>Shopping
Goods</b></br></div></div><div width='100%'
style='padding: 1px; border: 1px solid #22411f;
background-color:#070d04; color:#6ba075;'><div class='inventory'
style='text-align: center;'><a href='javascript:void(0)'
onClick='var
n=this.parentNode.nextSibling;n.style.display=(n.style.display=="+'"none")?"":"none";'+"'>[hide/show]</a></div><div
style='display:none'><table width='100%' style='text-align:
center;'><img
src='http://i1170./r523/brightyellowduck/fliy.png'
title='Flight'><img
src='http://i1170./r523/brightyellowduck/enhancedhearing.png'
title='Enhanced Hearing'><img
src='http://i1102./g459/BleedingXRazorXWrist/InnerMonster.png'
title='Inner Monster (triggered by seeing or smelling
blood)'></td></tr></table></div></div></div>");