I'm really sorry, I just had to make this little tweak, because it annoyed me

Don't shoot me if it allready have been adressed..
When adding the vbstats to admin/index.php you don't have much coice on where to insert it, it has to be the top or the bottom, or you get a parse error (at least I do). And frankly, I don't like when hacks mess up my menuorder.. I want it pretty much default, so I won't get to confused
Anyways.. here is what I came up with when trying to customize it.
This will allow you to descide for yourself where to put the vbstats-menu in theadmin CP-menu.
If you allready have the vbstats menu installed in admin Cp,. do the following.. else skip this step
Find and erase following in admin/index.php
Quote:
<!-- vbStats -->
<tr><td><hr></td></tr>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("vbStats"); ?>
</table>
<a href="vbstats_set.php"> vbStats Config </a><br>
<a href="../vbstats.php"> View Public Statistics </a><br>
<a href="vbstats_set.php?action=add"> Exclude vbStats URL </a><br>
</td></tr>
<!-- vbStats -->
|
now, find
Quote:
makenavselect("Announcements");
// ***
|
and below, add
Quote:
// HACK VBSTATS
makenavoption("vbStats Config","vbstats_set.php?action=edit","<br>");
makenavoption("View Publis Stats","../vbstats.php?action=stats","<br>");
makenavoption("Exclude vbStats URL","vbstats_set.php?action=add");
makenavselect("vbStats");
// HACK VBSTATS
// ***
|
this will add the vbstats menu below the announcements.
if you want to position it somewhere else, you can move it to somewhere else on the list, just make sure you insert the code after a "// ***"
Sorry if this "edit" has allready been mentioned or something.. just a little gadget I found useful