blackc2004
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: How to restrict file downloads to specific users?Hi, I am actually in the process of building something like this for my company’s wordpress site.
Currently we have four systems:
1) WordPress which manages all the pages.
2) Zen Cart for checkout/order processing.
3) VTiger for Knowledge base, order tracking, and support calls.
4) An internal system which manages support contracts, dynamic device updates, etc.I have written a plugin which currently works with all three of them via WebService calls to determine what level of access the user has to our protect content areas. Each protected page is then assigned a “lowestLevel” and as long as the user has a level equal to or higher, they can view that page.
Currently it’s just static content, which is the same for all users, but the idea is there to make it dynamic, including file downlaods, based on what the user has purchased in the store and when support expires.
My next step is to build in a Knowledge base.
Just thought I’d put in my two cents and see if anyone has suggestions.
Forum: Plugins
In reply to: [Plugin: WP-PageNavi] 404 errors on all paged eventsThanks. That doesn’t seem to work because WP is throwing a 404 before it gets to my updated query_posts… I know I could do a plugin to dix this, but I think that I’ll just remove this code for now.
Thanks for all the help!
Forum: Plugins
In reply to: [Plugin: WP-PageNavi] 404 errors on all paged eventsSo what would be the way to resolve this? How do you get the pages from the URL?
Forum: Plugins
In reply to: [Plugin: WP-PageNavi] 404 errors on all paged eventsOk. I’ve been playing around with this some more and here’s what I’ve found.
If you go to /category/news the pagination works fine. But the category/blog is a combination of three different categories. So in my archive.php I have:
if (is_category('Blog')) { query_posts('cat=1,3,4'); } while(have_posts()) : the_post(); ?>
Is there a better way I should be doing this?
Forum: Fixing WordPress
In reply to: get_posts not using orderby=menu_orderAh, I was able to resolve this by using get_pages and sort_column as one of the params.
See: https://wordpress.taragana.net/nav.html?wp-includes/post.php.source.html#l1014For more info.
Forum: Plugins
In reply to: [Plugin: WP-PageNavi] 404 errors on all paged eventsI just tried those and they do not work either…
Any ideas why those would not work?
Thanks.
Forum: Fixing WordPress
In reply to: get_posts not using orderby=menu_orderActually, I am using get_posts to get pages (post_type=page). So you would assume it would work. But we all know what assuming can do. ??
I guess this should be filed as a bug then, or the codex updated? Or is there another way that I should be getting pages in this manner?
get_posts('post_type=page&post_parent=80&orderby=menu_order&numberposts=');
Thanks!
Forum: Fixing WordPress
In reply to: get_posts not using orderby=menu_orderNothing on that page specifically says that, but there is a line that says “Note: The $orderby value can be the name of any field in the wp_posts table.”
And menu_order is a column in the wp_posts table.
Forum: Plugins
In reply to: [Plugin: Google Analytics for WordPress] adsense-track.js wrong pathHi. I am having the same problem. It’d be great if this were fixed! Thanks.
Forum: Plugins
In reply to: [Plugin: WordPress Navigation List Plugin NAVT] Not showing up on some pagesAh. Cancel that.
Your code for showing only on specific pages needs to be updated some. I am including the WP files from NAVT into some static pages that I have with WOZ (The zencart plugin).
Your code on lines 84-91 in app/navt_fe.php were causing the problem.
Perhaps adding a value for “Display Everywhere” would be useful.
Thanks for a great plugin!
Forum: Plugins
In reply to: [Plugin: Members Only] bloginfo(‘url’) should be ‘wpurl’ in members only.Actually, I found that when you redirect to a specific page that’s broken when you update the above line, so I have changed the lines to read:
if ($members_only_opt['redirect_to'] == 'specifypage') { $home = get_bloginfo('url'); //Get base URL or WordPress install } else { $home = get_bloginfo('wpurl'); //Get base URL or WordPress install }
Forum: Plugins
In reply to: [Plugin: Search Hilite] Search Highlight ALWAYS highlights “1”Hi, Can anyone help out with this? I’d love to use this plugin, but it’s very frustrating to always have ‘1’ highlighted.
Forum: Fixing WordPress
In reply to: query_posts to get children of pagesThanks!
Incase anyone else needs this. Here’s the code I used:
$args = array( 'post_type' => 'page', 'numberposts' => 4, 'post_status' => 'publish', 'post_parent' => 33, // any parent ); $attachments = get_posts($args); //print_r("attachements:" . $attachements); if ($attachments) { foreach ($attachments as $post) { ?> <li class="i_read" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a><br/> <?php $the_excerpt = get_post_meta( $post->ID, '1lineblurb', $single = true); if ($the_excerpt != '') { echo($the_excerpt); }// if: filename not blank } } ?>
Forum: Fixing WordPress
In reply to: adding a digg widgetHi,
You can upload the pulgin:
https://www.ads-software.com/extend/plugins/digg-widget/This will give you a widget on for the sidebar to use, no code needed. Just upload and go.
Thanks,
Cj BForum: Plugins
In reply to: Auto-link not working with recent Google API keys?Hmmm. Sorry about that! I haven’t really updated that plugin for quite a while. Just been keeping it working with the new versions of WP.
I’ll try and take some time this week to update the plugin to use the new AJAX Search API that you describe.