inherit
135576
0
Oct 22, 2010 11:15:07 GMT -8
breathless450
42
December 2008
breathless450
|
Post by breathless450 on Feb 16, 2009 2:44:37 GMT -8
"Add Extra Gender Options" and "Add a Shoutbox" (Whatever ther're called! ;D) both work (the gender code has been updated) but there's a problem
With the Gender code, the extra gender appears but if you select it, this message appears:
The following errors occurred:
You entered an invalid gender. Please select Male or Female from the dropdown menu.
does the image you select for it have to be any particular size?
As for the shoutbox, it's not visable to guests. There's a code to make it not visable to guests (I think!) but I haven't used it, and I want guests to be able to see it.(is it possible for guests to use it?)
|
|
inherit
123128
0
Feb 3, 2020 13:53:38 GMT -8
Malagrond
Remember, remember the 5th of November.
813
April 2008
malagrond
|
Post by Malagrond on Feb 16, 2009 7:40:14 GMT -8
Can we have a link to your forum?
~Mala
|
|
inherit
135576
0
Oct 22, 2010 11:15:07 GMT -8
breathless450
42
December 2008
breathless450
|
Post by breathless450 on Feb 17, 2009 2:15:14 GMT -8
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Feb 17, 2009 11:23:29 GMT -8
I had to update it since Proboards now requires your physical sex for the GoogleAds.
Make sure it works for me, and if it does I'll update the database with it.
The red is for me so I can remember what I added/modified.
<script type='text/javascript'> /* Add more gender options created by CrAzY_J do not redistribute this code without the creator's permission*/ var More = [ ['Both','Image Url'], ['Unkown','Image Url'], ['Yet to Find out','Image Url'] ];
var Patt = /%\\(\d+)\\%/;
if( document.modifyForm ) { var Sex = document.modifyForm.gender; var originalSex = Sex.selectedIndex; function Put(event) { if( !Patt.test( document.modifyForm.personaltext.value) ) document.modifyForm.personaltext.value += '%\\'+Sex.selectedIndex+'\\%'; else document.modifyForm.personaltext.value = document.modifyForm.personaltext.value.replace( Patt, '%\\'+Sex.selectedIndex+'\\%'); if(Sex.selectedIndex > 1) Sex.selectedIndex = originalSex; } for( var z = 0 ; z < More.length ; z ++ ) Sex.options[Sex.options.length] = new Option( More[z][0], z); if( document.modifyForm.personaltext.value.match( Patt ) ) Sex.selectedIndex = RegExp.$1; if( document.addEventListener ) document.modifyForm.profileaction[0].addEventListener('click',Put,false); else document.modifyForm.profileaction[0].attachEvent('onclick',Put); }
if( this.location.href.match(/(view|cgi$|display)/i) ) { var GenderTest = /Gender:\s/; var TD = document.body.getElementsByTagName('td'); for( var t = 0 ; t < TD.length ; t ++ ) { if( TD[t].width == '20%' && TD[t].className != 'catbg' && TD[t].innerHTML.match(Patt) ) { var gender = parseInt(RegExp.$1) TD[t].innerHTML = TD[t].innerHTML.replace(Patt, ''); if( !GenderTest.test( TD[t].innerHTML ) && gender > 1 ) TD[t].innerHTML = TD[t].innerHTML.replace(/Posts:/,'Gender: '+More[gender-2][0]+' <img src="'+More[gender-2][1]+'" border="0" /><br />Posts:'); else if(gender > 1) TD[t].innerHTML = TD[t].innerHTML.replace(/Gender:\s.+?<br/i,'Gender: '+More[gender-2][0]+' <img src="'+More[gender-2][1]+'" border="0" /><br'); } } }
</script>
|
|
inherit
123128
0
Feb 3, 2020 13:53:38 GMT -8
Malagrond
Remember, remember the 5th of November.
813
April 2008
malagrond
|
Post by Malagrond on Feb 17, 2009 11:31:36 GMT -8
As for the shoutbox: <div id="sboxDiv" style="display:none;"> Put your shoutbox code here. </div> <script> if(pb_username!="Guest" && pb_displayname!="Guest"){ document.getElementById("sboxDiv").style.display="block"; } </script>
Remember: If they disable Javascript, they can see your shoutbox, so this isn't 100% secure. ~Mala
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Feb 17, 2009 11:38:20 GMT -8
Should be fine if you disable JavaScript <div id="sboxDiv" style="display:none;">, but if they view the source they could find the URL to the shoutbox.
|
|
inherit
123128
0
Feb 3, 2020 13:53:38 GMT -8
Malagrond
Remember, remember the 5th of November.
813
April 2008
malagrond
|
Post by Malagrond on Feb 17, 2009 13:53:35 GMT -8
My bad, hadn't had my coffee yet xD
~Mala
|
|
inherit
135576
0
Oct 22, 2010 11:15:07 GMT -8
breathless450
42
December 2008
breathless450
|
Post by breathless450 on Feb 18, 2009 1:50:30 GMT -8
As for the shoutbox: <div id="sboxDiv" style="display:none;"> Put your shoutbox code here. </div> <script> if(pb_username!="Guest" && pb_displayname!="Guest"){ document.getElementById("sboxDiv").style.display="block"; } </script>
Remember: If they disable Javascript, they can see your shoutbox, so this isn't 100% secure. ~Mala It sounds to me like the code to "hide" the shoutbox.It's already hidden. I want it "visable" to guests. And what do you mean by "disabling Javascript"?
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Feb 18, 2009 11:06:34 GMT -8
I'm not too familiar with Stover's shoutbox, but since there is nothing visible that is hiding the shoutbox, it's most likely an option that you have to set somewhere.
|
|
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 Feb 18, 2009 19:18:23 GMT -8
Stover's shoutbox automatically hides itself to guests. You might have to ask him if there is a way to show it.
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Feb 18, 2009 21:05:13 GMT -8
I sent Stover a private message so he can clear things up.
|
|
inherit
130228
GamingMedley charles.stover
0
Nov 18, 2012 0:12:30 GMT -8
Charles Stover
PM me for Arcade or ShoutBox support
1,731
August 2008
gamechief
|
Post by Charles Stover on Feb 18, 2009 22:00:59 GMT -8
Shoutbox isn't displayed for guests. Ever. There's absolutely no reason to use any "hide this from guests" code, because it's hidden by default. This is to prevent guests from spamming it anonymously and to prevent them from pretending to be a member they're not. I don't believe it will ever be implemented, sorry. I just feel it would cause more harm than good.
|
|
inherit
135576
0
Oct 22, 2010 11:15:07 GMT -8
breathless450
42
December 2008
breathless450
|
Post by breathless450 on Feb 19, 2009 13:32:01 GMT -8
The shoutbox situation is fine;D The gender code isn't. I typed in the modified version and the extra genders aren't in the drop down list. Maybe that code should be deleted from the database!!!
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Feb 19, 2009 14:27:00 GMT -8
You haven't entered the data correctly. Remove the comma on the last line.
var More = [ ['Caroline','http://i304./nn193/breathless190/CAROLINEMYLOVE.jpg'], ];
|
|
inherit
135576
0
Oct 22, 2010 11:15:07 GMT -8
breathless450
42
December 2008
breathless450
|
Post by breathless450 on Feb 19, 2009 14:55:03 GMT -8
You haven't entered the data correctly. Removed the comma on the last line. var More = [ ['Caroline','http://i304./nn193/breathless190/CAROLINEMYLOVE.jpg'], ];the comma was there, I checked and when I deleted it, it still didn't work! I even tried re-entering it it won't work!
|
|