ProBoards® Support
« 2 UBBC Code requests »

Welcome Guest. Please Login or Register.
Feb 9, 2010, 9:36pm



Code Requests
Important Rules
  1. No bumping within 24 hours
  2. No double posting
  3. Maximum of 3 requests per week
  4. Descriptive topic titles
Before Posting Read These
Quick Links & Info


ProBoards® Support :: General :: Coding and Design Boards :: Code Requests & Support :: 2 UBBC Code requests
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: 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.
Link to Post - Back to Top  IP: Logged

Firefox User
california
Part of the Furniture
********
RIP- Proboards Legend
member is offline




[homepage]

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.
Link to Post - Back to Top  IP: Logged

[image]

Latest Project: Automatic Welcome PM (sent to new users when they register)
ⓦ৹₪deⓡ
Full Member
***
Handsome Devil
member is offline

[avatar]

No animals were harmed in the feeding of this human.


[homepage]

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 ([image] ) 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>
« Last Edit: Nov 28, 2005, 11:04am by ⓦ৹₪deⓡ »Link to Post - Back to Top  IP: Logged

My newest codes:
Translate Post v1.0 [CB]
Facebook Style Like/Dislike System v1.0 [CB]

[image]
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.
Link to Post - Back to Top  IP: Logged

Firefox User
Minnn
Junior Member
**
member is offline

[avatar]

...Ravek?

[msn]

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* ???
Link to Post - Back to Top  IP: Logged

[image]
[image]
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?


[homepage]

Joined: Nov 2004
Gender: Male
Posts: 19,039
Location: Surrey, UK
 Re: 2 UBBC Code requests
« Reply #5 on Nov 30, 2005, 11:02am »

Probably because you have 'Censor Whole Words' set to yes :)
Link to Post - Back to Top  IP: Logged

Free Image Randomizers
Website Hosting by Big Wet Fish
Minnn
Junior Member
**
member is offline

[avatar]

...Ravek?

[msn]

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*
Link to Post - Back to Top  IP: Logged

[image]
[image]
   [Search This Thread][Send Topic To Friend] [Print]


Google
Websupport.proboards.com
Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!