Posted by Bocah Sableng on 05/04/07 06:01
On May 4, 12:09 pm, Mohawk Mawk <blessblessbl...@gmail.com> wrote:
> Hey guys.
> So heres yet another question to a problem where I would have no idea
> where to look for the answer for so I turn to you :)
>
> Say my sites administrator wants to write a news update or blog or
> whatever. Something like this
>
> "Added a new gallery from my trip to Phuket, enjoy:
> [GID=24]
> If you liked it tell me."
>
> I want the [GID=24] to get replaced by my galery loading function
> (very nifty and handy) so it would turn into something like this
>
> echo "Added a new gallery from my trip to Phuket, enjoy:
> ".galery($GID)."
> If you liked it tell me.";
>
> I chose this [GID=24] because it is similar to burning board code. I
> would also like to include a command like [PID=45] witch would run my
> picture function.
>
> any ideas what functions I am looking for?
>
preg_replace_callback()
HTH
[Back to original message]
|