TfSEO 1.1.0
:http://www.techforum.it/
:http://www.ar-web.org/
    
**************************************************
:
**************************************************
./includes/  functions_tfseo.php    
      

          .htaccess   
         archive  RSS  tags  bookmarks      
      


**************************************************
HTACCESS:  .htaccess     
**************************************************


**************************************************
RewriteEngine On
RewriteRule ^([^/]+)/([^/]+)-([0-9]+)\/$ showthread.php?t=$3 [QSA,L]
RewriteRule ^f([0-9]+)\/$ forumdisplay.php?f=$1 [QSA,L]
RewriteRule ^f([0-9]+)\/([a-z]+)([0-9]+).html$ forumdisplay.php?f=$1&page=$3 [QSA,L]
RewriteRule ^([^/]+)/([^/]+)-([0-9]+)\/([a-z]+)([0-9]+).html$ showthread.php?t=$3&page=$5 [QSA,L]
RewriteRule ^([^/]+)/post([0-9]+).html$ showpost.php?p=$2&postcount=$2 [QSA,L]
RewriteRule ^([^/]+)/([^/]+)-([0-9]+)\/sendmessage.php?$ sendmessage.php [L]
RewriteRule ^f([0-9]+)\/misc.php$ misc.php [QSA,L]
**************************************************


**************************************************
(ARCHIVE/RSS)       
**************************************************

   

*******
ARCHIVE 	 /archive/index.php :
*******
 
---------
$output .= "\t<li><a href=\"" . $vbulletin->options['bburl'] . "/showthread.php?t=$thread[threadid]\">$thread[title]</a></li>\n";

---------

 
---------
$output .= "\t<li><a href=\"" . $vbulletin->options['bburl'] . "/f$foruminfo[forumid]/$tfseourl[archivio]-$thread[threadid]/\">$thread[title]</a></li>\n";

---------

 
---------
$output .= "<p class=\"largefont\">$vbphrase[view_full_version] : <a href=\"" . $vbulletin->options['bburl'] . "/forumdisplay.php?f=$foruminfo[forumid]\">$foruminfo[title_clean]</a></p>\n<hr />\n";

---------

 
---------
$output .= "<p class=\"largefont\">$vbphrase[view_full_version] : <a href=\"" . $vbulletin->options['bburl'] . "/f$foruminfo[forumid]/\">$foruminfo[title_clean]</a></p>\n<hr />\n";

---------

********
FEED RSS 	 external.php :
********

 
---------
// list returned threads

if (!empty($threadcache))

{

	foreach ($threadcache AS $thread)
---------

 
---------
$tfseourl[rss] = tfseo_url($thread[title]);
---------

 
---------
$xml->add_tag('link', $vbulletin->options['bburl'] . "/showthread.php?t=$thread[threadid]&goto=newpost", array(), false, true);

---------

 
---------
$xml->add_tag('link', $vbulletin->options['bburl'] . "/f$thread[forumid]/$tfseourl[rss]-$thread[threadid]/", array(), false, true);

---------

 
---------
$xml->add_group('item', array('rdf:about' => $vbulletin->options['bburl'] . "/showthread.php?t=$thread[threadid]"));

---------

 
---------
$xml->add_group('item', array('rdf:about' => $vbulletin->options['bburl'] . "/f$thread[forumid]/$tfseourl[rss]-$thread[threadid]/"));

---------

 
---------
$xml->add_tag('guid', $vbulletin->options['bburl'] . "/showthread.php?t=$thread[threadid]", array('isPermaLink' => 'true'));
---------

 
---------
$xml->add_tag('guid', $vbulletin->options['bburl'] . "/f$thread[forumid]/$tfseourl[rss]-$thread[threadid]/", array('isPermaLink' => 'true'));
---------


********
TAGS 	   tags.php :
********

 
---------

$show['disabled'] = ($movethread["$thread[threadid]"] OR $deletethread["$thread[threadid]"] OR $approvethread["$thread[threadid]"] OR $openthread["$thread[threadid]"]) ? false : true;

---------

 
---------
	if ($vbulletin->options['tfseo_attivo'] AND $vbulletin->options['tfseo_riscrivi'])
{
$tfseo = $db->query_first("
SELECT thread.title
FROM " . TABLE_PREFIX . "thread as thread
WHERE threadid = '$thread[threadid]'
");
$tf = implode($tfseo);
$tfseourl['thread'] = tfseo_url($tf);
$tfseo_pagina = $vbulletin->options['tfseo_pagina'];
}
---------


********
BOOKMARKS 	 showthread.php :
********

 
---------

array(urlencode($vbulletin->options['bburl'] . '/showthread.php?t=' . $thread['threadid']), urlencode($thread['title'])),
---------

 
---------
array(urlencode($vbulletin->options['bburl'] . '/f' . $threadinfo[forumid] . '/' . tfseo_url($thread['title']) . '-' . $thread['threadid']) . '/', urlencode($thread['title'])),
---------



  
 