Welcome Guest, Not a member yet? Register   Sign In
Replace place holder text with php script
#1

[eluser]jay2003[/eluser]
Hi,

Not sure iv described this properly but what im building a simple CMS and what im wanting to do is a user will enter ##GALLERY## or ##CONTACTFORM## (or whatever else i make available) into a tinymce editor in the place they want the item to appear on a particular page.

I thought about usng the str_replace function to replace the placeholder with the code required for that particular item.

Is that the best way to go about this?

The photo gallery will be made up from a foreach loop... will I be able to get that to work with str_replace?

Thanks in advance

Jason







Messages In This Thread
Replace place holder text with php script - by El Forum - 04-30-2012, 03:39 AM
Replace place holder text with php script - by El Forum - 04-30-2012, 05:34 AM
Replace place holder text with php script - by El Forum - 04-30-2012, 01:55 PM
Replace place holder text with php script - by El Forum - 04-30-2012, 02:03 PM
Replace place holder text with php script - by El Forum - 04-30-2012, 02:12 PM
Replace place holder text with php script - by El Forum - 04-30-2012, 02:24 PM
Replace place holder text with php script - by El Forum - 04-30-2012, 02:55 PM
Replace place holder text with php script - by El Forum - 05-01-2012, 07:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB