Send private message

You must be logged in to send a private message.

Group membership

Activity

  • waya59 replied on the discussion topic Filtering the Tools menu by profile types
    That worked Great! Thanks Man view reply
  • waya59 added a new discussion topic Filtering the Tools menu by profile types in the group Plugin Development
    A while back I managed to figure out a way to filter the widgets availible to users according to the profile choice they made, (using "Profile Manager and Dragable_widgets). Now I would like to do something similar with the Tool Menu on the...
    • I don't use profile_manager, I'm using the old usertype plugin. But the code I use to get exactly what you're asking for is this:

      if ( $_SESSION['user']->usertype == "User1") {

      add_menu(elgg_echo('pages'), $CONFIG->wwwroot . "pg/pages/owned/" . $_SESSION['user']->username,'pages');

      This go in relevant plugin start.php
      good luck!

    • Thanks,,,

      the code I have tried is:

      $p = page_owner_entity();
      $pt = $p->custom_profile_type;

            if (isloggedin() && $pt == 3) {
                    add_menu(elgg_echo('mood'), $CONFIG->wwwroot . "mod/mood/everyone.php");
             }

      Not sure if the ($_SESSION['user']->custom_profile_type == 3) statement would work but I'll read up on it.

      Thanks for the idea

    • That worked Great!

      Thanks Man

  • waya59 replied on the discussion topic Permanently hiding a divide
    Done spent a few hours going over that,,,,, some times I think I try to make stuff harder than it realy is. I grew up on latterlogic from way back in 1982 or so I know a little about foxpro, C++ pertty good at html know some basic and bits and... view reply
  • waya59 replied on the discussion topic Permanently hiding a divide
    Hello again Evan, Could you tell me where I can find some examples where $.ajax or $.post have been used like this? I'm really a newbe to this type of programming and kinda lost lol. view reply
  • waya59 added a new discussion topic Permanently hiding a divide in the group Plugin Development
    I am playing around with a custom dashboard which has help bulletins to guide new users through the profile setup stage. These bulletins change as the user completes certain task, but in the end I need to allow them to click a button to hide the...
    • The jquery documentation is the best place to start to learn how to use $.post/ajax

      http://api.jquery.com/jQuery.ajax/

    • Done spent a few hours going over that,,,,, some times I think I try to make stuff harder than it realy is.

      I grew up on latterlogic from way back in 1982 or so I know a little about foxpro, C++ pertty good at html know some basic and bits and pieces of other languages...... then I found elgg lol PHP kicked my butt for a while and now I gotta figure out jquery I know I'll get it just wondering when lol.

      It would be nice to see some real life examples of other peoples code,,,, don't know somehow that makes it easier

    • Examples are always easier.  The jQuery docs usually have plenty of code examples.  Here's one example specific to elgg, though:

      <script>
      $.post('//my.elgg.site/action/do/something', {
      __elgg_ts: <?php echo $ts; ?>,
      __elgg_token: "<?php echo $token; ?>"
      }, function() { alert('yay'); });
      </script>

      this will call the action "do/something" with no arguments except the security tokens.  Basically it is just like submitting a form to do/something but it does it in the background.  Then, once the call returns (if it is a success) you will see 'yay' get alerted on your screen.

  • waya59 replied on the discussion topic Starting a javascript code on page load
    LMAO ok that was tooo simple Thanks alot view reply
  • waya59 added a new discussion topic Starting a javascript code on page load in the group Plugin Development
    Hello again, I have been setting up a javascript marquee code to work in a widget I am trying to build for my site, and I almost have it except for on small problem I am having. The marquee does not start scrolling on every page load, it is kinda...
  • waya59 replied on the discussion topic Trying to understand how JQurey plugins are added
    yes it is javascript and I'm just feeling my way through a new type of programing for me, and suggestions would be a help lol view reply
  • waya59 replied on the discussion topic Trying to understand how JQurey plugins are added
    Thanks Cash its a good example to get me started,,, lol although I'm sure I'll have more questions in a few days. I'm working on a marquee plugin which will allow business profile users (ie. Biker Bars or Motorcycle shops to scroll Drink specials,... view reply
  • waya59 added a new discussion topic Trying to understand how JQurey plugins are added in the group Plugin Development
    Ok after a bit of reading I see that jqurey in built into the core of elgg, but am I right when thinking that a jquery plugin would have to be added in a venders folder of a plugin I am trying to write? Also if the jquery plugin has...
    • Thanks Cash its a good example to get me started,,, lol although I'm sure I'll have more questions in a few days.

      I'm working on a marquee plugin which will allow business profile users (ie. Biker Bars or Motorcycle shops to scroll Drink specials, upcoming  Bands, or monthly specials on thier profiles) and I had it working,,,, working great lol only it would only work for IE,,,, I'm sure you know the reason so now I'm having to rewrite some stuff using java , And if I was losted when I started this project using php, I am really losted incorperating java ,,, but I'm getting there little by little .

      Thanks for all the help everyone.

    • I assume when you say java you mean javascript?  I'm not sure why you would need to incorporate java into a php website just for a marquee?

    • yes it is javascript and I'm just feeling my way through a new type of programing for me, and suggestions would be a help lol

  • waya59 replied on the discussion topic Where can you buy the book????
    LMAO done did the hello world,,,,, no where close to what I want to build. I need examples on views and edit.php,,, how to incorperate javascript and stuff like that. See what I want to build is a scrolling marquee that users input their own... view reply
  • waya59 added a new discussion topic Where can you buy the book???? in the group Plugin Development
    LMFAO yeah I need one of those "ELGG for Dummys" books grin. just spent the past couple months hacking the community stuff to get things working the way I want them to and now its time to start writing some plugins of my own..... joy, joy, joy, Dr D...
    • As a newbie I will like to have the following:

      a) Detailed Elgg framework design which is explained through various diagrams. I believe diagrams are the best way to understand anything.

      b) Good topics for Customizing elgg with end to end code.

      c) Case studies / small projects with end to end working code

      Basically I cannot find all these in one place. I will like to see this in your book.

      Best wishes.....

      Mainak

    • Will this book be available in an online format?

    • As Dave said, it will be available as an eBook (besides being available as a print book). It should also be in O'Reilly's Safari Books Online.

  • waya59 joined the group Plugin Development
  • waya59 replied on the discussion topic Delaying the system loading of widgets???
    Ok the context method will work, it requires an additional field added to the users profile. For some reason the page owners data for profile_manager's custom_profile_type can not be pulled from the page_owner_entity, but if a field is displayed on... view reply
  • waya59 replied on the discussion topic Delaying the system loading of widgets???
    I will try to rethink but with the else statement on the end lets other users with the profile_p type profiles show up thats all I was saying   view reply