Vagsiarom

About me: I am new to elgg. I want to learn how to update old plugins. Below is my social network.
Email: vomorais@hotmail.com

Pages

No pages created yet

Blogs

No blog posts

Send private message

You must be logged in to send a private message.

Activity

  • Vagsiarom commented on the plugin Event Manager
      When I click on participate or stop participating in the event, the error below appears. Can anyone help?       Call to a member function getType() on null Error Object ( [message:protected] =>...
  • Vagsiarom replied on the discussion topic Calling a file to execute
    Thank you Master Iionly for the help. I broke my head but I did it. $ Result. = '<Table width = "100%">'; $ Result. = Print '</ table>'; Thank you very much! Learning more and more! view reply
  • Vagsiarom replied on the discussion topic Calling a file to execute
    Trying to master but nothing yet. I want to call plugin celebration on my main page, just like I called blogs, events ... except that in these plugins I was able to identify type and subtype. Today's birthday I can not call. Below is the format... view reply
  • Vagsiarom replied on the discussion topic Calling a file to execute
    Thank you Master iionly for the tip. But then I need to put the whole line of code below for the third parameter. How to associate this whole line in a variable? In case it would be $ body Because that code below would be the third... view reply
  • Vagsiarom added a new discussion topic Calling a file to execute in the group Beginning Developers
    elgg_push_context('widgets');   $title = elgg_view('output/url', array( 'href' => "/celebrations/celebrations", 'text' => elgg_echo('Aniversariantes'), 'is_trusted'...
    • Trying to master but nothing yet. I want to call plugin celebration on my main page, just like I called blogs, events ... except that in these plugins I was able to identify type and subtype. Today's birthday I can not call. Below is the format I call blogs, events ...
      
      $ Options = array (
      'Type' => 'birthdate',
      // 'subtype' => 'birthdate',
      'Full_view' => false,
      'Pagination' => false,
      'Subtitle' => $ date,
      'Limit' => $ num,
      'List_type' => 'gallery',
      );
      
      
      $ Row_celebrations = elgg_get_entities ($ options);
      
      Up $ row_celebrations would be the third parameter. But in celebrations this method does not work.
      this method does not work.
    • The Celebrations plugin needs some custom code to retrieve the celebration entities, so the way it works for other entities won't work. Also, listing is done in a custom way.

      Assuming you use Elgg 1.8 (as newer releases of the Celebrations plugin no longer use the "print" command) the code would be

      $body = '<div class="user_settings"><p style="text-align:right">'.elgg_echo('today_celebrations:today').' <strong>'.printcelebrationsdate(1, time()).'</strong></p>';
      
      $row_celebrations = user_celebrations(0,'next', 0);
      
      // list of celebrations
      if (!empty($row_celebrations)) {
          $body .= '<table width="100%">';
      
          foreach($row_celebrations as $key => $val) {
              $sendcelebrationsmessage = '';
              if (($val['type'] != 'dieday') && ($val['id'] != elgg_get_logged_in_user_guid())) {
                  $sendcelebrationsmessage = '<a class="privatemessages" href="'.elgg_get_site_url().'messages/compose?send_to='.$val['id'].'" >&nbsp;</a>';
              }
              if ((elgg_get_plugin_setting("replaceage","celebrations") == 'yes') && ($val['type'] == 'birthdate')){
                  $age = showage($val['date']).' '.elgg_echo('celebrations:age');
              } else {
                  $age = '';
              }
              $even_odd = ( 'F3F3F3' != $even_odd ) ? 'F3F3F3' : 'FFFFFF';
              echo "<tr bgcolor=\"#{$even_odd}\">";
              $body .= '<td><img class="user_mini_avatar" src="'.$val['icon'].'"> <a href="'.$val['url'].'" title="'.$val['fullname'].'">'.$val['name'].'</a></td><td align="right">'.elgg_echo('today_celebrations:'.$val['type']).'</td><td align="right">'.$age.'</td><td align="right">'.$sendcelebrationsmessage.'</td></tr>';
          }
          $body .= '</table>';
      } else {
          $body .= "<p>".elgg_echo('today_celebrations:nocelebrations')."</p>";
      }
      $body .= '</div>';
      
      echo elgg_view_module('featured', elgg_echo('today_celebrations:title'), $body);

      That's the code also used in mod/celebrations/views/default/widgets/index_today_celebrations/content.php (which offers an index page widget if the Widget Manager plugin is installed). The only changes necessary are the points I already outlined in my previous postings.

    • Thank you Master Iionly for the help. I broke my head but I did it. $ Result. = '<Table width = "100%">';
      $ Result. = Print '</ table>'; Thank you very much! Learning more and more!
  • Thank you Master Iiionly. Problem solved. Once again I am grateful for your help.     view reply
  • Master iionly, I managed to make public the page of albúns and photos of a specific user without problems. I have decided that only some users will have their albúsn and photos public. I'm just having a problem. Do not load the... view reply
  • Yes master, "a" minuscule. I'm messing with tidypics now. One hour I can. I think I've done everything I needed in the required plugin. Now all you need to do is play tidypics.         view reply
  • Thank you Master Iionly. I'm trying these tips but so far nothing. $ Add = 'photos /.*'; $ Allow = 'photos /.*'; When I get something I'll post it here.     view reply
  • Master Iionly, I tried $add[] = 'photos/.*'; in plugin login requirid start.php. But did not get the result. The message "This content has been removed or you do not have permission to view." Is there anything you can... view reply
  • Thank you Master Iionly. I'll try "pages of the public Tidypics ($ add [] '/.*' 'photos); - which would result in all albums / images commenting" public "access being visible when... view reply
  • Hello, would anyone have a tip to make the tydipics photo pages public? I have tydipics and I have login required. I took the tydipics start.php line of code: elgg_register_plugin_hook_handler ('public_pages', 'walled_garden',...
    • Master iionly, I managed to make public the page of albúns and photos of a specific user without problems. I have decided that only some users will have their albúsn and photos public. I'm just having a problem. Do not load the photo in larger size when I click on the thumbnail. Would you have any tips? Below I put what I put in the required plugin code: 
      $add[] = 'photos / album / 6363 / july';
      $Add[] = 'photos / album / 6687 /pamela-rivers';
      $Add[] = 'photos / image /.*';
      $Add[] = 'photos / owner / MaiteBotticelli';
      $allow[] = 'photos/album/6363/july';
      $allow[] = 'photos/album/6687/pamela-rios';
      $allow[] = 'photos/image/.*';
      $allow[] = 'photos/owner/MaiteBotticelli';

       

      $add[] = 'photos/album/6363/july';   
      $add[] = 'photos/album/6687/pamela-rios';
      $add[] = 'photos/image/.*';
      $add[] = 'photos/owner/MaiteBotticel

       

    • $add[] = 'photos/thumbnail/.*';

    • Thank you Master Iiionly. Problem solved. Once again I am grateful for your help.
       
      
       
  • Vagsiarom commented on the plugin Disable Right Click
    Thanks cim, I upgraded my elgg to 2.3.3 and its plugin now works perfectly. I do not know if it caused any collateral problem but so far so good. Thank you.    
  • Vagsiarom replied on the discussion topic change password is failing in elgg 2.1.3
    Thank you Master Iionly. Everything's solved. I believe it was PHP / MTA configuration on the server. Everything works.     view reply
  • Vagsiarom commented on the plugin Elgg Cookieconsent
    Hello Dries, I had installed your plugin. And also had installed the plugin login redirector. This plugin causes interference to the redirector plugin. When I make the first login customizable, for example: edit profile or any other option, it does...
  • Vagsiarom commented on the plugin Login Redirector
    Thank you Master Iiomly and Jeroen for your attention on this topic. The problem was solved. It was not the elggzone theme the problem. It was the Elggcookieconsent plugin (2.1). This plugin prevented the redirect on the first login when redirected...
  • Vagsiarom commented on the plugin Login Redirector
    I deleted the lines of code with // background: transparent url (<? Php echo elgg_get_site_url ();?> _ Graphics / elgg_sprites.png) no-repeat left; But it did nothing. Could it be another plugin? Imagine that this always happens on the first...
  • Vagsiarom commented on the plugin Login Redirector
    Master Iionli, i found in css.  /*background-image:url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png); background-position:-150px -51px; background-repeat:no-repeat;*/   Could you delete this...
  • Vagsiarom commented on the plugin Login Redirector
    Thank you Master Iionly. Thanks for the tip. I think the problem is the issue. So I'll follow your guidance, look for the code in the theme plugin that references elgg_sprites.png. Then put here what I found. If I can not, I'll think of...
  • Vagsiarom commented on the plugin Login Redirector
    Hello Master Iionly. Elggzone is over. I emailed Jensen, responsible for elggzone but he said he could not help. The theme works well. The only problem with plugin login redirect, only on the first login. Regardless of configuration, the first login...

Group membership