Facebook Theme v1.4

Release Notes

Following improvements

  • Composer works again for Elgg 1.8.3
  • Shouldn't get any more "Fatal error: headers already sent" type errors.
  • Can unlike entities again
  • No more "deprecated" errors about getIcon function.
  • Only compatible with Elgg 1.8.3+.
  • you need to look in your apache error_log - necesidad => leer y estudiar - dentro archivo llamar 'error-log' para apache - buscar mensaje acerca y cerca 1359316990 (esta es tiempo/hora de dia de problema) and there you will see the reason for the error; y alli tu mirar que sera razon de problema: por favor disculpeme - mi espanol ne es fuerte porque apprendre solo unos semanas!)

  • I have fixed all the problems to this themes..

    1. the header problem - the title of the site would be out - fixed it with css

    2. the message board problem - couldn't post to other members walls - altough the admin could - fixed it with composer.php

    3. comment duplicates - would add a comment to the river and not even say who it was from - fixed it with editting add.php on comments folder

    4. & added my own widgets to the right sidebar - editted two-sidebar.php

    Dang! i editted a lot of things on this just to make it work lol

    now i have 2 more problems to fix!.

    1 : whenever a user ( who is not the admin ) posts on another users wall

    the user can't comment on the status that the user posted to someone elses wall.

    2 : When a user does post on the wall. The user will see it displayed under the messageboard .. it isn't until the user refreshes that he see's it...

     

    image

    anyone got an idea on how to fix this?

    @evan Winslow

    for a facebook theme this sure does have a lot of problem.. it's kinda weird how facebook is a 3 column website, yet this theme only gives you 2 columns .. there's another problem.

    in total 6 problems... :(

    4 down - 2 to go... :)

  • Great job! Internet Explorer 8 seems to have problems displaying the settings menu on the upper right (the small triangle one). Does anyone know how to solve this? Thanks

  • Hi

    I have some problem with this them

    1-the icons of menu blogs , wire and... Not shown , these are displayed only in dashboard.

    2-how can I show widget?  the widget manager not work too.

     

  • @olive

    1-the icons of menu blogs , wire and... Not shown , these are displayed only in dashboard.

    Where is it? What's page?

    2-how can I show widget?  the widget manager not work too.

    Put Widget manager at bottom after FB theme and check again

  • 1-

    you can see that in dashboard icons are displayed

    image

    but in other page icons are disappeared

     

     

    image2-The problem is not solved, it only works for administrator panel, there isn't "add widget" button in user's profile with this plugin or without this plugin

  • About Fatal ERROR...

    "I swept the dirt under the carpet to ..."
    I made changes to the files of the respective directories ->

    elgg/views/failsafe/page/default.php

     elgg/views/failsafe/messages/exceptions/admin_exception.php

  • @olive In start.php

    See after Lines 95-96:

    function facebook_theme_pagesetup_handler() {
        $owner = elgg_get_page_owner_entity();

    You need edit string 'text' in every elgg_register_menu_item('page') function.

    You need to set elgg_view_icon as array

     

    E.g.

     

    For Create Group...

     

    Edit

    elgg_register_menu_item('page', array(
                    'name' => 'groups-add',
                    'section' => 'groups',
                    'text' => elgg_echo('groups:add'),
                    'href' => "/groups/add",
                    'contexts' => array('dashboard'),
                    'priority' => 499,
                ));

     

    On

    elgg_register_menu_item('page', array(
                    'name' => 'groups-add',
                    'section' => 'groups',
                    'text' => elgg_view_icon('users') . elgg_echo('groups:add'),
                    'href' => "/groups/add",
                    'contexts' => array('dashboard'),
                    'priority' => 499,
                ));

  • Owner block menu Customizing

     

    In start.php

    After Lines 507-508:

    function facebook_theme_owner_block_menu_handler($hook, $type, $items, $params) {
        $owner = elgg_get_page_owner_entity();

    Edit as in aboving comment all 'text' string in ElggMenuItem::factory

     

    E.g.

    For Wall

     

    edit

    $items['profile'] = ElggMenuItem::factory(array(
                'name' => 'profile',
                'text' => elgg_echo('profile:wall'),
                'href' => "/profile/$owner->username",
                'priority' => 1,
            ));

    As

    $items['profile'] = ElggMenuItem::factory(array(
                'name' => 'profile',
                'text' => elgg_view_icon('user') . elgg_echo('profile:wall'),
                'href' => "/profile/$owner->username",
                'priority' => 1,
            ));

     

     

    Add in there (after lines 544-545) your own construction of items with any link/text/icon

     

    For All Blogs

    Add

    $items['blog'] = ElggMenuItem::factory(array(
                'name' => 'blog',
                'text' => elgg_view_icon('speech') . elgg_echo('blogs'),
                'href' => "/blog/all",
                'priority' => 1,
            ));

     

     

    CHEERS ;)

  • @RvR

    Thanks a lot for your complete explanation.The icons are  displayed now :)

    If this template  support widgets,was perfect template.

  • @RvR

    I have other problem now,

    in default ,for example when I click on  file I go to my file page or when I click on blog I go to myblog page, but in your code I go to all blog page, I change your code from

    $items['blog'] = ElggMenuItem::factory(array(
                'name' => 'blog',
     'text' => elgg_view_icon('speech') . elgg_echo('blogs'),
     'href' => "/blog/all",
                'priority' => 1,
            ));

    to

                    $items['blog'] = ElggMenuItem::factory(array(
                'name' => 'blog',
                'text' => elgg_view_icon('speech-bubble-alt') . elgg_echo('blog'),
    'href' => "/blog/$owner->username",
            ));

    it likes friends code to go to my blog

    but with this kind of cod I get this error in blog and bookmark page:

    Please change your bookmark for this page

    and if use this code for wire , file , pages ,...

    like this for wire:

                    $items['thewire'] = ElggMenuItem::factory(array(
                'name' => 'thewire',
                'text' => elgg_view_icon('speech-bubble') . elgg_echo('thewire'),
                'href' => "/thewire/$owner->username",
            ));

    I get this error:

    Sorry. We could not find the page that you requested

     

  • @olive

    1- This tip only for facebook_theme_owner_block_menu_handler function

    2 -  Be sure, your code must be place between if ($owner instanceof ElggUser) { section:

    if ($owner instanceof ElggUser) {

    YOUR_CODE

    }

    Check it and try again

     

     

    And about

    If this template  support widgets,was perfect template

    Soon my friend Alex Falk add new article about how to fix it

  • 1- This tip only for facebook_theme_owner_block_menu_handler function

    Excuse me but I do not understand what you mean

    2-Be sure, your code must be place between if ($owner instanceof ElggUser) { section:

    I place it in the section, my code is:

        if ($owner instanceof ElggUser) {
            $items['info'] = ElggMenuItem::factory(array(
                'name' => 'info',
                'text' => elgg_view_icon('info') . elgg_echo('profile:info'),
                'href' => "/profile/$owner->username/info",
                'priority' => 2,
            ));
            
            $items['profile'] = ElggMenuItem::factory(array(
                'name' => 'profile',
                'text' => elgg_view_icon('grid') . elgg_echo('profile:wall'),
                'href' => "/profile/$owner->username",
                'priority' => 1,
            ));
            
            $items['friends'] = ElggMenuItem::factory(array(
                'name' => 'friends',    
                'text' => elgg_view_icon('users') . elgg_echo('friends'),
                'href' => "/friends/$owner->username",
            ));

                    $items['thewire'] = ElggMenuItem::factory(array(
                'name' => 'thewire',
                'text' => elgg_view_icon('speech-bubble') . elgg_echo('thewire'),
                'href' => "/thewire/$owner->username",
            ));

        }

    the problem is if I use this code in href :

    'href' => "/thewire/all",

    all thing is good

    but if I use this code in href:

    'href' => "/thewire/$owner->username",

    I get this error:

    Sorry. We could not find the page that you requested



  • Missed

    'href' => "/thewire/owner/$owner->username",

  • Oh,..that's works,thanks a lot for your help :)

  • Hello i'm very new to all this but I'm trying to figger out how to rename the current Profile info like the Moble Number and all, How to rename the Likes and rename pages and rename files? also whould love to know how to edit the grafics like the top bar and the buttons as I can't seem the find any pics in the folder to edit. thank you for your help ^^

  • Also I whould like the add Relasonship status's for dateing and family where do i add this code as I found one I just have no idea where to put it and for the Family I want to make it so they can list alot of members one after the other and the one i have will not work of add another

     

  • It would be great if it had the delete option on the friend create (I'm trying to solve it on my own in a newbie way). 

  • For those of you who are having display problems with the Notifier plugin, you might as well try this workaround:

    On \facebook_theme\views\default\css\elements\navigation.php:

    .elgg-menu-topbar-default > li > a {
        padding: 8px 4px 0;
        margin: 0 1px;
    }

    Adding the following lines below "margin" and just before the closing bracket solves the display problem.

        padding-left: 2px;
        padding-right: 2px;

    Also, on views\default\facebook_theme\css.php, the following lines should be added below "text-align" on the #facebook-topbar-logo class:

        padding-left: 1px;
        padding-left: 2px;

  • Any suggestions as to how can I change the icons on the sidebar?

    image

    What I'm trying to do is to change the class reference so that the icons would use a different CSS class. I did find the following code when I viewed the HTML source on the page:

    <li class="elgg-menu-item-messages"><a href="http://fegelbook.strawberryforum.org/messages/inbox/lissie"><span class="elgg-icon elgg-icon-mail "></span>Messages</a></li>

    But I couldn't seem to trace them down on the PHP/CSS files.

  • Nver mind my previous comment, just figured it out thanks to RVR.

  • Sorry for triple-posting, but was it just me, or are the header bars anchored in a fixed position? On the original Facebook site, when you browse it on a lower-res screen or a smaller window, you can still scroll through the bar for the other elements to show up. With the Elgg FB theme, the top bar stays put even if you scroll sideways.

    Also, is there a workaround for the CSS positioning bug on the login page? On Chrome the "Register", "Forgot password" and Log In buttons are positioned just fine, but not on FF. I've heard that this is a known bug on the Firefox layout engine, but idk of any workarounds for this.

  • problem with status bar color

     

    Hi,

    i am having this problem. the color of status bar is yellow. can you please help...and set it as default.

  • Can someone point me to the right place where I can add more links to pages.

    I installed some plugins that adds a new main menu link on the default theme, but when viewing it with this theme it doesn't show.

    Thank you

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: 64818
  • Recommendations: 101

Other Projects

View Evan Winslow's plugins