Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP mobile different home page?

  • Avatar of ifanatics
    ifanatics
    Member

    @ifanatics

    Greetings,

    I am a big fan of this plugin, great work on it.

    The problem I have is that my main theme uses shortcodes on the homepage that are not readable by BP mobile, which is fine, but when connecting with a mobile device it looks pretty bad. Is there a way for the mobile theme to have a different homepage than the default one? Preferably it would just take the user to where they could log in, then just show the Buddypress sections of the site.

    Thanks!

Viewing 17 replies - 1 through 17 (of 17 total)
  • Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Avatar of fondelifair
    fondelifair
    Member

    @fondelifair

    Hi,

    I love your plugin. I just installed 1.5, it doesn’t have a front.php file. I tried this fix by creating a front.php file, but I can’t get it to work. Are these instructions still valid?

    Thank you.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    You shouldn’t need front.php any longer. This new theme will use that front page of your site. If you want to use a different front page than the blog or activity stream then you create a page template for your desktop theme and one for your mobile and then name the page template the same.

    I have admin option in the works that will show a custom front page that can be edited from admin

    Avatar of Gossy Ukanwoke
    Gossy Ukanwoke
    Participant

    @gossyomega

    Exactly the problem am facing. However, i still cant it to work. I have done all the things above. :)

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Sorry I guess you may need to create a front.php template

    If you are not using the activity stream or blog front page you will need to create a page template for both your desktop and mobile theme. When creating these two files you MUST name them the same thing. The content can be different but the names must match.

    So duplicate page.php in each theme folder and rename both files to front.php then add this to the top of each file

    /*
    Template Name: Home
    */

    Then in your admin go to the page that you are using as the front. In the right sidebar you can choose a page template for that page. Choose home.

    If you already are using a custom page template, like my-front-page.php then you would name your mobile theme front page the same thing.

    I’ll update soon with a page template you can edit via admin but for now this is the fix.

    Avatar of Gossy Ukanwoke
    Gossy Ukanwoke
    Participant

    @gossyomega

    I will wait patiently for the update. I still cant get things working.. here is the site am battling with – http://studentscircle.net

    Avatar of Gossy Ukanwoke
    Gossy Ukanwoke
    Participant

    @gossyomega

    i found the culprit. – BP Template Pack JS and Ajax were conflicting with the plugin. I didnt even have to change anything or create front.php .

    Sorry for all the trouble mate. :)

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Thanks, I test with template pack and fix it

    Avatar of Gossy Ukanwoke
    Gossy Ukanwoke
    Participant

    @gossyomega

    and please, when i deactivate the BP Template Pack JS and Ajax, the experience on desktop is crappy. There is no ajax comment boxes in activity. the entire page loads to show the comment box. so it doesnt really go down well having it off.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    I’ll check I think the file global.js is getting loaded twice. Once for template pack and once for mobile. You could try to delete it from the mobile theme and then activate template pack.

    Avatar of Gossy Ukanwoke
    Gossy Ukanwoke
    Participant

    @gossyomega

    did that, but it didnt work..

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    One thing I should mention is that the template pack is outdated and that could be the reason as well. Who knows when I have time i’ll check.

    Avatar of Gossy Ukanwoke
    Gossy Ukanwoke
    Participant

    @gossyomega

    oh great.. i ll keep trying

    Avatar of Stigmartyr
    Stigmartyr
    Member

    @stigmartyr

    @modemlooper – what’s the best way to make it so BP mobile’s front (home) page is the activity page?

    My desktop theme is custom and I’d like to keep it that way, but I think the activity stream would be awesome for mobile users to land on.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    currently it will use whatever page you specify in the WordPress admin. I haven’t worked out a good solution to this.

    Avatar of Stigmartyr
    Stigmartyr
    Member

    @stigmartyr

    Thanks buddy – I did go into the ‘Reading’ options of WP settings but if I change that to anything else my custom theme front page won’t work as it should

    So – I tried making a page titled bp-mobile (after reading an older post) but it still loads my blog not the content of the bp-mobile page. Now this isn’t such a bad position to be in but if I set # of blog posts to show to say “1″ then another classifieds plugin I’m using only shows 1 listing too lol >_<

    I also tried making front.php as a duplicate of my custom theme’s page.php and added the ‘Template Name: Home’ code as detailed but BP-mobile theme still loads the first 10 posts as home page. Ideally (with the present mobile theme) I was going to just make a splash page with some important links or a current event (directions, details, etc.).

    But otherwise what a great theme to have! Many of our users have simply decided to quit upgrading their computers and rely almost entirely on smart phones now so the more we can cater to them the better.

    Everyone is spoiled with the facebook UI I think..

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    The page template route works you just have to set it up correctly. if you have a static page turn the page into page template and then duplicate this in the mobile theme folder by duplicating page.php and adding the same page template title as the main site. WordPress will use the same page template if both match in your desktop theme and mobile theme.

Viewing 17 replies - 1 through 17 (of 17 total)

You must be logged in to reply to this topic.