phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
URL of groups

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB SEO Premod
::  
Author Message
ASLAN
PR0
PR0


Joined: 19 Nov 2007
Posts: 58
Location: Chile

URL of groupsPosted: Mon Jun 16, 2008 7:56 pm    Post subject: URL of groups

On whois_online block from phpBB3 Portal the URL of groups don't have the friendly URL

Could you help me, please, to change this PHP code in order to get the friendly URLs

Thanks in advice

This is the PHP code of whois_online block where create URLs
Code:
// Grab group details for legend display
$sql = 'SELECT group_id, group_name, group_colour, group_type
   FROM ' . GROUPS_TABLE . '
   WHERE group_legend = 1
      AND group_type <> ' . GROUP_HIDDEN . '
   ORDER BY group_name ASC';
$result = $db->sql_query($sql);

$legend = '';
while ($row = $db->sql_fetchrow($result))
{
   $colour_text = ($row['group_colour']) ? ' style="color:#' . $row['group_colour'] . '"' : '';

   if ($row['group_name'] == 'BOTS')
   {
      $legend .= (($legend) ? ', ' : '') . '<span' . $colour_text . '>' . $user->lang['G_BOTS'] . '</span>';
   }
   else
   {
      $legend .= (($legend) ? ', ' : '') . '<a' . $colour_text . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&amp;g=' . $row['group_id']) . '">' . (($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']) . '</a>';
   }
}
$db->sql_freeresult($result);
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB SEO Premod
Page 1 of 1

Navigation Similar Topics

Jump to: