link rel

Discussions about the phpBB2 Forum. How to get the best from this powerful script.

Moderator: Moderators

link rel

Postby lavinya » Mon Jan 08, 2007 9:04 am

hello all.

How to change rel url?

<link rel="top" href="./index.php" title="Pano Anasayfa" />
<link rel="search" href="./search.php" title="Arama" />
<link rel="help" href="./faq.php" title="SSS" />
<link rel="up" href="index.php" title="Pano Anasayfa" />

to

<link rel="top" href="http://www.lavinya.net/phpBB2/" title="Pano Anasayfa" />
<link rel="search" href="http://www.lavinya.net/phpBB2/arama.htm" title="Arama" />
<link rel="help" href="http://www.lavinya.net/phpBB2/sss.html" title="SSS" />
<link rel="up" href="http://www.lavinya.net/phpBB2/" title="Pano Anasayfa" />

thanks
User avatar
lavinya
PR1
PR1
 
Posts: 167
Joined: Mon Jul 24, 2006 9:05 am
Location: Turkey

Advertisement

Postby dcz » Mon Jan 08, 2007 10:22 am

This is done in :

Code: Select all
function init_userprefs($userdata)
{


In includes/functions.php

here :

Code: Select all
   // Mozilla navigation bar
   // Default items that should be valid on all pages.
   // Defined here to correctly assign the Language Variables
   // and be able to change the variables within code.
   //
   $nav_links['Search'] = array (
      'url' => append_sid('search.' . $phpEx),
      'title' => $lang['Search']
   );
   $nav_links['Help'] = array (
      'url' => append_sid('faq.' . $phpEx),
      'title' => $lang['FAQ']
   );
   $nav_links['Author'] = array (
      'url' => append_sid('memberlist.' . $phpEx),
      'title' => $lang['Memberlist']
   );
   $nav_links['Chapter Forums'] = array (
      'url' => append_sid( "index.".$phpEx),
      'title' => $board_config['sitename']
   );

you can add the full URL before the scripts names :
Code: Select all
   $nav_links['Chapter Forums'] = array (
      'url' => append_sid( "http://www.example.com/phpBB/index.".$phpEx),
      'title' => $board_config['sitename']
   );


;)

++
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: 21393
Joined: Fri Apr 28, 2006 9:03 pm

Postby lavinya » Mon Jan 08, 2007 10:28 am

big thanks dcz :D thanks...
User avatar
lavinya
PR1
PR1
 
Posts: 167
Joined: Mon Jul 24, 2006 9:05 am
Location: Turkey

Postby lavinya » Mon Jan 08, 2007 10:51 am

dcz. Ok. works.
1 line excluding.

view source code:
<link rel="top" href="http://www.lavinya.net/phpBB2/" title="Pano Anasayfa" />
<link rel="search" href="http://www.lavinya.net/phpBB2/arama.htm" title="Arama" />
<link rel="help" href="http://www.lavinya.net/phpBB2/sss.html" title="SSS" />
<link rel="up" href="index.php" title="Pano Anasayfa" />

but "up rel" where? I using "remove index.php mod".
<link rel="up" href="index.php" title="Pano Anasayfa" /> must to
<link rel="up" href="http://www.lavinya.net/phpBB2/" title="Pano Anasayfa" />
Last edited by lavinya on Mon Jan 08, 2007 10:55 am, edited 1 time in total.
User avatar
lavinya
PR1
PR1
 
Posts: 167
Joined: Mon Jul 24, 2006 9:05 am
Location: Turkey

Postby dcz » Mon Jan 08, 2007 10:55 am

Well, other nav links are defined elsewhere.

Search for :

Code: Select all
$nav_links


In index.php, viewtopic.php, viewforum.php and in function.php as well, you'll find the specialized ones.

The one I first pointed out, are the one to be always repeated.

++
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: 21393
Joined: Fri Apr 28, 2006 9:03 pm

Postby lavinya » Mon Jan 08, 2007 11:00 am

re thanks dcz.
User avatar
lavinya
PR1
PR1
 
Posts: 167
Joined: Mon Jul 24, 2006 9:05 am
Location: Turkey


Return to phpBB2 Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests