Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » Flickr installation issue

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 267 Views
  • Simpmarv
    Avatar
    Community Member
    1 Post

    Flickr installation issue Link to this post

    I followed the directions for installing the Flickr module but I am not getting a Flickr page type in the CMS.

    I'm not sure if I put the code in the correct loction.

    /home/stithe/public_html/mysite/_config.php

    <?php

    global $project;
    $project = 'mysite';

    global $databaseConfig;
    $databaseConfig = array(
       "type" => 'MySQLDatabase',
       "server" => 'localhost',
       "username" => 'stithe_stri801',
       "password" => 'Pe8lro',
       "database" => 'stithe_stri801',
       "path" => '',
    );

    MySQLDatabase::set_connection_charset('utf8');

    // This line set's the current theme. More themes can be
    // downloaded from http://www.silverstripe.org/themes/
    SSViewer::set_theme('natureweb4');

    // Set the site locale
    i18n::set_locale('en_US');

    // enable nested URLs for this site (e.g. page/sub-page/)
    SiteTree::enable_nested_urls (FlickrService::setAPIKey('30ea1f2c5b7ce3fcedabe9d65d376'));

    Thanks for your help,
    Dave

  • BrixtonBoy
    Avatar
    Community Member
    7 Posts

    Re: Flickr installation issue Link to this post

    I think your _config.php is in the right place, but its content is not quite right.

    Instead of ...
    // enable nested URLs for this site (e.g. page/sub-page/)
    SiteTree::enable_nested_urls (FlickrService::setAPIKey('30ea1f2c5b7ce3fcedabe9d65d376'));

    try this ...
    // enable nested URLs for this site (e.g. page/sub-page/)
    SiteTree::enable_nested_urls();

    // set api for flickr
    FlickrService::setAPIKey('30ea1f2c5b7ce3fcedabe9d65d376');

    267 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.