Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
All-Flash TXP website Deep Linking, SEO, CMS...
This is an all-flash website with the exception of the events section.
In this website almost all the content gets pulled from the txp database into the Flash movie. By combining index.php and .htaccess files from SWFAddress and Textpattern, I was able to incorporate Textpattern into an all-flash website. The deep linking, RSS Feed, print functionality and SEO (search engine optimization) is implemented without having to duplicate content since all these functions are easy to implement in textpattern. (even search would be easy to implement)
Comments/Questions welcomed.
Offline
Re: All-Flash TXP website Deep Linking, SEO, CMS...
while it might be well-crafted technically, i don’t like it at all. first: why one builds such a site with flash is beyond me. second, the typography is awful. the display type in the headlines doesn’t work with the copy type and the serif used for the navigation at all. the second level navigation is way too tiny, and overall i wonder why there is no font anti-aliasing.
also, the entire page is tiny, i wonder what was the reasoning behind this? it looks like it’s coming straight from the wayback-machine. if it has to be at this size, than i’d make sure that the scrollbar is more visible than that tiny 4px thing. in addition, playing music as default is quite annoying.
sorry if that sounds rude, but these are my honest remarks.
Last edited by sthmtc (2007-11-13 10:00:28)
Offline
Re: All-Flash TXP website Deep Linking, SEO, CMS...
Thanks for the honesty… don’t worry, those are the types of comments I expected from someone on this forum.
oh and thanks for the music comment i think i might turn that off.
Last edited by Hipocrite (2007-11-13 10:20:54)
Offline
Re: All-Flash TXP website Deep Linking, SEO, CMS...
Design isn’t very much the subject here but more the bridge thrown between Txp and Flash…
This is certainly interesting… I know a bridge has been thrown as well between Flash and Drupal… So I’m happy to see someone with interest in Txp did it as well…
Could you give us more details Hipocrite… Did you use any plugins for example ?
_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__
Offline
Re: All-Flash TXP website Deep Linking, SEO, CMS...
hablablow wrote:
Design isn’t very much the subject here but more the bridge thrown between Txp and Flash…
This is certainly interesting… I know a bridge has been thrown as well between Flash and Drupal… So I’m happy to see someone with interest in Txp did it as well…
Could you give us more details Hipocrite… Did you use any plugins for example ?
The flash/txp bridge has been done before and presented in this forum… Just can’t remember the site
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: All-Flash TXP website Deep Linking, SEO, CMS...
colak, I have been unable to find the post that you are referring to. I am interested in similar implementations if anyone has any info.
As far as plugins go, I used one plugin that allows my flash files to pull data from textpattern in this way:
http://www.hookah-cafe.com/xml?section=eat&xurl=menu
and for printing:
http://www.hookah-cafe.com/print?section=eat&xurl=menu
except that the flash file actually uses POST instead of everything after the ?. The need to use POST has to do with support for IE and SWFAddress. BTW — instead of using “xurl” I should have used “titile”… I might change that in the future…
here is the plugin:
function gbb_xurl_article2($atts)
{
extract(lAtts(array(
'form' => ''
), $atts));
$section = trim($_POST['section']);
if ($section == '') { $section = trim($_GET['section']); }
$xurl = trim($_POST['xurl']);
if ($xurl == '') { $xurl = trim($_GET['xurl']); }
$id = ($section == '') ?
safe_field ("ID", "textpattern", "url_title='".$xurl."'") :
safe_field ("ID", "textpattern", "url_title='".$xurl."' AND section ='".$section."'");
$result = article_custom (array(
'id' => $id,
'section' => $section,
'form' => $form,
'limit' => '1',
));
return $result ? $result : ' [error: not found: <em>'.$section.'</em> - <em>'.$xurl.'</em>] ';
}
Offline
Re: All-Flash TXP website Deep Linking, SEO, CMS...
Thank you Hipocrite for sharing these details…
You or someone else should release it as a plugin with some help doc associated…
Or as a Mod…
For example where from do you call the above function ? From inside Txp forms ?
_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__
Offline
Re: All-Flash TXP website Deep Linking, SEO, CMS...
hablablow, the function gets called from the xml section’s page and from a form for the print section. It’s similar to article_custom except the section and title are determined by the GET or POST variables.
Anyone is free to use the code above. I haven’t even tried compiling it yet, because I have yet to explore the whole compiling plugins thing.
Offline
Re: All-Flash TXP website Deep Linking, SEO, CMS...
here is the combined .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} Googlebot|Msnbot|Slurp|Jeeves|Lynx|iPhone [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} (.*)
RewriteRule ^(.*) index.php [L]
# EXCLUDE TextPattern SECTIONS HERE
RewriteCond %{REQUEST_URI} /atom
RewriteRule ^(.*) index.php [L]
RewriteCond %{REQUEST_URI} /rss
RewriteRule ^(.*) index.php [L]
RewriteCond %{REQUEST_URI} /xml
RewriteRule ^(.*) index.php [L]
RewriteCond %{REQUEST_URI} /print
RewriteRule ^(.*) index.php [L]
RewriteCond %{REQUEST_URI} /gigs
RewriteRule ^(.*) index.php [L]
# END EXLUDE
RewriteCond %{HTTP_USER_AGENT} MSIE [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} (.+)
RewriteRule ^(.+[^/])(/?)$ ?/$1/?%1 [R,NE,L]
RewriteCond %{HTTP_USER_AGENT} MSIE [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} !(.+)
RewriteRule ^(.+[^/])(/?)$ ?/$1/ [R,NE,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+[^/])(/?)$ #/$1/ [R,NE,L]
</IfModule>
and here is the combined index.php
<?php
//
//
// SWFAddress -- Modified for TextPattern by Hipocrite
//
//
header('Content-Type: text/html; charset=utf-8');
// SEO variables
$base = '';
///$swfaddress = $_GET['swfaddress'];
// Adds clienside redirect to fix IE support
if (strstr(strtoupper($_SERVER['HTTP_USER_AGENT']), 'MSIE') && !empty($_SERVER['QUERY_STRING'])) {
echo('<html><head><meta http-equiv="refresh" content="0;url=' . $base . '/#' . $_SERVER['QUERY_STRING'] . '" /></head></html>');
exit();
}
// Adds caching for dynamic content in order to support Refresh button in IE
$if_modified_since = preg_replace('/;.*$/', '', $_SERVER['HTTP_IF_MODIFIED_SINCE']);
$file_last_modified = filemtime($_SERVER['PATH_TRANSLATED']);
$gmdate_modified = gmdate('D, d M Y H:i:s', $file_last_modified) . ' GMT';
if ($if_modified_since == $gmdate_modified) {
if (php_sapi_name()=='cgi') {
header('Status: 304 Not Modified');
} else {
header('HTTP/1.1 304 Not Modified');
}
exit();
}
// SECTION REMOVED -- DAMAGES TEXTPATTERN
/*
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 86400) . ' GMT');
header('Last-Modified: ' . $gmdate_modified);
*/
//
//
//
// END OF SWFADDRESS
//
//
/*
$HeadURL: http://svn.textpattern.com/development/4.0/index.php $
$LastChangedRevision: 804 $
*/
// Make sure we display all errors that occur during initialization
error_reporting(E_ALL);
@ini_set("display_errors","1");
if (@ini_get('register_globals'))
foreach ( $_REQUEST as $name => $value )
unset($$name);
define("txpinterface", "public");
// Use buffering to ensure bogus whitespace in config.php is ignored
ob_start(NULL, 2048);
$here = dirname(__FILE__);
include './textpattern/config.php';
ob_end_clean();
if (!isset($txpcfg['txpath']) ) {
header('Status: 503 Service Unavailable'); header('HTTP/1.0 503 Service Unavailable');
exit('config.php is not ok or not found. If you would like to install, go to [/subdir]/textpattern/setup/');
}
include $txpcfg['txpath'].'/publish.php';
textpattern();
?>
Offline
Re: All-Flash TXP website Deep Linking, SEO, CMS...
… if you browse the site with an iPhone or the Lynx web browser you can see what the search engines see… ;)
Offline
Re: All-Flash TXP website Deep Linking, SEO, CMS...
Okay… Nice, thank you.
_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__
Offline