Jump to content

macgyver

Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.longsited.com

Profile Information

  • Gender
    Not Telling
  • Location
    UK

macgyver's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I've noticed over the last few months that sites are starting to get extra links under their Google listing. For instance if I search for the Environment Agency (www.environment-agency.gov.uk/) I get their listing back top of my list with the usual format and then some extra links at the bottom for 'Jobs', 'Find out about your local ...', 'Flood', 'Buy your rod licence' Other sites I've noticed include Royal Yachting Association (www.rya.org.uk), Red Hat Inc (www.redhat.com) and Argos (www.argos.co.uk) How are they doing this? I've had a quick search on Google but can't seem to find an explaination and its really bugging me now
  2. Thanks for that. However, I couldn't get it to work. I managed to find the following which works like a dream. [code]preg_replace("/[^\"'=]((http|ftp|https):\/\/[^\s\"']+)/i", "<a href=\"\\1\">\\1</a>", $text);[/code]
  3. Hi I'm after some help to convert web addresses in some text body to hyperlinks. So a user may enter [a href=\"http://www.phpfreaks.com\" target=\"_blank\"]http://www.phpfreaks.com[/a] into a text area. When the text is then displayed I want to go through and convert these to hyperlinks. Ideally would do it if the user missed off the http:// and typed www.phpfreaks.com. I guess I need a reg expression but I need pointing in the right direction Cheers Mac
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.