1
angelomorto
Xoops Tag with News layout

Hack made ​​on the modules:
Smartsection 2.14
Tags Xoops 2.3 (phppp)


Tested on:
Xoops 2.4.x
Xoops 2.5.x

Changes:
The following hack allows a visualization of the articles in Xoops Tags with news style layout, with summary, image and items count.

The smartsection's plugin tag has been modified to identify if url rewrite is actived and changing the title link with SEO mode.

Example on
http://www.apuliainnovation.it/modules/tag/view.tag.php?Events

Note: make a backup of original files, and delete the xoops cache after uploaded files.


Download:
http://www.xoopsitalia.org/forum/p/69281/xoops-tag-con-layout-stile-news.html

2
angelomorto
Xoops Tag causes indexing problems to Google

When Google scans the Xoops page, found 2 pages with same content, because the tags in articles are linked to file view.tag.php located in the module directory of articles (ex. Smartsction), while in the module XoopsTag the tags are linked to file view.tag.php of XoopsTag module.

Solution:
(module XoopsTag) edit tag/include/tagbar.php
change on line 74
$tags_data[] = "<a href="" . XOOPS_URL . "/modules/" . $GLOBALS["xoopsModule"]->getVar("dirname") . "/view.tag.php" . URL_DELIMITER . urlencode($tag) . "" title="" . htmlspecialchars($tag) . "">" htmlspecialchars($tag) . "</a>";


with

$tags_data[] = "<a href="" . XOOPS_URL . "/modules/tag/view.tag.php" . URL_DELIMITER . urlencode($tag) . "" title="" . htmlspecialchars($tag) . "">" htmlspecialchars($tag) . "</a>";



Note: Sorry for grammatical errors! :P

Login

Who's Online

205 user(s) are online (138 user(s) are browsing Support Forums)


Members: 0


Guests: 205


more...

Donat-O-Meter

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

Latest GitHub Commits