- Impact
- 7
I've been having an issue with maps on my site and I've figured out a solution I think will work, using regexes and a line or two or php. Problem is, though I understand how PHP works to an extent, I don't know much about writing it myself.
I was wondering if someone would be willing to help me with this issue, I'm certain it can be done with a single line, if not 2.
What I need is a line of php that searches the entire page for a specific phrase/ID and then echoes out a certain code. Example:
php searches entire page for [id=3], which would be in a post. It then takes the "id=3" part and adds it to the code it needs to echo. Which would be [mapid=3]. Thus making the map appear.
I've asked a few friends who haven't been able to help.. I really think for someone who knows php well, it shouldn't be too hard..
Any help please? I'd greatly appreciate it
I was wondering if someone would be willing to help me with this issue, I'm certain it can be done with a single line, if not 2.
What I need is a line of php that searches the entire page for a specific phrase/ID and then echoes out a certain code. Example:
php searches entire page for [id=3], which would be in a post. It then takes the "id=3" part and adds it to the code it needs to echo. Which would be [mapid=3]. Thus making the map appear.
I've asked a few friends who haven't been able to help.. I really think for someone who knows php well, it shouldn't be too hard..
Any help please? I'd greatly appreciate it