/vent
Today I'm just fucking stressed and annoyed. I can't even get the damn reset/save buttons to work fucking properly. Here's the current options.php: http://pastebin.com/2P31BgcW
Every time I hit the reset or save button I get "You do not have sufficient permissions to access this page". Now why wouldn't I? I'm the admin of the blog but I don't have permissions to save/reset the options apparently. This means something is up with my fuckinround_add_admin function.
The thing in this function that I think is causing the error should be this guy: http://codex.wordpress.org/Function_Reference/check_admin_referer
But why? I can't find anything wrong with that.. So I'm going to continue looking aaaaaannnnnndddddd found it! It's the fucking header method causing the problem. I can't do options/options.php most likely because I can't view directories like that. If I just change it too options.php it appears to work fine.
Although it appears to be working, it might not work at all when I actually write the loops and try to save the properties. So now I'm onto writing them...
Well I've tried writing loop 1: http://pastebin.com/cK7APede
But nothing wants to show up on the page. Why? idk yet. If I do echo <h1>test</h1>; just outside of the foreach loop it works perfectly. However when I put this inside of the foreach loop it's a nogo. This means that (a) The options aren't declared properly (b) The options aren't declared before they are used (c) Something completely different than what I'm thinking is going wrong.
Asked a question here regarding it: http://thematictheme.com/forums/topic/options-panel-loop-isnt-showing/
Now I'm just awaiting a reply...
Well, it's 12:20AM and there's still no replies and I'm tired as fuck so I guess this is where I end today.
No comments:
Post a Comment