Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

rfe to template.inc: msg#00015

cms.phpslash.devel

Subject: rfe to template.inc

Hello,

Presently Back-End.org is using template.inc as is and adding in
template header/footer comments with each template just as phpSlash and
(and most other phplib template driven apps likely do).

In talking to the Back-end.org team though, it seems like the following
modification to template.inc would make it easier for us to ensure that
the file names are accurate and easily accessible.


cvs diff phplib/php/template.inc
Index: phplib/php/template.inc
===================================================================
RCS file:
/cvsroot/back-end/back-end0.7.x/class/phplib/php/template.inc,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 template.inc
909c909,911
<
---
>
> $str = "<!-- START $filename -->' . $str . '<!-- END $filename -->';
>


If we implement this we'll have a lot of header/footer comments to delete and
I'd just like to try to keep this in step with phpSlash if we can.


I'd also like to contribute the following javascript which can just be inserted
into a block to easily identify which templates are where.


<script type="text/javascript">
<!--
// Code Contributed by Lasse Nielsen - http://www.infimum.dk
function convert(node) {
if (!node) {node = document.body;}

switch (node.nodeType) {
case Node.COMMENT_NODE:
var text = node.nodeValue;
if (text.substr(0,7)==" START ") {
var newNode = createNewNode(text.substr(7));
node.parentNode.replaceChild(newNode,node);
}
break
case Node.ELEMENT_NODE:
for (var i=0;i<node.childNodes.length;i++) {
convert(node.childNodes[i]);
}
break;
default:
break;
}
}

function createNewNode(text) {
var a = document.createElement("a");
a.href =
"/admin/BE_editTemplateAdmin.php?submit=edit&file="+escape(text);
var img = document.createElement("img");
img.src = "/images/BE/buttons/spacer.gif";
a.appendChild(img);
return a;
}
-->
</script>

<input type="button" value="Convert!" onclick="convert()">


Mike
--
Mike Gifford, OpenConcept Consulting
Free Software for Social Change -> http://www.openconcept.ca
Stop Cdn Pension Plan War Investments -> http://coat.openconcept.ca/
Another world is not only possible, she is on her way -Arundhati Roy



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation