RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : November 21, 2008, 01:10:25 pm
+  RSGallery2 Support Forums Advanced search
  Show Posts
Pages: [1]
1  RSgallery2 support forums / RSgallery2 bugs & problems / ACL does not work! on: February 17, 2008, 11:34:53 am
Hi,

This is the link to edit the image (id=5):
/index.php?option=com_rsgallery2&rsgOption=myGalleries&task=editItem&Itemid=88888996&id=5

It also worked with id=1 (1 is not mine)
/index.php?option=com_rsgallery2&rsgOption=myGalleries&task=editItem&Itemid=88888996&id=1

So I can edit the images of the others.
Please fix it!
2  RSGallery2 / Gallery Showcase / myPIXnet - Album with subject on: July 31, 2007, 07:58:56 pm
Hi everybody,



I just finished some modifications for myPIXnet. One of them was subject for album.
Plz visit and give me your feedback.

Thanks and Regards

myPIXnet
3  RSGallery2 / Gallery Showcase / Re: myPIXnet - Beta announcement on: July 10, 2007, 07:55:44 am
the slideshow you are using now, shows an image, then removes it, loads the next image

it would be better if it would show an image while loading the next, then shows the next image while loading the third image ans so one (always an image on the page, now I see the loadbar)

Hi Daniel Tulp,

Thanks for your comments. I updated the Slideshow script. Enjoy it!
Hope get more ideas from you.

4  RSgallery2 support forums / Features / Re: Postacards on: July 02, 2007, 12:41:03 pm
Yes you can do it.
Please visit here: http://mypixnet.com
5  RSGallery2 / Gallery Showcase / Re: myPIXnet - Beta announcement on: July 02, 2007, 12:36:08 pm
I  just have added intro slideshow (use Smooth Slideshow) and puzzle game (from  nuff-respec)

Enjoy!
6  RSGallery2 / Gallery Showcase / Re: myPIXnet - Beta announcement on: June 23, 2007, 07:11:58 pm
you need some sort of search mechanism like imagefap(.)com also has, Jonah is redeveloping the/ a searchbot

I will try to do this.

By the way, I would like to show the new face of myPIXnet.





7  Developers corner / Developer Lobby / Re: AJAX solution on: June 03, 2007, 07:30:18 pm
do you have ajax code used for your modification of RSGallery2?


Highslide is one of AJAX in my site. Of course Highslide is not my own.
I will apply AJAX for edit photo online in next months.
I have an idea for RSGallery2 Random module  as below:

Step 1-Modify random module
...
Quote
<script type="text/javascript">
var busy=0;


function setnextplay()
   {
  var xmlHttp;

  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }

var url="<?php echo $mosConfig_live_site;?>";
url=url+"/rs_getrandom.php;

xmlHttp.onreadystatechange=function()
  {
  if(xmlHttp.readyState==4)
    {
    var r=xmlHttp.responseText;
    if (r != "")
       document.getElementById("currentimg").src=r;
    }
  }

xmlHttp.open("GET",url,true);
xmlHttp.send(null);

}
</script>
...
<img id="currentimg" src="" onload="setnextplay()"/>

...


Step 2-Create a file (rs_getrandom.php)

Quote
<?php


$r="";

 
   require_once( 'configuration.php' );
   
    $db_conn=mysql_connect($mosConfig_host, $mosConfig_user, $mosConfig_password);
    if ($db_conn)

    {
       $db_open=mysql_select_db($mosConfig_db,$db_conn);
        if ($db_open)
        {

            $result=mysql_query("SELECT name FROM ".$mosConfig_dbprefix."rsgallery2_files ORDER BY RAND() LIMIT 1" ,$db_conn);
            if (mysql_affected_rows()>0)
            {
                 $row = mysql_fetch_array($result)
                  $r=$mosConfig_live_site."/images/rsgalley/display/".$row["name"]."\"";
            }
             
           
            mysql_free_result($result);
        }
       
       mysql_close($db_conn);
    }


echo $r;
return;
?>


Note: The codes above are for example only. You should check it carefully before use.



Regards
8  RSGallery2 / Gallery Showcase / Re: Beta announcement on: June 01, 2007, 11:02:57 pm
Can I ask which version the gallery you are running?

I use 1.0.11 and hack it for my own needs.
AJAX was used in hacked version.

Regards
9  Developers corner / Developer Lobby / AJAX solution on: June 01, 2007, 10:11:20 am
Hi everybody,
According to Daniel Tulp, I will share my AJAXs in this room.
We can view AJAX example at http://www.w3schools.com/ajax and we can understand quickly how AJAX works.
Now I show you an AJAX example: Username checker.
As you know, the registration form of Joomla can not check instantly if a username already in use. To do this, we use AJAX function. These are steps I did:
1-Create a usernamehint.php

Quote
<?php


$r="";

if ($_GET["username"])

{

   
   require_once( 'configuration.php' );
   
    $db_conn=mysql_connect($mosConfig_host, $mosConfig_user, $mosConfig_password);
    if ($db_conn)

    {
       $db_open=mysql_select_db($mosConfig_db,$db_conn);
        if ($db_open)
        {

            $result=mysql_query("SELECT username FROM ".$mosConfig_dbprefix."users WHERE username='".$_GET["username"]."'",$db_conn);
            if (mysql_affected_rows()>0)
               $r="<img src=\"".$mosConfig_live_site."/images/stop.png\" />";
            else
                  $r="<img src=\"".$mosConfig_live_site."/images/ok.png\" />";

            mysql_free_result($result);
        }
        else
           $r="Bad database";
       mysql_close($db_conn);
    }
    else $r="Bad databse";
}
echo $r;
return;
?>

2-Hack registration.html.php in components/com_registration folder (line 77 -> 134, line 185 -> 186).

Quote
<?php
/**
* @version $Id: registration.html.php 4343 2006-07-27 19:28:05Z rmuilwijk $
* @package Joomla
* @subpackage Users
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );

/**
* @package Joomla
* @subpackage Users
*/
class HTML_registration {
   function lostPassForm($option) {
      // used for spoof hardening
      $validate = josSpoofValue();
      ?>
      <form action="index.php" method="post">

      <div class="componentheading">
         <?php echo _PROMPT_PASSWORD; ?>
      </div>

      <table cellpadding="0" cellspacing="0" border="0" width="100%" class="contentpane">
      <tr>
         <td colspan="2">
            <?php echo _NEW_PASS_DESC; ?>
         </td>
      </tr>
      <tr>
         <td>
            <?php echo _PROMPT_UNAME; ?>
         </td>
         <td>
            <input type="text" name="checkusername" class="inputbox" size="40" maxlength="25" />
         </td>
      </tr>
      <tr>
         <td>
            <?php echo _PROMPT_EMAIL; ?>
         </td>
         <td>
            <input type="text" name="confirmEmail" class="inputbox" size="40" />
         </td>
      </tr>
      <tr>
         <td colspan="2">
            <input type="submit" class="button" value="<?php echo _BUTTON_SEND_PASS; ?>" />
         </td>
      </tr>
      </table>

      <input type="hidden" name="option" value="<?php echo $option;?>" />
      <input type="hidden" name="task" value="sendNewPass" />
      <input type="hidden" name="<?php echo $validate; ?>" value="1" />
      </form>
      <?php
   }

   function registerForm($option, $useractivation) {
      // used for spoof hardening
      global $mosConfig_live_site;
      $validate = josSpoofValue();
      ?>

<script language="javascript" type="text/javascript">

function ajaxFunction()
  {
  var xmlHttp;

  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }

var url="<?php echo $mosConfig_live_site;?>";
url=url+"/usernamehint.php?username=";
url=url+document.getElementById("uname").value;



xmlHttp.onreadystatechange=function()
  {
  if(xmlHttp.readyState==4)
    {
    var r=xmlHttp.responseText;
    if (r != "")
       document.getElementById("unameHint").innerHTML=r;
    }
  }

xmlHttp.open("GET",url,true);
xmlHttp.send(null);

  }




      function clearcheck()
        {
               document.getElementById("unameHint").innerHTML="";
        }


      function submitbutton_reg() {
         var form = document.mosForm;
         var r = new RegExp("[\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-]", "i");

         // do field validation
         if (form.name.value == "") {
            alert( "<?php echo html_entity_decode(_REGWARN_NAME);?>" );
         } else if (form.username.value == "") {
            alert( "<?php echo html_entity_decode(_REGWARN_UNAME);?>" );
         } else if (r.exec(form.username.value) || form.username.value.length < 3) {
            alert( "<?php printf( html_entity_decode(_VALID_AZ09_USER), html_entity_decode(_PROMPT_UNAME), 2 );?>" );
         } else if (form.email.value == "") {
            alert( "<?php echo html_entity_decode(_REGWARN_MAIL);?>" );
         } else if (form.password.value.length < 6) {
            alert( "<?php echo html_entity_decode(_REGWARN_PASS);?>" );
         } else if (form.password2.value == "") {
            alert( "<?php echo html_entity_decode(_REGWARN_VPASS1);?>" );
         } else if ((form.password.value != "") && (form.password.value != form.password2.value)){
            alert( "<?php echo html_entity_decode(_REGWARN_VPASS2);?>" );
         } else if (r.exec(form.password.value)) {
            alert( "<?php printf( html_entity_decode(_VALID_AZ09), html_entity_decode(_REGISTER_PASS), 6 );?>" );
         } else {
            form.submit();
         }
      }
      </script>
      <form action="index.php" method="post" name="mosForm">

      <div class="componentheading">
         <?php echo _REGISTER_TITLE; ?>
      </div>

      <table cellpadding="0" cellspacing="0" border="0" width="100%" class="contentpane">
      <tr>
         <td colspan="2"><?php echo _REGISTER_REQUIRED; ?></td>
      </tr>
      <tr>
         <td width="30%">
            <?php echo _REGISTER_NAME; ?> *
         </td>
           <td>
              <input type="text" name="name" size="40" value="" class="inputbox" maxlength="50" />
           </td>
      </tr>
      <tr>
         <td>
            <?php echo _REGISTER_UNAME; ?> *
         </td>
         <td>
            <input type="text" id="uname" name="username" size="40" value="" class="inputbox" maxlength="25" onfocus="clearcheck()" onblur="ajaxFunction()" />
                <span id="unameHint"></span>


         </td>
      </tr>
      <tr>
         <td>
            <?php echo _REGISTER_EMAIL; ?> *
         </td>
         <td>
            <input type="text" name="email" size="40" value="" class="inputbox" maxlength="100" />
         </td>
      </tr>
      <tr>
         <td>
            <?php echo _REGISTER_PASS; ?> *
         </td>
           <td>
              <input class="inputbox" type="password" name="password" size="40" value="" />
           </td>
      </tr>
      <tr>
         <td>
            <?php echo _REGISTER_VPASS; ?> *
         </td>
         <td>
            <input class="inputbox" type="password" name="password2" size="40" value="" />
         </td>
      </tr>
      <tr>
           <td colspan="2">
           </td>
      </tr>
      <tr>
         <td colspan=2>
         </td>
      </tr>
      </table>

      <input type="hidden" name="id" value="0" />
      <input type="hidden" name="gid" value="0" />
      <input type="hidden" name="useractivation" value="<?php echo $useractivation;?>" />
      <input type="hidden" name="option" value="<?php echo $option; ?>" />
      <input type="hidden" name="task" value="saveRegistration" />
      <input type="button" value="<?php echo _BUTTON_SEND_REG; ?>" class="button" onclick="submitbutton_reg()" />
      <input type="hidden" name="<?php echo $validate; ?>" value="1" />
      </form>
      <?php
   }
}
?>

This is a very simple example. Base on this, we can develop more things with AJAX.
You can view example at http://mypixnet.com/cms/component/option,com_registration/task,register

Thanks for your attention.
10  RSGallery2 / Gallery Showcase / Re: Beta announcement on: May 30, 2007, 07:10:11 pm
Best view with Firefox link points to a dead link.

Nice site

Thanks Mike.

Regards

Hung, NM
11  RSGallery2 / Gallery Showcase / myPIXnet - Beta announcement on: May 28, 2007, 07:11:45 am
Hi everybody,

After a hard working time, I try to develop my site for free photos & images uploading and sharing.
Now I would like to introduce the beta version to you. Please visit it at myPIXnet.com and give me your feedback.



Thanks and Regards

myPIXnet Admin
12  RSgallery2 support forums / RSgallery2 modules and plugins (mambots) / Re: RSGallery2 Thumbnail Scroller 1.07 released on: May 13, 2007, 12:34:10 am
Hi,

I just released the new and improved version of my RSGallery2 Thumbnail Scroller.
This release holds a number of bugfixes as well as the integration into RSGallery2 functions. More info on this can be found here.

You can download this module here.

Enjoy, test and/ or report back.

Daniël
Thank you very much.
HungNM
13  RSgallery2 support forums / RSgallery2 bugs & problems / Re: Big problem! on: November 05, 2006, 10:36:28 am
This is a known bug.
That is why we are working on a better ACL system. This is also why it is still in alpha phase and we recommend not using the My Galleries feature on a production site.


This is my fixed ideas:
Check $my->id and catid before [edit] or [delete] action. You can check it at my site: http://mypixnet.com
14  RSgallery2 support forums / RSgallery2 bugs & problems / Big problem! on: November 05, 2006, 09:26:07 am
Anyone test this bug:
http://rsgallery2.net/index.php?option=com_rsgallery2&page=editusercat&catid=71

Why does the command above is a big bug?
Because I am not the owner of Cat 71 Grin
Now I can edit any gallery site using RSGallery. Oh my god! Huh

I fixed this problem but I am not sure about my work.
Please test more bugs for me at MYPIXNET!
Thanlks so much.

15  RSGallery2 / Gallery Showcase / New main page and slideshow! on: October 31, 2006, 08:45:40 pm
Please visit MYPIXNET with new main page and slideshow.
Don't forget give me your ideas.
Thank you very much!

Pages: [1]