Previous Thread
Next Thread
Print Thread
Rate Thread
HTTPS:
#208132 02/06/2001 8:06 PM
Joined: Feb 2000
Posts: 2
User
OP Offline
User
Joined: Feb 2000
Posts: 2
Folks,

I need to place a link in a post that must start with https://.
The link needs to be in the post with a description like:
<A HREF="https://www.dot.com">description</A>

The description doesn't work because it always appends the link with http: and I have to have https:. Some one must have done this. Please help. Thanks.


Sponsored Links
Re: HTTPS:
krynn #208133 02/06/2001 8:18 PM
Joined: Jan 2000
Posts: 796
MTO Offline
Addict
Offline
Addict
Joined: Jan 2000
Posts: 796
Try inserting this into main.inc.php:
    // ---------------------------
// Convert ssl markup -> html
$Body = eregi_replace("\[ssl\]www([^\[]*)\[/ssl\]","<a href="https://\\1" target="_new">https://\\1</a>",$Body);
$Body = eregi_replace("\[ssl\]([^\[]*)\[/ssl\]","<a href="\\1" target="_new">\\1</a>",$Body);
$Body = preg_replace("/\[ssl=https:\/\/(.*)\]([^\[]*)\[\/ssl\]/","<a href="https://\\1" target="_new">\\2</a>",$Body);
$Body = preg_replace("/\[ssl=(.*)\]([^\[]*)\[\/ssl\]/","<a href="https://\\1" target="_new">\\2</a>",$Body);

// ---------------------------
// Convert ssl markup -> html
$Body = preg_replace("/<a href="https:\/\/(.*?)" target="_new">(.*?)<\/a>/","[ssl=\\1]\\2[/ssl]",$Body);


Then just use "ssl" instead of "url" for secure links . [ssl=https://...] and so on...

This is untested.


Mateo Byler
CruceDeCaminos.com

Re: HTTPS:
D_Wolfwood #208134 02/08/2001 2:22 PM
Joined: Jan 2000
Posts: 796
MTO Offline
Addict
Offline
Addict
Joined: Jan 2000
Posts: 796
Uh, you dont need that, it works without it... didnt look at the code to carefully. You can already do it without hacking it, its part of the program.

Mateo Byler
CruceDeCaminos.com


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
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,544
Posts293,777
Members13,838
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 195
Topics Created 0
Posts Made 0
Users Online 3
Birthdays 12
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,806
Greg Hard 4,625
Top Posters(30 Days)
isaac 2
Gizmo 1
Top Likes Received
isaac 40
Gizmo 10
Brett 7
Morgan 2
Top Likes Received (30 Days)
isaac 1
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.5
(Snapshot build 20200802.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.037s Queries: 21 (0.011s) Memory: 3.2509 MB (Peak: 3.6252 MB) Data Comp: Zlib Server Time: 2020-08-12 18:22:31 UTC
Valid HTML 5 and Valid CSS