My Ultimate Cool Theme v2.1

Release Notes

I made my best for this release :

-Don't need to replace any files with the sprites the plugin does it for you

-Bug fixes, like messageboard and comments duplicated

Please follow https://www.github.com/WISB/cool_theme or http://developers.wisb.me/elgg/ for the latest code

  • many improvements and bugfixes check this out!

  • It seams, I must put name the folder "WISB", otherwise, some icons cannot show up. 

    There are some code like this in the code:

    elgg-icon {background: transparent url(<?php echo elgg_get_site_url(); ?>mod/WISB/_graphics/elgg_sprites.png)

  • The "css" path in start.php must be changed from

    elgg_extend_view('css/elgg', 'cool_theme/css');

    to 

    elgg_extend_view('css/elgg', 'WISB/css');

  • If anyone has problems with the avatar-image size like me,

    you can edit the file views/default/page/elements/owner_block.php


    find the line: $header = elgg_view_entity_icon($owner, 'large');

    and change it to:

    $header = elgg_view_entity_icon($owner, 'small');

    or

    $header = elgg_view_entity_icon($owner, 'medium');



    you can play with the html code so that it looks like facebook :-)

    An example:

    $header = elgg_view_entity_icon($owner, 'small').'&nbsp;&nbsp;<span style=\'font-weight:bolder;\'><a href="' . $owner->getURL() . '">' . $owner->name . '</a></span><br /><br />';



     

     

  • To disable thewire("Status") on other profiles(like friends profile) you could modify the code in start.php.

    Why should you do that?

    If you post a message with the option "Status" on the profile from your friend then the message is added to your wall and if you disable that then you have the same thing like facebook, you can post direct messages to your friends wall.

     

    change:

    function facebook_theme_composer_menu_handler($hook, $type, $items, $params) {
        $entity = $params['entity'];
        
        if (elgg_is_active_plugin('thewire') && $entity->canWriteToContainer(0, 'object', 'thewire')) {
            $items[] = ElggMenuItem::factory(array(
                'name' => 'thewire',
                'href' => "/ajax/view/thewire/composer?container_guid=$entity->guid",
                'text' => elgg_view_icon('share') . elgg_echo("composer:object:thewire"),
                'priority' => 100,
            ));

     

    to:

    function facebook_theme_composer_menu_handler($hook, $type, $items, $params) {
        $entity = $params['entity'];

        $pageowner = elgg_get_page_owner_entity();

        if (elgg_is_active_plugin('thewire') && $entity->canWriteToContainer(0, 'object', 'thewire') && $pageowner->username == $_SESSION['user']->username) {
            $items[] = ElggMenuItem::factory(array(
                'name' => 'thewire',
                'href' => "/ajax/view/thewire/composer?container_guid=$entity->guid",
                'text' => elgg_view_icon('share') . elgg_echo("composer:object:thewire"),
                'priority' => 100,
            ));

     

     

  • correction on github for WISB bad links

  • and no more status on other people boards thanks to @deny

    http://github.com/WISB/cool_theme

Stats

  • Category: Themes
  • License: Expat (MIT) License
  • Updated: 2014-11-17
  • Downloads: 15872
  • Recommendations: 42

Other Projects

View Staszek's plugins