vForums Support :: Programming & Coding :: Code Requests & Support :: Support on color dropdown code - View Topic
 |  |
| CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Support on color dropdown code (9th Jul 08 at 9:34pm UTC) | | It seems the code doesn't work on my forum for some reason
 Code: - <script>
- /*Color Drop Down v1
- Created By Wrighty
- No Rip, Repost or Claiming*/
-
- var color = {
-
- list: [
- ["Black","000000"],
- ["Gray","5C5C5C"],
- ["Red","FF0000"],
- ["Blue","0000FF"],
- ["Green","00FF00"],
- ["Yellow","FFFF00"],
- ["Orange","FFA500"],
- ["Pink","FF69B4"],
- ["Maroon","B03060"],
- ["Beige","F5F5DC"],
- ["NavyBlue","000080"],
- ["Brown","8B4513"],
- ["Silver","C0C0C0"],
- ["Teal","008080"],
- ["Purple","551A8B"],
- ["Gold","CDAD00"]
- ],
-
- _s: document.createElement('select'),
- _d: document.createElement('span'),
- _p: get('ubbc_buttons','id'),
- add: {
- colors: function(){
- color._s.options[0] = new Option('Choose Color','');
- for(i=0;i<color.list.length;i++){
- color._s.options[i+1] = new Option(color.list[i][0],color.list[i][1]);
- }
- },
- extra_features: function(){
- color._d.style.paddingLeft = '20px';
- color._s.onchange = function(){
- if(color._s.value!=''){
- add_ubbc('[color='+color._s.value+']','[/color]');
- }
- };
- },
- drop_down: function(){
- color._d.appendChild(color._s);
- color._p.firstChild.insertBefore(color._d, color._p.firstChild.getElementsByTagName('br')[0]);
- }
- },
- build: function(){
- if(color._p){
- this.add.colors();
- this.add.extra_features();
- this.add.drop_down();
- }
- }
- };
- color.build();
- </script>
its at the very top of my global footers. | |
 click here We have 15 Different Skins/Templates for your vForum |
| Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Support on color dropdown code (9th Jul 08 at 10:18pm UTC) | | link to forum? | |
| Marc vChat Developer
     I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 33 Joined:
Additional Groups: Coding Team
  
pmwww | Re: Support on color dropdown code (9th Jul 08 at 10:40pm UTC) | | If you're talking about Mad House Creations, the code functions perfectly for me.
Which browser are you using? | |
rroll.to— Shorten a link, rickroll your friends. |
| CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | | Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Support on color dropdown code (9th Jul 08 at 11:30pm UTC) | | Works fine for me on that forum .....
What are you trying to do etc.... | |
| CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: Support on color dropdown code (10th Jul 08 at 12:02am UTC) | | Ok i just check it and yes it works for when i am making an new thread, but if i go to an post and i'm replying to the post and i click on an color it will not work.
If i was to click on reply in this post to reply to your and i wanted to do it with an color , and i click on the drop down and then the color but it doesn't show on the typing page. i hope you understand what i mean bro. | |
 click here We have 15 Different Skins/Templates for your vForum |
| Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Support on color dropdown code (10th Jul 08 at 12:08am UTC) | | That works as well .... I can't seem to find any bugs with it! | |
| CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: Support on color dropdown code (10th Jul 08 at 2:35am UTC) | | It works for me on Mad House Creations.
But on my forum it wouldn't and i also tried it in IE and it did the samething, doen't work.
I have no idea why it works fine on one forum, and then it wouldn't on another.
My forum and Mad House Creations are the only forums i know that use this code.
BTW, it also works fine for me on my test forum .
| |
 click here We have 15 Different Skins/Templates for your vForum |
| Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Support on color dropdown code (10th Jul 08 at 8:58am UTC) | | It works fine for me on tropolis, I have just tested it.
Does it just not show? Or is it a matter of it not actually adding the 'colour' to the message box? | |
| CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: Support on color dropdown code (10th Jul 08 at 11:48am UTC) | | It doesn't show this > [color = whatever] [/ color ] .(i did the spacing so you'll now what i mean) . But only when i'm trying to reply. | |
 click here We have 15 Different Skins/Templates for your vForum |
| Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Support on color dropdown code (10th Jul 08 at 4:11pm UTC) | | IT shows that for me fine! | |
| CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: Support on color dropdown code (10th Jul 08 at 5:28pm UTC) | | OK but its not only me , i've ask others to try and they say it not working for them as well .
I don't believe its the code Wrighty , i think something may be wrong with the forum itself.
Try it useing your member account ? | |
 click here We have 15 Different Skins/Templates for your vForum |
| Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Support on color dropdown code (10th Jul 08 at 6:30pm UTC) | | I see ...
I have NO idea WHY! | |
| CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: Support on color dropdown code (10th Jul 08 at 8:21pm UTC) | | I see ... I have NO idea WHY! Are you going to have Ross check it ?
let me know when i can try it to see if its working right. | |
 click here We have 15 Different Skins/Templates for your vForum |
| CåñåÐå™ Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/images-hrn.jpeg) Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: Support on color dropdown code (11th Jul 08 at 3:38pm UTC) | | Any word on why this . | |
 click here We have 15 Different Skins/Templates for your vForum |
| |
 |  |
|