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 SEO in News of Portal Phpbb3

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite
::  
Author Message
PDD_20



Joined: 23 May 2008
Posts: 28
Location: Spain

URL SEO in News of Portal Phpbb3Posted: Sat Jun 07, 2008 4:09 pm    Post subject: URL SEO in News of Portal Phpbb3

Hi, I have a portal for phpbb3, I would like get URL SEO in the news.

the code is:

Code:
<?php
/*
*
* @package phpBB3 Portal  a.k.a canverPortal  ( www.phpbb3portal.com )
* @version $Id: news.php,v 1.5 2008/02/09 08:18:14 angelside Exp $
* @copyright (c) Canver Software - www.canversoft.net
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
if (!defined('IN_PHPBB') or !defined('IN_PORTAL'))
{
   die('Hacking attempt');
   exit;
}

/**
*/



//
// Fetch Posts for news from portal/includes/functions.php
//

if (!isset($HTTP_GET_VARS['article']))
{
   $fetch_news = phpbb_fetch_posts($config['portal_news_forum'], $config['portal_number_of_news'], $config['portal_news_length'], 0, ($config['portal_show_all_news']) ? 'news_all' : 'news');
   
   if (count($fetch_news) == 0)
   {
      $template->assign_block_vars('news_row', array(
         'S_NO_TOPICS'   => true,
         'S_NOT_LAST'   => false
      ));
   }
   else
   {
      for ($i = 0; $i < count($fetch_news); $i++)
      {
            if( isset($fetch_news[$i]['striped']) && $fetch_news[$i]['striped'] == true )
            {
            $open_bracket = '[ ';
            $close_bracket = ' ]';
            $read_full = $user->lang['READ_FULL'];
         }
         else
         {
                  $open_bracket = '';
                  $close_bracket = '';
                  $read_full = '';
         }
         
         $template->assign_block_vars('news_row', array(
            'ATTACH_ICON_IMG'   => ($fetch_news[$i]['attachment']) ? $user->img('icon_attach', $user->lang['TOTAL_ATTACHMENTS']) : '',
            'TITLE'            => $fetch_news[$i]['topic_title'],
            'POSTER'         => $fetch_news[$i]['username'],
            'U_USER_PROFILE'   => (($fetch_news[$i]['user_type'] == USER_NORMAL || $fetch_news[$i]['user_type'] == USER_FOUNDER) && $fetch_news[$i]['user_id'] != ANONYMOUS) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&amp;u=' . $fetch_news[$i]['user_id']) : '',
            'TIME'            => $fetch_news[$i]['topic_time'],
            'TEXT'            => $fetch_news[$i]['post_text'],
            'REPLIES'         => $fetch_news[$i]['topic_replies'],
            'TOPIC_VIEWS'      => $fetch_news[$i]['topic_views'],
            'U_LAST_COMMENTS'   => $phpbb_root_path . 'viewtopic.' . $phpEx . '?t=' . $fetch_news[$i]['topic_id'] . '&amp;p=' . $fetch_news[$i]['topic_last_post_id'] . '#p' . $fetch_news[$i]['topic_last_post_id'],
            'U_VIEW_COMMENTS'   => append_sid($phpbb_root_path . 'viewtopic.' . $phpEx . '?t=' . $fetch_news[$i]['topic_id'] . '&amp;f=' . $fetch_news[$i]['forum_id']),
            'U_POST_COMMENT'   => append_sid($phpbb_root_path . 'posting.' . $phpEx . '?mode=reply&amp;t=' . $fetch_news[$i]['topic_id'] . '&amp;f=' . $fetch_news[$i]['forum_id']),
            'U_READ_FULL'      => append_sid($_SERVER['PHP_SELF'] . '?article=' . $i),
            'L_READ_FULL'      => $read_full,
            'OPEN'            => $open_bracket,
            'CLOSE'            => $close_bracket,
            'S_NOT_LAST'      => ($i < count($fetch_news) - 1) ? true : false,
            'S_POLL'         => $fetch_news[$i]['poll'],
            'MINI_POST_IMG'      => $user->img('icon_post_target', 'POST'),
         ));
      }
   }
}
else
{
   $fetch_news = phpbb_fetch_posts($config['portal_news_forum'], $config['portal_number_of_news'], 0, 0, ($config['portal_show_all_news']) ? 'news_all' : 'news');

   $i = intval($HTTP_GET_VARS['article']);

   $template->assign_block_vars('news_row', array(
      'ATTACH_ICON_IMG'   => ($fetch_news[$i]['attachment']) ? $user->img('icon_attach', $user->lang['TOTAL_ATTACHMENTS']) : '',
      'TITLE'            => $fetch_news[$i]['topic_title'],
      'POSTER'         => $fetch_news[$i]['username'],
      'TIME'            => $fetch_news[$i]['topic_time'],
      'TEXT'            => $fetch_news[$i]['post_text'],
      'REPLIES'         => $fetch_news[$i]['topic_replies'],
      'TOPIC_VIEWS'      => $fetch_news[$i]['topic_views'],
      'U_LAST_COMMENTS'   => $phpbb_root_path . 'viewtopic.' . $phpEx . '?t=' . $fetch_news[$i]['topic_id'] . '&amp;p=' . $fetch_news[$i]['topic_last_post_id'] . '#p' . $fetch_news[$i]['topic_last_post_id'],
      'U_VIEW_COMMENTS'   => append_sid($phpbb_root_path . 'viewtopic.' . $phpEx . '?t=' . $fetch_news[$i]['topic_id'] . '&amp;f=' . $fetch_news[$i]['forum_id']),
      'U_POST_COMMENT'   => append_sid($phpbb_root_path . 'posting.' . $phpEx . '?mode=reply&amp;t=' . $fetch_news[$i]['topic_id'] . '&amp;f=' . $fetch_news[$i]['forum_id']),
      'S_POLL'         => $fetch_news[$i]['poll']
   ));
}

// Assign specific vars
$template->assign_vars(array(
   'S_DISPLAY_NEWS' => true,
));

?>


Can you help me?

Thanks.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

URL SEO in News of Portal Phpbb3Posted: Mon Jun 09, 2008 9:07 am    Post subject: Re: URL SEO in News of Portal Phpbb3

Isn't it the same script as here : http://www.phpbb-seo.com/boards/phpbb3-mod-rewrite/discussions-vt2662.html

I though you had made it Wink

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
PDD_20



Joined: 23 May 2008
Posts: 28
Location: Spain

URL SEO in News of Portal Phpbb3Posted: Thu Jul 03, 2008 1:37 pm    Post subject: Re: URL SEO in News of Portal Phpbb3

dcz wrote:
Isn't it the same script as here : http://www.phpbb-seo.com/boards/phpbb3-mod-rewrite/discussions-vt2662.html

I though you had made it Wink


I need your help...

Can you help me?

Thanks
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

URL SEO in News of Portal Phpbb3Posted: Thu Jul 03, 2008 1:57 pm    Post subject: Re: URL SEO in News of Portal Phpbb3

No real need to post twice for the same issue Wink

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: