by bhowe July 29th 2020, 6:16 pm
Here is the Java script:
var CopyrightNotice = 'UFN(tm) - Ultimate Forumotion Navbar for phpBB3 boards. Copyright 2011 by Dion Designs. All Rights Reserved. Use and/or modification of this script is allowed, provided this entire copyright notice remains in the original or modified script. Distribution is not allowed without written consent from Dion Designs.';
$(function() {
$('body').prepend('<div id="ddmenu"><div id="ddposhack"><div id="ddwrap"><div id="ddnavtoggle" onclick="$(\'#ddnavlinks\').slideToggle()">CLICK HERE for QuickJump Menu</div></div></div></div>');
var x=document.createElement('div');
x.style.display='none';
x.id='ddnavlinks';
var y=$('#page-header .navbar li > a').get();
var z=y.length-1;
for (i=z; i>=0; i--) {
var mtitle=y[i].childNodes[0].title;
var linktext=mtitle;
var link=y[i].getAttribute('href');
if (mtitle=='Home') {
linktext='Forum';
mtitle='Go to Forum/Index page';
}
else if (mtitle=='Portal') {
linktext='Home';
mtitle='Go to Portal/Home page';
}
else if (link.indexOf('privmsg')!=-1) {
var newpm=mtitle.split(' ');
if (newpm[2]=='no') {linktext='Inbox';}
else {
linktext='Inbox ['+newpm[2]+' New]';
document.getElementById('ddnavtoggle').className='newpm';
}
}
else if (link.indexOf('login?logout')!=-1) {
linktext='Log Out';
}
else if (mtitle=='Profile') {
linktext='UCP';
mtitle='Go to your User Control Panel';
}
else if (mtitle=='Gallery') {
mtitle='Go to Picture Gallery';
}
else if (mtitle=='FAQ') {
mtitle='Frequently Asked Questions';
}
else if (mtitle=='Memberlist') {
linktext='Member List';
mtitle='View the board member list';
}
y[i].title=mtitle;
y[i].innerHTML=linktext;
if (i==z) {x.appendChild(y[i]);}
else {x.insertBefore(y[i],x.firstChild);}
}
$(x).append($('#page-header .navbar li > a'));
$(x).find('img').remove();
$(x).append($('#search_menu'));
$('#ddwrap').append(x);
$('#page-header .navbar').remove();