Tutorial


If you are one of the people that likes to optimize your Boonex Dolphin 7 site with Meta Descriptions and Meta Keywords this one might be useful to you.

You will find in your Dolphin 7 Administration Panel under Settings Meta Tags Settings...Insert Meta description on site pages and Insert Meta keywords on site pages (comma-separated list) options. There you can enter your site description and keywords that will appear in the header of your site.

The drawback is that it will not cover all your site pages. If it did do them all, then you would have an additional problem with the same description and keywords for every page which can look unusual in search engines.

So many pages in Dolphin 7 have absolutely no meta description or meta keywords. The search engines will then pull and use content based on the text on the particular page. This still looks decent when doing a search in google for example, but many believe you can rank better if your site and pages are optimized with the meta description and meta keyword tags in the header.

If you would like to optimize your site by adding different meta descriptions and meta keywords for your pages it is possible to apply them to many more pages.

It is up to you which ones, whether you want to do several, or just a select few. I will show you how you can add these. It will involve adding to your database that I will be using phpmyadmin, and adding 2 simple lines of code to the particular page.

If you are not comfortable with making changes to your database, then do not do it.

Be sure you backup your database before performing this modification just in case.

After you complete the modification, you will then be able to make future changes for the particular page within your Dolphin 7 Administration Panel.


This is for Dolphin 7.0x

For this example I will be adding a meta description and meta keywords to about_us.php or the yoursite.com/about_us.php page.

First if you navigate to yoursite.com/about_us.php with your favorite browser and view the page source you will see that the meta description and meta keywords are missing or not available. The red rectangle is where they would be if they were there.

No Meta Description - Keywords

 

 

Here is the screen shot after applying this modification and you can see they are there now.

With Meta Description - Keywords


 

 

Now before proceeding be sure to download and backup your database.



Then login to your hosting account and navigate to phpmyadmin. Once phpmyadmin is loaded select your Dolphin 7 database.

Scroll down the list of database tables until you find: sys_options and select browse.

Browse sys_options Table

 

Now we will select the insert option near the top of the page to insert a new MetaDescription, and we are going to use a name that will distinctively identify this.

 

Insert

 

 

 

Since this example is for about_us.php we are going to use:

Name: MetaDescriptionAboutUs
Value: Your actual meta description here.
kateg: 19
desc: Insert Meta Description about_us.php
Type: text
(all other fields leave blank!)

Then click go.

 

Meta Description About Us

 

 

Then you will need to navigate back to your dolphin 7 main phpmyadmin page. Scroll down the table list again until you find sys_options and click browse again.

At the top of the page click insert again so we can insert the keywords. This time we will call it MetaKeyWordsAboutUs to make it distinct and easy to identify.

At the top of the sys_options page click insert and enter the following this time:

Name: MetaKeyWordsAboutUs
Value: Your actual keywords separated with commas.
kateg: 19
desc: Insert Meta Keywords about_us.php (comma-separated list)
Type: text
(all other fields leave blank!)

Then click go.


Meta Keywords About Us

 

 

That takes care of the database part.


Now we need to add 2 lines of code to about_us.php so when the page loads it will get that info we just added from the database.

To do so simply open about_us.php with a text editor or in your hosting account file manager.

Find near the top of about_us.php:

require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );

// --------------- page variables and login

$_page['name_index']    = 11;
$_page['css_name']        = 'about_us.css';

check_logged();

$_page['header'] = _t( "_ABOUT_US_H" );
$_page['header_text'] = _t('_About Us');

// --------------- page components




And add the following:

$oSysTemplate->setPageDescription(getParam("MetaDescriptionAboutUs"));
$oSysTemplate->addPageKeywords(getParam("MetaKeyWordsAboutUs"));




So it looks like:

require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );

// --------------- page variables and login

$_page['name_index']    = 11;
$_page['css_name']        = 'about_us.css';

check_logged();

$_page['header'] = _t( "_ABOUT_US_H" );
$_page['header_text'] = _t('_About Us');
$oSysTemplate->setPageDescription(getParam("MetaDescriptionAboutUs"));
$oSysTemplate->addPageKeywords(getParam("MetaKeyWordsAboutUs"));


// --------------- page components


Then save the changes to about_us.php back to your server / hosting account.


Navigate with your web browser to:
yoursite.com/about_us.php and view source again. If you successfully followed these instructions you should now see the meta description and meta keyword tags.



If so you can login to your Dolphin 7 Administration Panel and navigate to:
Settings
-Meta Tags

And you will see that now you can add, edit, or change the Meta Description and Meta Keywords for about_us.php page.

Admin Panel Meta Description - Keywords

 

 

Note:
I used about_us.php as an example for this tutorial. You can apply this same concept to others page as well if interested.

Also:
If I get a chance I could see about making an auto-installer for this. No promises though. I am kind of busy lately.

 
Written By
Tutorial by: Jeremy LeSarge (AKA Ray)

I am the owner and administrator of DialMe.com. I write Tutorials for Boonex Dolphin as well as tips and resources surrounding website programming and development. I enjoy working with WordPress, SEO, and Web Hosting / Servers. I also maintain a WordPress Blog here on this site where you will find a variety of technology and webmaster resources.

Actions
Sponsored Links
Recommend