View Full Version : Menno... a question for you...
OK, remember how you helped me with that issue of replacing the URL tags and the URL in them in the activetopics hack? Well, can I get you to do the same thing, only for image tags? I don't understand what you did good enough to rewrite it myself. I just need the opening and closing img tags, plus the URL in between them, replaced with (image), like with (hyperlink) before (only this time it doesn't need to actually be a hyperlink). Thanks!
$text=eregi_replace("\\[img\\]([^\\[]*)\\[/img\\]","(image)",$text);
hope this helps!
Actually, it doesn't seem to work :(
(Yes, I replaced both instances of $text with the actual variable name this time, too!)
I tried it both above and below your other part for the URLs, it didn't work either way. :confused:
Nevermind, it seems to be working now...Very odd. It didn't work when I tested it, but several days after I (thought) I restored the original, it seems to be working. Oh well... nevermind! :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.