Re-ordering contents of a file
Posted: Sat Nov 21, 2009 1:43 pm
Hiya...having a little problem here and was wondering if one of you would mind pointing me in the right direction...
lets say i have a PHP file (template, i know it wouldnt work in its current state) with the following (simplified version of the templates im trying to make this work with)
I can replace the % values with what they should be when the editing has finished using str_replace()
but what if the user doesnt want them in that order? what if they want to switch %video% and %rssfeed% around?
How would i go about giving the user the option to edit those?
~Daniel
lets say i have a PHP file (template, i know it wouldnt work in its current state) with the following (simplified version of the templates im trying to make this work with)
Code: Select all
<?php
%header%
%start_text%
%video%
%rssfeed%
%footer%
?>but what if the user doesnt want them in that order? what if they want to switch %video% and %rssfeed% around?
How would i go about giving the user the option to edit those?
~Daniel