GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You can do this in Firefox by bookmarking www.google.com and adding the Keyword munna to the properties of the bookmark. Then if you type munna and hit enter in the URL bar, you will go to google.
You can do this in Firefox by bookmarking www.google.com and adding the Keyword munna to the properties of the bookmark. Then if you type munna and hit enter in the URL bar, you will go to google.
yeah just like this...
actually this i would like to use in orkut to avoid refer code...
i searched for this in google...
there is an website called notlong.com
there if we give munna instead of www.google.com
Hmm the question is abit incomplete in my opinion, do you want to use it on youre website like that? on a forum? on a normal forum BBcode parsers would be installed and you could use the tags, for youre own site to make it work like that you would have to write a parser youreself (or download one ofc.)
if you write it yourself this is the code i used for making url's:
Code:
//removes the HTTP:// if its typed, so that url's wont be http://http://url.com
$text = preg_replace('#\[url=http://#isU', '[url=', $text);
$text = preg_replace('#\[url\]http://#isU', '[url]', $text);
//makes text between and a link to the url
$text = preg_replace('#\[url=(.+)\](.+)\[/url\]#isU', '<a href="http://$1" target="blank">$2</a>', $text);
//makes a url of the text between and to the text between them.
$text = preg_replace('#\[url\](.+)\[/url\]#isU', '<a href="http://$1" target="blank">$1</a>', $text);
//makes the text between [google] and [/google] a search link to google for the topic inside the text
$text = preg_replace('#\[google\](.+)\[/google\]#isU', '<a href="http://www.google.com/search?hl=en&q=$1&btnG=Google+zoeken&meta=" target="blank">Google: $1</a>', $text);
//makes a mailto for the adress between and tags
$text = preg_replace('#\[email\](.+)\[/email\]#isU', '<a href="mailto:$1">$1</a>', $text);
//makes the text between and a mailto link to *
$text = preg_replace('#\[email=(.+)\](.+)\[/email\]#isU', '<a href="mailto:$1">$2</a>', $text);
Hmm the question is abit incomplete in my opinion, do you want to use it on youre website like that? on a forum? on a normal forum BBcode parsers would be installed and you could use the tags, for youre own site to make it work like that you would have to write a parser youreself (or download one ofc.)
if you write it yourself this is the code i used for making url's:
Code:
//removes the HTTP:// if its typed, so that url's wont be http://http://url.com
$text = preg_replace('#\[url=http://#isU', '[url=', $text);
$text = preg_replace('#\[url\]http://#isU', '[url]', $text);
//makes text between and a link to the url
$text = preg_replace('#\[url=(.+)\](.+)\[/url\]#isU', '<a href="http://$1" target="blank">$2</a>', $text);
//makes a url of the text between and to the text between them.
$text = preg_replace('#\[url\](.+)\[/url\]#isU', '<a href="http://$1" target="blank">$1</a>', $text);
//makes the text between [google] and [/google] a search link to google for the topic inside the text
$text = preg_replace('#\[google\](.+)\[/google\]#isU', '<a href="http://www.google.com/search?hl=en&q=$1&btnG=Google+zoeken&meta=" target="blank">Google: $1</a>', $text);
//makes a mailto for the adress between and tags
$text = preg_replace('#\[email\](.+)\[/email\]#isU', '<a href="mailto:$1">$1</a>', $text);
//makes the text between and a mailto link to *
$text = preg_replace('#\[email=(.+)\](.+)\[/email\]#isU', '<a href="mailto:$1">$2</a>', $text);
am creating a redirecting link....
with out http:// and .com
and this link is not using for forum...
it is a general querry
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.