Frontpage Campaign v0.91

Release Notes

Required plugin: File (File upload und file embeding is only available for Admin)

Sugguested plugins:

cash's "Elgg-Following"

iionly's "Elgg 1.8: German Language Pack"

jeroen's "Profile Manager"

ManUtopiK's "Brainstorm your elgg 1.8"

sem's "Threads"

Many thanks to 13, sem and slyne. (i use the code from "phloor_flipwall", "phloor_socialshareprivacy", "videolist", "donate")

NEW: Donating via Papal

NEW: The 'Quick and Dirty #number#-System' ;-) is canceled. Now you control the visible of the content with file and site-settings.

NEW: Optional Picture and Grouping to category for "Recources". 

To make the frontpage campaign:

copy frontpage campaign to your mod folder

Watch the quick guide video

Go to the frontpage campaign plugin settings and edit (like in the setting described) and save.

Languages:

English

German

Suggestions welcomed

  • niccce; i liked the video presentation also ;-) it is good to see such good work ! thanks ;-O

  • thx coolsam
    drup-man^ . . . you know, i love your comment ;-))

  • Hi manfed,

    I really want to use this plugin but I can't seem to get it to work... I watched the videos and read that getting the blank page is normal, expect mine is completely blank  - no header or footer or tabs just blank white for all the pages of my site, I can't log into the admin section either, it just shows white.  I tried deleteing the plugin via ftp and my site came back.  I tried uploading and activating it again and the same thing happened.  Any ideas?  

    Thanks

     

    Matt

  • hi matt,
    the plugin "custom index page" must be deactivated
    did you run upgrade.php to clear cashes after activating?
    yours
    manfred

  • Ok have deactivated the custom index plugin and it worked, thank you! :)

  • Okay I have a favicon plugin which sets my favicon.ico  It seems this plug-in overrides that? How do I get my favicon to display?  Secondly after installing and placing plugin at the bottom along with a deactivated custom index 1.8 plugin this plugin seems to override the Bright Theme 1.1.1 plugin css settings. I am getting a blue hue over the menu and header area as well as a change in the search box.  I also lost the word search.  Can you point me where I can correct this? Thank you

  • @cheyennemtnman please excuse that i am answering so late
    to change the favicon, copy your favicon to . . .\mod\frontpage_campaign\_graphics\favicon.ico 
    yes, the plugin overides some css settings. to correct this, edit . . . mod\frontpage_campaign\views\default\frontpage_campaign\css.php 
    hope my hints help you, if not tell me :-)
    greetings from cologne
    manfred 


     

     

  • Hi Manfred, this is a great plugin. I am having a small issue with the socialshare part of it, when you click to activate facebook share the facebook icon just dissapears, twitter and google plus share work fine.

    I have tried using different browsers but the result is the same in all of them. Has this issue came up before? The site is live at www.olliocity.co.uk if you want to have a look for yourself?

     

    I have modified the css to work with the bright theme plugin and footer editor plugin. I dont think this has affected it. Other than that I havnt modified the plugin and Im running elgg 1.8.8

     

    Marc

  • hi mark,
    i guess, facebook requires the title of your page
    you did not serve that
    https://developers.facebook.com/tools/debug/og/object?q=www.olliocity.co.uk 

    check with php-debugger your indexpage source if the title variable has content

    yours manfred 

  • Thanks manfred, ive had a quick look at it. If I add the following metatags in /views/default/page/elements/head.php

    Will Facebook be able to read the title from this?

     

    $version = get_version();
    $release = get_version(true);
    ?>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="ElggRelease" content="<?php echo $release; ?>" />
        <meta name="ElggVersion" content="<?php echo $version; ?>" />
         <html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:og="http://ogp.me/ns#"
          xmlns:fb="https://www.facebook.com/2008/fmbl"&gt;
               <title>Olliocity</title>
              <meta property="og:title" content="Olliocity" />
              <meta property="og:type" content="social" />
              <meta property="og:url" content="http://www.olliocity.co.uk/" />
              <meta property="og:image" content="http://www.olliocity.co.uk/" />
              <meta property="og:site_name" content="Olliocity" />
              <meta property="og:description" content="" />
              <meta property="og:locale" content="de_DE" />
              <meta property="fb:admins" content="USER_ID"/>

          

              




        <?php echo elgg_view('page/elements/shortcut_icon', $vars); ?>

  • . smile . perhaps ;-)
    check it, with the facebook debuggerpage
    https://developers.facebook.com/tools/debug/og/object?q=www.olliocity.co.uk 

    because, i used the "socialshareprivacy" not only on the index page
    i used global variables

    look, how i did it in views/default/page/elements/head.php

     

  • Im another step closer :) all the og fields are satisfied now and checked with the debugger, the button still isnt working though :(

    Is there anything else I need to check or add?

    Thanks for helping out.

  • o.k. :-) 
    did you turn off your custom theme, to check it's not the custom theme? 

  • WOW! This is a great plugin, the video presentation also very nice!

    Just revamped the site so will maybe not use it but thank you Manfred for this very very nice piece!

  • Hi Manfred, yes I tried disabling the custom theme, it didnt make any difference I have no idea why its not working, or why its just the facebook share? Ive been playing about with the front page part of the plugin, it's amazing and it looks great too. Is there any way to resize the video on the frontpage? I couldnt find it in the css.

  • sry, you must figure out yourself, why the facebook share does not work, because i have poor java knowledge ;-)

    to resize the video preview image look at: mod\frontpage_campaign\\views\default\object\videolist_item.php

    and change width and height here:

    elseif (elgg_in_context('gallery')) {
    echo '<div class="videolist-gallery-item">';
    $content = "<div class='c_i_c_title'>" . elgg_view('output/url', array(
    'text' => elgg_get_excerpt($entity->title, 100),
    'href' => $entity->getURL(),
    )) . "</div>";
    $excerpt = elgg_get_excerpt($entity->description,300);
    $content .= "<div class='c_i_c_subtitle'> $excerpt $comments_link</div>";
    echo elgg_view_image_block(elgg_view("videolist/watch/{$entity->videotype}", array(
    'entity' => $entity,
    'width' => 260,
    'height' => 200,
    )), $content );
    echo '</div>';

     

  • Thanks manfred I'm not so good with java either, I'll do my best to get to the bottom of it. It could be a facebook glitch, I've read a few posts ford wordpress with people having the same issue and it just magically curing itself. Its a very small part of a great plugin and wont stop me using it. Thank you for putting your time into it. If I come accross a solution or if it resolves itself I will post back here with any fixes or solutions incase anyone else has the same issue. Thanks for all your help :)

  • So, how the heck do you set this thing up anyway?

  • Is there a way to disable the videolist function in this plugin. Videolist does not work well and causes errors in some systems. It therefore makes the entire plugin unusable unless the videolist function can be turned off.

    Thanks for any advice.

  • edit index.php of the mod with comment at line 420

    // if ((int) $videolistcount > 0 ) {
    //  $content_videos = "<div class='frontpage_campaign-bar'><div class='clearfix'>" . "<div class='c_i_c_bar'>" . elgg_echo('frontpage_campaign:videos') . "</div><div class='frontpage_campaign-wrapper'>" .$content_videos  . "</div></div>"  . "</div>" ;
    // }

    and add the new line:

    $content_videos = "";

  • Thanks Manfred

    I tried this, but Videos still end up on the More menu with Videolist enabled and giving an error message when Videos are attempted to be uploaded.

    Is there a way to prevent Videolist from being enabled at all?

    Thanks again

  • replace in start.php the function custom_index_init() with this:

    function custom_index_init() {
    //    elgg_register_library('elgg:videolist', elgg_get_plugins_path() . 'frontpage_campaign/lib/videolist.php');
    //
    //    // add a site navigation item
    //    $item = new ElggMenuItem('videolist', elgg_echo('videolist'), 'videolist/all');
    //    elgg_register_menu_item('site', $item);
       
        if (!elgg_is_admin_logged_in()) {
        elgg_unregister_menu_item('site', 'file');
        elgg_unregister_menu_item('embed', 'file');
        }

        // Extend system CSS with our own styles
        elgg_extend_view('css/elgg','videolist/css');

        // Register a page handler, so we can have nice URLs
    //    elgg_register_page_handler('videolist', 'videolist_page_handler');

        // Language short codes must be of the form "videolist:key"
        // where key is the array key below
        elgg_set_config('videolist', array(
                'video_url' => 'url',
                'title' => 'text',
                'description' => 'longtext',
                'tags' => 'tags',
                'access_id' => 'access',
          'index_page' => 'checkboxes',
          'index_sort' => 'text',
        ));

        // extend group main page
    //    elgg_extend_view('groups/tool_latest', 'videolist/group_module');
    //
    //    //add a widget
    //    elgg_register_widget_type('videolist', elgg_echo('videolist'), elgg_echo('videolist:widget:description'));
    //
    //    if (is_callable('register_notification_object')) {
    //        register_notification_object('object', 'videolist_item', elgg_echo('videolist:new'));
    //    }
    //
    //    // Register entity type for search
    //    elgg_register_entity_type('object', 'videolist_item');
    //
    //    // add a file link to owner blocks
    //    elgg_register_plugin_hook_handler('register', 'menu:owner_block', 'videolist_owner_block_menu');
    //    elgg_register_event_handler('annotate','all','videolist_object_notifications');
    //
    //    elgg_register_plugin_hook_handler('object:notifications','object','videolist_object_notifications_intercept');

        //register entity url handler
    //    elgg_register_entity_url_handler('object', 'videolist_item', 'videolist_url');
    //    elgg_register_plugin_hook_handler('entity:icon:url', 'object', 'videolist_icon_url_override');
    //
    //    // register for embed
    //    elgg_register_plugin_hook_handler('embed_get_sections', 'all', 'videolist_embed_get_sections');
    //    elgg_register_plugin_hook_handler('embed_get_items', 'videolist', 'videolist_embed_get_items');
    //
    //    // Register actions
    //    $actions_path = elgg_get_plugins_path() . "frontpage_campaign/actions/videolist";
    //    elgg_register_action("videolist/add", "$actions_path/add.php");
    //    elgg_register_action("videolist/edit", "$actions_path/edit.php");
    //    elgg_register_action("videolist/delete", "$actions_path/delete.php");


        $action_path = elgg_get_plugins_path() . 'frontpage_campaign/actions/file';
        elgg_register_action("file/upload", "$action_path/upload.php");
        /**
         * CSS
         */
        //$css_url = 'mod/frontpage_campaign/vendors/socialshareprivacy/socialshareprivacy/';
       // elgg_register_css('socialshareprivacy-css', $css_url . 'socialshareprivacy.css', 500);
       // elgg_load_css('socialshareprivacy-css');

        /**
         * JS
         */
        //$js_url = 'mod/frontpage_campaign/vendors/socialshareprivacy/jquery.socialshareprivacy.min.js';
        //elgg_register_js('jquery-socialshareprivacy-min', $js_url, 'head', 500);
        //elgg_load_js('jquery-socialshareprivacy-min');

        /**
         * Inline JS
         */
        //elgg_extend_view('page/elements/foot', 'socialshareprivacy/js/foot_extend', 500);

        /**
         * Extend Views
         */

        //elgg_extend_view('page/elements/footer', 'socialshareprivacy/socialshareprivacy_div', 10);

        /**
         * External JS
         */

        $js_url = 'mod/frontpage_campaign/vendors/flip-wall/';
        elgg_register_js('flipwall-jquery-flip-min-js', $js_url.'jquery.flip.min.js', 'footer', 800);
        elgg_register_js('flipwall-script-js', $js_url.'script.js', 'footer', 810);

        /**
         * External CSS
         */
        $css_url = 'mod/frontpage_campaign/vendors/flip-wall/';
        elgg_register_css('flipwall-css', $css_url . 'styles.css');

        $css_url = 'mod/frontpage_campaign/vendors/flip-wall/';
        elgg_register_css('page-flipwall-css', $css_url . 'flipwall.css');
        // Extend system CSS with our own styles
        elgg_extend_view('css/elgg', 'frontpage_campaign/css');

        // Replace the default index page
        elgg_register_plugin_hook_handler('index', 'system', 'custom_index');
        elgg_register_page_handler('cic', 'frontpage_campaign_handler');
        //Disable files in  groups
        add_group_tool_option('file', elgg_echo('groups:enablefiles'), false);
    }

Project Info

Stats

  • Category: Site admin
  • License: GNU General Public License (GPL) version 2
  • Updated: 2014-11-17
  • Downloads: 2446
  • Recommendations: 14

Other Projects

View manfred salomon's plugins