PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
hi i am building a bloging system. if you are famerial with blooger.com they have soomany blog templates. i was want to use some of them for my site
but i need atom feed and goes with cgi and all that and i dont want to do that. so i downloaded the blog and it had varible but they were atom base. i was wondering if anyone knows a solution that i could use php to replace that text or you could say varibles with a mysql query. is there like something like i haveing a php script and that would read from the template and ouput the blog template with my sql querys. another thing is that i dont want to change the template with php all over it or replace the varible.
ok let me refrase that i am wondering how would i specify my templete to str_replace i am a noob to this function
http://www.feedforall.com/download/rss2html.zip if you look at this script you would get a idea of what i am wanting to do but with one of those blogger.com templates repacing the text with a mysql query .
but the problem with this script i cant mod it. i tryed and i failed .so i am trying to make one from scratch
sorry for the spelling and grammer
Last edited by michael1991j on Thu Aug 10, 2006 10:22 pm, edited 1 time in total.
thank you oley !! i know that but thanks for reminding me about it .
ok what is this about the parfraser you were saying building this script willl give me a migrane
Basically, just like any envionment where a user theme can change, most apps use some form of template parsing application. WordPress uses one, phpBB uses one, Blogger uses one. How it works is that the app grabs a theme, the theme has a series of template vars in it, the app grabs those template vars and places the vars for actual content fetched by the app. Is that what you are looking to do?
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
i look up paphasing with php on google it gave me a torurial that i could do parafrasing i got it to work
her it is and i didnt need to use those insane functions
this will work but the problem is when i do my comment and post i am in trouble because i dont know how to make a array with this code does anyone know
ps i put in the str_replace and not the tortial they just made so i can out put the html in php
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]