Problem with new recent topics widget
3 posters
Page 1 of 1
Problem with new recent topics widget
Hi,
@Ange Tuteur helped me in this topic:
https://help.forumotion.com/t143844-add-time-and-author-to-recent-topics-of-a-specific-subforum
Now I realize there is a "bug". All looks fine, but by clicking on a topic title in the new widget for recent topics of a specific subforum the topic loads with an URL like this:
/t4114-wifi-matches-der-sb-user?change_version=prosilver
As you can see, "?change_version=prosilver" will automatically added to the URL of the topic. Through this fact, the whole forum changes his appearance because of changing style to prosilver.
Ange or anybody else an idea, what the reason could be?
@Ange Tuteur helped me in this topic:
https://help.forumotion.com/t143844-add-time-and-author-to-recent-topics-of-a-specific-subforum
Now I realize there is a "bug". All looks fine, but by clicking on a topic title in the new widget for recent topics of a specific subforum the topic loads with an URL like this:
/t4114-wifi-matches-der-sb-user?change_version=prosilver
As you can see, "?change_version=prosilver" will automatically added to the URL of the topic. Through this fact, the whole forum changes his appearance because of changing style to prosilver.
Ange or anybody else an idea, what the reason could be?
Re: Problem with new recent topics widget
Hi @Darki,
This is my mistake, I forgot to remove the version query. Remplace the main script with the following script and it should get rid of that.
This is my mistake, I forgot to remove the version query. Remplace the main script with the following script and it should get rid of that.
- Code:
window._getNewest = function(o) {
if (!o.node) return false;
if (!o.forum) o.forum = 1;
if (!o.amount) o.amount = 5;
o.node = document.getElementById(o.node);
if (o.node) {
$.get('/f' + o.forum + '-?change_version=prosilver', function(d) {
var last = $('.forumbg:not(.forumbg.announcement) .row', d), content = document.createElement('DIV'), i = 0;
for (; i < o.amount; i++) {
if (!last[i]) break;
else {
content.appendChild($('.topictitle', last[i])[0]);
content.appendChild($('.lastpost', last[i])[0]);
for (var a = content.getElementsByTagName('A'), i = 0, j = a.length; i < j; i++) a[i].href = a[i].href.replace(/change_version=prosilver/, '');
}
}
o.node.appendChild(content);
});
}
};
Re: Problem with new recent topics widget
Topic marked solved and archived ~ brandon_g
Remember to mark your topic when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?
Team Leader
Review Section Rules | Request A Review | Sticker Points
Similar topics
» Change Recent Topics widget to Recent Posts?
» Recent topics widget
» Recent topics not as widget
» Recent topics widget
» How can I add avatar in Recent Topics Widget?
» Recent topics widget
» Recent topics not as widget
» Recent topics widget
» How can I add avatar in Recent Topics Widget?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum