Search Results for 'code'
-
AuthorSearch Results
-
October 9, 2007 at 9:52 am #61051
In reply to: bb-Bluesands
Jim S.
ParticipantI also notice there is a LOT of extra whitespace at the bottom that doesn’t belong there. I’m betting it has something to do with the presence of the theme switcher button interfering, but I can’t say for sure without seeing what code you’re using for the switcher.
fel64
MemberHey Joe,
try adding
$bb_cacheand$bbdbto the list of globals in your config.php file (as outlined earlier in this topic, or ask if you’re unsure). That seems to cause the error publishing articles. That said, right now I also get an error publishing but it seems to work fine – I’ll look at that when I’ve got my dev machine again.The error for comments I don’t understand. Line 105 seems to be a function declaration: https://plugins-dev.bbpress.org/browser/bbsync/trunk/bbsync.php#L105, so how it could be missing an argument I don’t know. Are you using the latest version of bbsync, too?
October 9, 2007 at 5:16 am #61064jolaedana
MemberHi Sam! Thanks for the reply.
I’ve already tried to chmod the files- I get a “you do not have permission to modify these files” on all the files, no matter what permission level I tried. I’ve got pretty extensive web experience, so that was the first thing I tried.
I guess for now I’ll go back to the non plugin install- I was just curious if there was something written into the Plugin Manager that caused the file permission settings to be locked. Seems odd that I can’t even overwrite a .gif file!
Thanks for the overview and clarification.
October 9, 2007 at 2:01 am #61063Sam Bauers
ParticipantThe files and folders need to be writable by the webserver user. You may have changed the permissions when you edited the files that exist there already.
The easiest approach (but insecure on shared hosting services) is to chmod the files.
chmod -R 777 bbpress-root/my-plugins.
Or you can change ownership on those files to the webserver user, usually “www” or “apache” depending on the setup.
chown -R www:www bbpress-root/my-plugins.
Remember that the upgrade facility of the plugin browser won’t maintain your manual changes to the plugins. You will need to re-edit the new versions.
Plugins that are installed normally will happily co-exist with those installed by the plugin-browser. Just keep them outside of the pb–xxxx folder structure.
joe12south
MemberWould very much love to use this plug-in, but even after moving heaven and earth to find my absolute path on a Godaddy hosting account
I am still getting errors.When I try to publish a new article I get this:
Fatal error: Call to a member function on a non-object in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/functions.php on line 997
When I try to submit a comment I get this:
Warning: Missing argument 2 for felsynccomment() in /home/content/a/d/m/adminsportzzz/html/wp-content/plugins/bbsync/bbsync.php on line 105
Fatal error: Call to a member function on a non-object in /home/content/a/d/m/adminsportzzz/html/forum/bb-includes/functions.php on line 1216
This is a completely fresh install of both WP (2.3) and BB, btw. Any help would be greatly appreciated.
October 8, 2007 at 10:18 pm #2486Topic: Editing Plugin files for Plugin Browser Installed Plugins?
in forum Pluginsjolaedana
MemberHello all,
I’m using the Plugin Browser by SamBauers.
I have a few plugins that I was using, and installed through this plugin (great stuff, btw) that I had modified the files on slightly. Main example here is the Page Links plugin- I had changed the page icon graphic to be different colors. I would like to overwrite the file in the Plugin Browser installation of the file, however it tells me I don’t have permissions to overwrite the file- or change permissions on the folder or files inside it.
Is there an easy work around for this, or should I just go back to the non Plugin Browser version?
Thanks!
October 8, 2007 at 8:46 pm #61060In reply to: Error integrating WordPress functions
chrishajer
ParticipantDid you actually use the line
path/to/wp-blog-header.phpor did you change it to the ACTUAL path to wp-blog-header.php? Something like/home/thewayev/public_html/wordpress/wp-blog-header.php.The “path/to/” part is illustrative and should be changed to your actual path for your installation.
October 8, 2007 at 5:49 pm #2485Topic: Error integrating WordPress functions
in forum Installationandajus
MemberWhen I add the line
require_once(‘path/to/wp-blog-header.php’);
to my bbpress “config.php” file in order to give access to WordPress’ functions: my forum doesn’t load and I get the following message instead:
Warning: require_once(path/to/wp-blog-header.php) [function.require-once]: failed to open stream: No such file or directory in /home/thewayev/public_html/forums/config.php on line 12
Fatal error: require_once() [function.require]: Failed opening required ‘path/to/wp-blog-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/thewayev/public_html/forums/config.php on line 12
It doesn’t seem to matter what line I put the code on, and as far as I know I’ve carried out every other integration procedure listed with no problems. Does anyone know what I’m doing wrong?
October 8, 2007 at 4:13 pm #61033In reply to: wp db table “wp_post2cat”
jthomps
MemberI deativated all plugins in WP and reactivated them one by one. Event Calendar 3 is causing the error.
“WordPress database error: [Table ‘jamtho_southerillinoiswatcher.wp_post2cat’ doesn’t exist]
SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts LEFT JOIN wp_post2cat ec3_post2cat ON ec3_post2cat.post_id=id LEFT JOIN wp_ec3_schedule ec3_sch ON ec3_sch.post_id=id AND ec3_sch.end>=’2007-10-08 00:00:00′ WHERE 1=1 AND (((post_title LIKE ‘%hello%’) OR (post_content LIKE ‘%hello%’))) AND post_type = ‘post’ AND (post_status = ‘publish’ OR post_status = ‘private’) AND (ec3_sch.post_id IS NOT NULL OR ec3_post2cat.category_id!
) ORDER BY post_date DESC LIMIT 0, 10″I am working to resolve.
Thanks
October 8, 2007 at 9:40 am #60934In reply to: Jump to last post
mazdakam
Memberdid not work foe me
October 7, 2007 at 9:07 pm #49515In reply to: sample plugins?
Leo Plaw
MemberWhen I figure out how to use Trac, then I WILL fix it. 8รพ
Unless some one else beats me to it.

And seeing as you appear to be familiar with the inner workings of all of this, perhaps you might be the person to do it.
October 7, 2007 at 8:57 pm #61036In reply to: How to Write BBPress Plugins.
Leo Plaw
MemberThanks Fel64.
That’s what I ended up doing. I figured out the changes to the function names ect from WP to BB.
So now I’ve successfully converted the Tiger Sytle Admin and the Admin Drop Menus to BB.
When I’m finished the last details on them, I’ll make them publicly available.

Where should I announce these plugins?
October 6, 2007 at 7:44 pm #61048In reply to: intallation error and question
chrishajer
ParticipantDid you add anything related to cookies in your config.php or wp-config.php? Line 37 of pluggable.php deals with
cookiedomainso I am just wondering if you are doing anything with cookies at all, for that to error out like that. The “cannot modify header” errors are coming because something printed an error that was unexpected.October 6, 2007 at 2:55 pm #61035In reply to: How to Write BBPress Plugins.
fel64
MemberNot much documentation for bb, but it works exactly the same way as writing plugins for wp. So grab an existing bb plugin or look at the wp documentation: https://codex.wordpress.org/Writing_a_Plugin
It’s often trivial to convert a plugin; you just need to use a slightly different API and change the hooks and filters that you use.
October 6, 2007 at 2:51 pm #61047In reply to: intallation error and question
fel64
MemberPlease copy huuuuuge swathes of code to http://pastebin.ca and link to them instead of filling the forum.
wp_home and wp_siteurl are different in the same way that “WordPress address” and “blog address” in your Options in WP-Admin are different. Check if you need to change that.
October 6, 2007 at 4:22 am #61012jschleifer
Memberthanks for trying to solve this chris! I went and tried your options..
“are there any underscore plugins in the plugin directory?”
nope, there’s nothing at all in the plugin directory.
“What if you put an underscore plugin in that orlder, if there are none now?”
well I’ll be.. I simply touched my-plugins/_test.php
and it worked.
that’s just crazy weird.. huh. thanks for the help!
October 6, 2007 at 3:31 am #49513In reply to: sample plugins?
Leo Plaw
MemberWhy have the authors of BBPress been so daft as to not add a “my-plugins” directory to the default installation of BBPress?
It was my first question, just like everybody else on the forum, “where’s the plugin folder”.
Hey, it might seem obvious to those of you who know the BBPress, but for heaven’s sake make it easy for the newbies. You did it for WordPress, so why not BBPress?
Get with it and think of the users you programmers!
October 6, 2007 at 1:02 am #60871In reply to: WordPress access to bbPress Functions
fel64
MemberYup.
require_once('path/to/bb-load.php');in your wp config file.
October 6, 2007 at 12:17 am #60933In reply to: Jump to last post
fel64
MemberPop this in a new .php file in your plugin directory.
<?php
/*
Plugin Name: Page »
Plugin URI:
Description: Adds » to the end of topic titles, linking to latest post.
Author: fel64
Version: 0.7
Author URI: http://www.loinhead.net/
*/
if (!function_exists('is_tags')) {
function is_tags()
{
return is_tag();
}
}
if (is_front() || is_forum() || is_tags()) {
add_filter('topic_title', 'fel_addlatestlink', 101);
}
function fel_addlatestlink($title)
{
global $topic;
$felgtlpl = get_topic_last_post_link($topic->topic_id);
$title = $title . '</a> <a href="' . $felgtlpl . '"> » ';
return $title;
}
?>October 5, 2007 at 10:48 pm #61030fel64
MemberYeah. Take out the bit that says
<?php pm_fp_link(); ?>because the function you’re trying to call with that is undefined.
[Edit] Or, you know, make sure the function is defined by activating the plugin, as per Chris.
October 5, 2007 at 5:55 pm #50472In reply to: bbPress works alone, integration failed.
chrishajer
ParticipantSounds like that pm plugin is not working or not activated, but it’s still being called by the template?
It’s a good practice to call plugins like so, to prevent these sort or fatal errors if the plugin is not available:
if ( function_exists('pm_fp_link') ) {
// then call the function
}Then there won’t be a fatal error if the plugin is not available.
October 5, 2007 at 2:01 pm #60659In reply to: dutch translation
chrishajer
ParticipantI know of this list of translations, but it does not appear complete to me:
http://www.bbpulp.org/wiki/Translation_files
There is also a Dutch forum at WordPress.org for bbpress:
https://nl.forums.wordpress.org/tags.php?tag=bbpress
I think there have been a couple mentions of a dutch translation in this forum, but I can’t find a link to one right now. Maybe you can search this forum for
dutchand contact the posters to see if they’ve ever solved their problem with the translation.October 5, 2007 at 9:19 am #51693In reply to: Plugin: Post Notification
thomasklaiber
MemberHmmm if I got it right, you mean the flickr Notification Style? Maybe it would be better to provide this as an extra plugin, because it would be a tooo big feature for mine (even in the upcoming, feature-loaded version
)The best posibility I can think of at the moment, is doing this with a cronjob, but not everyone has cronjobs on his webspace account. So the more simple version would be a visit-based cronjob…
Anybody in for this? Or should I get my hands dirty?
October 5, 2007 at 3:11 am #61011chrishajer
ParticipantThese are completely wild guesses, just stalling and bumping the thread until someone knowledgeable comes along.
Are there any underscore plugins in the plugin directory? What if you put an underscore plugin in that folder, if there are none now?
Is it possible
globis disabled in your php.ini, and the conditional in this file is not working properly whenglobis disabled (create a phpinfo file and look for the disabled_functions section to see if glob is there.That’s all I’ve got right now
October 4, 2007 at 3:29 pm #61010jschleifer
MemberI checked file permissions & tried it both with files in it, and without.. permissions were fine, and the number of files in the directory made no difference to the error. I even tried it w/out the directory there, same error.
-
AuthorSearch Results