My Ultimate Cool Theme v2.1.1

Release Notes

Bugfixes from 2.1

  • hi stan.... nice theme ...
      * No option to delete postings....
    how to fix this... help... 

  • Fatal error: Call to a member function getName() on a non-object in /engine/lib/navigation.php on line 129

    I dont get this theme to start at all, anyone else that has recieved this error?

  • Hi, 

    I can't find a way to edit the sidebar from the dashboard? How do I remove the Thank You link and text from it? My installation didn't come with a sidebar_alt.php file , but downloaded from this link?

     

    M

  • Hi, i got the following after a user log in:

    Fatal Error.

    An unrecoverable error has occurred and has been logged. Contact the site administrator with the following information:

    Exception #1346425290.


    Maybe someone can help me?

     

    Cheers, Pascal

     

  • @ melcior to add a delete button you must edit mod/thewire/views/default/river/object/thewire/create.php

     

    change it to:


    <?php
    /**
     * File river view.
     */

    $object = $vars['item']->getObjectEntity();
    $excerpt = strip_tags($object->description);
    $excerpt = thewire_filter($excerpt);

    $subject = $vars['item']->getSubjectEntity();
    $subject_link = elgg_view('output/url', array(
        'href' => $subject->getURL(),
        'text' => $subject->name,
        'class' => 'elgg-river-subject',
        'is_trusted' => true,
    ));

    $object_link = elgg_view('output/url', array(
        'href' => "thewire/owner/$subject->username",
        'text' => elgg_echo('thewire:wire'),
        'class' => 'elgg-river-object',
        'is_trusted' => true,
    ));

    $summary = elgg_echo("river:create:object:thewire", array($subject_link, $object_link));
            if ($object->canEdit()) {

                echo "<div class='delete_note' style='float:right;'>" . elgg_view("output/confirmlink",array(
                'href' => $vars['url'] . "action/thewire/delete?guid=" . $vars['item']->object_guid,
                'text' => elgg_echo('delete'),
                'confirm' => elgg_echo('deleteconfirm'),
                'is_action' => true,
                'priority' => 200,

                )) . "</div>";

            }
    echo elgg_view('river/elements/layout', array(
        'item' => $vars['item'],
        'message' => $excerpt,
        'summary' => $summary,
    ));




    ?>


  • @ someco it could be a problem with plugins...

    deactivate the plugins...

  • @ Ve thanks for the "like button fix" :-)

  • @ Ve edit cool_theme_path/views/default/river/object/groupforumtopic/create.php to add delete button for "discussions" in groups, but it is only for discussions not for "posts on messageboard"

     

    <?php
    /**
     * Group discussion topic river view.
     */

    $object = $vars['item']->getObjectEntity();
            if ($object->canEdit()) {

                echo "<div class='delete_note' style='float:right;'>" . elgg_view("output/confirmlink",array(
                'href' => $vars['url'] . "/action/discussion/delete?guid=" . $vars['item']->object_guid,
                'title' => elgg_echo('delete'),
                'text' => elgg_view_icon('delete'),
                'confirm' => elgg_echo('deleteconfirm'),
                'is_action' => true,
                'priority' => 200,

                )) . "</div>";

            }
    echo elgg_view('river/item', array(
        'item' => $vars['item'],
        'attachments' => elgg_view('object/groupforumtopic/river', array('entity' => $object)),
    ));

  • @ Ve for the "messageboard" delete button edit cool_theme_path/views/default/river/object/messageboard/create.php

     

    <?php
    /**
     * Post comment river view
     */
    $object = $vars['item']->getObjectEntity();
    $comment = $vars['item']->getAnnotation();
           if ($object->canEdit()) {

                echo "<div class='delete_note' style='float:right;'>" . elgg_view("output/confirmlink",array(
                'href' => "action/river/delete?id=".$vars['item']->id,
                'title' => elgg_echo('delete'),
                'text' => elgg_view_icon('delete'),
                'confirm' => elgg_echo('deleteconfirm'),
                'is_action' => true,
                'priority' => 200,

                )) . "</div>";

            }
    echo elgg_view('river/elements/layout', array(
        'item' => $vars['item'],
        'message' => elgg_get_excerpt($comment->value),
    ));

     

    In groups you need to have access(admin etc) to see the button.

     

  • @ Ve fix for "The postings within a Group, are visible in wall and activity without headless"

    edit cool_theme_path/views/default/river/elements/body.php

    change the lin:

    $summary = elgg_extract('summary', $vars, elgg_view('river/elements/summary', array('item' => $vars['item'])));

    to

    $summary = elgg_extract('summary', $vars, false);

  • Fix for blog delete button cool_theme_path/views/default/river/object/blog/create.php

     

    <?php
    /**
     * Blog river view.
     */

    $object = $vars['item']->getObjectEntity();
           if ($object->canEdit()) {

                echo "<div class='delete_note' style='float:right;'>" . elgg_view("output/confirmlink",array(
                'href' => "action/river/delete?id=".$vars['item']->id,
                'title' => elgg_echo('delete'),
                'text' => elgg_view_icon('delete'),
                'confirm' => elgg_echo('deleteconfirm'),
                'is_action' => true,
                'priority' => 200,

                )) . "</div>";

            }
    echo elgg_view('river/item', array(
        'item' => $vars['item'],
        'attachments' => elgg_view('object/blog/river', array('entity' => $object)),
    ));

     

  • Fix for page delete button cool_theme_path/views/default/river/object/page/create.php

     

    <?php
    /**
     * Page river view.
     */

    $object = $vars['item']->getObjectEntity();
           if ($object->canEdit()) {

                echo "<div class='delete_note' style='float:right;'>" . elgg_view("output/confirmlink",array(
                'href' => "action/river/delete?id=".$vars['item']->id,
                'title' => elgg_echo('delete'),
                'text' => elgg_view_icon('delete'),
                'confirm' => elgg_echo('deleteconfirm'),
                'is_action' => true,
                'priority' => 200,

                )) . "</div>";

            }
    echo elgg_view('river/item', array(
        'item' => $vars['item'],
        'attachments' => elgg_view('object/page/river', array('entity' => $object)),
    ));

  • @ stan

    we make you additional work for the new release :-)

  • @ Ve

     

    What do you mean with "all headers"?

  • I understand now, but how we can fix it?

  • Thanks for the new version (I downloaded from the "download 2.1.1" button but version number says 2.1. Maybe I did something wrong).

    Also on 2.1 I hit the usual index page error that comes across on all facebook themes. Index page defined using Widget Manager. 

    Is there a way to make this theme not to effect the index page? regards.

    Fatal Error.

    Redirect could not be issued due to headers already being sent. Halting execution for security. Search http://docs.elgg.org/ for more information.

    SecurityException Object
    (
    [message:protected] => Redirect could not be issued due to headers already being ..................................

    ........................

     

  • @ Ve

    I have fixed it.

    add the two lines in cool_theme_path/languages/en.php

        'river:messageboard:group:default' => '%s posted on %s',
        'river:messageboard:user:default' => '%s posted on %s',

    you can change it... it's just an example :)

  • We are a good team Ve :-)

  • @ Ve

    I have a simple solution for the bug "Responses to discussions are seen as "post" and as response in the wall (within a group)"

    Just comment in mod/groups/actions/discussion/reply/save.php the line //add_to_river('river/annotation/group_topic_post/reply', 'reply', $user->guid, $topic->guid, "", 0, $reply_id);

    or remove it.

    New Responses are not visible on the river.

     

  • @ Ve

    For all "Responses on the river" you can edit:

    mod/groups/views/default/discussion/replies.php


    If you comment the whole code in the file or remove the whole code from the file then the posts are not visible on the river, but there is one problem, you will get "lines" on the river with that change.

    I don't know yet how to remove the lines.

  • Great Plugin !! Recomended !!

    But is there any a simple code to show blog in my profile's sidebar ? 

    Because there is no "add widget" like an ussual theme. Anyone help ?

  • @kuncoro

    change views/default/page/layouts/two_sidebar.php



        <?php

        /**

         * Elgg 2 sidebar layout

         *

         * @package Elgg

         * @subpackage Core

         *

         * @uses $vars['content'] The content string for the main column

         * @uses $vars['sidebar'] Optional content that is displayed in the sidebar

         * @uses $vars['sidebar_alt'] Optional content that is displayed in

        the alternate sidebar

         * @uses $vars['class']   Additional class to apply to layout

         */


        $class = 'elgg-layout elgg-layout-two-sidebar clearfix';
        if (isset($vars['class'])) {
        $class = "$class {$vars['class']}";
        }
        ?>

        <div class="<?php echo $class; ?>">
        <div class="elgg-sidebar">
        <?php echo elgg_view('page/elements/sidebar', $vars); ?>
        </div>
        <div class="elgg-body">
        <div class="elgg-head">
        <?php echo elgg_view('page/elements/title', $vars); ?>
        </div>
        <?php
        // allow page handlers to override the default header
        ?>
        <div class="elgg-sidebar-alt">
        <?php echo elgg_view('page/elements/sidebar_alt', $vars); ?>
        <?php $num_columns = elgg_extract('num_columns', $vars, 1);
        $exact_match = elgg_extract('exact_match', $vars, false);
        $show_access = elgg_extract('show_access', $vars, true);
        // show add widgets:off/on
        $show_add_widgets = elgg_extract('show_add_widgets', $vars, true);
        $owner = elgg_get_page_owner_entity();

        $widget_types = elgg_get_widget_types();

        $context = elgg_get_context();
        elgg_push_context('widgets');

        $widgets = elgg_get_widgets($owner->guid, $context);

        if (elgg_can_edit_widget_layout($context)) {
        if ($show_add_widgets) {
        echo elgg_view('page/layouts/widgets/add_button');
        }
        $params = array(
        'widgets' => $widgets,
        'context' => $context,
        'exact_match' => $exact_match,
        );
        echo elgg_view('page/layouts/widgets/add_panel', $params);
        }

        $widget_class = "elgg-col-1of{$num_columns}";
        for ($column_index = 1; $column_index <= $num_columns; $column_index++) {
        if (isset($widgets[$column_index])) {
        $column_widgets = $widgets[$column_index];
        } else {
        $column_widgets = array();
        }

        echo "<div class=\"$widget_class elgg-widgets\"
        id=\"elgg-widget-col-$column_index\">";
        if (sizeof($column_widgets) > 0) {
        foreach ($column_widgets as $widget) {
        if (array_key_exists($widget->handler, $widget_types)) {
        echo elgg_view_entity($widget, array('show_access' =>
        $show_access));
        }
        }
        }
        echo '</div>';
        }
        ?>
        </div>
        <div class="elgg-body elgg-main">
        <?php
        // @todo deprecated so remove in Elgg 2.0
        if (isset($vars['area1'])) {
        echo $vars['area1'];
        }
        if (isset($vars['content'])) {
        echo $vars['content'];
        }
        ?>
        </div>
        </div>
        </div>

  • This is an attractive theme.Thanks.

    Login screen is diminished to a line, wih all fields invisible making is impossible to login.

    To repeat: Click 'register" and on the 'register" form click 'cancel'. Then you see the diminished login form. Refresh the screen and the login form comes back in full.

    eng: elgg 1.8.8, custom index plugin disabled, ProfileManager v7.4, WidgetManager v4.3 (with WidgetManager custom index -unfortunately- disabled).

    regs.

Stats

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

Other Projects

View Staszek's plugins