UBB.Dev
Posted By: Greg Hard New UBBCODES - 10/02/2000 11:19 PM
Or MM CODES, as i call em.

Yup, here they are.
Fixed font, marquee, super and sub.

in ubb_library.pl find:

Code
code:

under it add this:

Code
code:

same file, find:
Code
code:

under it add:
Code
code:
I have just gotten the hang of ubbcode html conversion.
Any requests?

~MM~
EDIT: added edit code!
EDIT again: Added strikeout and Teletype.
------------------
UBBDEV Moderator
OCCUPATION: Programmer, webmaster.
Read my BIO in the team link!

This message has been edited by MasterMind on October 02, 2000 at 06:49 PM
Posted By: Kingpin Re: New UBBCODES - 10/02/2000 11:40 PM
do you have an updated ubbcode.html to go with these new codes?

------------------
Kingpin
Administrator to the Christian Bulletin Board
Posted By: Pyros Re: New UBBCODES - 10/02/2000 11:47 PM
That's great MM, Kingpin I'm pretty sure updating the ubbcode.html won't be too much of a hassle, just show what it does really, and then show the coding of it.
MM, is it possible to make a flash tag to a ubb code?

------------------
Quality Pages designing the world professional web pages for affordable prices.
Posted By: NBAustin Re: New UBBCODES - 10/03/2000 12:12 AM
Could you integrate those with the UBB Code Buttons?

also....

That last bit of code doesn't exist in 5.39.

Where do I need to put the new code in here?

sub UBBCode {
my $ThePost = shift;
#auto URL---
$ThePost =~ s/(^|s)(http://S+)/ $2 /isg;
$ThePost =~ s/(^|s)(www.S+)/ $2 /isg;

$ThePost =~ s/()(http|https|ftp)(://S+?)()/ $2$3 /isg;
$ThePost =~ s/()(S+?)()/ $2 /isg;
$ThePost =~ s/()(http|https|ftp)(://S+?)()/ $5 /isg;
$ThePost =~ s/()(S+?)()/ $4 /isg;
$ThePost =~ s/([email])(S+@S+?)([/email])/ $2 /isg;
$ThePost =~ s/([email:)(S+?)(])(.+?)([/email])/ $4 /isg;

$ThePost =~ s,(
Code
)(.+?)(
),
code:
$2

,isg;

if (($UBBImages eq "ON") && ($OverrideImages ne "yes")) {
$ThePost =~ s/([img])(S+?)([/img])//isg;
}

$ThePost =~ s/(
Quote
)(.+?)(
)/
quote:
$2
/isg;
$ThePost =~ s/()(.+?)()/$2/isg;
$ThePost =~ s/()(.+?)()/$2/isg;
$ThePost =~ s/(
  • )(.+?)(
)/
    $2
/isg;
$ThePost =~ s/([list=)(A|1)(])(.+?)(
  • )/
      $4
    /isg;
    $ThePost =~ s/(
  • )/
  • /isg;
    $ThePost =~ s/([color:)(S+?)(])(.+?)([/color])/$4/isg;
    $ThePost =~ s/([center])(.+?)([/center])/
    $2
    /isg;
    $ThePost =~ s/()(.+?)()/$2/isg;
    $ThePost =~ s/([font:)(.+?)(])(.+?)([/font])/$4/isg;
    $ThePost =~ s/( )(.+?)( )/$4/isg;
    return ($ThePost);
    }


    BTW...do we need to move your fixed font code to be next to each other?
  • Posted By: Greg Hard Re: New UBBCODES - 10/03/2000 12:54 AM
    Just add my code under
    $ThePost =~ s/( )(.+?)( )/$4/isg;

    No, the fixed font code should work with it in place.

    I dont have a ubbcode.html, just update it, it should be easy enough. [Linked Image]

    ------------------
    UBBDEV Moderator
    OCCUPATION: Programmer, webmaster.
    Read my BIO in the team link!
    Posted By: NBAustin Re: New UBBCODES - 10/03/2000 1:20 AM
    They work great.

    Now they need to be put in the subEdit, because when you go to edit a post, they are all turned into html and have to be edited manually.
    Posted By: NBAustin Re: New UBBCODES - 10/03/2000 1:32 AM
    sup and sub look virtually the same.

    What is the diff?
    Posted By: Greg Hard Re: New UBBCODES - 10/03/2000 1:43 AM
    I dont really know, i just added some new codes together.

    ------------------
    UBBDEV Moderator
    OCCUPATION: Programmer, webmaster.
    Read my BIO in the team link!
    Posted By: Greg Hard Re: New UBBCODES - 10/03/2000 1:50 AM
    Edit code added.

    ------------------
    UBBDEV Moderator
    OCCUPATION: Programmer, webmaster.
    Read my BIO in the team link!
    Posted By: NBAustin Re: New UBBCODES - 10/03/2000 2:52 AM
    The edit code isn't working. Still stripping the ubb code and leaving html.
    Posted By: Greg Hard Re: New UBBCODES - 10/03/2000 3:44 AM
    The fixed code is probably the one not working.
    The others work for me.

    ------------------
    UBBDEV Moderator
    OCCUPATION: Programmer, webmaster.
    Read my BIO in the team link!
    Posted By: NBAustin Re: New UBBCODES - 10/03/2000 3:47 AM
    I tried the marquee code, then tried to edit it. No go.
    Posted By: NBAustin Re: New UBBCODES - 10/03/2000 4:37 AM
    I'm getting reports from users that these new codes aren't working in Netscape.
    Posted By: lovely Re: New UBBCODES - 10/03/2000 12:11 PM
    Hi there [Linked Image]

    I installed the code, but where should i have the result? I am kinda mixed up with UBB BUttons code! Isn't supposed to be somewhere in newposting or reply forms?

    Thanks

    -luv
    Posted By: Greg Hard Re: New UBBCODES - 10/03/2000 8:53 PM
    Hi. The effect will be noticed after using the code.
    [marquee]Text to scroll...[/marquee]

    [Linked Image]

    ------------------
    UBBDEV Moderator
    OCCUPATION: Programmer, webmaster.
    Read my BIO in the team link!
    Posted By: Logix Re: New UBBCODES - 10/03/2000 10:44 PM
    MM, anyway you can make it so when we edit our profiles or messages, the ubb code isn't made into HTML? I have a problem with this all the time.
    Posted By: Alien Re: New UBBCODES - 10/04/2000 6:50 AM
    NBAustin: If using the marquee tag as a benchmark in Netscape, it won't show up because Netscape doesn't support the tag. [Linked Image]

    ------------------
    Visit Alien Soup Forums
    http://www.aliensoup.com/cgi-bin/forums/Ultimate.cgi
    Posted By: lovely Re: New UBBCODES - 10/04/2000 7:37 PM
    Hi [Linked Image]

    Thanks. Do i need to remove the # symbols from the original code posted above?
    Posted By: Greg Hard Re: New UBBCODES - 10/04/2000 11:26 PM
    Lovely,
    The # signs are notes for the code to find the routine.
    Do not remove them. You may, however, remove all non-code tags.

    ------------------
    UBBDEV Moderator
    OCCUPATION: Programmer, webmaster.
    Read my BIO in the team link!
    Posted By: lovely Re: New UBBCODES - 10/05/2000 12:48 PM
    Thanks [Linked Image]
    Posted By: Lord niKON Re: New UBBCODES - 10/05/2000 3:09 PM
    i'd like for you to make a
    tags, and it does this:
    it displays a message, say:
    WARNING!!!!
    You Are About To View A Spoiler!!! If You Wish To View The Spoiler Click "View Spoiler"!

    and a button be displayed saying View Spoiler and if they click ok a javascript shows the spoiler....

    ------------------
    Posted By: Koneko Re: New UBBCODES - 10/05/2000 8:35 PM
    Does this hack add the size ubb code? I've been looking for that one in particular for a long time...

    ------------------

    ~ We all love a natural juice~
    Creative Art Techniques :: JuJu Forever
    © UBB.Developers