Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Add Reply
Active Topic Link In Nav Bar
Topic Started: Apr 3 2018, 04:54 AM (362 Views)
Chelonian
Member
[ *  *  * ]
I've tried this code from this topic:

Code:
 
$('#submenu').append('<a href="'+main_url+'search?c=5/">Active Topics</a>')


But can't seem to get it to work no matter where I put it.

Trying it on my test board: http://s15.zetaboards.com/Discussion_Time_Test/index/
Edited by Chelonian, Apr 3 2018, 04:55 AM.
Offline Profile Quote Post Goto Top
 
fnuppage
Member
[ *  *  *  * ]
Chelonian
Apr 3 2018, 04:54 AM
I've tried this code from this topic:

Code:
 
$('#submenu').append('<a href="'+main_url+'search?c=5/">Active Topics</a>')


But can't seem to get it to work no matter where I put it.

Trying it on my test board: http://s15.zetaboards.com/Discussion_Time_Test/index/
Try using this code from the same topic as I believe you need the full code -

Code:
 
<script type="text/javascript">
//<![CDATA[
//Extra Link In Submenu
//By Cryptic AKA tjajj of zetaresources.com
function addLink(iLink,iText){
$(function() {
$('#submenu').append('<a href='+iLink+'>'+iText+'</a>')

});}
addLink("http://ZZZ.zetaboards.com/ZZZZZZZZ/search/?c=5","Active Topics")
//]]>
</script>


It appears that
Code:
 
$('#submenu').append('<a href="'+main_url+'search?c=5/">Active Topics</a>')
possibly only replaces
Code:
 
$('#submenu').append('<a href='+iLink+'>'+iText+'</a>')
as in the original code
Offline Profile Quote Post Goto Top
 
Mozz
Member Avatar
" It’s not a bug – it’s an undocumented feature "
[ *  *  *  * ]
I use this code on mine as it is smaller ans a lot cleaner

Admin CP - Board Template - Below The Board
Code:
 
<script type="text/javascript">
$('#submenu').append('<a href="'+ main_url +'search/?c=5">Active Topics</a>');
</script>

No editing required
Edited by Mozz, Apr 4 2018, 07:42 AM.
Offline Profile Quote Post Goto Top
 
Chelonian
Member
[ *  *  * ]
Well it moved it to the top but it seems to link to search instead of active topics. @fnu
@mozz that worked better thanks.
Edited by Chelonian, Apr 4 2018, 02:49 PM.
Offline Profile Quote Post Goto Top
 
0 users reading this topic
« Previous Topic · ZetaBoards - Theme & Code Support · Next Topic »
Add Reply