Converting text links into html links |
[eluser]Mirge[/eluser]
Hi folks, had a question about CodeIgniter's typography library... Using $this->typography->auto_typography('some string here'); ... if the string contains URLs, it will _sometimes_ translate those URLs into hyperlinks, which is the desired behavior for me. But only for some links. Am I missing something? I want that to happen for ALL links. Example of URL that works: http://www.google.com/ Example of URL that does NOT work: http://sometest.yourname.com/ Thanks... -- EDIT -- Sorry, it's LATE... I am using auto_link() in one spot, but not another. Ignore me :o)
[eluser]sophistry[/eluser]
try this old thread for a complete new auto_link solution i am still using to this day - it fixes the problem you mention and offers a WAY better auto_link functionality (I do not understand why it was not moved to the core, but back then it was a lot harder to get things into CI core): http://ellislab.com/forums/viewthread/95384/P15/ cheers.
[eluser]Mirge[/eluser]
Thanks, sophistry! I'll check that out if I run into any issues. The following code is what I'm using, and I haven't seen any issues yet: Code: <?php echo $this->typography->auto_typography(auto_link($ticket->description)); ?> |
Welcome Guest, Not a member yet? Register Sign In |