-
Shmoo replied to the topic Error: Missing argument 2 for wpdb::prepare in the forum How-to & Troubleshooting 10 years, 11 months ago
Yes that works much better, no error to show up this time.
Thanks.
-
Shmoo replied to the topic Upgrading jQuery to 2X in the forum How-to & Troubleshooting 10 years, 11 months ago
Found it,
Added this code-snippet to the WP Theme functions.php file.
( make sure you check the jQuery URL version ) -
Shmoo replied to the topic Error: Missing argument 2 for wpdb::prepare in the forum How-to & Troubleshooting 10 years, 11 months ago
It’s my theme and I code WordPress themes for like 5 years now but I don’t see myself as a Developer it’s more a hobby 🙂
I’m solid at HTML-CSS and can read PHP when I see it happen but I can’t write PHP it out of the box.
This error shows up when I try to hide a complete xProfile-group-ID or just an unique xProfile-field-ID from the…[Read more]
-
Shmoo replied to the topic Upgrading jQuery to 2X in the forum How-to & Troubleshooting 10 years, 11 months ago
Thanks Paul I’ll look into that.
-
Shmoo replied to the topic Error: Missing argument 2 for wpdb::prepare in the forum How-to & Troubleshooting 10 years, 11 months ago
Okay if I understand correct this Query isn’t safe and the $ID is just thrown (unprepared) in the query.
Can I do something to make it more safe or is this something that the BuddyPress Plugin Developers would have to upgrade, since the error is caused by the BP plugin.
– I’ve turned off all PHP warnings like the first paragraph says so.
-
Shmoo started the topic Error: Missing argument 2 for wpdb::prepare in the forum How-to & Troubleshooting 10 years, 11 months ago
I’m getting a strange error while the code seem to be working fine.
” Missing argument 2 for wpdb::prepare() “
I’ve got Debug mode turned on in the config.php file and when I switch this mode off the error is gone but and everything is just working fine but I would like to know how bad this is.
The errors shows up when I was testing…[Read more]
-
Shmoo replied to the topic Performance between loop and all conditional profile fields export in the forum How-to & Troubleshooting 10 years, 11 months ago
Thanks guys,
There is a huge difference between the example I found on the web and the option @modemlooper gave.
My example:
@Modemlooper‘s example:
Don’t know if it’s really that bad because they both load around the same time but still a lot more queries.
-
Shmoo replied to the topic Performance between loop and all conditional profile fields export in the forum How-to & Troubleshooting 10 years, 11 months ago
In the profile-loop.php ( members/single/profile )
Instead of this loop.
[Read more]
<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
<?php if ( bp_field_has_data() ) : ?>
<tr<?php bp_field_css_class(); ?>>
<td class="label"><?php bp_the_profile_field_name(); ?></td>
<td class="data"><?php bp_the_profile_field_value();… -
Shmoo started the topic Upgrading jQuery to 2X in the forum How-to & Troubleshooting 10 years, 11 months ago
How can I force BuddyPress to uses jQuery 2X and not the 1X + the Migrate version ?
I don’t like to support IE8 and older browsers.
-
Shmoo replied to the topic Performance between loop and all conditional profile fields export in the forum How-to & Troubleshooting 10 years, 11 months ago
I know, but what if I duplicated the code above for all 20 profile fields ?
– country
– about
– gender
– ageI would like to know how bad this would be for performance on the site, from my understanding it has something to do with Database Query’s ?
Trying to make a Tab view of the profile info, on the first tab I would like to show all general…[Read more]
-
Shmoo started the topic Performance between loop and all conditional profile fields export in the forum How-to & Troubleshooting 10 years, 11 months ago
Is it bad coding to export all profile fields by a conditional tag instead of the default profile loop ?
Something like this..
[Read more]
<?php if ( $data = bp_get_profile_field_data( 'field=Country ' ) ) : ?>
<div class="profile_fields">
         Country: <span><a href="..../?s=<?php echo $data ?>" title="<?php echo $data ?>">
<?php echo $data ?><… -
Shmoo replied to the topic Display green border around avatar when user is online in the forum How-to & Troubleshooting 10 years, 11 months ago
It’s still work in progress and needs a lot of tuning to be not annoying for users but you get the picture.
It’s something different then a Green or Red bullet that say’s online. -
Shmoo replied to the topic Display green border around avatar when user is online in the forum How-to & Troubleshooting 10 years, 11 months ago
Thank you so much!
This looks very good and like real clean code. 🙂
-
Shmoo replied to the topic [New Plugin] BuddyPress Ranks in the forum Creating & Extending 10 years, 11 months ago
It’s very basic if I may say.
All ranks are manually controlled, so as an Admin of the site you have to add + update all ranks manually for each member ?
I can’t see why this plugin does more then a regular xProfile field that a member can’t control or update.
It’s nice when people make plugins but 5,- (premium plugin) for something like this…[Read more]
-
Shmoo replied to the topic buddypress add field in profil in the forum Showcase 10 years, 11 months ago
I don’t know but maybe it has something to do with this alert at the top of the plugin page.
This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
-
Shmoo replied to the topic Display green border around avatar when user is online in the forum How-to & Troubleshooting 10 years, 11 months ago
Thanks that works beautiful just like I wanted.
? Just one question, why does it only work if you place the huge function code snippet in the loop template ( at the top ) but when you paste it inside your functions.php it doesn’t work.
-
Shmoo replied to the topic good info/discussion sites for BuddyPress? in the forum Miscellaneous 10 years, 11 months ago
There are not many sites that talk about BuddyPress or bbPress in general.
But I have used Google a lot to try and find solutions for BuddyPress customizations and this site came up pretty often.
http://premium.wpmudev.org/blog/category/buddypress/I think they talk the most about BuddyPress but still it’s not much and often it’s just…[Read more]
-
Shmoo replied to the topic Display green border around avatar when user is online in the forum How-to & Troubleshooting 10 years, 11 months ago
Nope I’ve been searching for this also – none of the code snippets online work. There are 3 different code snippets and none are working at the moment for some reason.
It would be cool if we just had a simple user check within the members loop.
Example:
Check if user_is_online() return a Boolean? or –> Echo “something” if user is not online…[Read more] -
Shmoo replied to the topic Some profile_data can not be called other do ? in the forum How-to & Troubleshooting 10 years, 11 months ago
Yeah, stupid of me, of course, ..thanks Shanebp.
-
Shmoo started the topic Some profile_data can not be called other do ? in the forum How-to & Troubleshooting 10 years, 11 months ago
When I try to show some custom profile data in the header of the member profile I noticed that some data doesn’t work and other do.
This does not work:
<?php bp_member_profile_data( 'field=gender' ); ?>
This does work perfectly:
<?php bp_member_profile_data( 'field=twitter' ); ?>
I’ve tried everything, capitalized, none caps, but for some…[Read more]
- Load More
@macpresss
Active 6 years, 12 months ago