jsky

About me: I'm a software student with a couple of web projects/ideas.
Location:
Email: contact.heartboy@gmail.com

Send private message

You must be logged in to send a private message.

Group membership

  • Beginning Developers

    Beginning Developers

    This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking
  • Feedback and Planning

    Feedback and Planning

    Discussions about the past, present, and future of Elgg and this community site.
  • Elgg Technical Support

    Elgg Technical Support

    Get support from other Elgg users
  • Professional Services

    Professional Services

    Get / offer professional help on Elgg; like customization, design, development, setup, hosting... Illegal trades are not allowed.

Activity

  • jsky added a new discussion topic upload photo problem in the group Beginning Developers
    I had previously altered my image sizes:     $icon_sizes = array(    'tiny' => array('w' => 100, 'h' => 100, 'square' => TRUE, 'upscale' => TRUE),    'small' => array('w' => 100, 'h'...
  • jsky added a new discussion topic recommend plugins through developers admin plugin interface in the group Feedback and Planning
    i was thinking about updating plugins the other day and thought itd be a good idea if you could update straight from the admin panel ala wordpress style. even short of this, i think another cool idea would be to enable recommending plugins by your...
    • We've talked about this with Srokap, who has written a basic plugin that does this: https://github.com/Srokap/srokap_plugin_installer

      This plugin does exactly what you're discussing. We're reluctant to pull it into core because of the security concerns that arise when users have an apache-writable plugin directory. There were some alternative approaches discussed, but nothing has been implemented yet.

    • Breet, how about my update services plugin? I developed with Cash and the plugins notify about new releases.

      Its safe and help the admins to keep the site up to date.

      Ps.: Cash talked about turn our plugin a core plugin, one year ago. But we never talked again.

  • jsky replied on the discussion topic call to test if user is translator with translation editor plugin
    i printed out all the metadata and found the metadata call is [translation_editor] view reply
  • im using translation editor which allows you to set users as translators (i assume by adding metadata).what is the call for me to access this metadata to do something if user is translator?// if member is admin or translator, show language settings...
  • jsky replied on the discussion topic download button invisible
    actually i think that will just open the file.have a read of this: http://stackoverflow.com/questions/3773055/how-to-implement-logic-for-my-download-button view reply
  • jsky replied on the discussion topic download button invisible
    try using a form like this: <form method="POST" action="filename.pdf"> <input type="submit" value="Download!"> </form> view reply
  • jsky replied on the discussion topic download button invisible
    sofar as i know there isnt a default download button in the core elgg. that is, it doesnt come with one by default, because most networks dont need it. however in my limited exposure i have seen two networks use them (elgg community like you said... view reply
  • jsky replied on the discussion topic registering to end of menu_topbar
    thanks heaps for the tips Matt.once "izap_videos_videos" didnt work, i realised i could go search for the register event in the plugin and find out.it was "izap-videos:videos" view reply
  • jsky joined the group Feedback and Planning
  • jsky replied on the discussion topic registering to end of menu_topbar
    [explanation of image]: the first two icons are both profile. i cant seem to unregister the default one.similarly with the next two (star and default friends). the rest are fine. view reply
  • jsky replied on the discussion topic registering to end of menu_topbar
    yeh yeh i get that. but say i wanted to make a custom icon, for i dunno, say a link to my blog. the icons.php is pointing to the png file in the _graphics. and if i upgrade elgg later, unless i remember to copy that folder over too i would lose it.... view reply
  • jsky replied on the discussion topic registering to end of menu_topbar
    thanks Asmarino, the plugin works (and obviously makes it easy for me).I was just wondering one more thing. If i extend the elgg_sprites.png (and appropriate css) do i just changes the elgg/_graphics/elgg_sprites.png or can i do it modularly as well... view reply
  • jsky replied on the discussion topic registering to end of menu_topbar
    i take it i dont have to call the function after this, thats what the event handler is there for?anyhow, this still didnt work for me.... the user profile is still the users image... i put this code in my start.php for my theme and my directory... view reply
  • jsky replied on the discussion topic registering to end of menu_topbar
    it is inheriting the arrow from _graphics/elgg_spritesShort of using my own, how can i change which sprite it is defaulting to? view reply
  • jsky replied on the discussion topic registering to end of menu_topbar
    didnt help. stayed with the default arrow. if i do $text = '<span class="elgg-icon-menuShop"></span>';item disappears. my css url images/.... is relative to the start.php and i tried using an absolute too.this is all in my themedoes... view reply
  • jsky replied on the discussion topic registering to end of menu_topbar
    however, what (else) do i need to do to get the correct image showing?the arrow is not what im pointing to in the css.. it must be a default one. view reply
  • jsky replied on the discussion topic registering to end of menu_topbar
    thanks costa!that did the trick! view reply
  • jsky replied on the discussion topic registering to end of menu_topbar
    a custom one:elgg_register_menu_item('topbar', array(   'name'  => 'elgg_shop',   'href'  => 'shop.domain.com',   'title' => 'elgg_shop',   'text'  =>... view reply
  • jsky added a new discussion topic registering to end of menu_topbar in the group Beginning Developers
    Looked here and here, But still unsure how to add so that new menu item is added to back of menu? by default it adds to the front..
    • the icons.php is pointing to the png file in the _graphics. and if i upgrade elgg later, unless i remember to copy that folder over too i would lose it. i guess id have to maybe change where the icons.php is looking for the png file and point it to a plugin folder that will come with me

      That's correct, though you don't have to override the entire icons.php file if it's just that small change you're making, you can just redeclare the css class .elgg-icons {} with the location of your replacement image.

      Sometimes items are registered at the point of 'pagesetup' - just before all views are rendered.  You are unregistering them at the system 'init', which happens before pagesetup.  So to make sure you get them all you should unregister the items in pagesetup with a high priority (running last).

      // in my init function

      elgg_register_event_handler('pagesetup', 'system', 'myplugin_pagesetup', 1000);

       

      // global function

      function myplugin_pagesetup() {

        // unregister menu items here

      }

       

      Finally for the izap videos, underscores get converted to hyphens for class names, so it's most likely izap_videos_videos

    • thanks heaps for the tips Matt.
      once "izap_videos_videos" didnt work, i realised i could go search for the register event in the plugin and find out.
      it was "izap-videos:videos"

    • Big time Costa. Thanks to you and people like you, I'm now a cadre :). 

  • jsky replied on the discussion topic correct way to upgrade?
    indeed i think you mightve been right.instead of the updates i did selects to see how it was installed on the old elgg.and used those to get the new one working yay :)path = "/Applications/MAMP/htdocs/website.com/elgg-1.8.12/" dataroot =... view reply