1 (edited by Audiofeeline 2015-08-04 16:50)

Topic: [PunBB 1.3.4] SEO MOD

http://image.noelshack.com/fichiers/2015/32/1438706734-seo.png

--------------------------------------------
./header.php
--------------------------------------------
(Line ~87)
After

// Should we output feed links?
if (FORUM_PAGE == 'index')
{

Add

$forum_head['title'] = '<title>'.htmlentities($forum_config['o_board_desc']).'</title>';
$forum_head['meta'] = '<meta name="description" content="TYPE YOUR BOARD DESCRIPTION HERE">';

--------------------------------------------
./includes/parser.php
--------------------------------------------
(Line ~662)
Replace

return '<a href="'.$full_url.'">'.$link.'</a>';

With

return '<a href="'.$full_url.'" rel="nofollow" target="_blank">'.$link.'</a>';

(Line ~697)
Replace

$img_tag = '<a href="'.$url.'">&lt;'.$lang_common['Image link'].'&gt;</a>';

With

$img_tag = '<a href="'.$url.'" rel="nofollow" target="_blank">&lt;'.$lang_common['Image link'].'&gt;</a>';

--------------------------------------------
./viewtopic.php
--------------------------------------------
(Line ~432)
Replace

$forum_page['post_contacts']['url'] = '<span class="user-url'.(empty($forum_page['post_contacts']) ? ' first-item' : '').'"><a class="external" href="'.forum_htmlencode(($forum_config['o_censoring'] == '1') ? censor_words($cur_post['url']) : $cur_post['url']).'">'.sprintf($lang_topic['Visit website'], '<span>'.sprintf($lang_topic['User possessive'], forum_htmlencode($cur_post['username'])).'</span>').'</a></span>';

With

$forum_page['post_contacts']['url'] = '<span class="user-url'.(empty($forum_page['post_contacts']) ? ' first-item' : '').'"><a rel="nofollow" target="_blank" class="external" href="'.forum_htmlencode(($forum_config['o_censoring'] == '1') ? censor_words($cur_post['url']) : $cur_post['url']).'">'.sprintf($lang_topic['Visit website'], '<span>'.sprintf($lang_topic['User possessive'], forum_htmlencode($cur_post['username'])).'</span>').'</a></span>';


--------------------------------------------
I'll add new things later...