51
darapera
Re: Any Malaysia Xoops there?
  • 2003/9/29 2:32

  • darapera

  • Just popping in

  • Posts: 67

  • Since: 2003/7/22


Sure thing on the hosting.



52
darapera
Re: Any Malaysia Xoops there?
  • 2003/9/28 3:12

  • darapera

  • Just popping in

  • Posts: 67

  • Since: 2003/7/22


Quote:
no hard feelings on my previous post.

Most certainly Catscity it was not a rebuttal :). I do like the sites pointed out kangaroo.

hosting I believe I can provide.



53
darapera
Re: Any Malaysia Xoops there?
  • 2003/9/26 15:42

  • darapera

  • Just popping in

  • Posts: 67

  • Since: 2003/7/22


Agreed. I'm not offended by catscity's comments. Just trying to say the objective of the site could be different from what we all think. So if we're serious we need to figure it out as mentioned in my 2nd post.



54
darapera
Re: Any Malaysia Xoops there?
  • 2003/9/26 15:21

  • darapera

  • Just popping in

  • Posts: 67

  • Since: 2003/7/22


Why do you think we can't make our own themes or modules? I won't call myself a programmer but I'm almost done on my first module and won't be the last. Just because we're English literate also doesn't mean the site has to be in Bahasa. I'm not sure what knight's intention was but maybe it's just a site where we all have more in common than just XOOPS users....



55
darapera
Re: Any Malaysia Xoops there?
  • 2003/9/26 3:48

  • darapera

  • Just popping in

  • Posts: 67

  • Since: 2003/7/22


knight I think the interest is there but if we're all serious about it we need to get together and figure out issues like who's hosting it, if we're gonna get a url for it etc. There is some cost involved which I think might not be the major obstacle but but also a whole lot of time involved so basically....... we need to set up the 'team' so to speak.



56
darapera
Re: Probably the first malay language website using xoops
  • 2003/8/29 2:53

  • darapera

  • Just popping in

  • Posts: 67

  • Since: 2003/7/22


Bagus!



57
darapera
xoops Gallery Print To Shutterfly 'fix'
  • 2003/8/26 4:36

  • darapera

  • Just popping in

  • Posts: 67

  • Since: 2003/7/22


User beware! I am no programmer and the only PHP I know is reading the Welling & Thomson PHP & MySQL book (that too not halfway through to book!). I believed I have 'fixed' the print to shutterfly that doesn't print when you click on it. It only seems to bring you back to the top of the page.

After looking through pages and pages of Gallery forums and XOOPS I found zip so looking into the code, I found that in view_photo.php the form to submit the 'order' so to speak is not there and a couple of things. I don't know if this is going to create problems elsewhere but this is what I did.

Open xoopsgallery/view_photo.php around line 219 look for this
if (strcmp($gallery->album->fields["print_photos"],"none")) {
        if (
strlen($adminCommands) > 0) {
            
$adminCommands .="<br>";
        }
        
$adminCommands .= "<a href=# onClick="document.sflyc4p.returl.value=document.locationdocument.sflyc4p.submit();return false">[print this photo on Shutterfly]</a>";
    }
and change it to this:
if (strcmp($gallery->album->fields["print_photos"],"none") &&
        !
$gallery->session->offline &&
        !
$gallery->album->isMovie($id)) {
        
$photo $gallery->album->getPhoto($GLOBALS["index"]);
        
$photoPath $gallery->album->getAlbumDirURL("full");
        
$rawImage $photoPath "/" $photo->image->name "." $photo->image->type;
        
        
$thumbImage$photoPath "/";
        if (
$photo->thumbnail) {
            
$thumbImage .= $photo->image->name "." "thumb" "." $photo->image->type;
        } else if (
$photo->image->resizedName) {
            
$thumbImage .= $photo->image->name "." "sized" "." $photo->image->type;
        } else {
            
$thumbImage .= $photo->image->name "." $photo->image->type;
        }
        list(
$imageWidth$imageHeight) = $photo->image->getRawDimensions();
        if (
strlen($adminCommands) > 0) {
            
$adminCommands .="<br>";
        }
        
$printService $gallery->album->fields["print_photos"];
        if (!
strncmp($printService"shutterfly"10)) {
            
$adminCommands .= "<a href=# onClick="document.sflyc4p.returl.value=document.locationdocument.sflyc4p.submit();return false">[print this photo on Shutterfly]</a>";
            
$printShutterflyForm 1;}}


In the very same file scroll down to about line 291 add this
if (isset($printShutterflyForm)) { ?>
<form name="sflyc4p" action="http://www.shutterfly.com/c4p/UpdateCart.jsp" method="post">
  <input type=hidden name=addim value="1">
  <input type=hidden name=protocol value="SFP,100">
<?php if ($gallery->album->fields["print_photos"] == "shutterfly without donation") { ?>
  <input type=hidden name=pid value="C4P">
  <input type=hidden name=psid value="AFFL">
<?php } else { ?>
  <input type=hidden name=pid value="C4PP">
  <input type=hidden name=psid value="GALL">
<?php ?>
  <input type=hidden name=referid value="gallery">
  <input type=hidden name=returl value="this-gets-set-by-javascript-in-onClick">
  <input type=hidden name=imraw-1 value="<?php echo $rawImage ?>">
  <input type=hidden name=imrawheight-1 value="<?php echo $imageHeight ?>">
  <input type=hidden name=imrawwidth-1 value="<?php echo $imageWidth ?>">
  <input type=hidden name=imthumb-1 value="<?php echo $thumbImage ?>">
  <?php
     
/* Print the caption on back of photo. If no caption,
      * then print the URL to this page. Shutterfly cuts
      * the message off at 80 characters. */
     
$imbkprnt $gallery->album->getCaption($index);
     if (empty(
$imbkprnt)) {
        
$imbkprnt makeAlbumUrl($gallery->session->albumName$id);
     }
  
?>
  <input type=hidden name=imbkprnta-1 value="<?php echo strip_tags($imbkprnt?>">
</form>
<?php }
. Be aware there are a few things <!php opening and ?> closing tags that you might need to delete or add in. It works for me (www.search-www.com - I'm moving servers and transfering domains so give this link about 2-3 days for it to work) good luck!



58
darapera
Re: New module : auction
  • 2003/8/24 20:26

  • darapera

  • Just popping in

  • Posts: 67

  • Since: 2003/7/22


You are a life saver! Since PHPAuction has changed into a paid script I've been dying for one PHP auction script and a PHP auction XOOPS module is more than I can ever dream of! Ok I downloaded it from your test site and will install it soon. But I tested it out and it is very functional. The auto bid is a little confusing though and I take it as current bid + $x is 'fixed' and not proxy bidding? Proxy bidding is nice but I have no idea how complicated it is.

Ability to watch an auction is nice. Will post back later when it's tested on my own servers. Thanks!



59
darapera
Re: Any Malaysia Xoops there?
  • 2003/8/16 6:42

  • darapera

  • Just popping in

  • Posts: 67

  • Since: 2003/7/22


Wow! Didn't know so many Malaysian XOOPS Users/enthusiasts! I am MY too! What do you have in mind? Warning though seriously new XOOPS user.




TopTop
« 1 ... 3 4 5 (6)



Login

Username:
Password:

Lost Password? Register now!

Who's Online

56 user(s) are online (27 user(s) are browsing Support Forums)


Members: 0


Guests: 56


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits