Today's Active topic to replace View Topics since last visit
3 posters
Page 1 of 1
Today's Active topic to replace View Topics since last visit
Hi,
www.igid.com/forum
I would like 'today's active topic' to replace 'view topics since last visit' on the top of our page -
Can you all help me do this or at least to add 'today's active topic' to the top of the page.
Thank you so very much.
www.igid.com/forum
I would like 'today's active topic' to replace 'view topics since last visit' on the top of our page -
Can you all help me do this or at least to add 'today's active topic' to the top of the page.
Thank you so very much.
Re: Today's Active topic to replace View Topics since last visit
Hi,
Can you provide your index_body template: ACP >> Display >> Templates >> General >> Index_body
Thank you,
Sir Chivas.
Can you provide your index_body template: ACP >> Display >> Templates >> General >> Index_body
Thank you,
Sir Chivas.
Re: Today's Active topic to replace View Topics since last visit
I don't know about that - we use invision and don't think we have it - do we?
But, I would appreciate you help. One of our admins used this code:
It works well, except it has shown up in the login field here:
I know that she will be back, but could use your help now. Also, this might be great for others to know.
Thanks ahead of time for your help.
But, I would appreciate you help. One of our admins used this code:
- Code:
window.addEventListener("load",function(){var a=document.getElementById('userlinks');if(a){a=a.getElementsByTagName('a')[0];
a.href='search?search_id=activetopics';
a.innerHTML="Today's active topics";
}},false);
It works well, except it has shown up in the login field here:
I know that she will be back, but could use your help now. Also, this might be great for others to know.
Thanks ahead of time for your help.
Re: Today's Active topic to replace View Topics since last visit
Hi,
Replace your current script with this :
It should loop through all the links that are children of
. If one of the links matches the specified href attribute ( /search?search_id=newposts ) it'll be changed into the one you want.
Replace your current script with this :
- Code:
$(function() {
var userlinks = document.getElementById('userlinks');
if (_userdata.session_logged_in && userlinks) {
for (var a = userlinks.getElementsByTagName('A'), i = 0, j = a.length; i < j; i++) {
if (/\/search\?search_id=newposts/.test(a[i].href)) {
a[i].href = '/search?search_id=activetopics';
a[i].innerHTML = 'Today\'s active topics';
break;
}
}
}
});
It should loop through all the links that are children of
|
Re: Today's Active topic to replace View Topics since last visit
It didn't work, but our forum is still loading changes.
Similar topics
» Todays active topics
» Topic Title Colors in View posts since last visit?
» move "todays active topics"
» How do i change the 'view last post' to 'view active topics' ?
» View active topics and view new posts
» Topic Title Colors in View posts since last visit?
» move "todays active topics"
» How do i change the 'view last post' to 'view active topics' ?
» View active topics and view new posts
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum