HOME NEWS SCRIPTARCHIV CODESCHNIPSEL FORUM FAQ LEXIKON STELLENMARKT UMFRAGE BÜCHERTIPPS LINKS
  
   Mitglied werden bei php-deluxe.de!    Login  
Mitgliederbereich
Home
Downloads
Wissen
Community
Service
Umfrage
Welche Mysql Version kommt bei Dir zum Einsatz?
MySQL 3
MySQL 4
MySQL 5
Lexikon
Xoops Topsite
xoops topliste


Code Schnipsels

Codeschnipsel finden | Einen neuen Codeschnipsel einschicken | Schnipsel Paket erstellen

optimize site
Beschreibung
Optimize Site ist ein seo xoops hack. Er ermöglicht es Ihnen Ihre Seite suchmaschinentauglich zu präsentieren, um die Besucherzahlen zu steigern.
 
Typ Kategorie Lizenz Sprache
Hack xoops WebSite Only PHP

Versionen dieses Codeschnipsels:

Version - Anklicken zur Ansicht Packages Veröffentlichungsdatum ID # Autor
1.1   28.03.2005 14:03:01 1 admin
Änderungen:
Erste gepostete Version

Version: 1.1

<? $file_array explode("/",$HTTP_ENV_VARS['SCRIPT_NAME']);

$count        count($file_array);

$file_name    $file_array[$count-1];
$file_cat    $file_array[$count-2];

$file_name    $file_cat.$file_name;

#print_r($xoopsTpl->_tpl_vars['file'][0]['category']);

// snippet
preg_match("/<B>(.*)<\/B>/siU",$xoopsTpl->_tpl_vars['content'],$snippet_name); 
$snippet_name $snippet_name[1];

$input    = array("/newbbindex.php/",
                
// Forum
                
"/userinfo.php/",
                
"/submit1.php/",
                
"/newbbviewforum.php/",
                
"/newbbviewtopic.php/",
                
// Artikel
                
"/newsindex.php/",
                
"/newsarticle.php/",
                
// Downloads
                
"/mydownloadsindex.php/",
                
"/mydownloadstopten.php/",
                
"/mydownloadsviewcat.php/",
                
"/mydownloadssinglefile.php/",
                
"/mydownloadsratefile.php/",
                
"/mydownloadsmodfile.php/",
                
"/mydownloadsbrokenfile.php/",
                
// Downloads
                
"/PDdownloadsindex.php/",
                
"/PDdownloadstopten.php/",
                
"/PDdownloadsviewcat.php/",
                
"/PDdownloadssinglefile.php/",
                
"/PDdownloadsratefile.php/",
                
"/PDdownloadsmodfile.php/",
                
"/PDdownloadsbrokenfile.php/",
                
// Links
                
"/mylinkstopten.php/",
                
"/mylinksindex.php/",
                
"/mylinksviewcat.php/",
                
"/mylinksviewcat.php/",
                
"/mylinksratelink.php/",
                
"/mylinksmodlink.php/",
                
"/mylinksbrokenlink.php/",
                
"/mylinkssinglelink.php/",
                
// contact
                
"/contactindex.php/",
                
// impressum
                
"/impressumindex.php/",
                
// register
                
"/register.php/",
                
// login
                
"/user.php/",
                
// headline
                
"/xhld0index.php/",
                
// archiv
                
"/newsarchive.php/",
                
// books
                
"/booklistsindex.php/",
                
"/booklistsviewcat.php/",
                
"/booklistssinglelink.php/",
                
"/booklistsratelink.php/",
                
"/booklistsmodlink.php/",
                
"/booklistsbrokenlink.php/",
                
"/bookliststopten.php/",
                
// poll
                
"/xoopspollindex.php/",
                
// code snippet
                
"/xfsnippetindex.php/",
                
"/xfsnippetsubmit.php/",
                
"/xfsnippetpackage.php/",
                
"/xfsnippetdetail.php/",
                
"/xfsnippetbrowse.php/",
                
"/xfsnippetratefile.php/",
                
// smartfaq
                
"/smartfaqindex.php/",
                
"/smartfaqsubmit.php/",
                
"/smartfaqrequest.php/",
                
"/smartfaqcategory.php/",
                
"/smartfaqfaq.php/",
                
// partners
                
"/xoopspartnersindex.php/",
                
"/xoopspartnersjoin.php/",
                
// sitemap
                
"/sitemapindex.php/",
                
// wiwi
                
"/wiwimodindex.php/",
                
// jobs
                
"/jobsindex.php/",
                );
                
                
$output    = array("Forum",
                
// Forum
                
$xoopsTpl->_tpl_vars['lang_allaboutuser'],
                
"schreiben",
                
$xoopsTpl->_tpl_vars['forum_name'],
                
$xoopsTpl->_tpl_vars['forum_name']." ".
                
$xoopsTpl->_tpl_vars['topic_posts'][0]['post_title'],
                
// Artikel
                
"Webserverprogrammierung unter Linux",
                
str_replace("&nbsp;","",strip_tags($xoopsTpl->_tpl_vars['story']['title'])),
                
// myDownloads
                
"downloads kostenlos",
                
"Top downloads",
                
strip_tags($xoopsTpl->_tpl_vars['file'][0]['category'])." download kostenlos",
                
str_replace("&nbsp;","",strip_tags($xoopsTpl->_tpl_vars['file']['title'])).
                
" download kostenlos",
                
"Bewertung von ".str_replace("&nbsp;","",
                
strip_tags($xoopsTpl->_tpl_vars['file']['title'])),
                
"&auml;ndern von ".str_replace("&nbsp;","",
                
strip_tags($xoopsTpl->_tpl_vars['file']['title'])),
                
"ist defekt",
                
// PDDownloads
                
"downloads kostenlos",
                
"Top downloads",
                
strip_tags($xoopsTpl->_tpl_vars['file'][0]['category']).
                
" download kostenlos",
                
str_replace("&nbsp;","",strip_tags($xoopsTpl->_tpl_vars['file'][0]['title'])).
                
" download kostenlos",
                
"Bewertung von ".str_replace("&nbsp;","",
                
strip_tags($xoopsTpl->_tpl_vars['file'][0]['title'])),
                
"&auml;ndern von ".str_replace("&nbsp;","",
                
strip_tags($xoopsTpl->_tpl_vars['file'][0]['title'])),
                
"ist defekt",
                
// Links
                
"Top Links",
                
"Links",
                
str_replace("&nbsp;","",strip_tags($xoopsTpl->_tpl_vars['category_path'])),
                
str_replace("&nbsp;","",strip_tags($xoopsTpl->_tpl_vars['category_path'])),
                
$xoopsTpl->_tpl_vars['link']['title']." bewerten",
                
$xoopsTpl->_tpl_vars['link']['title']." &auml;ndern",
                
"ist defekt",
                
str_replace("&nbsp;","",strip_tags($xoopsTpl->_tpl_vars['category_path'])).
                
str_replace("&nbsp;","",strip_tags($xoopsTpl->_tpl_vars['link']['title'])),
                
// contact
                
"Kontakt",
                
// impressum
                
"Impressum",
                
// register
                
"Mitglied werden",
                
// login
                
"einloggen",
                
// headline
                
"Schlagzeilen",
                
// archiv
                
"Newsarchiv",
                
// books
                
"B&uuml;chertipps",
                
str_replace("&nbsp;","",strip_tags($xoopsTpl->_tpl_vars['category_path'])),
                
str_replace("&nbsp;","",strip_tags($xoopsTpl->_tpl_vars['category_path'])).
                
str_replace("&nbsp;","",strip_tags($xoopsTpl->_tpl_vars['link']['title'])),
                
str_replace("&nbsp;","",strip_tags($xoopsTpl->_tpl_vars['link']['title'])).
                
" bewerten",
                
str_replace("&nbsp;","",strip_tags($xoopsTpl->_tpl_vars['category_path'])).
                
str_replace("&nbsp;","",strip_tags($xoopsTpl->_tpl_vars['link']['title'])).
                
" &auml;ndern",
                
str_replace("&nbsp;","",strip_tags($xoopsTpl->_tpl_vars['category_path'])).
                
str_replace("&nbsp;","",strip_tags($xoopsTpl->_tpl_vars['link']['title'])).
                
" Fehler melden",
                
"popul&auml;r",
                
// poll
                
"Umfragen",
                
// code snippet
                
"- Codeschnipsel",
                
"- Codeschnipsel eintragen",
                
"- Codeschnipsel eintragen",
                
"- Codeschnipsel ".$snippet_name,
                
"- Codeschnipsel anschauen",
                
"- Codeschnipsel ".$xoopsTpl->_tpl_vars['file']['title']." bewerten",
                
// smartfaq
                
"FAQ",
                
"- einschicken",
                
"- nachfragen",
                
$xoopsTpl->_tpl_vars['xoops_pagetitle'].":".
                
$xoopsTpl->_tpl_vars['faqs'][0]['question'],
                
$xoopsTpl->_tpl_vars['xoops_pagetitle'].":".
                
$xoopsTpl->_tpl_vars['faqs'][0]['question'],
                
// partners
                
"Empfehlungen",
                
" werden",
                
// sitemap
                
"Sitemap",
                
// wiwi
                
"Beschreibung: ".$xoopsTpl->_tpl_vars['wiwimod']['keyword'],
                
// jobs
                
"Job ".$xoopsTpl->_tpl_vars['title'],
                );

$keyword    preg_replace($input,$output,$file_name);
    
$_SESSION['title'] = str_replace("-"," ",$keyword);
$_SESSION['title'] == "Beschreibung: WiwiHome" $_SESSION['title'] = "Beschreibung: PHP"
$_SESSION['title'] = $_SESSION['title'];

if (
xoops_getenv('REQUEST_METHOD') != 'POST' && !empty($xoopsModule
&& !empty(
$xoopsConfig['module_cache'][$xoopsModule->getVar('mid')])) {
    
XTheme::writeKeyword();
?>
  
Einloggen oder Registrieren, um Kommentare zu schreiben
Die hier veröffentlichten Artikel und Kommentare stehen uneingeschränkt im alleinigen Verantwortungsbereich des jeweiligen Autors.



 

Copyright by 2005 by php-deluxe.de
0.455 Seconds | 6 Queries