
Originally Posted by
Woodymon
Gasp. The simple fix I have been looking for two months plus. ;-) Back in March I decided the heck with auto adding ez-pages to the menu, but now I will.
So I assume now the current consensus is:
Code:
where status_header = 1 and header_sort_order > 0 order by header_sort_order,
(NOTE ABOVE: "and header_sort_order > 0", not the previously recommended "and sidebox_sort_order > 0")
Woody
Hi Woody,
Yep, I have two errors in this mod that I need to update. One, I need to add the code to make the discount coupons link remove itself when the mod is not in use (I addressed this in my apple zen thread, but didn't yet fix it here), and TWO, I need to fix the above issue.
I actually change line 23 in includes/modules/sideboxes/YOUR-TEMPLATE/ezpages_drop_menu.php to:
Code:
$page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where status_header = 1 order by header_sort_order, pages_title");
Because in my mind, a person shouldn't have to enter a sort order (they can leave it to 0 if they want to) since status_header = 1 is there. I had people wonder why if they set the EZPage they're working on to "YES" for the header, why it still doesn't show up (because they didn't put a sort order in). Maybe I'm missing the reason why the developers chose to do it that way, but I think my change makes it more fool proof.