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?

An Important Meta Tags Modifications ( for SEO)

Asked Modified Viewed 1,457 times
S
SGT-TURKEY
S
.:: We have success the difficult, impossible that is just takes time ::.
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
asked
Junior Member

Hi everybody...

There are some SEO shortcomings Php-Fusion v7. This situation can cause users to move away. So I made some changes and I've tested. It is work very nice.

1. You find "includes" directory and open the file "output_handling_include.php" to any editor.
2. Locate the 21 line and replace it with the following codes.

$fusion_page_meta = array(
   "description"                => $settings['description'],
   "keywords"                   => $settings['keywords'],
   "property='og:title'"         => $settings["sitename"],
   "property='og:description'"      => $settings["description"],
   "property='og:url'"            => $settings["siteurl"],
   "property='og:image'"         => $settings["sitebanner"]   
);

3. You find "themes/templates" directory and open the file "header.php" to any editor.
4. Locate 43. line and add the following codes.

echo "<meta property='og:title' content='".$settings['sitename']."'/>\n";
echo "<meta property='og:description' content='".$settings['description']."'/>\n";
echo "<meta property='og:url' content='".$settings['siteurl']."'/>\n";
echo "<meta property='og:image' content='".$settings['sitebanner']."'/>\n";


Usage:
Add the follwing codes after your SQL


      set_title($data["product_name"]);
      set_meta("description",$data["product_desc"]);
      set_meta("keywords",$data["product_keys"]);
      set_meta("property='og:title'",$data["product_name"]);
      set_meta("property='og:description'",$data["product_desc"]);
      set_meta("property='og:url'",BASEDIR."filedetail.php?id="$data["product_id"]);
      set_meta("property='og:image'",IMAGES_FILE.$data["g_imaget1"]);
      add_to_head("<link rel='image_src' href='".IMAGES-FILE.$data["g_resimt1"]."' />");


Notes :
* IMAGES_FILE : your product upload directory.

Sorry my Bad English and Good Luck...
0 replies

1 post

C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

Thanks. Proposal added into v9 for further inspection.
0 replies

Labels

None yet

Statistics

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

2 participants

C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
S
S
.:: We have success the difficult, impossible that is just takes time ::.
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet