macmiller
Forum Replies Created
-
Forum: Plugins
In reply to: Plugin, how to add screen shots at other infothat is helping quite a bit. I am now working on the updates.
Forum: Plugins
In reply to: Submitting to Subversion, how toYes that was quite helpful. I have now followed the instructions and uploaded the plugin. Thx.
Forum: Plugins
In reply to: [WP phpBB Bridge] Errors Generated when Bridge ActivatedThere are two more undefined index errors generated when the form widget is first added. To have them not generate an error and default a value make the following two changes:
change this
<input id="<?php echo $this->get_field_id('login_title'); ?>" name="<?php echo $this->get_field_name('login_title'); ?>" type="text" value="<?php echo $instance['login_title']; ?>" />to this
<input id="<?php echo $this->get_field_id('info_title'); ?>" name="<?php echo $this->get_field_name('info_title'); ?>" type="text" value="<?php echo isset($instance['info_title']) ? $instance['info_title'] : '{USERNAME}'; ?>" />and change this
<input id="<?php echo $this->get_field_id('info_title'); ?>" name="<?php echo $this->get_field_name('info_title'); ?>" type="text" value="<?php echo $instance['info_title']; ?>" />to this
<input id="<?php echo $this->get_field_id('info_title'); ?>" name="<?php echo $this->get_field_name('info_title'); ?>" type="text" value="<?php echo isset($instance['info_title']) ? $instance['info_title'] : '{USERNAME}'; ?>" />Forum: Plugins
In reply to: [WP phpBB Bridge] Errors Generated when Bridge Activatedjust added a check to see if $redirect_to is set as I couldn’t see where this might be set or what it might mean. This is in plugin.php
$redirect = trim($redirect_to);
changed toif (isset($redirect_to)) { $redirect = trim($redirect_to); }Forum: Plugins
In reply to: [WP phpBB Bridge] Errors Generated when Bridge ActivatedAfter looking at the session.php file within phpBB (version 3.0.8) I decided to change the line producing the error in plugin.php as follows
code before:
else if($userid > 0 && $userid != $user->ID)
changed to:else if($userid > 0 && $userid != $user->data['user_id'])this is just a guess as the next option was to just check property_exists to eliminate the error. I looked at previous versions of the phpBB session.php and the user class and did not see ID as a variable in any of them (so it seems like the error has been around for a while).
Forum: Plugins
In reply to: [WP phpBB Bridge] Errors Generated when Bridge ActivatedI may or may not be fixing these in the best manor possible. For the STRIP error I added this code to plugin.php:
if (version_compare(PHP_VERSION, '6.0.0-dev', '>=')) { /** * @ignore */ define('STRIP', false); } else { @set_magic_quotes_runtime(0); // Be paranoid with passed vars if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on' || !function_exists('ini_get')) { deregister_globals(); } define('STRIP', (get_magic_quotes_gpc()) ? true : false); }after
require($phpbb_config);For the registration.php is depreciated I commented out this line (out of plugin.php)
// require_once(ABSPATH . WPINC . '/registration.php');(there is nothing in the file it is only a stub returning the error)
For the Undefined property: user::$ID it comes from this code in plugin.php:
else if($userid > 0 && $userid != $user->ID)Any idea what this should be??
For the final redirect_to error, it comes from this code in plugin.php:
$redirect = trim($redirect_to);
There is no indication or previous setting of this variable, $redirect_to, that I can fine. Not sure what it is supposed to be.Appreciate any help in resolving these last couple of error messages.
I should say that by commenting out line 40 to 49 I got your plug-in form to load as normal.
OK, I will try the delete. I commented out 40 to 49 and got the normal plug-in admin screen.
php 5.2.11 linux
I have been using the admin to deactivate.
I have a test environment with a new install of WP 3.2.1. There are no other plug ins active during my test. The problem with the DB unable to connect happens each time I activate the plug in. There are only the register_sidebar and register_widget depreciated messages in the log (and one undefined variable). I have tried it under three different themes (2011, 2010 and one other) and the problem occurs under all themes.
I’m really not seeing the option boxes, like I said.
Here is what I do in step 1, I click the as follows:
phpBB Recent Topics in the settings
In step two
I see this screenThere are no options to fill in and set up the database.
There are no options shown other than the error, so I would be unable to enable in-secure mode if it is done from the ‘phpBB Recent Topics’ option on the Settings Panel.
Forum: Plugins
In reply to: Alternative to Show Category PostsThanks for the suggestions.
The easiest way I found to get what I wanted was a minor tweak to a small plug-in recently updated posts. It has the advantage of only needing one line added to my non blog home page and includes parameters to limit the number of posts. The tweaks are on the following related link.
http://wordpress.org/support/topic/148957?replies=1
The CQS method wouldn’t work because code needs to be added into the non-blog page to get it to pull in the recent posts.
Forum: Plugins
In reply to: Customizable Post ListingsThanks for all the suggestions. The easiest way I found to get what I wanted was a minor tweak to a small plug-in recently updated posts. It has the advantage of only needing one line added to my non blog home page and includes parameters to limit the number of posts. The tweaks are on the following related link.
Forum: Fixing WordPress
In reply to: Example of Non WP page which lists recent blog postsThat is a good suggestion, it could be tweaked to limit the posts to a pre-defined number also. I found an existing plug-in which I tweaked a bit as an alternative to this method. Thanks a lot for the input Otto.
The alternative is here:
http://wordpress.org/support/topic/148957?replies=1