Cen
Junior Member
Join us. We have cookies.
Posts: 210
inherit
87356
0
Jul 5, 2014 13:35:34 GMT -8
Cen
Join us. We have cookies.
210
August 2006
centara
|
Post by Cen on Aug 12, 2011 22:00:45 GMT -8
Forum URL: hgwrtsgalax.proboards.comWhen on some profiles, the location line has either an [a:3] at the end if they have a location or an [a:2] if they don't. They've been there for a while but never really got around to figuring out why. Does anyone know what could be causing this? Or is it a proboards thing? Thanks!
|
|
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 Aug 12, 2011 23:18:42 GMT -8
remove a code lately? mostlikely its left over storage data for that code. the only way to get rid of it is to edit all the profiles manually.
|
|
Cen
Junior Member
Join us. We have cookies.
Posts: 210
inherit
87356
0
Jul 5, 2014 13:35:34 GMT -8
Cen
Join us. We have cookies.
210
August 2006
centara
|
Post by Cen on Aug 13, 2011 10:41:46 GMT -8
What do you mean? If a person edits their profile, it doesnt show up there so they can't remove it. It only shows on their profile. I've done a lot of moving codes so i have no idea what it would be but the only one that was profile related was the switchit codes. Removed those in full last month but we've been using them for years.
|
|
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 Aug 13, 2011 10:50:45 GMT -8
it probably stored in the custom title.. which means YOU have to edit the profiles to get rid of it.
|
|
Cen
Junior Member
Join us. We have cookies.
Posts: 210
inherit
87356
0
Jul 5, 2014 13:35:34 GMT -8
Cen
Join us. We have cookies.
210
August 2006
centara
|
Post by Cen on Aug 14, 2011 16:24:07 GMT -8
So neither me or the main admin could find anything on anyone's profiles or in the member groups where we could delete the tag. Any other ideas?
|
|
inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Aug 14, 2011 19:28:21 GMT -8
It would have been easier if you had linked to an affected profile. I'm sure Wormo assumed that it was showing in the mini-profile indicating a recent code removal (I thought the same when reading this thread). You are using "Alignment In Mini Profile". The code adds that info to your location field. It removes it from the mini-profile, but the code does not remove it from the profile page (as you found out).
|
|
Cen
Junior Member
Join us. We have cookies.
Posts: 210
inherit
87356
0
Jul 5, 2014 13:35:34 GMT -8
Cen
Join us. We have cookies.
210
August 2006
centara
|
Post by Cen on Aug 16, 2011 9:13:02 GMT -8
Ah, thanks much. Forgot to link it, sorry. So theres no way to fix this then?
|
|
inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Aug 16, 2011 9:42:58 GMT -8
I never said that! Replace your current code with this. For interested folks, the red is what was added. Let me know if joy... <script type="text/javascript"> <!--
/**************************************** * * Alignment In Mini Profile - Global Footer * * Created By Peter * * This script can not be redistributed without * permission from the creator. * * This header must stay intact at all times. * * Copyright © 2005 - 2006 pixelDepth.net * All rights reserved * *****************************************/
// Should staff be the only ones to set this?
var staff = false;
// Change the options here, you can add more if needed
var options = ["Good", "Neutral", "Evil"];
var alignment = {
selected: 0,
field: ((staff)? "customtitle" : "location"),
init: function(){ if(location.href.match(/=modifyprofile/i) && document.modifyForm){ if(document.modifyForm[this.field]){ this.get_option(); this.setup_options(); if(document.addEventListener){ document.modifyForm.addEventListener("submit", alignment.save, false); } else if(document.attachEvent){ document.modifyForm.attachEvent("onsubmit", alignment.save); } else { document.modifyForm.onsubmit = alignment.save; } } } this.mini_profile(); if(!staff && pb_action == "viewprofile"){ this.profile();} },
profile: function(){ var cell = document.getElementsByTagName("td"); for(c = 0; c < cell.length; c ++){ if(cell.item(c).width == "25%"){ if(cell.item(c).innerHTML.match("Location:") && cell.item(c+1) && cell.item(c+1).innerHTML.match(/\[A:(\d+)\]/)){ cell.item(c+1).innerHTML = cell.item(c+1).innerHTML.replace(RegExp.lastMatch, ""); break; } if(cell.item(c).innerHTML.match("Date")){break;} } } },
get_option: function(){ var field = document.modifyForm[this.field]; if(field.parentNode.innerHTML.match(/\[A:(\d+)\]/)){ this.selected = RegExp.$1; field.value = field.value.replace(/\[A:(\d+)\]/, ""); field.parentNode.innerHTML = field.parentNode.innerHTML.replace(/\[A:(\d+)\]/g, ""); } },
setup_options: function(){ var select = document.createElement("select"); var the_options = ["Alignment"].concat(options);
for(o = 0; o < the_options.length; o ++){ var opt = document.createElement("option");
opt.appendChild(document.createTextNode(the_options[o])); opt.value = o; opt.selected = ((this.selected == o)? true : false); select.appendChild(opt); }
var row = document.modifyForm[this.field].parentNode.parentNode.parentNode; var font = document.createElement("font"); var font_2 = document.createElement("font"); var new_row = row.parentNode.insertRow(row.rowIndex + 1); var new_cell = new_row.insertCell(0);
font.appendChild(document.createTextNode("Alignment:")); font.size = "-1";
font_2.appendChild(document.createTextNode("Select your alignment from the drop down. This will be viewed by other members.")); font_2.size = "-2";
select.onchange = function(){ alignment.selected = this.options[this.options.selectedIndex].value; }
new_cell.appendChild(font); new_row.insertCell(1).appendChild(select); new_row.insertCell(2).appendChild(font_2); },
save: function(){ var field = document.modifyForm[alignment.field];
field.maxLength += 8; field.value += "[A:" + alignment.selected + "]"; },
mini_profile: function(){ var cell = document.getElementsByTagName("td");
for(c = 0; c < cell.length; c ++){ if(cell.item(c).width == "20%" && cell.item(c).className.match("windowbg") && cell.item(c).innerHTML.match(/Posts: \d+/) && cell.item(c).innerHTML.match(/\[A:(\d+)\]/)){ if(RegExp.$1 != 0){ var text = document.createTextNode("Alignment: " + ((options[RegExp.$1 - 1])? options[RegExp.$1 - 1] : "n/a"));
cell.item(c).appendChild(document.createElement("br")); cell.item(c).appendChild(text); }
cell.item(c).innerHTML = cell.item(c).innerHTML.replace(RegExp.lastMatch, ""); } } } };
alignment.init();
//--> </script>
|
|
Cen
Junior Member
Join us. We have cookies.
Posts: 210
inherit
87356
0
Jul 5, 2014 13:35:34 GMT -8
Cen
Join us. We have cookies.
210
August 2006
centara
|
Post by Cen on Aug 16, 2011 18:41:06 GMT -8
You rock Thanks so much! Don't know where you all get this knowledge from but it is definitely amazing to have all of you here to help out!
|
|
inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Aug 16, 2011 19:48:14 GMT -8
Glad it worked out in the end... You are welcome!
|
|