How to Install Optimal Titles V 1.0

Support for the phpBB3 SEO mods released in the phpBB3 SEO Toolikt forum.

Moderator: Moderators

How to Install Optimal Titles V 1.0

Postby dr00t » Sat Mar 29, 2008 2:09 pm

Hey guys, I am pretty good with code (not a programmer though) but I just downloaded this "Optimal Titles V1.0" from the site and I unzipped it... and I am staring at 1 text file (english version) and a folder leading to the french translation.

Ok, so I open the english version in my text editor.. and I stop.

What now?

How do I install this MOD into my PHPBB 3.0 board?

I am a newbie that needs some help. Any advice is appreciated!
dr00t
 
Posts: 2
Joined: Sat Mar 29, 2008 2:05 pm

Advertisement

Postby dcz » Sat Mar 29, 2008 5:22 pm

The install file is just a set of instruction to apply, such as open a file, find some code and add some new.

More on the How to install a mod thread at phpBB.com.

In the optimal title mod case, it's pretty simple, few code changes.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21375
Joined: Fri Apr 28, 2006 9:03 pm

Postby dr00t » Sat Mar 29, 2008 5:24 pm

Well, even in the english version of the file, everything is referencing something french.

What's up with that?
dr00t
 
Posts: 2
Joined: Sat Mar 29, 2008 2:05 pm

Postby dcz » Sat Mar 29, 2008 6:12 pm

These are all the required steps to install the mod, from the English speaking install :

Code: Select all
## MOD Title:       phpBB3 SEO Optimal titles
## MOD Author:       dcz <n/a> http://www.phpbb-seo.com/
## MOD Description:    phpBB3 page titles Optimization.
##
## MOD Version:    1.0
#
#-----[ OPEN ]------------------------------------------
#

styles/prosilver/template/overall_header.html

#
#-----[ FIND ]------------------------------------------
#

<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />

#
#-----[ AFTER, ADD]------------------------------------------
#

<title>{PAGE_TITLE}<!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF --></title>

#
#-----[ FIND ]------------------------------------------
#

<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

#
#-----[ REPLACE WITH ]------------------------------------------
# EG Delete

#
#-----[ OPEN ]----------------------------------------------
#
language/en/common.php

#
#-----[ FIND ]----------------------------------------------
#

?>

#
#-----[ BEFORE, ADD]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN - TITLE
$lang['Page'] = 'Page ';
// www.phpBB-SEO.com SEO TOOLKIT END - TITLE

#
#-----[ OPEN ]------------------------------------------
#

viewforum.php

#
#-----[ FIND ]------------------------------------------
#

page_header($user->lang['VIEW_FORUM'] . ' - ' . $forum_data['forum_name']);

#
#-----[ REPLACE WITH ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN - TITLE
$extra_title = ($start > 0) ? ' - ' . $user->lang['Page'] . ( floor( $start / $config['topics_per_page'] ) + 1 ) : '';
page_header($forum_data['forum_name'] . $extra_title);
// www.phpBB-SEO.com SEO TOOLKIT END - TITLE



#
#-----[ OPEN ]------------------------------------------
#

viewtopic.php

#
#-----[ FIND ]------------------------------------------
#

page_header($user->lang['VIEW_TOPIC'] .' - ' . $topic_data['topic_title']);

#
#-----[ REPLACE WITH ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN - TITLE
$extra_title = ($start > 0) ? ' - ' . $user->lang['Page'] . ( floor( ($start / $config['posts_per_page']) ) + 1 ) : '';
page_header($topic_data['topic_title'] . ' : ' .  $topic_data['forum_name'] . $extra_title);
// www.phpBB-SEO.com SEO TOOLKIT END - TITLE

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


There is no french ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21375
Joined: Fri Apr 28, 2006 9:03 pm

Postby corriere » Tue Apr 01, 2008 11:24 am

there is an error....
when you say :

find:

<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

#
#-----[ REPLACE WITH ]------------------------------------------
# EG Delete


i think there is an error... perhaps #EG delete should be without #
i say this because after i modify the oveall header i have the write #eg delete in the top of all pages

please confirm or correct it.
corriere
 
Posts: 2
Joined: Tue Apr 01, 2008 11:20 am

Postby dcz » Sun Apr 06, 2008 12:25 pm

Nope, Replace something with nothing means delete.

We use this because there is no support for deletion in the mod format, and there is no move instruction either.

Here, we just need to move some code, so, we add it where it should and then delete it where it was (using the replace with nothing instruction since there is no delete).

Mod format is basic, but I admit, if we ask our-self too much questions, it can become tricky ;)

It's all explained in the the How to install a mod thread at phpBB.com.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21375
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Ayael and 7 guests