Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • sarav added a new discussion topic how to create a new entity with additional fields in the group Elgg Technical Support
    Hi, I would like to create a new entity type with fields additional to the existing title, description etc. I have not found one so far. If there is an option, do let me know. thanks in advance. regards, sarav
    • $object = new ElggObject();

      $object->subtype = 'my_new_object_type';

      $object->my_new_field = 'hello, world!';

      $object->save();

       

      That's all it takes. You can do it on the fly like that or write a class file.

    • @Cash: Does it means that add_subtype is done automatically and we do not need it in start.php anymore?

      We still use add_subtype("object", "'my_new_object_type");   

       

    • @Tom - The subtype is added automatically, but without a classname (an optional 3rd parameter).  If you've extended the ElggObject class, you'll want to use add_subtype('object', 'my_new_object_type', 'MyClassName');

  • sarav replied on the discussion topic error when enabling the cubet_membership plugin
    hi sef, thanks for your greetings.  no actually after enabling the cubet_membership, I logged out and registered a user. upon successful registration, i get the message as  " Sorry, you cannot perform this action while logged... view reply
  • sarav added a new discussion topic error when enabling the cubet_membership plugin in the group Elgg Technical Support
    Hi everyone, I am new to elgg and i have used the cubet_membership plugin. When i use this one, I am getting the following error during registration as " Sorry, you cannot perform this action while logged out."   What can i do to get...
    • hi sarav and welcome to the community :)
       I'm sure you'll learn you're way around in no time.

      Is this happening while you are you logged in to the site ?

    • hi sef,

      thanks for your greetings.  no actually after enabling the cubet_membership, I logged out and registered a user. upon successful registration, i get the message as 

      Sorry, you cannot perform this action while logged out." 

      Actually i should be registered or taken to payments page if any..

      hope you got a feel of my problem.

      thanks 

      sarav

  • sarav joined the group Elgg Technical Support
  • sarav joined the group Elgg Technical Support