|
Author | Topic: 2 UBBC Code requests (Read 3,184 times) |
Levistus New Member
 member is offline
Firefox User
Joined: Oct 2005 Gender: Male  Posts: 43
|  | 2 UBBC Code requests « Thread Started on Nov 27, 2005, 6:37pm » | |
1. I wish to have a UBBC code that automatically chooses 3 or 4 ubbc's. What I need is [b], [i], and [color=red] all in one seperate button. I still want the basic ubbc codes to exist, but this one also if possible. If this is possible, don't worry about an icon, I can make one easily.
2. I wish to have the [pre] code not go past the screen when you have something long on there, but instead just go to the next line.
| Firefox User |
|
california Part of the Furniture
        RIP- Proboards Legend member is offline
Joined: Dec 1999 Gender: Male  Posts: 21,035 Location: -guess-
|  | Re: 2 UBBC Code requests « Reply #1 on Nov 27, 2005, 9:51pm » | |
1 - I'd suggest using your censored words list.
| [mynewtag] | [color=red][b][i] | | [/mynewtag] | [/i][/b][/color] |
2 - That's how the <pre> HTML tag is supposed to work. You could try something like:
<style type="text/css"> <!--
pre { width: 600px; overflow-x: auto; }
--> </style>
in your Global header but I'm not sure it'd work.
|
![[image]](http://www.iycatacombs.com/socal/neon/promotion/sig1.jpg)
Latest Project: Automatic Welcome PM (sent to new users when they register) |
|
ⓦ৹₪deⓡ Full Member
   Handsome Devil member is offline
![[avatar]](http://img90.imageshack.us/img90/2987/bluestrawberry9rx.gif)
No animals were harmed in the feeding of this human.
Joined: Mar 2004 Posts: 883 Location: 41.961 x -87.806
|  | Re: 2 UBBC Code requests « Reply #2 on Nov 28, 2005, 11:03am » | |
Try this, it should add a new button ( ) that will add [color=Red][b][i][/i][/b][/color] to the textarea. Put in Global Footer. I haven't tested it but it should work. Edit where indicated. Enjoy. ~Wonder
Code:<script> //noubbc Icon v1.0 [CB]
//Copyright 11-03-2005 by ~Wonder //May be reposted anywhere as long as this header remains in tact
noUBBCIcon="http://img380.imageshack.us/img380/5081/bired7dy.gif"; if(document.postForm && document.postForm.color) { document.postForm.color.parentNode.innerHTML+="<a href=javascript:add(\"[color=red][b][i]\",\"[/i][/b][/color]\")><img src=\""+noUBBCIcon+"\" alt=\"Red, Bold, Italicize\" border=\"0\"></a>"; } </script> |
|
| My newest codes: Translate Post v1.0 [CB] Facebook Style Like/Dislike System v1.0 [CB]
![[image]](http://donteatme.sitehacks.com/index.php?.gif) |
|
Levistus New Member
 member is offline
Firefox User
Joined: Oct 2005 Gender: Male  Posts: 43
|  | Re: 2 UBBC Code requests « Reply #3 on Nov 28, 2005, 9:27pm » | |
Alright, cool. It works, now I just need to figure out how to get that in the quick reply with a code I have.
| Firefox User |
|
Minnn Junior Member
  member is offline
![[avatar]](http://img.photobucket.com/albums/v650/Minn/pbav.jpg)
...Ravek?
Joined: Dec 1999 Gender: Female  Posts: 278 Location: Brisbane, Australia
|  | Re: 2 UBBC Code requests « Reply #4 on Nov 29, 2005, 11:00pm » | |
Quote:1 - I'd suggest using your censored words list.
| [mynewtag] | [color=red][b][i] | | [/mynewtag] | [/i][/b][/color] |
|
|
Have you been able to get that working? I tried doing a similar thing, but for some reason, it's needing a 'space' ( ) between the new tags and the text, ie
[mynewtag]TEXT[/mynewtag] yields exatly that. [mynewtag] TEXT [/mynewtag] yields the correctly formatted result...
*is confused*
|
![[image]](http://img.photobucket.com/albums/v650/Minn/bender_corn1.gif)
![[image]](http://img.photobucket.com/albums/v650/Minn/misfit.jpg) |
|
Ross Part of the Furniture
        Beware the ever changing head member is offline
If a tree falls in the forest, do the other tress laugh at it?
Joined: Nov 2004 Gender: Male  Posts: 19,039 Location: Surrey, UK
| |
Minnn Junior Member
  member is offline
![[avatar]](http://img.photobucket.com/albums/v650/Minn/pbav.jpg)
...Ravek?
Joined: Dec 1999 Gender: Female  Posts: 278 Location: Brisbane, Australia
|  | Re: 2 UBBC Code requests « Reply #6 on Nov 30, 2005, 5:52pm » | |
AHA!!! Thank you Ross! *all hail Ross*
|
![[image]](http://img.photobucket.com/albums/v650/Minn/bender_corn1.gif)
![[image]](http://img.photobucket.com/albums/v650/Minn/misfit.jpg) |
|
|