Previous Thread
Next Thread
Print Thread
Rate Thread
#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?

  • Sponsored Links
    Entire Thread
    Subject Posted By Posted
    New UBBCODES Greg Hard 10/02/2000 11:19 PM
    Re: New UBBCODES Kingpin 10/02/2000 11:40 PM
    Re: New UBBCODES Pyros 10/02/2000 11:47 PM
    Re: New UBBCODES NBAustin 10/03/2000 12:12 AM
    Re: New UBBCODES Greg Hard 10/03/2000 12:54 AM
    Re: New UBBCODES NBAustin 10/03/2000 1:20 AM
    Re: New UBBCODES NBAustin 10/03/2000 1:32 AM
    Re: New UBBCODES Greg Hard 10/03/2000 1:43 AM
    Re: New UBBCODES Greg Hard 10/03/2000 1:50 AM
    Re: New UBBCODES NBAustin 10/03/2000 2:52 AM
    Re: New UBBCODES Greg Hard 10/03/2000 3:44 AM
    Re: New UBBCODES NBAustin 10/03/2000 3:47 AM
    Re: New UBBCODES NBAustin 10/03/2000 4:37 AM
    Re: New UBBCODES lovely 10/03/2000 12:11 PM
    Re: New UBBCODES Greg Hard 10/03/2000 8:53 PM
    Re: New UBBCODES Logix 10/03/2000 10:44 PM
    Re: New UBBCODES Alien 10/04/2000 6:50 AM
    Re: New UBBCODES lovely 10/04/2000 7:37 PM
    Re: New UBBCODES Greg Hard 10/04/2000 11:26 PM
    Re: New UBBCODES lovely 10/05/2000 12:48 PM
    Re: New UBBCODES Lord niKON 10/05/2000 3:09 PM
    Re: New UBBCODES Koneko 10/05/2000 8:35 PM

    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:
    Shock Hosting
    Stable Host
    bluehost
    InterServer
    Visit us on Facebook
    Member Spotlight
    Zarzal
    Zarzal
    Berlin, Germany
    Posts: 808
    Joined: July 2001
    Forum Statistics
    Forums63
    Topics37,583
    Posts293,955
    Members13,824
    Most Online151,614
    Nov 14th, 2025
    Today's Statistics
    Currently Online 2658
    Topics Created 0
    Posts Made 0
    Users Online 0
    Birthdays 24
    Top Posters
    AllenAyres 21,080
    JoshPet 10,369
    LK 7,394
    Lord Dexter 6,708
    Gizmo 5,834
    Greg Hard 4,625
    Top Posters(30 Days)
    Top Likes Received
    isaac 82
    Gizmo 20
    Brett 7
    WebGuy 2
    Morgan 2
    Top Likes Received (30 Days)
    None yet
    The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

     
    Powered by UBB.threads™ PHP Forum Software 8.1.0
    (Snapshot build 20260108)