inherit
185604
0
Feb 2, 2021 3:29:58 GMT -8
EbonyDoe
58
November 2012
ebonydoe
|
Post by EbonyDoe on Feb 11, 2013 20:29:58 GMT -8
Would it be possible to get something like a mood indicator for the MPs? Basically like a dropdown menu with images for the moods (maybe where you can upload the images for said moods). I'm currently just using a dropdown menu with the names but I was always hoping for something a bit more fancy.
|
|
inherit
189986
0
Jan 18, 2016 11:58:28 GMT -8
hellsblizzz
32
February 2013
hellsblizzz
|
Post by hellsblizzz on Feb 16, 2013 17:24:22 GMT -8
i had this 1 in the last version , was pretty fun.
This was the code if that might help , i would be intrested to , to use this back in version 5
<script type="text/javascript">
<!--
/*Personal Moods - By iAlex - Open Source*/
var iMoodList=[
"Happy",
"Wink",
"Grin",
"Cheesy",
"Angry",
"Sad",
"Shocked",
"Cool",
"Confused",
"Sarcastic",
"Silly",
"Embarrassed",
"Silent",
"Unsure",
"Kiss",
"Crying",
"Horny"//No comma on last line
];
if(document.modifyForm){
var iMoodTable=document.modifyForm.personaltext.parentNode.parentNode.parentNode.parentNode.parentNode;
var iMoodDiv=document.createElement('div');
iMoodDiv.innerHTML='<table cellpadding="2" cellspacing="2" border="0"><tr><td width="154" valign="top"><font size="-1">Mood:</font></td><td width="245"><font size="-1" id="iMoodFont"></font></td><td width="245"><font size="-2">If you wish to display a mood, select it here.</font></td></tr></table>';
iMoodTable.parentNode.insertBefore(iMoodDiv, iMoodTable);
var iMoodFont=document.getElementById('iMoodFont');
var iMoodSelect=document.createElement('select');
var iMoodText=document.modifyForm.personaltext;
iMoodSelect.options[0]=new Option('Mood');
for(i=0;i<iMoodList.length;i++){
iMoodSelect.options[iMoodSelect.length]=new Option(iMoodList);
}
if(iMoodText.value.match(/\[Mo0:(\d+)\]/)){
iMoodSelect.selectedIndex=RegExp.$1;
iMoodText.value=iMoodText.value.replace(/\[Mo0:(\d+)\]/g, '');
}
iMoodFont.appendChild(iMoodSelect);
if(document.addEventListener){
document.modifyForm.addEventListener('submit', function(){
iMoodText.value=iMoodText.value+'[Mo0:'+iMoodSelect.selectedIndex+']';
}, false);
}
else{
document.modifyForm.attachEvent('onsubmit', function(){
iMoodText.value=iMoodText.value+'[Mo0:'+iMoodSelect.selectedIndex+']';
});
}
}
if(location.href.match(/action=(display|viewprofile|(user)?recent|calendarview|search2|pmview)/) || location.href.match(/index.cgi$/) && document.title.match(/Preview/) && document.postForm){
var iTd=document.getElementsByTagName('td');
for(i=0;i<iTd.length;i++){
if(iTd.item(i).width=="20%" && iTd.item(i).className.match(/windowbg(2)?/) && iTd.item(i).vAlign=="top" && iTd.item(i).innerHTML.match(/member is/) && iTd.item(i).innerHTML.match(/\[Mo0:(\d+)\]/)){
if(RegExp.$1>0){
var iMoodDisplay=document.createElement('div');
iMoodDisplay.innerHTML='Mood: '+iMoodList[RegExp.$1-1];
iTd.item(i).appendChild(iMoodDisplay);
}
iTd.item(i).innerHTML=iTd.item(i).innerHTML.replace(/\[Mo0:(\d+)\]/g, '');
}
}
}
//-->
</script>
|
|
inherit
185604
0
Feb 2, 2021 3:29:58 GMT -8
EbonyDoe
58
November 2012
ebonydoe
|
Post by EbonyDoe on Mar 13, 2013 13:11:32 GMT -8
Bump
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Mar 13, 2013 16:26:36 GMT -8
FYI it will use a data key to store the mood choice. will everyone have the same images to choose from?
|
|
inherit
185604
0
Feb 2, 2021 3:29:58 GMT -8
EbonyDoe
58
November 2012
ebonydoe
|
Post by EbonyDoe on Mar 13, 2013 18:07:05 GMT -8
*has no clue what a data key is* Yes they would Wormopolis
|
|
inherit
185604
0
Feb 2, 2021 3:29:58 GMT -8
EbonyDoe
58
November 2012
ebonydoe
|
Post by EbonyDoe on Mar 20, 2013 11:26:07 GMT -8
Bump
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Mar 21, 2013 22:32:17 GMT -8
I have this done. posting soon.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Mar 22, 2013 0:52:48 GMT -8
Here is a download link if you want to play with it. I need to type up some instructions I think, but I left some default stuff in there that should make it easier to understand Download
|
|
inherit
185604
0
Feb 2, 2021 3:29:58 GMT -8
EbonyDoe
58
November 2012
ebonydoe
|
Post by EbonyDoe on Mar 24, 2013 9:09:32 GMT -8
Thank you so much Wormopolis =D
|
|