Jay
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Simple Query Confusion!Are you confusing “post formats” with “post types”? To clarify, you’re pulling a ‘quote’ post type, not format, according to your description. Therefore you should use the ‘post_type’ argument in the WP_Query class. More info here > Type & Status Parameters
$quotesQuery = new WP_Query( array ( 'orderby' => 'rand', 'posts_per_page' => '1', 'post_type' => 'quote') ); while ( $quotesQuery->have_posts() ) : $quotesQuery->the_post(); print "<div class='testimonial'>"; print "<p>"; the_content(); print "</p>"; print "<p class='testimonial_author'>"; the_title(); print "</p>"; print "</div>"; endwhile;Forum: Fixing WordPress
In reply to: A particular page won't appearI know this is obvious, but have you looked at the affected template file, mainly archive.php, or even take a look at mailhide.php
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 21605 bytes) in /home/nov1900s/public_html/wp-content/plugins/wp-recaptcha/mailhide.php on line 268That issue is being looked into at the moment. On a side note, the plugin is proven to work on a vanilla install of WP 3.3 and an Upgrade, there are no issues. Should anyone find a compatibility issue with another plugin please let me know.
The timing on the popup seems to be a delay in the ajax call as of yet and can also be affected by server load. As I said though, I’m looking into it and I’ll let you know soon.
I do want to add, that while this may not be an actual “bug” and it may just be a hiccup, I will thoroughly test this on my own local 3.3 installation.
The plugin already possesses that ability, though not for categories. It is page and post specific.
Use the following settings
Enable content Warning
Uncheck Site-Wide access
Allow Per-Page/Post overrides
Default for Overrides (dialog disabled)Then within the edit post/page admin panel, the sidebar has “Override CW Dialog”, click Enable CW Dialog.
This will require the content warning on pages and or posts that have the “enable cw dialog” option checked within their respective admin panels.
Site needs to use wp_footer() and wp_header() function in footer and header.php
Josh on my site comments wrote:
2. Opacity of the dark background in thickbox isnβt dark enough to block adult images. My solution was to modify the WordPress thickbox CSS at \wp-includes\js\thickbox\thickbox.css and change .TB_overlayBG to use 95% opacity. I also modified macFFBgHack.png in the same folder, making the image less transparent.
I haven’t done it myself but this is a good idea.
Forum: Hacks
In reply to: Can I get the post ID during the 'init' or 'plugins_loaded' action?Syslogic,
Thanks for the info. though I’ve solved it since then. Come to find out I had to rewrite the plugin π
I’ll put that info in the FAQ on the next update. I’m glad you found it useful though. On the plus side, I think I know how to fix the caching issue with the administrator panels π
On a side note, I would like to apologize for my inability to respond as I have had an amazingly odd work schedule lately. Thankfully that week is over though π
Okay guys, it’s FINISHED, and no I’m not joking this time. Until WordPress team decides to give me a repository I can provide it as a Beta to you guys if you wish. By doing so please understand, I’m sure you understand that posting support requests for a plugin that is not hosted by WordPress on the forums should be avoided.
If you guys wish to download it you can do so by going to my site: here
If you have any questions you can ask them there, please keep the WP forums clean of this plugin until I get the repository.
Okay ppls, I’ve finally started coding on it, got some cool JS to go along with it. Anyhow, I have the back-end almost done, now I gotta make some post meta boxes for authors and administrators along with a few security measures to prevent workarounds.
One added feature that I failed to realize it needed was to give a drop down menu for the Enter and Exit pages so admins can select a page if necessary. I will be leaving the URL text boxes also so you can use a custom url if you wish. But you will have three radio buttons per box now so you will have to select rather you want to use a URL, Page, or none (just let the user view the site).
Due to restrictions placed upon cookies by their respective browsers, I have set it up whereas you have to have the cookie expire no less than 24 hours (1 Day). If you set it to (Days, Weeks, Months, or Years) and set the value to zero (0) the cookie will expire once the user closes the browser.
I’m also working on the wpmode workaround for those of you who need it, you will have to enable it via the Admin panel however.
Forum: Hacks
In reply to: Plugin Headers: Using multiple author names and URL'sNever mind, found it, this topic is resolved.
Link for those who are curious of my tactics: http://wpengineer.com/1295/meta-links-for-wordpress-plugins/
I was thinking a little differently though what you say seems reasonable also. I suppose an acceptable medium is to provide administrators the ability to set the default for the website themselves.
@thorsdad
I’ve actually finished the plugin research and figured out where to inject my code. Once I have time to actually sit down and code it, I can literally have it done in 72 hours. Keep in mind this includes adding the following options:- Allow users with “Author” permissions to override the minimum age requirements on their posts.
- Give administrators the ability to select between days, weeks, months, or years for cookie expiration.
- Allow admins to select between per-post or site-wide prompts. (if per-post is selected, it will be up to authors and administrators to un-flag their posts as mature as it will be set as default to mature)
- Add a little jQuery for those wpmode issues.
Of course this doesn’t go without saying, all options will have the ability to be enabled or disabled by administrators. Just cuz I can.
Sorry for the lack of progress on the code, i haven’t even begun to start on it as i have been busy getting my linux box up and running. I would like to know EXACTLY what features you guys would like to see in this plugin before I begin.
Please leave your feature requests below as I will be starting on this by Friday of the coming week. Please be as detailed as possible, it can be from a simple color change all the way to a re-write, just let me know okay.