jnwry
Forum Replies Created
-
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Integrate with Profile BuilderI am sorry if I am posting this in the wrong place…I was under the impression that this was MC4WP Mailchimp for WordPress…
Just in case though, I’ll try to clarify. MC4WP has integration for third party registration forms. However, Profile Builder is not listed. I was wondering if there was simple fix for integrating my Profile Builder registration form with MC4WP so that when a user registers they are added to Mailchimp. Thanks!
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] list of questionsHi Ken,
I’m wondering how I can list the preview of the list of questions before the quiz is taken. Your screenshot shows how to remove the title only.
Thanks!
JohnForum: Hacks
In reply to: Add menus to admin using custom taxonomiesHi bcworkz,
It is difficult to dive into the WP way and try to get a grasp on POSTS, PAGES, CUSTOM POSTS, CATEGORIES, TAXONOMIES, etc etc. and how they relate.I am having a difficult time ordering my plugin so that my links and everything looks neat. So for instance, in the URL bar you would see: /vcos/course/lesson1, where each link actually has content that the plugin provides. However after searching (a lot) I found that you can do this by creating CATEGORIES instead of TAXONOMIES (which probably can be used as well somehow). SO, I’m looking for a way to dynamically create my CATEGORIES under the PARENT CATEGORY “vcos” based on the courses in my “courses” table.
Ok, so what I’ve done so far is to create a menu in the admin:
add_action( 'admin_menu', 'register_vcos_menu_page' ); function register_vcos_menu_page(){ add_menu_page( 'vcOS', 'vcOS', 'edit_theme_options', 'vcos', 'vcos_admin_menu', plugins_url( 'vcos/images/icon.png' ), 30 ); }
Then I created a table in the WP database and called it “courses”. So I created custom post types using my table “courses” to list the courses depending on who the user/author is.
//QUERY COURSES FOR CURRENT USER WITHIN ADMIN add_action( 'init', 'codex_custom_init' ); function codex_custom_init() { global $wpdb; global $current_user; $current_user = wp_get_current_user(); $userid = $current_user->ID; //Get user's courses $queries = $wpdb->get_results("SELECT courseid, course FROM ".$wpdb->prefix."vcos_courses WHERE ownerid='$userid'"); foreach ($queries as $query){ $course = $query->course; $courseid = $query->courseid; $args = array( 'public' => true, 'label' => $course, 'show_ui' => true, 'hierarchical' => true, 'taxonomies' => array('category'), 'show_in_menu' => 'vcos', 'rewrite' => array('slug' => $course = $query->course), 'supports' => array('title', 'editor', 'excerpt', 'thumbnail', 'page-attributes', 'tags') ); register_post_type( $courseid, $args ); } wp_register_style( 'vcos', plugins_url('/css/style.css', __FILE__), false, '1.0.0', 'all'); }
I don’t know if that’s the best way to go about it, but the menu is working.
BTW, I am looking for anybody interested in the development of vcOS (just in case).
Thanks again.Forum: Hacks
In reply to: add drop down menu to register post typeHi bcworkz,
Here is my first bit of code. It lists the courses the user currently has listed to his name:
$queries = $wpdb->get_results("SELECT courseid, course FROM ".$wpdb->prefix."vcos_courses WHERE ownerid='$userid'"); foreach ($queries as $query){ $course = $query->course; $args = array( 'public' => true, 'label' => $course ); register_post_type( $course, $args ); }
Now, what I have clarified in my mind to do (and after much investigating), is to add an option to add multiple choice questions below the posting of the text. So, the user can just keep adding as many questions as I they need. Obviously all the questions need to be assigned to the course->lesson….NO idea how to go about this….
Forum: Hacks
In reply to: add drop down menu to register post typeunique post type for each course. This would come from the admin menu. Once course is selected, you create lessons (posts) with X multiple choice questions attached to each lesson. Hope this helps…
Forum: Hacks
In reply to: add drop down menu to register post typeI’ve set up WP for lessons.
So I’m using “register_post_type”, to enter lessons. What I need is below the typical WP text entry, a few added fields like a drop down and a few others.
Hope this makes sense. I apologize for my ignorance on this.Forum: Networking WordPress
In reply to: sub sites not redirecting pagesok. solved this issue.
After adding:define( ‘BP_ENABLE_MULTIBLOG’, true );
to the wp-config.php file and creating new pages and configuring buddypress in the subdomain it was done….
ThanksForum: Networking WordPress
In reply to: sub sites not redirecting pagesOk…here’s one thing i found:
I hadn’t enabled buddypress for multisite:
define( ‘BP_ENABLE_MULTIBLOG’, true );Now when trying an option on the menu on a subdomain i get “page not found”
Forum: Networking WordPress
In reply to: sub sites not redirecting pagesMy main thing is that I need the community thing (messages, event sharing, forum). Also, we do online teaching so we have developed a plugin that runs in buddypress. Is buddypress the only free option for doing this kind of thing? Is there no way I can do some sort of redirecting for subdomains?
Forum: Networking WordPress
In reply to: sub sites not redirecting pagesyes. Is there any other way on a multisite install?
Forum: Networking WordPress
In reply to: sub sites not redirecting pagesI’m using multisite with subdomains. I’m using WP 3.2.1.
All plugins in subdomain are disabled.Forum: Networking WordPress
In reply to: Is there an easy way to do this login set up with mulitsiteIsn’t this wordpress multisite default behavior?
Forum: Networking WordPress
In reply to: Want to allow user to register without mail confimination, but…This is a great multisite registration plugin:
https://www.cozmoslabs.com/wordpress-profile-builder/This plugin sends your welcome message:
https://buddypress.org/community/groups/welcome-pack/home/