Jump to content

jhbalaji

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jhbalaji's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. if you have no experience in PHP or mySql then just have a look in a simple login site i wrote http://jhbalaji.users.phpclasses.org/simple-login-class It simple to understand and will teach you the basics
  2. My suggestion is best to embed that in a flash
  3. Tried that! Some what works Basically if a Image URL has a form of Space the it also replaces that! But it temporarily fixes my problem Thanks Again!
  4. In simple words It should replace the keyword i specified into links but whenever it founds HTML Tags say Anchor Tag or Image Tag it should skip the Word in between those tags can also be defined as i need a regex pattern in which it should turn the keywords into links in a Paragraph without messing inbetween HTML Tgas Thanks for your Help salathe
  5. Any Replies please
  6. Hello everyone i am writing a snippet for replacing the keywords into links. It almost works but it also replaces the words in between HTML Tags So can anyone help me in fixing that <?php $textlinksname = 'Google'; $textlinksurl = 'http://google.com'; $body = 'Google is a great search engine. Here is the logo of it <img src =\'http://www.google.co.in/google/images/srpr/logo1w.png\'/>'; $replace = "<a href='".$textlinksurl."' target='_blank'>".$textlinksname."</a>"; $body = preg_replace('~(?<!http://|www\.|/)'.$textlinksname.'~i', $replace,$body,200); echo $body; ?> It outputs as <a href='http://google.com' target='_blank'>Google</a> is a great search engine. Here is the logo of it <img src ='http://www.google.co.in/google/intl/en_com/images/srpr/google-123-<a href='http://google.com' target='_blank'>Google</a>.png'/> But i need output like this such that it wont mess with HTML Tags <a href='http://google.com' target='_blank'>Google</a> is a great search engine. Here is the logo of it <img src ='http://www.google.co.in/google/intl/en_com/images/srpr/google-123-Google.png'/> Can anyone help me on how to prevent that??? Thanks in advance
  7. Try Ckeditor its good that TinyMCE and works well in IE too
  8. I am Using DreamWeaver CS5 Its Good You can also use NotePad ++ an open source tool
×
×
  • 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.