1
Anonymous
Avoid Duplicate title tags in CBB ( viewpost.php )
  • 2008/4/12 14:02

  • Anonymous

  • Posts: 0

  • Since:


Hi,

Quote:
"Your title provides important information about your site. Text contained in title tags can appear in search results pages, and useful, descriptive text is more likely to be clicked on by users.

We've noticed some issues that may negatively impact your site's performance in our search results pages. These issues won't necessarily prevent your site from being crawled and indexed, but addressing them may improve your site's performance in search results, and may encourage users to click on links to your site."

Mr. Google

I made small hack to avoid duplicate title tags in CBB module ( the most module wanted in google webmaster center ), just edit modules/newbb/viewpost.php and find:

$xoops_pagetitle $xoopsModule->getVar('name'). ' - ' ._MD_VIEWALLPOSTS;


then replace it with:

$uname newbb_getUnameFromId$uid$xoopsModuleConfig['show_realname']);
$xoops_pagetitle $xoopsModule->getVar('name'). ' - ' ._MD_VIEWALLPOSTS' - ' .$uname;


Now each "All Posts" page will have special title contain the name of user who submit these posts.

Demo:
http://www.arabxoops.com/modules/newbb/viewpost.php?uid=1

Login

Who's Online

380 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 380


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits