Search Results for 'wordpress'
-
Search Results
-
I have a piece of PHP code that gets a list of allowed extensions from the WordPress Database and only allows files uploaded that are those file extensions. What I would like to do is make the code allow ALL extensions but NOT allow only a couple of file extensions (executables like exe, shells, binaries, etc.)
Here is the code:
$allwd_ext = get_option( ‘ma_allowedExtension’ );
$allowedExts = explode(“,”,$allwd_ext);
$extension = end(explode(“.”, $_FILES[$f_u][“name”]))`;Any ideas appritiated 🙂
Topic: bp live notification plugin
testing bp live notification 1.0.3 plugin, I’m not sure maybe this may vary depending on your PHP error reporting setting, btw it didn’t work for me so I checked the ajax response in Firebug and it started with some html (PHP warning):
<br /><b>Warning</b>: Missing argument 2 for wpdb::prepare() … etc. and then the actual JSON started with {“change”:”yes” … etc.
investigating a bit I came to this Andrew Nacin post:
so I just changed a line in bp-live-notification.php, inside function “bpln_get_notification_messages”
this line:
$notifications =$wpdb->get_results( $wpdb->prepare( “SELECT * FROM {$bp->core->table_name_notifications} WHERE id in {$list_ids} AND is_new = 1”) );changed in:
$notifications =$wpdb->get_results( $wpdb->prepare( “SELECT * FROM {$bp->core->table_name_notifications} WHERE id in {%s} AND is_new = %d”), $list_ids, 1 );
this suppressed the PHP warning and now seems everything is perfectly working.
Would you consider the patch? 🙂
thx very much, greetings from Italy
AndreaWordPress 3.51 (soon to be 3.6); BuddyPress 1.8
We have a central bank of photos for all of our users. These are to be used by a number of different applications (WordPress, Drupal, etc.) across the organization.
We have written a script that will create Word/BuddyPress avatar images & thumbnails, hash the user’s id to create the filenames, move the images to the correct directories, etc. and all this works fine.
We want to prevent users from uploading different avatars into Word/BuddyPress after the photos from the central bank have been created. Is there a way to do this other than hacking the code?
If hacking the code is the only way, any suggestions as to which php scripts to modify, and/or how to do that?
Thanks!
I’m trying to make a BuddyPress plugin using these guidelines
http://codex.buddypress.org/theme-compatibility/how-to-enjoy-bp-theme-compat-in-plugins/
however, if I try to add a class that extends BP_Component WordPress will crash and return the error.
I tried to load my plugin after BuddyPress using the following code:
function bp_pop_load() { require_once( dirname( __FILE__ ) . '/bp_pop.php' ); } add_action( 'bp_include', 'bp_pop_load' );but it doesn’t work
if I wrap my whole plugin with a class_exists( ‘BP_Component’ ) conditional, nothing will happen (condition is false)
How can I fix this?
fiy, I’m just calling BP_Component like this:
class BP_PostsOnProfile extends BP_Component { // my stuff... but error is thrown at the line above }Hi,
I am creating a function that hooks into the WordPress core hook ‘wp_insert_comment’ in a multisite environment. To my complete surprise, this function will not have the BuddyPress vars and functions available. Needless to say that I am depending on these functions.
I am a bit lost – how is it possible that BuddyPress is not being initialized at this point?
Paddelboot
Is there a BuddyPress plugin that works similar to Post Author? I’d like to be able to send users to their BP profile and not their WordPress posts author page.
Thanks,
Nathan P.Wordpress Version 3.6
Buddpress Version 1.7.1 ( Yes I will upgrade )
bbpress Vesrion 2.3.2—
The Forums in Groups uses plugins-php (buddypress/bp-themes/bp-default/groups/single/plugins.php) instead of forum.php(buddypress/bp-themes/bp-default/groups/single/forum.php)Why is this happening and how do I rectify it instead.
( I have installed bbpress and each group is marked to have its own Forum )
Please advice,
Thank you.
Topic: Customize The Profile Pages
WordPress 3.6
BuddyPress 1.8
http://www.tera-data.de/Hey, is it possible to customize the profile pages?
For example http://www.tera-data.de/user/drrr/I’d like to edit the Name”>Name and the @Name part.
Thanks in advance!
DrrrTopic: Edit the Profile Page
WordPress 3.6
BuddyPress 1.8
Case: http://www.tera-data.de/Hey Community,
I’m trying to edit the Profile Page of BuddyPress. It actually looks like this:
http://www.tera-data.de/user/drrr/
Drrr">Drrr [Profile Picture] @drrr active for 1 minuteI want it to look like this:
http://www.tera-data.de/user/drrr/
Drrr [Profile Picture] active for 1 minuteI looked for hours in google and other forums and found out that i probably have to edit the following file:
/wp-content/plugins/buddypress/bp-themes/bp-default/members/single/member-header.php
I changed
<a href="<?php bp_displayed_user_link(); ?>"><?php bp_displayed_user_fullname(); ?></a>To
<a href="<?php bp_displayed_user_link(); ?></a>But nothing changes.
Can anyone help me out? 🙂
I’m working with a new theme for my site, although I was told that it didn’t have native BuddyPress support, I never anticipated that it would be this bad.
My WordPress and BuddyPress installs are completely up-to-date. I’m also using bbPress, but that’s pretty much the extent of my plugins. The theme is called Conduit.
You can see the error it’s causing here: http://www.jrpgclub.com/beta/members (All of the data is getting pushed to the top of the page). I had a similar issue with custom excerpts in posts; when a paragraph tag was used, the same thing would occur.
Any idea what is causing this?
Topic: Admin Bar and Footer Broken
