Can't solve a issue with for loop
pI can't solve how to write this loop properly, it's 90% done but I can't
solve this:/p precodestring.replace(archive_header, titlefixed,
titlefixed) /code/pre pwhich must be included in this for loop/p
precodefor arfosers in archive_header, forum_header, search_header,
rss_header: arfosers.write(rss_header + string.replace(footer_p, lt;!--
recent posts --gt;, postgroup)) arfosers.close() /code/pre p(help me to
gete rid of rss header arfosers.write line)/p pThese are the lines that I
want to do in a 'for' loop:/p precodearchive_header =
string.replace(archive_header, titlefixed, titlefixed)
archive_file.write(archive_header + archive_body +
string.replace(footer_p, lt;!-- recent posts --gt;, postgroup))
archive_file.close() forum_header = string.replace(forum_header,
titlefixed, titlefixed) forum_file.write(forum_header +
string.replace(footer_p, lt;!-- recent posts --gt;, postgroup))
forum_file.close() search_header = string.replace(search_header,
titlefixed, titlefixed) search_file.write(search_header +
string.replace(footer_p, lt;!-- recent posts --gt;, postgroup))
search_file.close() rss_header = string.replace(rss_header, titlefixed,
titlefixed) rss_file.write(rss_header + string.replace(footer_p, lt;!--
recent posts --gt;, postgroup)) rss_file.close() /code/pre
No comments:
Post a Comment