Search Results for 'wordpress'
-
Search Results
-
Hello BP Community.
I’m currently working on a website that uses a combination of WordPress 3.6.1, Buddy Press 1.8, BAUT Pro, WPMU.org’s Membership plugin and an Auction Theme.
A list of general info about the dynamic of the site:
– The site will allow users to post items to be auctioned. A niche-specific ebay of sorts.
– Upon Registration, users can choose to be either an Individual Seller, or a Pawn Shop. Depending on the user_type selected, a user is either assigned a Subscriber or a Contributor level (BAUT Pro does this)
– If a user registers as a Pawn Shop, they’re later permitted to purchase a monthly subscription plan that will allow them to have a Custom Profile page where they can add a custom header, all their store locations, promotions, and much more. Individual users are not presented with any of this.
– Finally, there is a DIRECTORY that lists all Pawn shops that have purchased the monthly subscription and links to each of their pagesThis last point is where I have the issue.
Because I split users in Subscribers and Contributors upon registration, I’m able to use my members-loop.php page to list all Contributors. This gives me an updated list of all users that were registered as Pawn shops, but I would like that SQL Query to also LEFT JOIN with my membership table, where it only lists Contributor level users that have an active subscription.
My current solution was to add this line at the top of my members-loop.php:
$subscribers = $wpdb->get_results('SELECT <code>user_id<code>FROM</code>wp_m_membership_relationships<code>WHERE</code>expirydate>= NOW( ) ‘ , ARRAY_N );
.. then, y added the following:
while ( bp_members() ) : bp_the_member(); if(count($subscribers[0])>0){ if (in_array(bp_get_member_user_id(), $subscribers[0])) { ... } } endwhile;Essentially I skip any user that is not part of the initial array. However, this doesn’t work since this guy:
bp_members_pagination_count()and this guybp_members_pagination_links()still show the total amount of Contributors/Pawn shops.I’ve concluded that the ideal solution would be to try and alter bp_members() only when accessing that specific page so that I may extend the actual MYSQL query, that way I get the correct count and pagination.
What do you think?
Am I way off?
Is there a better way?Hi,
I am trying to create a members-only site with WordPress V3.6.1 and although I have made some progress, I have some problems.I have 3 plugins installed, and am not sure if they are conflicting, superfluous or complementary. In addition to Buddy Press v1.8.1 and Buddy Press Login Redirect v 2.1, I have WordPress Access Control V3.1.4 activated. I have also tried a number of others which I have de-activated, but am not sure to what extent, if any, some of the data I am seeing is a legacy of those plugins.
At present I seem to have discrepancies between the user profile as shown on the WP admin dashboard and the members profile on the site, eg the site shows the fields created using the WP Dashboard Users/Profile Fields (which I assume is a BP process); this includes Address and Notes Fields. However the profile accessed through the Dashboard/All Users Edit User does not show these, but does include fields named First Name, Last Name, Nickname(required) & Biographical Info, which I suspect are hangovers from one of the other plugins which I tried. I have added these to the Profile Fields, but the data displayed in two views of the user profile doe not match, so I imagine that the new fields have different names to the originals. In fact having inspected the two pages, I see that what is “last_name” on the dashboard is “field_7” on the User profile setup.
I imagine that editing the user-edit.php should solve the problem but I am not confident that I could to this and feel that it should not be necessary each time I update the user profile set up, so there must be a simpler solution. Can you please suggest how I get the wp-admin/user-edit form to align with the wp-admin/ profile setup?
I would also like to provide the option to display a member’s email address on the profile page, but at present the only way I can find of doing that is to create a second email field, but asking members to enter it twice does seem unprofessional.
I hope that makes senses and that someone will be able to suggest a simple solution.
Greetings. Is there a way to enable the standard wordpress registration link /wp-login.php?action=register to avoid using the BuddyPress registration?
I use the RegLevel plugin in special communication and links for some invitees to register in a particular role. The URL now redirects to the BuddyPress registration instead of the unique page for the role.
The avatars do not displaying, and they were a few days ago. All the other user information, such as activity and custom fields display. I changed the permalinks yesterday to include %category% and changed some Wordpesss SEO settings. I have confirmed the avators are in the wp-content/uploads/avatar directory and looking at the browser source code the.
My site name WordPress Address (URL) and Site Address (URL) are not the same.
Any ideas?