Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX Classic Support

Public Group active 4 months ago

This group provides support for Commons In A Box Classic, our original software for community-building. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

Customize joyride within the group home page

Tagged: joyride jquerry

  • This topic has 11 replies, 4 voices, and was last updated 11 years, 3 months ago by sepidpooy.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • January 23, 2014 at 5:46 pm #4285
    sepidpooy
    Participant

    Hi,

    I am looking to add some Interactive tutorials in the Group home-page. I have noticed CBox-theme uses Joyride and it works fine the user activity page. However, I am able to understand the logic and port the same functionality in the Group home page. Would you please let me know where do I need to add custom Joyride codes ?

     

    Thanks

     

    January 25, 2014 at 6:47 pm #4287
    Scott Voth
    Keymaster

    Hi @sepidpooy –

    Joyride has some pretty good documentation here –

    http://zurb.com/playground/jquery-joyride-feature-tour-plugin

    Not sure if you are aware.  It seems to require five steps, and they are described in pretty good detail.  Can you look at the way the theme developers are implementing it in CBOX and mimic for the group home page?

    I have not actually delved into JoyRide myself – but maybe @bowe or @cbox_admin or some other member of this site can provide some insight on how to extend tutorials to other sections if this doesn’t work.

    • This reply was modified 11 years, 3 months ago by Scott Voth.
    January 25, 2014 at 11:47 pm #4290
    sepidpooy
    Participant

    Hi @scottvoth

     

    Thanks for your reply. Here is the result of my discovery and where exactly I stuck

    • The joyride tour is working only on the activity page
    • The joyride tooltips are defined and hooked to activity page elements in the following file: cbox-theme/engine/extensions/features/bp/tour/template-items.php
    • The tooltips details including message is defined in: cbox-theme/engine/extensions/features/bp/tour/options.ini
    •  The joyride engine has been started in the following php file: cbox-theme/engine/extensions/features/scripts/joyride/template.php

    I have defined new tooltip on the activity page by adding tooltip code hooked to a activity page element. Basically I modified template-item.php and it works file. However, if I hook the tooltip code to an element in the Group main page, the tooltip does not show up.

     

    Does anybody knows why the joyride only work on the activity page ?

     

    January 26, 2014 at 12:22 am #4291
    sepidpooy
    Participant

    I have investigated more and find out that joyride engine is not started in the Group Home page. As I said before, the start joyride code is located in

    cbox-theme/engine/extensions/features/scripts/joyride/template.php

    How can I make sure this php file is executed with the Group Home page ?

    January 26, 2014 at 12:58 am #4292
    sepidpooy
    Participant

    I manage to enable the joyride engine in the Group Home and fix the problem by changing this function

     

    function cbox_theme_buddypress_tour()
    {
    if ( bp_is_activity_component()  && !bp_is_user() && is_user_logged_i
    infinity_feature( ‘cbox-buddypress-tour’ );
    }

    into this one:

    function cbox_theme_buddypress_tour()
    {
    if (( bp_is_group() || bp_is_activity_component() ) && !bp_is_user() && is_user_logged_i
    infinity_feature( ‘cbox-buddypress-tour’ );
    }

    January 26, 2014 at 7:56 am #4293
    Scott Voth
    Keymaster

    @sepidpooy – Thanks for sharing what you learned.  I am sure it will be useful to others who want to use JoyRide to guide new users.  @bowe @cbox-admin – do you think it would be helpful to add this modification to the CBOX default theme?

    January 26, 2014 at 11:33 am #4300
    Bowe Frankema
    Member

    @sepidpooy & @scottvoth this is cool! I think it would be nice to add a guided tour to the Groups page. I recently also made a tour for the Members page (for a client) so that can be added as well. @sepidpooy could you maybe send me your modifications through a zip file (email them at bowe@presscrew.com)?

    Thanks!

    January 26, 2014 at 12:21 pm #4301
    sepidpooy
    Participant

    @bowe Thanks for your interest. It would be a pleasure to do something in return of your favor. However, I am sure you are not interested on the way I implemented it now. I have moved all tooltips from activity page to the main group page. Therefore, in my case there is no tour in the activity case. I need to fix that first and then send it for you.

    I have one question for you which might help me a lot to find a solution:

    You said you have also made an additional tour for Members page before. How did you add new starting point of the tour in the template-items.php?

    I have realized that the a tour can be started from only one starting point (page element). Therefore, I changed the starting point from an element in the activity page into an element ID in the group home page. As a result, my activity page does not have any tour any more.

     

    Thanks

     

    • This reply was modified 11 years, 3 months ago by sepidpooy.
    January 26, 2014 at 1:45 pm #4303
    Matthew K Gold
    Moderator

    Are you using a child theme, @sepidpooy? If not, @bowe, can you say whether these changes will be wiped out the next time the theme is updated?

    January 26, 2014 at 8:37 pm #4304
    sepidpooy
    Participant

    I am not using child theme.

    January 27, 2014 at 6:20 am #4305
    Bowe Frankema
    Member

    @sepidpooy I’ll commit the code for the Members Tour to my CBOX Fork on GitHub (. You can then see how I’ve done it exactly https://github.com/BoweFrankema/cbox-theme. I’ll then advise you to create a CBOX Child Theme like @mkgold advised. Follow the tutorial here: https://commonsinabox.org/archives/3324

    If you could then post the changes you made back to me, so I can include the group tour in the next version of CBOX as well. We would then have tours for the activity stream, the members page and the groups page. 🙂

    January 27, 2014 at 3:58 pm #4307
    sepidpooy
    Participant

    Thanks @bowe . Please let me know when you made those comments.

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX Classic Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 287
  • Send Invites

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    287 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Learn WordPress
    • Support
    • Feedback
  • Log In
  • Register