php forum
php mysql forum
php mysql smarty
 
Topic Options
#208132 - 02/06/01 07:06 PM HTTPS:
Eric Kempter Offline
User

Registered: 02/27/00
Posts: 40
Folks,<br /><br /> I need to place a link in a post that must start with https://.<br />The link needs to be in the post with a description like:<br /><A HREF="https://www.dot.com">description</A><br /><br />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.<br /><br />

Top
#208133 - 02/06/01 07:18 PM Re: HTTPS: [Re: krynn]
MTO Offline
Addict

Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
Try inserting this into main.inc.php:<br /><pre> // ---------------------------<br /> // Convert ssl markup -> html<br /> $Body = eregi_replace("\[ssl\]www([^\[]*)\[/ssl\]","<a href=\"https://\\1\" target=\"_new\">https://\\1</a>",$Body);<br /> $Body = eregi_replace("\[ssl\]([^\[]*)\[/ssl\]","<a href=\"\\1\" target=\"_new\">\\1</a>",$Body);<br /> $Body = preg_replace("/\[ssl=https:\/\/(.*)\]([^\[]*)\[\/ssl\]/","<a href=\"https://\\1\" target=\"_new\">\\2</a>",$Body);<br /> $Body = preg_replace("/\[ssl=(.*)\]([^\[]*)\[\/ssl\]/","<a href=\"https://\\1\" target=\"_new\">\\2</a>",$Body);<br /><br /> // ---------------------------<br /> // Convert ssl markup -> html<br /> $Body = preg_replace("/<a href=\"https:\/\/(.*?)\" target=\"_new\">(.*?)<\/a>/","[ssl=\\1]\\2[/ssl]",$Body);</pre><br /><br />Then just use "ssl" instead of "url" for secure links . [ssl=https://...] and so on...<br /><br />This is untested.<br /><br /><br />Mateo Byler<br />CruceDeCaminos.com
_________________________
Mateo Byler
CruceDeCaminos.com

Top
#208134 - 02/08/01 01:22 PM Re: HTTPS: [Re: D_Wolfwood]
MTO Offline
Addict

Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
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.<br /><br />Mateo Byler<br />CruceDeCaminos.com
_________________________
Mateo Byler
CruceDeCaminos.com

Top


Who's Online
0 registered (), 24 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Spell Check [beta]
by Bill B
Today at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Today at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Today at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Today at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks