View Full Version : Remove ?goto=newpost from URL in RSS?
Nobody who knows?
Guessing that it is in this code somewhere (external.php):
case 'RSS2':
$xml->add_group('item');
$xml->add_tag('title', $thread['prefix_plain'] . unhtmlspecialchars($thread['title']));
$xml->add_tag('link', $vbulletin->options['bburl'] . '/' . fetch_seo_url('thread|nosession|js', $thread, array('goto' => 'newpost')), array(), false, true);
$xml->add_tag('pubDate', gmdate('D, d M Y H:i:s', $thread['dateline']) . ' GMT');
$plaintext_parser = new vB_BbCodeParser_PlainText($vbulletin, fetch_tag_list($vbulletin->options['bburl'] . '/'));
$plainmessage = $plaintext_parser->parse($thread['message'], $thread['forumid']);
unset($plaintext_parser);
or?
Adan0s
05-23-2010, 09:20 AM
Yes, it's in external.php. Just look into the case where you want to remove it (watch out: there's a difference between RSS and RSS2). If you want to remove it in RSS2 you just pasted the right code snippet. To remove the newpost-parameter just null the first array in the link-tag:
$xml->add_tag('link', $vbulletin->options['bburl'] . '/' . fetch_seo_url('thread|nosession|js', $thread, array(), array(), false, true);
I did quiet some editing within the external.php. So if you have more questions, just ask.
Yes, it's in external.php. Just look into the case where you want to remove it (watch out: there's a difference between RSS and RSS2). If you want to remove it in RSS2 you just pasted the right code snippet. To remove the newpost-parameter just null the first array in the link-tag:
$xml->add_tag('link', $vbulletin->options['bburl'] . '/' . fetch_seo_url('thread|nosession|js', $thread, array(), array(), false, true);
I did quiet some editing within the external.php. So if you have more questions, just ask.
Thank you for helping!
But get an error message:
Parse error: syntax error, unexpected ';' in /web/se/www.infertility.se/external.php
--------------- Added 1274693055 at 1274693055 ---------------
This seems to work:
$xml->add_tag('link', $vbulletin->options['bburl'] . '/' . fetch_seo_url('thread|nosession|js', $thread), array(), false, true);
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.