So I am making a Drupal website and was wondering what would be the best way of auto-adding images in front of certain phrases. like if someone types "press start" it will automatically add an image in front, like the Microsoft tutorials. No, I am not making a site for Windows support. Just want to know the best way of going about doing such things.

Is this post miscategorized? I didn't know where to post something like this. It's kinda a design thing.

Recommended Answers

$message = str_replace("press start", "<img src='start.jpg'/>press start", $message);
Jump to Post

All 2 Replies

$message = str_replace("press start", "<img src='start.jpg'/>press start", $message);
commented: quick response that answered my question +1

Thank you! I knew it was probably something simple. I was just over-analyzing it a lot.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.