Search Results for 'wordpress'
-
AuthorSearch Results
-
September 21, 2010 at 2:49 pm #93027
In reply to: Displaying Categories in Groups
phos flip
ParticipantDon’t know if this is any use to anyone and no doubt there are far better ways of doing it but just in case it is of use….
I’ve created (hacked really) a plugin made up of 3 files, one of which is useless for now but at a future point I’d like to play around with it.
bp-group-catdisp.php
`<?php
/*
Plugin Name: Display Categories
Plugin URI:
Description: Displays a blog category in groups
Author: Mas
Version: 0.1
License: GNU General Public License 2.0 (GPL) http://www.gnu.org/licenses/gpl.html
Site Wide Only: true
*/
if ( !defined( ‘BP_GROUP_CATDISP’ ) )
define ( ‘BP_GROUP_CATDISP’, ‘programme’ );function bp_group_catdisp_init() {
bp_group_catdisp_wrapper();
}if ( defined( ‘BP_VERSION’ ) )
bp_group_catdisp_wrapper();
else
add_action( ‘bp_init’, ‘bp_group_catdisp_init’ );
//above links to admin screen in backend
require(dirname(__FILE__) . “/bp-group-catdisp-admin.php”);// group options
function bp_group_catdisp_wrapper() {
class bp_group_catdisp extends BP_Group_Extension {
var $visibility = ‘private’;var $enable_create_step = false;
var $enable_edit_item = false;
var $has_caps = false;function bp_group_catdisp () {
global $groups_template;// group title
$this->name = __( ‘Programme’, ‘programe’ );
$this->slug = BP_GROUP_CATDISP;
$this->nav_item_position = 12;
$this->create_step_position = 12;// group ID for displaying category within
global $bp;$group_array = array( 17,11 );
if ( in_array( $bp->groups->current_group->id, $group_array) )
//group ID to display in array. Note can reverse this code ie. set it not to display in listed groups by placing !in_array( $bp etc.{
$this->enable_nav_item = true;
} else {
$this->enable_nav_item = false;
}}
function display () {
global $bp, $groups_template;include(“bp-group-catdisp-edit.php”);
//bit above links to file that prints to tab
}
}
bp_register_group_extension( ‘bp_group_catdisp’ );
}?>
`bp-group-catdisp-edit.php
`
<a href="” rel=”bookmark” title=”Permanent Link to “>
Sorry, no posts matched your criteria.
`
bp-group-catdisp-admin.php
`<?php
function group_catdisp_add_admin_menu() {
add_submenu_page( ‘bp-general-settings’, __( ‘Group Categories’, ‘bp_group_catdisp’ ), __( ‘Disp Cats’, ‘bp_group_catdisp’ ), ‘manage_options’, __FILE__, ‘group_catdisp_plugin_options’ );
}
add_action(‘admin_menu’, ‘group_catdisp_add_admin_menu’, 15);function group_catdisp_plugin_options() {
if (!current_user_can(‘manage_options’)) {
wp_die( __(‘You do not have sufficient permissions to access this page.’) );
}
$updated = false;
//above this is php for creating admin page and below is printed onto admin page?>
<?php
if ( !$options = get_option( ‘bp_gm_settings’ ) )
$per_page = 10;
else
$per_page = $options;$args = array( ‘type’ => ‘alphabetical’, ‘per_page’ => $per_page );
if ( $_GET == ‘name’ )
$args = ‘alphabetical’;
else if ( $_GET == ‘group_id’ )
$args = ‘newest’;
else if ( $_GET == ‘popular’ )
$args = ‘popular’;if ( $_GET )
$args = $_GET;
else
$args = 1;if( bp_has_groups( $args ) ) :
global $groups_template;
?>Category <?php
if ( !$group )
$group =& $groups_template->group;
?>Categories You don’t have any groups to manage.
<?php
}
?>
`The first two hard code a group by ID and display a selected wordpress category within that group. The last file is the useless one. I’d started hacking from one of @boonebgorges plugins with the idea of creating an admin screen from which groups could be linked to blog categories.
I’ve run out of time for now to play with that further and so for now am just going to duplicate the first two files for another couple of groups which will work for my purposes.
September 21, 2010 at 2:39 pm #93024In reply to: Using Buddypress and Thesis 1.5.1
nunomad
MemberThanks for the suggestion, Roger, but I’m not sure it will work for me. The whole site is a membership site using s2Member, so s2Member needs to govern the functionality of WordPress and Buddypress in an integrated way.
September 21, 2010 at 11:18 am #93009Boone Gorges
Keymaster(1) and (2) don’t require BuddyPress at all. For (2) you can use a custom post taxonomy or a custom post type (or plain old categories) to distinguish your own articles from your users’ content.
As for (3), BuddyPress doesn’t have a rating system built in. There are a lot of WordPress rating plugins, and I’m sure one of them could be adapted to work with BP.
September 21, 2010 at 10:11 am #93006In reply to: Seems my entire forum section is gone? [NSFW]
JohnnyScience
MemberOk, I couldnt see anything within my Error Log inside of my Dashboard with HostGator, so I’ve contacted their customer support & they’ve created a ticket to hopefully get me the error log.
Any other ideas in the mean time? What file are all of the forums kept in so I could possibly see if the Forums folder is still there?
I should also probably look into the Automatic WordPress Backup v2.0-RC1 backups that were created on the Amazon Cloud?
September 21, 2010 at 7:21 am #92991In reply to: Seems my entire forum section is gone? [NSFW]
JohnnyScience
MemberNo I havent changed a thing at all lately…
I dont know the answer to your question about the web server’s log, how would I find out?
I’ve been doing automatic backups with Automatic WordPress Backup v2.0-RC1 that then stores it on Amazons Cloud
Ideas on how to fix it?
September 20, 2010 at 10:05 pm #92971In reply to: BuddyPress with danish letters
Builder
ParticipantI have it in htaccess file as per below, I am sure it will correct the letters.
AddDefaultCharset UTF-8
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]# END WordPress
September 20, 2010 at 7:43 pm #92958In reply to: Using Buddypress and Thesis 1.5.1
Roger Coathup
Participant@nunomad – you could try this approach as a workaround –
Keep your main site as a WordPress site based on Thesis template and install BuddyPress in a secondary site (see instructions under docs on here)
That should preserve your hooks in the primary site. You’ll have to do some work with your urls, nav and bp site theming though
September 20, 2010 at 6:38 pm #92952In reply to: User blogs show up not working correctly.
Rolly Bueno
ParticipantHi Roger,
I have slightly same situation with Anthony. I would like the site users (not WordPress user) to create their own blog. I have already tried your recommendation and successfully created a network. However, only WordPress user can post blog rather than my BP registered user. Do you have any alternative solutions? Coding would be great..
BDW Anthony, can i ask what plugin do you use for your tools in footer?
Thanks
September 20, 2010 at 5:54 pm #92941In reply to: Multiple Admins
paulhastings0
ParticipantWhat version of WordPress and BuddyPress are you using?
Have you confirmed that your other admins are “Admins” or “Super Admins”?
September 20, 2010 at 5:53 pm #92940In reply to: [Buddypress] Show an image on the Frontpage
paulhastings0
ParticipantYou’ll need to create a custom page template and then upload it to your theme folder. Then create a brand new page (.e.g “Welcome”) using that custom page template you created instead of the default page template provided by Fishbook. Then in your Dashboard >> Settings >> Reading you’ll need to set the front page option to the brand new page (e.g. “Welcome”) that you created and set your posts to show up on a different page called “Articles” or “News” or something else that you like.
September 20, 2010 at 5:30 pm #92936In reply to: Admin Menu Broken, Now on Bottom of Page
Paul Wong-Gibbs
KeymasterYour theme’s footer.php needs to call wp_footer, for example see https://codex.wordpress.org/Theme_Development#Footer_.28footer.php.29
September 20, 2010 at 5:28 pm #92934In reply to: Capital letters in Usernames
Paul Wong-Gibbs
KeymasterPerhaps there’s a misunderstanding. WordPress/BuddyPress stores several different variations of the user’s name. When you said “username”, I associated that with the user’s log-in name. The display names, like mine here, “Paul Gibbs”, are set in BuddyPress’ member profiles.
September 20, 2010 at 4:46 pm #92928In reply to: Capital letters in Usernames
Tolden
MemberI do not understand this, because my username I have as a admin, hast a capital letter. Also here in this Forum I have a capital letter in my Username “Tolden”. Why does it work here and not in my WordPress. How do I get it to work?
September 20, 2010 at 2:39 pm #92927In reply to: Capital letters in Usernames
Paul Wong-Gibbs
KeymasterThis is a WordPress limitation, which treats user registration in the same way.
September 20, 2010 at 1:10 pm #92925In reply to: BuddyPress with danish letters
Mikael Boldt
MemberThe problem with Danish letters in usernames is not a BuddyPress problem but a WordPress.
I solved using a plugin from http://oneconsult.dk/wordpress/cleaner
Thanks to http://wordpress.dk/forum/ and maxemil2September 20, 2010 at 12:34 pm #92922In reply to: BuddyPress with danish letters
Mikael Boldt
Member1) the link is http://sms.ronnespejder.dk It is in Danish (it is not complete, I am in the process of making a new language file in Danish)
2) I have changed the meta line in the header – but it didn’t solved the problem.
3) I can only see one .htaccess which has following content:
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]# END WordPress
Where do I place the ‘AddDefaultCharset UTF-8’ text-string (without ‘) ?
4) I am using a web-hotel
September 20, 2010 at 2:59 am #92898In reply to: Posts and replys on home page
pcwriter
ParticipantI just thought of an alternative solution. You can always try the Buddypress Widget Theme for what you want to accomplish.
https://wordpress.org/extend/themes/buddypress-widget-themeSeptember 20, 2010 at 2:37 am #92896Builder
ParticipantSome host will do this for you for free. You can do it easy too: Archive, zip, your full database if it’s larger (or if small just download it as in .sql file.) Archive all your files and folders into a zip file. Download the 2 zip files. Create the same database on your new host (same password, dat name, dat user) and reinstall then from your donwloaded one. Upload the other zipped files to your new host into a www directory where they belong, extract them there. You can preview your website from cpanel (or plesk panel it depends what control panel you have).
Then configure your DNS pointing it to your new installation space (you will get all the IP etc. from your new host or they will do it for you if you carry also your domain name to them.)
September 19, 2010 at 10:53 pm #92892@mercime
Participant@mdehart85 With WP 3.0.1 you can go mulisite in subdirectory mode then, as @pcwriter mentioned above, install BP in secondary blog. You can have different themes on each site.
If for your own reasons you still want the separate WP blogs using same database – read this. Make sure that both WP installs are working before installing BP in the 2nd WP install.
September 19, 2010 at 10:16 pm #92889In reply to: Member Count Incorrect
Roger Coathup
Participantyes, they were on separate themes in 1.0.3, but the primary site and BP pages now share a single theme.
If you take a look at this plugin, you should be able to update thesis for BuddyPress:
https://wordpress.org/extend/plugins/bp-template-pack/
Once updated, activate the theme in your admin system and select it instead of the default.
I’m sure others will have updated thesis, so you might be able to get specific help if you run into difficulties.
I suggest asking them as a separate forum thread.
Good luck!
September 19, 2010 at 5:31 pm #92869In reply to: @thepseudo in the posts
Roger Coathup
ParticipantIf you are adding your own filters you can add them either in your theme’s function.php file or in bp-custom.php in your plugins folder.
This article introduces you to the concept of filters in WordPress (albeit from a plugin perspective): https://codex.wordpress.org/Plugin_API#Filters
To find the hook in question (content_save_pre), I suggest using your file editor and searching the files in your WordPress install. Also have a Google, and you’ll find some information: e.g. http://adambrown.info/p/wp_hooks/hook/content_save_pre?version=1.5.2&file=xmlrpc.php
[Edit: Rich has already given you the line to add for the filter – try it in your functions.php]
September 19, 2010 at 9:45 am #92854In reply to: User Registration Problems
Heli
MemberHi. I have found a solution to that no activation email has sent. Check this out http://www.thinkplexx.com/neokrates/fix-wordpress-and-buddypress-sendmail-problems-sign-up-complete-activate-your-account-via-the-email-but-email-doesnt-come
I actually used Google mail account. There in Google account settings also probably has to set that you use imap. I’m not sure of that. But now the activation email is sent and users can register.
September 19, 2010 at 9:33 am #92851In reply to: User blogs show up not working correctly.
Roger Coathup
ParticipantThis is exactly the same post you made 1 month ago: https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/users-blogs-show-up-broken/
Your first link is just a Google Blogger blog, and locks a visitor’s browser to some extent… I don’t advise clicking on it.
Your second link is a blank page.
I don’t see any sign of BuddyPress on your sites.
Are you trying to install WordPress multisite and give people a blog? – this should be your starting point: https://codex.wordpress.org/Create_A_Network
September 19, 2010 at 9:19 am #92849In reply to: Avatars of member not showing in all blogs
Paul Wong-Gibbs
KeymasterWhat version of BuddyPress and WordPress are you using?
September 19, 2010 at 2:38 am #92833In reply to: Conflict with bbPress?
LPH2005
ParticipantI’m not familiar with deep integration of bbpress with BP but I just wanted to make sure you’ve looked over the troubleshooting document:
https://bbpress.org/forums/topic/wordpress-and-bbpress-integration-101
Also, could you post all of the versions you are using WP, BP, and BBPress – that might help get some ideas flowing for you.
HTH
-
AuthorSearch Results