Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Change orders in title sitename - pagetitle to pagetitle - sitename

Asked Modified Viewed 2,089 times
R
Ramage
R
Ramage 10
  • Junior Member, joined since
  • Contributed 11 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
asked
Junior Member

How change title webpage to better SEO?
In php fusion is sitename - pagetitle ,but better is pagetitle - sitename

I looking in output_handling_include.php

<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: output_handling_include.php
| Author: Max Toball (Matonor)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
$fusion_page_replacements = "";
$fusion_output_handlers = "";
$fusion_page_title = "- www.agrohodowca.pl ";
$fusion_page_meta = array("description" => $settings['description'], "keywords" => $settings['keywords']);
$fusion_page_head_tags = "";
$fusion_page_footer_tags = "";

function set_title($title=""){
   global $fusion_page_title;
   
   $fusion_page_title = $title;
}

function add_to_title($addition=""){
   global $fusion_page_title;
   
   $fusion_page_title .= $addition;
}

function set_meta($name, $content=""){
   global $fusion_page_meta;
   $fusion_page_meta[$name] = $content;
}

function add_to_meta($name, $addition=""){
   global $fusion_page_meta;
   if(isset($fusion_page_meta[$name])){
      $fusion_page_meta[$name] .= $addition;
   }
}

function add_to_head($tag=""){
   global $fusion_page_head_tags;
   
   if(!stristr($fusion_page_head_tags, $tag)){
      $fusion_page_head_tags .= $tag."\n";
   }
}

function add_to_footer($tag=""){
   global $fusion_page_footer_tags;
   
   if(!stristr($fusion_page_footer_tags, $tag)){
      $fusion_page_footer_tags .= $tag."\n";
   }
}

function replace_in_output($target, $replace, $modifiers=""){
   global $fusion_page_replacements;
   
   $fusion_page_replacements .= "\$output = preg_replace('^$target^$modifiers', '$replace', \$output);";
}

function add_handler($name){
   global $fusion_output_handlers;
   if(!empty($name)){
      $fusion_output_handlers .= "\$output = $name(\$output);";
   }
}

function handle_output($output){
   global $fusion_page_head_tags ,$fusion_page_footer_tags, $fusion_page_title, $fusion_page_meta, $fusion_page_replacements, $fusion_output_handlers, $settings;

   if(!empty($fusion_page_footer_tags)){
      $output = preg_replace("#</body>#", $fusion_page_footer_tags."</body>", $output, 1);
   }
   if(!empty($fusion_page_head_tags)){
      $output = preg_replace("#</head>#", $fusion_page_head_tags."</head>", $output, 1);
   }
   if($fusion_page_title != $settings['sitename']){
      $output = preg_replace("#<title>.*</title>#i", "<title>".$fusion_page_title."</title>", $output, 1);
   }
   if(!empty($fusion_page_meta)){
      foreach($fusion_page_meta as $name => $content){
         $output = preg_replace("#<meta (http-equiv|name)='$name' content='.*' />#i", "<meta \\1='".$name."' content='".$content."' />", $output, 1);
      }
   }
   if(!empty($fusion_page_replacements)){
      eval($fusion_page_replacements);
   }
   if(!empty($fusion_output_handlers)){
      eval($fusion_output_handlers);
   }
   
   return $output;
}

?>


but I dont know what change ;/
0 replies

1 post

K
KasteR
K
KasteR 10
  • Senior Member, joined since
  • Contributed 290 posts on the community forums.
  • Started 1 thread in the forums
answered
Senior Member

0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

2 participants

K
K
KasteR 10
  • Senior Member, joined since
  • Contributed 290 posts on the community forums.
  • Started 1 thread in the forums
R
R
Ramage 10
  • Junior Member, joined since
  • Contributed 11 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet