Facebook Theme v1.3

Release Notes

Thanks to @imoni for his many contributions and willingness to have them incorporated into the original version.

Following changes:

  • Incorporates many of imoni's changes 
  • Adds support for tidypics 
  • Updates manifest (might help with messageboard problem?)
  • Updates topbar (now floats, single color, etc.)
  • Fixes header login problem in 1.8.1 (may no longer work in 1.8.0)
  • Adds icons to several menu items

Just as an update, I haven't been able to fix the messageboard problem, but I also think it may be a server config issue/messageboard issue. I haven't personally been able to reproduce it, for instance, so I'm not sure the fault lies with this theme.

  • @Joehenriquw7

    in start.php and add these lines in menu section

            if (elgg_is_active_plugin('members')) {
                elgg_register_menu_item('page', array(
                    'section' => 'more',  
                    'name' => 'members',
                    'text' => elgg_echo('members'),
                    'href' => "/members",
                    'contexts' => array('dashboard'),
                ));

  • add a link to the dashboard by adding this to start.php

                    if (elgg_is_active_plugin('members')) {
       elgg_register_menu_item('page', array(
        'section' => 'more',
        'name' => 'members',
        'text' => elgg_echo('members'), 
        'href' => "/members",
        'contexts' => array('dashboard'),
       ));
      }

     

     

    or u can also do this, i added all my links into the drop down menu(Not just settings, notifications and logout, i added all of them like a more button and renamed it to "More" insted of "Account" to add the item to the drop down menu use this:

                    if (elgg_is_active_plugin('members')) {
    elgg_register_menu_item('topbar', array(
        'section' => 'more',
        'name' => 'members',
       'parent_name' => 'account',
        'text' => elgg_echo('members'), 
        'href' => "/members",
       'section' => 'alt',
       ));
      }

    U Can change these to be whatever plugin u want to display, just change everywhere it was members to blog or file or tidypics, whatever the folder in the mod  for the plugin is named, has to be perfect! so none of this ( the mod file name is blog, and u try to use Blog, must match case sesitive and all) hope this helps u browser members!

  • imoni dont forget to close it out at the end with a }

  • i copied so it was left :P sorry for that lolx

  • heck yeah! messageboard bug fixed for facebook theme! so running in 1.8.01 will make the messageboard bug happen, running this theme in 1.8.1 the messageboard bug DOES NOT HAPPEN and everything runs great! imoni, evan, thanks guys, great plugin, love it!

  • so now the search bar randomly shows up in my header in a strange spot before bing loged in, so main landing page? any ideas?

  • in /mod/facebook_theme/start.php search this

    		elgg_unextend_view('page/elements/header', 'search/search_box');

    and insert following code after that

     if(elgg_is_logged_in()==false) { elgg_unextend_view('page/elements/header', 'search/header'); }
  • I would like to add the home icon to 'Home' in the top navigation bar that logged in users will be able to access, in this theme. Can anyone tell me how to get that done?

    Thanks

  • Home button is already there on topbar, and the navigation always change, where exactily you want to add home button, can u provide screen shot where you want home button?

  • Hi!

    I can not make it work profile / profile / username with this theme.

    If you turn off the theme, accepts the function perfectly. Activating the theme, when I choose the profile is the default directory (/ dashboard)

    Does anyone have any idea why?

  • @imoni I want to use an icon for 'Home' instead of the word home. I'm not able to upload a screen shot to show what I mean. But instead of using the word 'Home' for the home button in the topbar, I want to use an image, or icon instead.


  • @MRR33 it is very simple, go to

    /mode/facebook_theme/start.php

    search

    'text' => elgg_echo('home'),

    Replace this line with

    'text' => elgg_view_icon('home'),

  • @Antonio Arebalo use this:

    /profile/$user->username

  • @imoni many thanks for this, I'll try it now.

  • The theme (1.3) and Elgg (1.8.1) are original without any changes.

    If I activate the profile, when I want to get redirected to the dashboard.

    If you disable the profile, see my avatar on the left and I can go (only I can not see the content).

    In start.php:

    if (elgg_is_active_plugin('profile')) {

    elgg_unregister_menu_item('topbar', 'profile');

    elgg_register_menu_item('topbar', array(

    'name' => 'profile',

    'section' => 'alt',

    'text' => "<img src=\"{$user->getIcon('topbar')}\" class=\"elgg-icon elgg-inline-block\" alt=\"$user->name\"/>" . $user->name,

    'href' => "/profile/$user->username",

    'priority' => 1,

    ));

    }

    without the template works fine.

    Any idea?

  • use this

    if (elgg_is_active_plugin('profile')) {

    //code

    }

  • how can we use a link like say recommendations and place the if plugin is active code with all its stuff, array => (profile) so it shows up on the profile page, but i cant seem to get the proper ownership in the link itself so im asking, where to point the href ="????" to view a persons recommendations u go to the following address "example.com/recommendations/owner/username" but how would i right it, iv tried to user "example.com/recommendations/owner/$user->username" and using "example.com/recommendations/$user->username" but none of these have worked, what happens is your veiwing this persons profile and when u click the recommendations link on their profile it goes to your recommendations, any ideas?

  • my code:

    if (elgg_is_active_plugin('recommendations')) {
       elgg_register_menu_item('page', array(
        'section' => 'more', 
        'name' => 'recommendations',
        'text' => 'Recommendations',
        'href' => "/recommendations/owned/$user->username",
        'contexts' => array('profile'),
       ));
      }

  • @Jpardee where is the recommendations plugin? can u tell me?

    and post the full address of anyone's recommendations page like

    http://community.elgg.org/pg/plugins/developer/mnrtrq

    so that I can check what will be the exact url for this

  • i just took the recommendations plugin for 1.7 and ran through the files and updated a version for 1.8, everything works 100%, the address, ill upload my version of the recommendations into my plugins for a simple download so u dont have to write any code and the address i want if for other users to view the current persons page they are viewing's recommendations, so its the recommendation's received which is this address http://hazebook.net/recommendations/JPardee/view/

  • I'm confused ...

    Elgg 1.8.1 has other requirements that elgg 1.8.0.1?

    If I install elgg 1.8.0.1 works fine. But if I upgrade to 1.8.1 (or make a new installations) I can not enter the profile with this template.

    Any Idea?

  • @Antonio - try this: find the function facebook_theme_profile_page_handler() in start.php and change all the "return;" statements to "return true;"

Evan Winslow

Software Engineer at Google. Elgg enthusiast. I wrote the Javascript and CSS frameworks for 1.8.

Stats

  • Category: Themes
  • License: GNU General Public License (GPL) version 2
  • Updated: 2014-11-17
  • Downloads: 67301
  • Recommendations: 81

Other Projects

View Evan Winslow's plugins