BuddyDev

Search

[Resolved] Mediapress: the style of the group gallery subnav is not like my theme's

  • Participant
    Level: Initiated
    Posts: 8
    goyelle on #17105

    Hello,
    I’m working on my project on my localhost (with still PHP 5.4.12, I intend to correct that this week).
    My theme is Orbis and I installed BuddyPress 3.1.0 and MediaPress 1.4.1 (among other plugins). This is the first time I use these two and I really like them!
    I had some issues but so far I managed to deal with them, but there is one thing I can’t solve: I’ve set the MediaPress gallery for my groups but the CSS of the “subnav” element (the navbar “My gallery | Create a gallery | [Medias]) is not corresponding to my theme, although the gallery navbar on the member’s page is ok.
    I tried a temporary solution, meaning identifying which classes should be added to this element, and I gave it a try in the C:\[…]\wp-content\plugins\mediapress\templates\mediapress\default\buddypress\directory\index.php but it has changed nothing.
    Does anybody know how to fix this?

    I’m sorry if I’m not very precise in English, I’m French…
    Here is the file from the Debug Tool informations:
    ________________________________________________________
    // Generated by the MediaPress Debug tool //

    Multisite: No

    SITE_URL: http://localhost/%5Bmysitename%5D/
    HOME_URL: http://localhost/%5Bmysitename%5D/

    WordPress Version: 4.9.8
    Permalink Structure: /%postname%/

    Active Theme: Orbis-child 1.0.0
    Parent Theme: Orbis-child 1.0.0

    Registered Post Stati: publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed

    // Browser Details //
    Browser Name: Chrome
    Browser Version: 68.0.3440.106
    Browser User Agent String: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
    Platform: Windows
    // End Browser Section //

    PHP Version: 5.4.12
    PHP Extensions: Core,bcmath,calendar,com_dotnet,ctype,date,ereg,filter,ftp,hash,iconv,json,mcrypt,SPL,odbc,pcre,Reflection,session,standard,mysqlnd,tokenizer,zip,zlib,libxml,dom,PDO,Phar,SimpleXML,wddx,xml,xmlreader,xmlwriter,apache2handler,curl,gd,mbstring,mysql,mysqli,pdo_mysql,pdo_sqlite,mhash,xdebug
    GD enabled: Yes

    //GD Info
    GD Version: bundled (2.0.34 compatible)
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support: 1
    GIF Read Support: 1
    GIF Create Support: 1
    JPEG Support: 1
    PNG Support: 1
    WBMP Support: 1
    XPM Support: 1
    XBM Support: 1
    JIS-mapped Japanese Font Support:
    // End GD Info

    MySQL Version: 5.6.12-log
    Web Server Info: Apache/2.4.4 (Win64) PHP/5.4.12

    WordPress Memory Limit: 40M
    PHP Safe Mode: No
    PHP Memory Limit: -1
    PHP Upload Max Size: 2M
    PHP Post Max Size: 8M
    PHP Upload Max Filesize: 2M
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    PHP Arg Separator: &
    PHP Allow URL File Open: Yes
    WP_DEBUG: Disabled
    SCRIPT_DEBUG: Disabled

    // Table Prefix //
    Table Prefix: [xx]_

    Show On Front: page
    Page On Front: Login Welcome Page (#54)
    Page For Posts: Page d’exemple (#2)

    Session: Disabled
    Session Name: PHPSESSID
    Cookie Path: /
    Save Path: c:/wamp/tmp
    Use Cookies: On
    Use Only Cookies: On

    DISPLAY ERRORS: On (1)
    FSOCKOPEN: Your server supports fsockopen.
    cURL: Your server supports cURL.
    SOAP Client: Your server does not have the SOAP Client enabled.
    SUHOSIN: Your server does not have SUHOSIN installed.

    ACTIVE PLUGINS:

    BuddyPress: 3.1.0
    BuddyPress Group Calendar: 1.4.9
    Buddypress Xprofile Fields Custom Css Classes: 1.0
    Conditional Profile Fields for BuddyPress: 1.2.2
    Export Users to CSV: 1.1.1
    MediaPress: 1.4.1
    Orbis: 1.3.3
    Orbis Tasks: 1.1.1
    s2Member Framework: 170722
    s2member Secure-File Uploader: 0.0.2
    s2member Secure File Browser: 0.4.19
    SuitePlugins – Advanced XProfile Fields for BuddyPress: 1.0.3
    User Switching: 1.3.1
    WP Inspect: 1.0.0
    WPS Hide Login: 1.4.3

    // MediaPress Settings //

    active_components: members,groups
    default_status: private
    active_statuses: private,friendsonly,groupsonly
    active_types: photo,video,audio
    extensions: jpeg,jpg,gif,png,mp4,flv,mpeg,mkv,mp3,wmv,midi,zip,gz,doc,pdf,docx,xls,rar,odt,ott,odm,oth,ods,ots,odg,otg,odp,otp,odf,odb,oxt
    size_thumbnail: 200,200,1
    size_mid: 350,350,1
    size_large: 600,600
    single_media_size: large
    lightbox_media_size: large
    mpp_upload_space: 10
    mpp_upload_space_groups: 10
    show_upload_quota: 0
    show_max_upload_file_size: 1
    default_storage: local
    enable_remote: 1
    enable_remote_file: 0
    download_remote_file: 0
    enable_oembed: 1
    enable_debug: 0
    has_gallery_directory: 1
    activity_upload: 1
    activity_disable_auto_file_browser: 0
    activity_photo_default_view: default
    activity_video_default_view: default
    activity_audio_default_view: default
    show_orphaned_media: 0
    delete_orphaned_media: 0
    activity_media_display_limit: 6
    members_active_types: photo,video,audio
    members_enable_type_filters: 1
    members_photo_gallery_default_view: default
    members_video_gallery_default_view: default
    members_audio_gallery_default_view: default
    groups_active_types: photo,video,audio
    groups_photo_gallery_default_view: default
    groups_video_gallery_default_view: default
    groups_audio_gallery_default_view: default
    enable_group_galleries_default: yes
    contributors_can_edit: 1
    contributors_can_delete: 1
    groups_enable_my_galleries: 1
    galleries_per_page: 12
    media_per_page: 20
    media_columns: 4
    gallery_columns: 4
    show_gallery_description: 0
    show_media_description: 0
    enable_audio_playlist: 1
    enable_video_playlist: 1
    gdoc_viewer_enabled: 1
    enable_media_comment: 1
    enable_gallery_comment: 1
    load_lightbox: 1
    enable_activity_lightbox: 1
    enable_gallery_lightbox: 1
    enable_lightbox_in_gallery_media_list: 1

    // End of MediaPress Settings //
    _________________________
    Thanks in advance!!

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #17106

    Hi Goyelle,
    Is this the theme that you are using?
    https://www.pronamic.eu/themes/orbis/

    Please let me know and I can check with the theme.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 8
    goyelle on #17114

    Hi, thanks for you quick response!
    It’s exactly my theme.
    It’s very nice of you to check it out.
    (it’s the early morning here and I’m going to work, I will be able to answer very late for you!)
    Thanks again, have a nice evening.

  • Participant
    Level: Initiated
    Posts: 8
    goyelle on #17115

    Maybe a little bit of code could be interesting, the two are in the <div id="item-body" class="item-body"> element:

    – Here is the HTML code of the member page (subnav ok):

    <nav class="bp-navs bp-subnavs no-ajax user-subnav" id="subnav">
         <ul class="subnav">
    	<li id="gallery-my-gallery-personal-li" class="bp-personal-sub-tab current selected" data-bp-user-scope="my-galleries">
                <a href="http://localhost/[mysitename]/members/[myusername]/mediapress/" id="gallery-my-gallery">
    				My Gallery
    	    </a>
    	</li>
            <li id="create-personal-li" class="bp-personal-sub-tab" data-bp-user-scope="create">
    	    <a href="http://localhost/[mysitename]/members/[myusername]/mediapress/create/" id="create">
    				Create a Gallery
    	    </a>
    	</li>
    	<li id="type/photo-personal-li" class="bp-personal-sub-tab" data-bp-user-scope="type/photo">
    	    <a href="http://localhost/[mysitename]/members/[myusername]/mediapress/type/photo/" id="type/photo">
    				Photo
    	    </a>
    	</li>
    	<li id="type/video-personal-li" class="bp-personal-sub-tab" data-bp-user-scope="type/video">
    	    <a href="http://localhost/[mysitename]/members/[myusername]/mediapress/type/video/" id="type/video">
    				Video
    	    </a>
    	</li>	
    	<li id="type/audio-personal-li" class="bp-personal-sub-tab" data-bp-user-scope="type/audio">
    	    <a href="http://localhost/[mysitename]/members/[myusername]/mediapress/type/audio/" id="type/audio">
    				Audio
    	    </a>
    	</li>
         </ul>
    </nav>

    Here is the code on the group page (not well-styled):

    <div role="navigation" id="subnav" class="item-list-tabs no-ajax mpp-group-nav">
        <ul>
    	<li>
                <a href="http://localhost/[mysitename]/groupes/[mygroupname]/mediapress">
                           All Galleries
                </a>
            </li>
            <li>
                <a href="http://localhost/[mysitename]/groupes/[mygroupname]/mediapress/my-gallery/">
                           My Galleries
                </a>
            </li>
            <li>
                <a href="http://localhost/[mysitename]/groupes/[mygroupname]/mediapress/create?_wpnonce=91aff55c29">
                           Create Gallery
                </a>
            </li>
         </ul>
    </div>

    Thank you again!

    Regards,
    Goyelle

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #17134

    Hi Goyelle,
    I will have an update for you today.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 8
    goyelle on #17136

    Hi Brajesh,

    Thanks a lot for your availability. I’m not in a hurry, not in a matter of days, so there’s no problem if you delay your answer, of course, because I would be so happy if you could fix this problem!

    Thanks again,
    Goyelle

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #17175

    Hi Goyelle,
    I have checked now and it is the BP Nouveau template pack is the issue. They have changed the css classes were used.

    If you are using the BP Nouveau template pack, Please copy wp-content/plugins/mediapress/templates/mediapress/default/buddypress/groups/home.php to yourtheme/mediaress/default/buddypress/groups/home.php and chage this

    
    
    <div role="navigation" id="subnav" class="item-list-tabs no-ajax mpp-group-nav">
    	<ul>
    		<?php do_action( 'mpp_group_nav' ); ?>
    	</ul>
    </div>
    

    to

    
    <div role="navigation" id="subnav" class="item-list-tabs bp-navs bp-subnavs no-ajax group-subnav no-ajax mpp-group-nav">
    	<ul>
    		<?php do_action( 'mpp_group_nav' ); ?>
    	</ul>
    </div>
    
    

    That will fix it.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 8
    goyelle on #17177

    Hi, thank you so much!

    I couldn’t find the right CSS class but I’m glad I wasn’t completely mistaken when I trid to fix this.
    It’s working when I change it directly in the file which is in this plugin folder, but not when I copy home.php in folders with the same path in my child theme folder. I guess I’m not doing it the right way. I’ll try to fix this later.

    Thank you very much for your time and efficiency! You’re awesome.

    Regards,
    Goyelle

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #17180

    Hi Goyelle,
    I sincerely appreciate your patience and yes, your earlier deduction had saved me a lot of time in finding the problem.

    Please check the path while copying.

    in your theme, you should keep it in mediapress/default/buddypress/groups/home.php

    The path I specified earlier had a typo in it. This should work.

  • Participant
    Level: Initiated
    Posts: 8
    goyelle on #17186

    Hi Brajesh,

    Thanks again, I’m sorry, I read too fast the path you gave me (I did’nt even see the typo).
    Moving the changed home.php file from:

    wp-content/themes/orbis-child/mediapress/templates/mediapress/default/buddypress/groups/home.php to yourtheme/mediapress/default/buddypress/groups/

    to:

    wp-content/themes/orbis-child/mediapress/default/buddypress/groups/home.php to yourtheme/mediapress/default/buddypress/groups/

    was the right way to do it! I clear that in case someone would need this.

    I’m really grateful, thank you for your time! I’m changing this topic status to “solved”.

    Have a nice day,

    Goyelle

You must be logged in to reply to this topic.

This topic is: resolved