Skip to:
Content
Pages
Categories
Search
Top
Bottom
  • kunalb posted on the forum topic Where is theme located in the group EventPress 13 years, 3 months ago

    I’m not sure why this is happening—the trunk source code that is committed has ep correctly set: https://plugins.svn.wordpress.org/eventpress/trunk/eventpress.php. The compressed file being created seems to be picking up previous […]

  • kunalb posted a new activity comment 13 years, 3 months ago

    Maybe you could add the file to the plugin itself and change the main bpcp.php file to include the class as required.

    • Thanks, kunalb! It’s as easy as a walk in the park —
      In view.php, if function exist ( mybox), add meta box….; this solved all type’s BP front;
      Then, in my plugin, add meta box (‘mybox’, …..’ep_event’ ); this solved the WP admin;
      All functions in my plugin hook up with bpcp functions nicely without including any file in bpcp.
      bpcp is powerful.

  • kunalb posted an update 13 years, 4 months ago

    The new Buddypress.org looks interesting.

  • kunalb posted a new activity comment 13 years, 4 months ago

    @benfremer You can change the default role to Event Creator and upgrade subscribers to event creators. That role only has event creation caps.

  • kunalb posted a new activity comment 13 years, 4 months ago

    @soundsasylum Hi—I’m afraid I don’t have time right now, a bit busy with other projects. Thanks for considering me.

  • kunalb posted on the forum topic Issues in the group EventPress: 13 years, 4 months ago

    It seems that there’s some javascript error in your installation—you might want to check the javascript console in FF/Chrome/ to confirm. There might be some plugins clashing, etc.

  • kunalb posted a new activity comment 13 years, 4 months ago

    @designnz Hi

    It’ll take some time—I’d been hoping to get something nice done by this Month’s end, but I realized I need another plugin before I can make the next version of eventpress. That plugin itself will take up July I guess, and _then_ I’ll return to refactoring and releasing a new version of eventpress.

  • Hi Thank! You could try changing line 81 of eventpress/controllers/register.php: add_action( 'bpcp_ep_event_loop_action_meta', Array( &$ep_views, 'bp_register_button' ) ); to add_action( 'bpcp_ep_event_single_before_home', Array( &$ep_views, 'bp_register_button' ) ); This isn’t exactly the best method as it won’t survive a plugin update, but is…[Read more]

  • kunalb posted on the forum topic Testing plugins in the group Creating & Extending: 13 years, 5 months ago

    Luccame pointed me to http://code.google.com/p/buddypress-media/source/browse/bp_media/trunk/unit-test/bpm-testcase/ in case anyone else comes looking for this topic.

  • kunalb started the forum topic Testing plugins in the group Creating & Extending: 13 years, 5 months ago

    Hi! I’ve been wondering about creating unit tests etc for plugins (a bit affected by reading the pragmatic programmer): are there any existing plugins that use unit tests via wp-unit/any suggestions on how to? Because I’m really getting confused about (re-)structuring my plugin accordingly. PHPUnit and Selenium (+the wp-unit plugin) seem to be the…[Read more]

  • kunalb posted a new activity comment 13 years, 5 months ago

    @imjscn I had to construct a complete query because I needed the name from the bp profile table and wordpress’s user table. It might be simpler—and with automatic cache support via WP—to simply get the data using get_post_custom() [https://codex.wordpress.org/Function_Reference/get_post_custom] which will return an object with all custom val…[Read more]

    • OMG, within 5 minutes, I got the $data nearly correct by the get_post_custom. Thanks!

      I first use a simple query to get all ID, then Foreach ID populate data by get_post_custom.

      So, each of your inviteable user is an object, each of mine is an array, need to convert. and since I use Foreach, the final result shows only one ID.

      If you have time,…[Read more]

    • @kunalb, I got it by $data[] = (object)Array(….);
      Thanks again for your helping!

  • kunalb posted on the forum topic permissions in the group EventPress: 13 years, 5 months ago

    @chaoti Whew. Getting capabilities working right the first time was pretty tricky—thankfully this means I don’t have to debug it.

    @irishfan24 Thanks! Currently considering some major refactoring to reduce bugs and improve security/theming issues. Let’s see what I come up with in a few months.

  • kunalb posted a new activity comment 13 years, 5 months ago

    As long as the function runs after plugins have loaded, you can create your own plugin and enable it and it should work fine.

  • kunalb posted a new activity comment 13 years, 5 months ago

    you’ll have to generate your own, I’m afraid. See https://codex.wordpress.org/I18n_for_WordPress_Developers if you haven’t.

    Could you give me the link? I’d love to see BPCP in action apart from EventPress.

  • kunalb posted a new activity comment 13 years, 5 months ago

    Yeah—I tried to avoid calling too many admin specific actions to prevent too much unknown stuff happening.

    • Okay, I got the meta boxes and post saving in place. Now I have an issue with the custom post search, however. No matter what I enter into the search box in my custom post type’s index page, I am always sent to the site’s front page. I took a look at the template tag, and I can’t see anything wrong with it. What could I be missing?

  • kunalb posted a new activity comment 13 years, 5 months ago

    Glad you liked it—and there isn’t any particular critera for adding custom meta boxes, they should appear by default as long as you register them. Some default metaboxes like categories/taxonomies aren’t implemented (as BPCP doesn’t have support for cats and tags yet), but anything you define should be appearing.

    • Thanks for the quick response!

      I figured it out. The meta box wouldn’t show up until I added it on the bpcp_edit_add_metaboxes action. I forgot to read the default view class. Thing is, my meta box was only registered on the admin_menu action, since I couldn’t think of any other on which to do it. Of course, the admin_menu action only takes place…[Read more]

      • Yeah—I tried to avoid calling too many admin specific actions to prevent too much unknown stuff happening.

        • Okay, I got the meta boxes and post saving in place. Now I have an issue with the custom post search, however. No matter what I enter into the search box in my custom post type’s index page, I am always sent to the site’s front page. I took a look at the template tag, and I can’t see anything wrong with it. What could I be missing?

  • kunalb posted a new activity comment 13 years, 5 months ago

    @imjscn As long as you have BPCP/EP activated and are only using the loop after all plugins have been loaded (which is almost certainly true as the loop will only be used by the time WP reaches the output generating stage—far after loading plugins), you don’t need to copy kb-loop.php.

  • kunalb posted on the forum topic permissions in the group EventPress: 13 years, 5 months ago

    Just read the complete thread again—are you looking for how to grant all site admins a way to edit events (which should be there—but as I’ve never run EP in MU, I have no idea); if you’re just trying to grant subscribers access to editing events you can change their role to Event Creators in […]

  • kunalb posted on the forum topic permissions in the group EventPress: 13 years, 6 months ago

    Ah—you’ll have to use wp-admin’s backend here—the user’s section where you can switch between author/subscriber/admin etc. There’ll be another option for Event Creator there.

  • Load More
Skip to toolbar