Serve WordPress in root path of Apache

After copying WordPress files in the DocumentRoot of Apache server. I found that URLs where rendered as wordpress/qwe. So I removed all the files in DocumentRoot and installed WordPress again. By copying the contents, NOT the directory, of the downloaded WordPress to the DocumentRoot of Apache server. Installation makes the URLs to be in the … Read more

disable plugin in specific dynamic buddypress pages

There are two ways to solve this issue: 1) As mentioned above, Plugin Organizer is a popular plugin built to handle this sort of request. 2) Custom code, either in your theme or in the plugin itself. Knowing the inner workings of the plugin you are attempting to disable will be important if you decide … Read more

Buddypress – Custom Name For Logged In User’s Messages In Message Thread

A. in the template file only.. in message.php replace <?php bp_the_thread_message_sender_name(); ?> with <?php $userID = bp_loggedin_user_id(); $senderID = bp_get_the_thread_message_sender_id(); if ($userID == $senderID) : ?> You wrote: <?php else : ?> <?php bp_the_thread_message_sender_name(); ?> <?php endif; ?> B. or, as a function add this to bp-custom.php function custom_bp_the_thread_message_sender_name() { $userID = bp_loggedin_user_id(); $senderID = … Read more

is it possible to add_action via template.php rather than function.php for this specific buddypress hook?

As cybmeta said – removing the tab does not block access to functionality. The quick solution is to leave all the tabs in place, regardless of a user’s role. Instead, add a conditional to an overloaded template. For example, overload this template: buddypress\bp-templates\bp-legacy\buddypress\members\single\profile\edit.php And add a role-based conditional at the top. The conditional will control … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)