@rthrash are you ready with your modular template?
I am ready except the php part.
Hey dudez =)
I got an idea!
Why not use a hidden comment instead of cookies or by php generated SSIDs??
Here is an example:
[*session-id*] is a simple php script that generates in example SHA-1 id’s that are saved in a variable.
Very simple huh? OK here is the clue, this variables content is saved in a chunk that is a html comment in the header of any site.
<!--MODx-SSID:BB4D1540913373FBB79E9E78EB51CC85DBFE1E95-->
NOW, you only need to code a script, that forbids users to write "<!--MODx-SSID:" and searches any page for this comment and if valid (= same SHA-1 code as in DB) you get access something. This is better, and more secure than storing cookies and far better than the example.com/?PHP-SSID solution.
I will code this if I have any time. But don’t expect it too early.. I’ve several projects and have to study, so I would be happy if a MODx core coder integrates something like this into MODx by default.
What’s your opinion about that?
HOWEVER Here’s finally a quite good template for you hardcore coders!
I’ll supply you the css if ready, but you can do it yourself also. Just don’t forget about browser bugs and clearing floats.
[*head*] is a php snippet that saves the title, metatags, javascripts, stylsheets and content aggregation into your pages.
But you need to code that snippet first ;-)
^^ Automaticaly chosen, -Title, -Javascript, -Stylsheet, -Metatag and -rss feeds for your sites.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
[*head*]
[*session-id*]
<body>
<div id="page_margins">
<div id="page" class="hold_floats">
<!-- #header: Beginn Kopfzeile -->
<div id="header">
<!-- #topnav: Hauptnavigation -->
<div id="topnav">
[*site_navigation*]
</div>
<!-- #topnav: - Hauptnavigation Ende -->
</div>
<!-- #header: Ende Kopfzeile -->
<!-- #main: Beginn Primärer Inhaltsbereich -->
<div id="main">
<div id="primary_column mod"><!-- Erste Division -->
<div class="primary_content mod clearfix"><!-- Erste Division: Inhaltsbereich -->
[*content_navigation*]
</div>
</div>
<div id="secondary_column mod"><!-- Zweite Division -->
<div class="secondary_content mod clearfix"><!-- Zweite Division: Inhaltsbereich-->
<h2>[*longtitle*]</h2>
[*content*]
</div>
</div>
<div id="tertiary_column mod">
<div class="tertiary_content mod clearfix"><!-- Dritte Division: Inhaltsbereich -->
[*page_details*]
<!-- IE Column Clearing -->
<div id="ie_clearing"><img class="zerosize" src="1px.gif" alt="hidden 1pixel gif" /></div>
<!-- Ende: IE Column Clearing -->
</div>
</div>
</div><!-- #main: Ende Primärer Inhaltsbereich -->
<!-- #Footer: Beginn Fußzeile -->
<div id="footer" >
<p><strong>example.com</strong></p>
</div>
<!-- #Footer: Ende -->
</div>
</body>
</html>