Quote:
Originally Posted by edyy
Yes I am running vbseo, my vbulletin version is 4.2.0
|
Ok. I don't have vBSEO, so I can't test this out, but please try editing the file /dbtech/vbslider/actions/widget.php.
On line 265, find:
Code:
'url' => $rowarticle['url'],
and replace with:
Code:
'url' => (version_compare($vbulletin->versionnumber, '4.2.0') >= 0 ? fetch_seo_url('vBCms', $rowarticle,null,'nodeid','title') : $rowarticle['url']),
On line 456, find:
Code:
$static .='<a href="' . $vbulletin->options['bburl'] . '/content.php/' . $row[$i]['nodeid'] . '-' . $row[$i]['url'] . '"><h2>' . $row[$i]['title'] . '</h2></a>';
and replace with:
Code:
$static .='<a href="' . ((version_compare($vbulletin->versionnumber, '4.2.0' >= 0)) ? $row['url'] : $vbulletin->options['bburl'] . '/content.php/' . $row['nodeid'] . '-' . $row['url']) . '"><h2>' . $row[$i]['title'] . '</h2></a>';
On line 466, find:
Code:
$static .='<a href="' . $vbulletin->options['bburl'] . '/content.php/' . $row[$i]['nodeid'] . '-' . $row[$i]['url'] . '">' . $rm . '</a>';
and replace with:
Code:
$static .='<a href="' . ((version_compare($vbulletin->versionnumber, '4.2.0' >= 0)) ? $row['url'] : $vbulletin->options['bburl'] . '/content.php/' . $row['nodeid'] . '-' . $row['url']) . '">' . $rm . '</a>';
Let me know if that works for you.
Brad