Elizabeth Terry
New Member
^^This is Me without my Human Suit on.
Posts: 29
inherit
151193
0
Sept 9, 2011 20:23:36 GMT -8
Elizabeth Terry
^^This is Me without my Human Suit on.
29
January 2010
lostclan
|
Post by Elizabeth Terry on Apr 21, 2010 18:52:50 GMT -8
THIS IS THE CODETHIS IS THE FORUMTHIS IS THE PROBLEM: Everytime we try to make a new post where the code is, the coded form appears in a very squashed manner to the left of a normal post box. It was working fine, but suddenly messed up. This is my code: <script type="text/javascript"> /* Posting Request Form/Template v2 by california ©2005 SoCal Codes, socal.proboards.com */ var field = ['']; function addSingleInput(title, desc){field.push(['input', title, desc]);} function addDropdown(title, desc, opts){var other = (arguments[3]) ? arguments[3] : ''; field.push(['select', title, desc, opts.split('|'), other]);} function addTextarea(title, desc, rows){field.push(['textarea', title, desc, rows]);} /* Customize Below This Line */ var titleMessage = "Create"; var subjectName = "Subject"; var subjectDescription = "Enter the name of your character here with its group."; var keepMessageIcon = "yes"; var columnWidths = ["24%", "38%", "38%"]; addSingleInput("Name", "Your cat's name goes here. Required.", "1"); addSingleInput("Age", "In Moons or Seasons. You may have, in addition to this, the amount of years, but moons is needed. ", "1"); addDropdown("Gender", "Gender of your cat.", "Tom|She cat|None"); addDropdown("Alliance", "Select the Clan or group your cat belongs to.", "ThunderClan|RiverClan|WindClan|ShadowClan|LostClan|Tribe of Fallen Stars|Loner|Kittypet", "Other..."); addDropdown("Rank", "Choose the position your cat will work as in its clan.", "Warrior|Apprentice|Queen|Assassin|Fighter|Kit-Mother|To-Be|Loner|Rogue|Kittypet", "Other..."); addTextarea("Description", "Describe your new character with details. At least 4 full sentences.", "10"); addTextarea("Personality", "Describe your cat's personality. Four sentence min.", "7"); addTextarea("History", "The History of your character, six sentences min.", "10"); addTextarea("Roleplay Sample", "Here, put a sample of your Roleplaying. This is needed only for the first bio you make.", "6"); addTextarea("Notes", "Anything else.", "3"); /* Customize Above This Line */ if(document.postForm) document.write('<script type="text/javascript" src="http://iycatacombs.com/socal/resources/scripts/postingformv2.js"></scr'+'ipt>'); </script>
|
|
inherit
152502
0
Feb 27, 2011 16:49:13 GMT -8
.Rain.
18
March 2010
starclansdream
|
Post by .Rain. on Apr 21, 2010 18:57:41 GMT -8
It's messed up for everyone. I'm currently trying to find a new one that works.
|
|
Elizabeth Terry
New Member
^^This is Me without my Human Suit on.
Posts: 29
inherit
151193
0
Sept 9, 2011 20:23:36 GMT -8
Elizabeth Terry
^^This is Me without my Human Suit on.
29
January 2010
lostclan
|
Post by Elizabeth Terry on Apr 21, 2010 19:35:11 GMT -8
We removed it.
|
|
inherit
94587
0
Nov 2, 2012 15:20:44 GMT -8
Jackal
280
December 2006
iluvk9s101
|
Post by Jackal on Apr 22, 2010 17:50:38 GMT -8
I really can't remove it from my forum, since it's such a crucial part to the board that it's in. If someone could find a fix, I'd really appreciate it. I think that the part that's suddenly messing up is the part that hides the actual posting box itself; what normally shows up when one goes to make a post. I'm thinking that proboards changed how it works sometime in the past few days, and that bit of code suddenly can't do its job.
For coders who actually KNOW what they're doing, Captain Obvious at your service. ^^;
|
|
inherit
115926
0
Mar 20, 2021 4:25:23 GMT -8
:~:Sarapha:~:
Happy 16th birthday to my RPG!
1,925
December 2007
sarapha
|
Post by :~:Sarapha:~: on Apr 22, 2010 18:24:49 GMT -8
It actually just changed within the past few hours. My last post in the board where mine is located was at exactly 6:53pm EST, and it was working entirely fine then.
Please, if anyone finds an alternative, point me in the right direction.
|
|
inherit
94587
0
Nov 2, 2012 15:20:44 GMT -8
Jackal
280
December 2006
iluvk9s101
|
Post by Jackal on Apr 22, 2010 18:36:05 GMT -8
I think it might have been as early as about 3:00 PM EST or so on my site. A member there says she was trying to edit a post she had made that used the posting template, and it had a problem.
What I'm hoping is that maybe this thread will become sort of the 'stickied' thread for this problem, and if anyone else needs help finding a new one, they can all just look in here instead of making tons of new threads about the same issue. =/ After all, it's not a site-related problem; it's the change that proboards made to how the sites run. So there's nothing that WE can do, personally, short of actually changing the code we're using. *shrug*
|
|
inherit
Official Code Helper
65613
0
1
Apr 15, 2024 17:01:41 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,870
December 2005
horace
|
Post by Chris on Apr 22, 2010 18:50:24 GMT -8
You'd be better off posting at Socal since that is a remotely hosted code. Even if I looked into what needs to be changed I couldn't change anything, only the person hosting the file could make the necessary changes.
Edit: I haven't fully tested this patch for bugs but if you place it below the template code it should get the form back to how it was before the Proboards change
<script type="text/javascript"> <!-- if(document.postForm && document.getElementById("requestform")){ var pTab = document.postForm.getElementsByTagName('table')[0]; pTab.parentNode.insertBefore(document.getElementById("requestform"), pTab); var tabRows = pTab.getElementsByTagName("table")[0].rows; for(r=0; r<tabRows.length-1; r++){ if(tabRows[r].cells[0].className.match(/(windowbg2|titlebg)/) || tabRows[r].cells[0].innerHTML.match(/Subject:/) || (tabRows[r].cells[0].innerHTML.match(/Message Icon:/) && !keepMessageIcon.match(/yes/i))){ tabRows[r].style.display = "none"; }else if(tabRows[r].cells.length > 1){ tabRows[r].cells[0].width = columnWidths[0]; tabRows[r].cells[1].width = parseInt(columnWidths[1])+parseInt(columnWidths[2])+"%"; } } }
// --> </script>
edit2: I forgot to limit the patch to run only on posting page (now wrapped in if conditional) Also this is not an all-purpose patch for Proboards' recent fixes to the improperly nested posting form it is ONLY for Socal's posting template.
|
|
inherit
115926
0
Mar 20, 2021 4:25:23 GMT -8
:~:Sarapha:~:
Happy 16th birthday to my RPG!
1,925
December 2007
sarapha
|
Post by :~:Sarapha:~: on Apr 23, 2010 22:30:46 GMT -8
I did the above code, and it worked for me. Thank you Eton *hugs tightly*
|
|
inherit
Official Code Helper
65613
0
1
Apr 15, 2024 17:01:41 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,870
December 2005
horace
|
Post by Chris on Apr 23, 2010 22:41:23 GMT -8
Glad to hear it You'll probably need to remove the patch once the actual template code gets updated.
|
|
inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Apr 24, 2010 1:20:21 GMT -8
Eton! Way to go! One of my staff noticed this issue at IOD a couple days ago. You saved me the time and hassle of working this one out. Your patch works perfect in IE and FF. BTW... Using IE, without your patch, the request form didn't even show up. If karma was enabled here at PBS, you would have some coming to ya! Hats off to you Eton! Great job bro! Regards, SubDevo
|
|
inherit
Official Code Helper
65613
0
1
Apr 15, 2024 17:01:41 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,870
December 2005
horace
|
Post by Chris on Apr 24, 2010 15:58:49 GMT -8
Thanks but it took less than 2 minutes with a DOM inspector to identify the problem and another 3 to eyeball the code to see where it was going wrong. The patch was then copied almost verbatim from the code with tweaks to correct the initial failed run.
|
|
southpark13
inherit
-3994225
0
May 4, 2024 2:56:46 GMT -8
southpark13
0
January 1970
GUEST
|
Post by southpark13 on May 1, 2010 18:46:07 GMT -8
It still doesent work for my fourm...
|
|
inherit
Official Code Helper
65613
0
1
Apr 15, 2024 17:01:41 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,870
December 2005
horace
|
Post by Chris on May 1, 2010 19:00:46 GMT -8
If you want any help you'll need to provide some kind of information...
|
|
inherit
153476
0
Dec 13, 2010 17:08:11 GMT -8
Kanchana
13
April 2010
kanchana
|
Post by Kanchana on Jun 18, 2010 1:14:19 GMT -8
*isnt sure if she can post here*
Hey All, I just edited my Character form on my site..and now it wont even show up... Could you please have a look and see if I have done something wrong..I tried the patch but it didn't work..is it an error on my half?
Thanks
Kanchana
<script type="text/javascript"> <!-- /* Posting Request Form/Template v2 by california ©2005 SoCal Codes, http://socal.proboards26.com */ var field = ['']; function addSingleInput(title, desc){field.push(['input', title, desc]);} function addDropdown(title, desc, opts){var other = (arguments[3]) ? arguments[3] : ''; field.push(['select', title, desc, opts.split('|'), other]);} function addTextarea(title, desc, rows){field.push(['textarea', title, desc, rows]);}
/* Customize Below This Line */
var titleMessage = "Create"; var subjectName = "Name"; var subjectDescription = "Place the name if your character as the subject."; var keepMessageIcon = "yes"; var columnWidths = ["24%", "38%", "38%"];
addSingleInput("Name", "The characters full name. Try and make it interesing."); addSingleInput("Age", "How old is your character?"); addSingleInput("Birthday", "What day is your character born? This is an extra, you do not have to add it."); addDropdown("Gender", "Is your character male or female?", "Male|Female", "); addTextarea("Family Members", "Mum? Dad? Brother? Sister? Put them all here", "); addSingleInput("Marital Status/Sexual Preference", "What is this is Characters Marital Status/Sexual Preference?"); addTextarea("Description", "The overall description of you character. This includes eye colour, skin colour, height etc...."); addDropdown("Physical/Mental Health", "What is this Character's Physical/Mental Health like?", "Excellent|High|Average|Low|Poor|Insane", "); addSingleInput("Origin", "Where is this Character originally from? Australia? England?"); addTextarea("Background", "What overall background does this Character have? At least 3 sentences please."); addTextarea("Personal History/Adulthood", "What happened in your Characters Personal History/Adulthood? At least 3 sentences please.") addTextarea("Both Happiest and Saddest Moments:", What are the Both Happiest and Saddest Moments in their life? Try and think of at least one for each.") addTextarea("Personality", "How your character acts around others."); addTextarea("Beliefs/Religion", "What Beliefs/Religion's does this Character follow? Put none if unsure. "); addTextarea("Dreams/Life Goals", "What Dreams/Life Goals has this Character had? Where do they want to be in future times?"); addTextarea("Hobbies", "What does your Character like to do? Horse ride? Read? Work hard?. "); addTextarea("Picture - Optional", "If you have a picture of your character");
/* Customize Above This Line */
if(document.postForm) document.write('<script type="text/javascript" src="http://www.iycatacombs.com/socal/resources/scripts/postingformv2.js"></scr'+'ipt>'); // --> </script>
<script type="text/javascript"> <!-- if(document.postForm && document.getElementById("requestform")){ var pTab = document.postForm.getElementsByTagName('table')[0]; pTab.parentNode.insertBefore(document.getElementById("requestform"), pTab); var tabRows = pTab.getElementsByTagName("table")[0].rows; for(r=0; r<tabRows.length-1; r++){ if(tabRows[r].cells[0].className.match(/(windowbg2|titlebg)/) || tabRows[r].cells[0].innerHTML.match(/Subject:/) || (tabRows[r].cells[0].innerHTML.match(/Message Icon:/) && !keepMessageIcon.match(/yes/i))){ tabRows[r].style.display = "none"; }else if(tabRows[r].cells.length > 1){ tabRows[r].cells[0].width = columnWidths[0]; tabRows[r].cells[1].width = parseInt(columnWidths[1])+parseInt(columnWidths[2])+"%"; } } }
// --> </script>
|
|
Kami
Forum Cat
Posts: 40,034
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,034
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jun 18, 2010 1:15:43 GMT -8
in the future, please start your own thread. =] be sure all apostrophes are escaped, such as "religion\'s"
|
|