News Register Control Panel Private Messages Members List Team Search News Posts About Us

Linux Advisory » Q & A - Discussions » Programming & Coding » Creating link from URL » Hello Guest [login|register]
Last Post | First Unread Post Print Page | Recommend to Friend | Add Thread to Favorites
Post New Thread Post Reply
Author
Post « Previous Thread | Next Thread »
Telos Telos is a Male
Super Moderator


Registration Date: 06-04-2003
Posts: 130
Location: Finland
Linux Distro: hmm....

Rating:
3 Votes - Average Rating: 7.00

Level: 19 [?]
Experience Points: 18.488
Next Level: 22.851
4.363 point(s) of experience needed for next level

OFFLINE

Creating link from URL Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

I could really use a PHP function which would do this.

if I write into database
[ url=www.dreamimpact.com]my site[/url ]
(The spaces are there for that this board doesn't create the link for it now Smile )

the function would create a link from this the way BBCode does it? Any help?



07-23-2003 08:39 Send an Email to Telos Homepage of Telos Search for Posts by Telos Add Telos to your Buddy List Add Telos to your Contact List AIM Screenname: dreamimpactcom
Ravish Ravish is a Male
Administrator




Registration Date: 12-27-2002
Posts: 703
Location: Internet
Linux Distro: Redhat, Mandrake, Gentoo

Rating:
15 Votes - Average Rating: 8.13

Level: 29 [?]
Experience Points: 211.828
Next Level: 242.754
30.926 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

You need to use preg_replace() function for that.



07-23-2003 16:36 Send an Email to Ravish Homepage of Ravish Search for Posts by Ravish Add Ravish to your Buddy List AIM Screenname: Ravi5h YIM Screenname: ravishahuja1
Telos Telos is a Male
Super Moderator


Registration Date: 06-04-2003
Posts: 130
Location: Finland
Linux Distro: hmm....

Rating:
3 Votes - Average Rating: 7.00

Level: 19 [?]
Experience Points: 18.488
Next Level: 22.851
4.363 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

yes I know but I'm so lost using that function so I could really use an example or something ready made function. I know that these exists for example in these boards code and someone must've put the code into web Smile I just haven't found it yet Smile I tried to look the code from IB source but couldn't find it there.



07-23-2003 17:51 Send an Email to Telos Homepage of Telos Search for Posts by Telos Add Telos to your Buddy List Add Telos to your Contact List AIM Screenname: dreamimpactcom
Ravish Ravish is a Male
Administrator




Registration Date: 12-27-2002
Posts: 703
Location: Internet
Linux Distro: Redhat, Mandrake, Gentoo

Rating:
15 Votes - Average Rating: 8.13

Level: 29 [?]
Experience Points: 211.828
Next Level: 242.754
30.926 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

Here is a good tutorial for making BBCODE thing....
http://www.desilva.biz/php/bbcode1.html



07-24-2003 11:25 Send an Email to Ravish Homepage of Ravish Search for Posts by Ravish Add Ravish to your Buddy List AIM Screenname: Ravi5h YIM Screenname: ravishahuja1
Telos Telos is a Male
Super Moderator


Registration Date: 06-04-2003
Posts: 130
Location: Finland
Linux Distro: hmm....

Rating:
3 Votes - Average Rating: 7.00

Level: 19 [?]
Experience Points: 18.488
Next Level: 22.851
4.363 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

Nothing new to me there and I think the thing what I need is coming at page 2 which is not yet done there. I mean the url BBCODE Smile



07-24-2003 11:54 Send an Email to Telos Homepage of Telos Search for Posts by Telos Add Telos to your Buddy List Add Telos to your Contact List AIM Screenname: dreamimpactcom
Heather Heather is a Female
Respected Member




Registration Date: 05-21-2003
Posts: 511
Location: Lost City of Zen.
Linux Distro: I'm OS neutral.

Rating:
9 Votes - Average Rating: 3.67

Level: 25 [?]
Experience Points: 79.572
Next Level: 100.000
20.428 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

Well, check out these links. Smile Click here and here



Utinam logica falsa tuam philosophiam totam suffodiant

07-24-2003 21:15 Send an Email to Heather Search for Posts by Heather Add Heather to your Buddy List
Telos Telos is a Male
Super Moderator


Registration Date: 06-04-2003
Posts: 130
Location: Finland
Linux Distro: hmm....

Rating:
3 Votes - Average Rating: 7.00

Level: 19 [?]
Experience Points: 18.488
Next Level: 22.851
4.363 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

Thanx Heather! Those are pretty much what I need. I just have one thing I would like to know. How to use the url bbcode tag where you enter the text different that what the link is so that you could do like what you have done in your post Heather. That's actually the thing I wanted to know from the start. Smile



07-24-2003 21:27 Send an Email to Telos Homepage of Telos Search for Posts by Telos Add Telos to your Buddy List Add Telos to your Contact List AIM Screenname: dreamimpactcom
Heather Heather is a Female
Respected Member




Registration Date: 05-21-2003
Posts: 511
Location: Lost City of Zen.
Linux Distro: I'm OS neutral.

Rating:
9 Votes - Average Rating: 3.67

Level: 25 [?]
Experience Points: 79.572
Next Level: 100.000
20.428 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

quote:
Originally posted by Telos
Thanx Heather! Those are pretty much what I need. I just have one thing I would like to know. How to use the url bbcode tag where you enter the text different that what the link is so that you could do like what you have done in your post Heather. That's actually the thing I wanted to know from the start. Smile

It's one of the most simple PHP functions...I could have told you how without even linking. I figured it would be a better learning experience if you SAW the example of the str_replace and preg_replace functions and what they are replacing when you use BBCode.

Good luck with the project...whatever it is. Speaking of that, what is it for? Smile



Utinam logica falsa tuam philosophiam totam suffodiant

This post has been edited 2 time(s), it was last edited by Heather on 07-25-2003 at 09:29.

07-25-2003 09:16 Send an Email to Heather Search for Posts by Heather Add Heather to your Buddy List
Telos Telos is a Male
Super Moderator


Registration Date: 06-04-2003
Posts: 130
Location: Finland
Linux Distro: hmm....

Rating:
3 Votes - Average Rating: 7.00

Level: 19 [?]
Experience Points: 18.488
Next Level: 22.851
4.363 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

Just for my own website which is coming sometime soon. I have the "interact" section not done but I try to finish the rest of the site first and then release it and add the last section later. I just have to fix few design wise things and fine tune it a bit and then it's ready for launch. And of course write the content for it.



07-25-2003 10:11 Send an Email to Telos Homepage of Telos Search for Posts by Telos Add Telos to your Buddy List Add Telos to your Contact List AIM Screenname: dreamimpactcom
Heather Heather is a Female
Respected Member




Registration Date: 05-21-2003
Posts: 511
Location: Lost City of Zen.
Linux Distro: I'm OS neutral.

Rating:
9 Votes - Average Rating: 3.67

Level: 25 [?]
Experience Points: 79.572
Next Level: 100.000
20.428 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

quote:
Originally posted by Telos
Just for my own website which is coming sometime soon. I have the "interact" section not done but I try to finish the rest of the site first and then release it and add the last section later. I just have to fix few design wise things and fine tune it a bit and then it's ready for launch. And of course write the content for it.

Oh, that sounds real cool...perhaps I can see a preview. Smile



Utinam logica falsa tuam philosophiam totam suffodiant

07-26-2003 08:03 Send an Email to Heather Search for Posts by Heather Add Heather to your Buddy List
Post Reply:
Title (Optional):
Message:


Convert URLs: Automatically converts internet addresses into links by adding [url] and [/url] around them.
Email Notification: Notifies you by email every time there is a new post in this thread.
Deactivate smilies in this post.
Add Signature: Displays your signature in this post.


Tree Structure | Board Structure
Post New Thread Post Reply
Go to:


Powered by Burning Board 2.0.2 © 2001-2002 WoltLab GbR
English Translation by Satelk