Bhavin Shah

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Activity

  • Bhavin Shah replied on the discussion topic ELgg on IIS
    I am trying that right now and running into some issues. I got as far as connecting to DB but when elgg asks for all the information regarding website, I hit next and it doesn't go any further. Also when I write rewrite rules in IIS /web.config,... view reply
  • Bhavin Shah joined the group General Discussion
  • Bhavin Shah added a new discussion topic Elgg on IIS 7 in the group Elgg Technical Support
    I have installed IIS 7 with PHP Support and MySQL.  I copied the Elgg on the website and created .htaccess.  I can load elgg main installation page and connect to database. Next page where I enter all the default website information, when...
    • I've heard on/ off similar regarding IIS/WinServer2008 and lower versions. We recently acquired new Win2008Server, but have not yet tried Elgg on that box. I would be interested in more techie comments re: Elgg + WinServers.. b/c soon enough we *will setup Elgg on the new Win2008 box ;-) a llittle bit very different from good ole Linux..

    • Yes I am running Elgg on IIS 7 (Windows 7). The rules you tried to add in the web.config threw errors in the regular expressions because IIS doesn't need an escape character for the underscore. Replace all instances of /_ with _ in each regular expression and you should be good. I have added instrutions on how to get Elgg running on IIS if you're just starting out.

        1) Install the IIS URL Rewrite module: http://www.iis.net/download/urlrewrite

        2) Open the IIS Manager in Control Panel > Administrative Tools

        3) Right-Click on your Elgg site and select "Switch to Features View" if not already there.

        4) Open the URL Rewrite Feature and click "Import Rules..." in the actions menu.

        5) Browse for a configuration file... Open the "htaccess_dist" file located in the root directory of your elgg site.

        6) Rename each rule if you desire to do so by right clicking on the rule name in the Tree View. This is optional. I renamed my rules "Action Handler, Service Handler, Export Handler1, etc..."

        7) Under each rule there is a match tag. The tags contain regular expressions. Most regular expressions will generate an error because IIS is interpreting them differently than Apache would. There is a simple fix. In every instance you see "/_" remove the slash. It is an escape character for the underscore. This isn't necessary for IIS and will generate an error. Be sure to remove it anytime you see it before the underscore.

        8) In the actions menu on the right, hit apply.

      That's it! Elgg should now work on IIS.

    • @DaWolf - can I correct you please? Im my imported htaccess file, I saw no /_, but 7 instances of \_

      When I replaced \_ with _ then it worked.

  • Bhavin Shah replied on the discussion topic display_widget or elgg_view_entity in 1.7
    I fixed the issue by using Wrapper instead of the function display_widget or elgg_view_entity.  Thank you fro your help. view reply
  • Bhavin Shah replied on the discussion topic display_widget or elgg_view_entity in 1.7
    To work correctly. This is how it should look.  I am not sure what I am doing wrong. <div id="widget11">    <div class="collapsable_box">    <div class="collapsable_box_header">   ... view reply
  • Bhavin Shah added a new discussion topic display_widget or elgg_view_entity in 1.7 in the group Elgg Technical Support
    I am trying to display widgets in my plugin page.  I use display_widget(id).It creates extra javascript in the collapsable_box_editpanel which causes edit_panel to stay open when loaded.  How do I fix it?  Here's the html it puts...
    • To work correctly. This is how it should look.  I am not sure what I am doing wrong.

      <div id="widget11">
          <div class="collapsable_box">
          <div class="collapsable_box_header">
          <a href="javascript:void(0);" class="toggle_box_contents">-</a><a href="javascript:void(0);" class="toggle_box_edit_panel" style="display: block;">Edit</a>    <h1>Group membership</h1>
          </div>
          <div class="collapsable_box_editpanel" style="display: none;">
              <form id="widgetform11" action="http://warpcore/~bshah/1.7/action/widgets/save" method="post">
              <input type="hidden" name="__elgg_token" value="5b461d1797216aded0a08c27c1abd879"><input type="hidden" name="__elgg_ts" value="1271339540"><p>
                      Number of groups to display:
                      <select name="params[num_display]">
                          <option value="1">1</option>
                          <option value="2">2</option>
                          <option value="3">3</option>
                          <option value="4">4</option>
                          <option value="5">5</option>
                          <option value="6">6</option>
                          <option value="7">7</option>
                          <option value="8">8</option>
                          <option value="9">9</option>
                      </select>
              </p><p><label>Access:
                  <select name="params[access_id]" class="input-access">
                  <option value="0">Private</option><option value="-2">Friends</option><option value="1" selected="selected">Logged in users</option><option value="2">Public</option><option value="3">Group: junk</option><option value="4">Group: aaaa</option>    </select>
                  </label></p><p><input type="hidden" name="guid" value="11"><input type="hidden" name="noforward" value="true"><input type="submit" name="submit11" class="submit_button" value="Save"></p></form>
          </div>
      <script type="text/javascript">
      $(document).ready(function() {

          $("#widgetform11").submit(function () {

              $("#submit11").attr("disabled","disabled");
              $("#submit11").attr("value","Saving ...");
              $("#widgetcontent11").html('&amp;lt;div align=\"center\" class=\"ajax_loader\"&amp;gt;&amp;lt;/div&amp;gt;');
              $("#widget11 .toggle_box_edit_panel").click();

              var variables = $("#widgetform11").serialize();
              $.post($("#widgetform11").attr("action"),variables,function() {
                  $("#submit11").attr("disabled","");
                  $("#submit11").attr("value","Save");
                  $("#widgetcontent11").load("http://warpcore/~bshah/1.7/pg/view/11?shell=no&amp;amp;username=&amp;amp;context=mobile_dashboards&amp;amp;callback=true");
              });
              return false;

          });

      });
      </script>
              <div class="collapsable_box_content" style="display: block;">
              <div id="widgetcontent11">

      <div class="groupmembershipwidget"><div class="contentWrapper">
      <div class="groupicon">
      <a href="http://warpcore/~bshah/1.7/pg/groups/82/aaaa/" class="icon"><img border="0" src="http://warpcore/~bshah/1.7/mod/groups/graphics/defaultsmall.gif" title=""></a>
      </div>

       <div class="search_listing_info"><p><span>aaaa</span><br></p></div><div class="clearfloat"></div></div><div class="contentWrapper">
      <div class="groupicon">
      <a href="http://warpcore/~bshah/1.7/pg/groups/15/junk/" class="icon"><img border="0" src="http://warpcore/~bshah/1.7/mod/groups/graphics/defaultsmall.gif" title=""></a>
      </div>

       <div class="search_listing_info"><p><span>junk</span><br>asfd</p></div><div class="clearfloat"></div></div></div>




      </div>    </div><!-- /.collapsable_box_content -->
          </div><!-- /.collapsable_box -->   
          </div>

    • I've search through the source in Elgg 1.7.1 beta and cannot find anywhere that has that inline css. You should be able to do a search for it and figure out where it is coming from.

    • I fixed the issue by using Wrapper instead of the function display_widget or elgg_view_entity. 

      Thank you fro your help.