Previous Thread
Next Thread
Print Thread
Rate Thread
#38288 10/02/2000 4:19 PM
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
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

Sponsored Links
#38289 10/02/2000 4:40 PM
Joined: Sep 2000
Posts: 21
Member
Member
Offline
Joined: Sep 2000
Posts: 21
do you have an updated ubbcode.html to go with these new codes?

------------------
Kingpin
Administrator to the Christian Bulletin Board

#38290 10/02/2000 4:47 PM
Joined: Mar 2000
Posts: 445
Member
Member
Offline
Joined: Mar 2000
Posts: 445
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.

#38291 10/02/2000 5:12 PM
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
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?

  • #38292 10/02/2000 5:54 PM
    Joined: Feb 2000
    Posts: 4,625
    Member
    Member
    Offline
    Joined: Feb 2000
    Posts: 4,625
    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!

    Sponsored Links
    #38293 10/02/2000 6:20 PM
    Joined: Jan 2000
    Posts: 395
    Member
    Member
    Offline
    Joined: Jan 2000
    Posts: 395
    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.

    #38294 10/02/2000 6:32 PM
    Joined: Jan 2000
    Posts: 395
    Member
    Member
    Offline
    Joined: Jan 2000
    Posts: 395
    sup and sub look virtually the same.

    What is the diff?

    #38295 10/02/2000 6:43 PM
    Joined: Feb 2000
    Posts: 4,625
    Member
    Member
    Offline
    Joined: Feb 2000
    Posts: 4,625
    I dont really know, i just added some new codes together.

    ------------------
    UBBDEV Moderator
    OCCUPATION: Programmer, webmaster.
    Read my BIO in the team link!

    #38296 10/02/2000 6:50 PM
    Joined: Feb 2000
    Posts: 4,625
    Member
    Member
    Offline
    Joined: Feb 2000
    Posts: 4,625
    Edit code added.

    ------------------
    UBBDEV Moderator
    OCCUPATION: Programmer, webmaster.
    Read my BIO in the team link!

    #38297 10/02/2000 7:52 PM
    Joined: Jan 2000
    Posts: 395
    Member
    Member
    Offline
    Joined: Jan 2000
    Posts: 395
    The edit code isn't working. Still stripping the ubb code and leaving html.

    Sponsored Links
    #38298 10/02/2000 8:44 PM
    Joined: Feb 2000
    Posts: 4,625
    Member
    Member
    Offline
    Joined: Feb 2000
    Posts: 4,625
    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!

    #38299 10/02/2000 8:47 PM
    Joined: Jan 2000
    Posts: 395
    Member
    Member
    Offline
    Joined: Jan 2000
    Posts: 395
    I tried the marquee code, then tried to edit it. No go.

    #38300 10/02/2000 9:37 PM
    Joined: Jan 2000
    Posts: 395
    Member
    Member
    Offline
    Joined: Jan 2000
    Posts: 395
    I'm getting reports from users that these new codes aren't working in Netscape.

    #38301 10/03/2000 5:11 AM
    Joined: Aug 2000
    Posts: 10
    Member
    Member
    Offline
    Joined: Aug 2000
    Posts: 10
    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

    #38302 10/03/2000 1:53 PM
    Joined: Feb 2000
    Posts: 4,625
    Member
    Member
    Offline
    Joined: Feb 2000
    Posts: 4,625
    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!

    #38303 10/03/2000 3:44 PM
    Joined: Sep 2000
    Posts: 22
    Member
    Member
    Offline
    Joined: Sep 2000
    Posts: 22
    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.

    #38304 10/03/2000 11:50 PM
    Joined: Mar 2000
    Posts: 344
    Member
    Member
    Offline
    Joined: Mar 2000
    Posts: 344
    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


    Administrator / WTF.com / IWantMy80s.com
    http://www.wtf.com
    http://www.iwantmy80s.com
    #38305 10/04/2000 12:37 PM
    Joined: Aug 2000
    Posts: 10
    Member
    Member
    Offline
    Joined: Aug 2000
    Posts: 10
    Hi [Linked Image]

    Thanks. Do i need to remove the # symbols from the original code posted above?

    #38306 10/04/2000 4:26 PM
    Joined: Feb 2000
    Posts: 4,625
    Member
    Member
    Offline
    Joined: Feb 2000
    Posts: 4,625
    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!

    #38307 10/05/2000 5:48 AM
    Joined: Aug 2000
    Posts: 10
    Member
    Member
    Offline
    Joined: Aug 2000
    Posts: 10
    Thanks [Linked Image]

    #38308 10/05/2000 8:09 AM
    Joined: Aug 2000
    Posts: 5
    Junior Member
    Junior Member
    Offline
    Joined: Aug 2000
    Posts: 5
    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....

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

    #38309 10/05/2000 1:35 PM
    Joined: Oct 2000
    Posts: 1
    Junior Member
    Junior Member
    Offline
    Joined: Oct 2000
    Posts: 1
    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


    Link Copied to Clipboard
    Donate Today!
    Donate via PayPal

    Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

    Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
    Recommended Hosts
    We have personally worked with and recommend the following Web Hosts:
    Stable Host
    bluehost
    InterServer
    Visit us on Facebook
    Member Spotlight
    isaac
    isaac
    California
    Posts: 1,157
    Joined: July 2001
    Forum Statistics
    Forums63
    Topics37,573
    Posts293,925
    Members13,849
    Most Online5,166
    Sep 15th, 2019
    Today's Statistics
    Currently Online
    Topics Created
    Posts Made
    Users Online
    Birthdays
    Top Posters
    AllenAyres 21,079
    JoshPet 10,369
    LK 7,394
    Lord Dexter 6,708
    Gizmo 5,833
    Greg Hard 4,625
    Top Posters(30 Days)
    Top Likes Received
    isaac 82
    Gizmo 20
    Brett 7
    WebGuy 2
    Top Likes Received (30 Days)
    None yet
    The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

     
    Powered by UBB.threads™ PHP Forum Software 8.0.0
    (Preview build 20221218)