Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Pages not formatting correctly,

  • Avatar of Jarith
    Jarith
    Participant

    @jarith

    Hi all, I am new to BuddyPress and just started using WordPress. I recently decided to create a new website for a small group of friends and I just enjoy creating stuff like this. I had been using just a phpBB forum for the past 2 years for the same group.

    I am running WordPress 3.9.1 and BuddyPress 2.0.1 on BLueHost.com. My website is http://www.domanygames.com. While trying to choose a forum I had first picked BuddyPress (which I should have stayed with) then I tried bbpress so I deactivated BuddyPress and removed all the pages it had automatically created. Moving back to BuddyPress, and reinstalling it, I had to manually create the pages it previously made for me. I am only mentioning this in case this may be a cause of the issue below.

    Some of the pages, like the Profile page below are not formatting. There is HTML as the header and in this case I am logged into the site yet none of my information is here? I have tried removing BuddyPress and then adding it back in more than once and nothing is fixing this. Again excuse my lack of experience in this. I am learning as I go.

    Thanks.

    Profle Error

Viewing 5 replies - 1 through 5 (of 5 total)
  • Avatar of Jarith
    Jarith
    Participant

    @jarith

    Anyone?

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @jarith Have you tried deactivating all plugins except BP including those you might have in mu-plugins folder? If you added any script/code in your theme’s functions.php or in bp-custom.php, remove those as well.

    Avatar of Jarith
    Jarith
    Participant

    @jarith

    Thank you! You reminded me of some code that I had inserted into functions.php to try to hide the ‘private’ prefix that would show up on forums that were marked that way. I had found the code below on another forum.

    Now I just have to figure out a way to still hide the prefix and not repeat this again.

    function the_title_trim($title) {
    $title = attribute_escape($title);
    $findthese = array(
    ‘#Protected:#’,
    ‘#Private:#’
    );
    $replacewith = array(
    ”, // What to replace “Protected:” with
    ” // What to replace “Private:” with
    );
    $title = preg_replace($findthese, $replacewith, $title);
    return $title;
    }

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @jarith Marking this topic as resolved.

    As to removing the “Private” and “Protected” prefices, you could try adding bbPress forum conditional to your function or to the one Konstantin (first comment in that post) posted
    e.g.

    if ( class_exists('bbPress') ) {
          if ( is_bbpress() ) {
             // do this
          }
    }

    Undoubtedly, you’ll get additional support at the bbPress forums :)

    Avatar of Jarith
    Jarith
    Participant

    @jarith

    Hmmm, I plugged in the code you suggested and it didn’t seem to remove the ‘private’ prefix. Adding in the code Konstantin suggested only brought back my original issue.

    Is there some place specific in the function.php I am supposed to be adding either of these? Or is it another function.php file other than the one in my theme?

    Thanks for all the help.

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

The topic ‘[Resolved] Pages not formatting correctly,’ is closed to new replies.