PDA

View Full Version : How do I install thos module?


Seraph
03-05-2006, 01:12 AM
How do I install this module, since the templates for vBDrupal worth different then Drupal. It's the page title module. I'm having problems with the PHP code part.

INSTALLATION:

1. Place the entire page_title directory into your Drupal modules/
directory.

2. Load the database definition file (page_title.mysql) using the
tool of your choice (e.g. phpmyadmin). For mysql and command line
access use:

mysql -u user -p drupal < page_title.mysql

Replace 'user' with the MySQL username, and 'drupal' with the
database being used.

3. Enable this module by navigating to:

administer > modules

4. Optionally configure the two variations of page title by visiting:

administer > settings > page_title

5. The page title is ultimately set at the theme level. To let your PHPTemplate
based theme interact with this module, you need to add some code to the template.php
file that comes with your theme. If there is no template.php file, you can simply
use the one included with this download. Here is the code:

function _phptemplate_variables($hook, $vars) {
$vars = array();
if ($hook == 'page') {

// This is the only important line
$vars['head_title'] = page_title_page_get_title();

}
return $vars;
}

As you can see from the code comment, there is only one important line
of code:

$vars['head_title'] = page_title_page_get_title();

This line needs to be added to the 'page' hook of the _phptemplate_variables
function.

Alternately, you can call page_title_page_get_title() from page.tpl.php
directly at the place where the title tag is generated.

sifuhall
03-05-2006, 06:31 PM
For the php part you would have to select a PHPTemplate based theme such as BlueMarine instead of the defaultvb or vbpushbutton themes.

Seraph
03-05-2006, 10:44 PM
Any way else to get the title of the page in the title bar?

sifuhall
03-06-2006, 09:27 AM
Edit your drupal_header template in your vbulletin admin cp and change your title tag to:


<title>$title - $vboptions[drupalname]</title>

Seraph
03-06-2006, 10:40 AM
Thanks! :)