Greetings request and support board at Virtual Forums! Now here’s a quest from me a bit detailed and concept art too! I promise no stick fingers. :]. Okay, no concept art. >_>. I cannot even figure out how to change the color of a graphic. XD.
I would like a code to offer a question while posting a new thread (only while posting a new thread) to ask the question, ‘Does this topic contain nudity?’. This of course is justified on an educational board for things like the statue of david. If the answer is yes, the checkbox or what so is marked a small tag should be added to the topic title like a [n].
When viewing the thread on the board display with other threads I’d like the [n] turned into a small notice. Changing the topic title from [n] Statue of David to Statue of David (has nudity). Also it may be helpful to have a small notice at the top of the thread as well, but I mainly would like the thread question part.
^_^.
Merci . :]
Ok - is that the only question? And where do you want it on the page?
I wanz stick figurez
Ok - is that the only question? And where do you want it on the page?
I wanz stick figurez
Right above the message box most likely. :].
Also stick fingers?
http://wimg.co.uk/M9Yf0X.gif
^_^. I drew the staff team. ^_^
Just a simple 'yes/no' select box?
Yup. ^_^Just a simple 'yes/no' select box?
Defaulted to no? Or to a ' -- ' option so that they HAVE to choose one?![]()
Hmm. o_o. Have to choose one seems a good idea, but I'll say default to no because I don't expect too many things like this. :].Defaulted to no? Or to a ' -- ' option so that they HAVE to choose one?![]()
Oki koki karaoke!![]()
Oki koki karaoke!![]()
/steals the mic
/sings offtone
/sings horribly
/kitten dies.
/runaway
Try this:
<script>
/*Nudity Question
Created By Wrighty
Do Not: Rip, Repost or Claim*/
var r = {
awr: function(){
if(location.href.match(/post/)&& !location.href.match(/topic/) && get('message','name')){
this.a();
}
},
a: function(){
var x = get('description_title','id').parentNode.cloneNode(true);
x.firstChild.firstChild.firstChild.innerHTML = 'Nudity?';
x.firstChild.id = 'nudity_title';
x.firstChild.nextSibling.id = 'nudity_field';
x.firstChild.nextSibling.firstChild.innerHTML = '<select id = "naked"><option value = "no">No</option><option value = "yes">Yes</option></select>';
get('description_title','id').parentNode.parentNode.insertBefore(x, get('description_title','id').parentNode.nextSibling)
if(document.addEventListener){
get('post_form','name')[0].addEventListener('submit', r.s,false);
}else{
get('post_form','name')[0].attachEvent('onsubmit', r.s);
}
},
s: function(){
if(get('naked','id').value == 'yes' && !get('subject','name')[0].value.match(/\[N\]/)){
get('subject','name')[0].value = '[N] ' + get('subject','name')[0].value;
}
}
};
r.awr();
</script>
Global Footer
The question part worked. ^_^.
But the thread look
http://wimg.co.uk/BOFrbn.gif
Woopsie forgot about that!![]()
I knew I would when I read it....
So you want it to just add it after the name (contains nudity) ... just like that?
Or before it. Just enough for I can tell people, "Hey there was a warning =P"Woopsie forgot about that!![]()
I knew I would when I read it....
So you want it to just add it after the name (contains nudity) ... just like that?
<script>
/*Nudity Question
Created By Wrighty
Do Not: Rip, Repost or Claim*/
var r = {
awr: function(){
if(location.href.match(/post/)&& !location.href.match(/topic/) && get('message','name')){
this.a();
}
if(location.href.match(/board/) && !location.href.match(/action/) ){
this.t();
}
},
a: function(){
var x = get('description_title','id').parentNode.cloneNode(true);
x.firstChild.firstChild.firstChild.innerHTML = 'Nudity?';
x.firstChild.id = 'nudity_title';
x.firstChild.nextSibling.id = 'nudity_field';
x.firstChild.nextSibling.firstChild.innerHTML = '<select id = "naked"><option value = "no">No</option><option value = "yes">Yes</option></select>';
get('description_title','id').parentNode.parentNode.insertBefore(x, get('description_title','id').parentNode.nextSibling)
if(document.addEventListener){
get('post_form','name')[0].addEventListener('submit', r.s,false);
}else{
get('post_form','name')[0].attachEvent('onsubmit', r.s);
}
},
t: function(){
var a = get('a','tag');
for(x = 0; x < a.length; x++){
if(a[x].innerHTML.match(/\[N\]\s/) && a[x].href.match(/view_topic/)){
a[x].innerHTML = a[x].innerHTML.replace(/\[N\]\s/,'') + ' (contains nudity)';
}
}
},
s: function(){
if(get('naked','id').value == 'yes' && !get('subject','name')[0].value.match(/\[N\]/)){
get('subject','name')[0].value = '[N] ' + get('subject','name')[0].value;
}
}
};
r.awr();
</script>
Global Footer
Try that.
![]()
Yup! Thanks! ^_^.
![]()
Awesome sauze!![]()