Dr C
Forum Replies Created
-
Forum: Plugins
In reply to: Site crashed after MailPress upgradeExact same problem. Hoping for a quick fix!
Forum: Fixing WordPress
In reply to: Pretty PermalinksOk, I got it working for me with the help of some excellent websites and tech support.
My host was running Zeus not Apache, so the server needs a file
rewrite.script
to do the task of.htaccess
. The contents are given in several websites, but here’s one.Hope that helps somebody.
Forum: Fixing WordPress
In reply to: Pretty PermalinksI too have the exactly the same problem. Also, adding either
Options FollowSymLinks
or
Options FollowSymLinks+
hasn’t helped as was suggested here
I note that this topic is marked [resolved] does that mean we should start a new one to get this problem sorted? Thanks for the help.
Forum: Fixing WordPress
In reply to: Automatic upgrade to 2.7.1 problemExactly the same here.
Hmmm.. sorry man – just saw this now. Don’t know how I missed your post the first time!!
Forum: Plugins
In reply to: Execute brackets [] tags in theme files?Hey object81,
Just saw this now. MFS uses the WP hook as follows (line 154 of MFS code):add_filter(‘the_content’,’multifeedsnap_function’);
This means that the MFS brackets are only processed when WP is about to display ‘the_content’. If yoiu check out the filter/hooks references you might find one that suits your needs. I had a quick look but couldn’t find one that was obvious.
When you find one that suits you, replace the ‘the_content’ part of line 154 above with your preferred hook, and it *should* work like a dream ??
Forum: Plugins
In reply to: Members only sectionsSurely everyone just sprinkles those </div> tags around like confetti, right?!! Oh the shame :p But I can’t see the rogue tag – perhaps you could tell me what line it’s on?
Good luck Talia…good things come to those willing to work weekends ??
Forum: Plugins
In reply to: Members only sections@talia and others. I followed the directions and things seemed to work for me:
1. I created a members.php file which I then put in my theme’s folder in wp-content\themes\TheTheme\:
<?php /* Template Name: Members Only */ ?> <?php get_header(); ?> <div id="content"> <?php if (is_user_logged_in()) { ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h2><?php the_title(); ?></h2> <div class="contenttext"> <?php the_content(); ?> </div> <?php endwhile; ?> <?php endif; ?> <? } else { ?> <h3>Sorry But You Must Be Logged in to View This Page</h3> <div class="post"> Sorry, but this area is only for registered, logged-in users. If you are a registered user, please login to the site. If you would like to register, please email <a href="mailto:[email protected]">[email protected]</a>. <form name='loginform' id='loginform' action='<?php echo get_bloginfo('wpurl');?>/wp-login.php' method='post'> <label>Username <input type='text' name='log' id='log' value='' size='20' tabindex='1' /> </label> <label>Password <input type='password' name='pwd' id='pwd' value='' size='20' tabindex='2' /> </label> <label> <input name='rememberme' type='checkbox' id='rememberme' value='forever' tabindex='3' /> Remember Me</label> <p class='submit'> <input type='submit' name='submit' id='submit' value='Login »' tabindex='4' /> <?php //use a hidden field to return them to the page they came from ?> <input type="hidden" name="redirect_to" value="<?php echo $_SERVER["REQUEST_URI"]; ?>" /> </form> </div> <!-- /post --> <?php } ?> </div><!-- /content --> <?php get_sidebar(); ?> <?php get_footer(); ?>
2. In the WP admin section, when writing or editing a page, a new box appears in the Advanced Options section, “Page Template”. Here, choose which template your page is to belong to, “Members Only” or default.
3. To hide the members only pages from the navigation menus I used the Hide Pages plugin.
My aplogies if you’re annoyed that a lot of the code could ‘obviously’ be hacked to gether from the other posts, but I thought it useful to assemble it in one place.
One last thing: wouldn’t it be great if after a member has logged in that the pages that were hidden from the naviagtion menus became visible?! I looked at the Hide Pages code but it’s not tremendously hack friendly to a php newbie like me. Any suggestions?
Forum: Plugins
In reply to: [Plugin: WP Super Cache] Cannot delete cache folder after uninstallThanks for replying Donncha. When I went back to apply your fix the permissions had been changed and I was able to delete it directly – I was not previously able to do this. Perhaps the host has changed something in the meanwhile?
Anyway, thanks for you help. I presume that between Otta’s and your fix this topic is now resolved?
Forum: Plugins
In reply to: [Plugin: WP Super Cache] Cannot delete cache folder after uninstallThanks for the solution Otto. I had hoped that going through the host’s tech support could be avoided but ah well…
I agree with passegua on the issue being with WP Super Cache in a more global sense, since it is what created the problem folder in the first place. It’s not that I don’t completely and utterly respect Donncha O Caoimh’s excellent work, but there surely must be a way that this folder can be created without having to revert to the host everytime it needs to be uninstalled?
Forum: Fixing WordPress
In reply to: Displaying Google News Feeds on WordPressAnyone any ideas on this? I’ve just hit the same brick wall!
10 hours of work, several plugins later and I find that it all comes down to one little variable:
current_page_ancestor
Genius! Knowledge really is a powerful thing.
So with that input my horizontal menu is finished https://www.colincaprani.com If it would help people I could blog about the solution?
Forum: Plugins
In reply to: [Plugin: WP-dTree 3.3.2] dTree plugin on wp 2,5,1Me too. I get the following error:
Fatal error: Cannot redeclare wp_dtree_load_javascripts() (previously declared in ...wp-content/plugins/wp-dtree-30/wp-dtree.php:113) in .../wp-content/plugins/wp-dtree-30/wp-dtree.php on line 112
I’m being lazy and am not in the mood to try debug it!