292111
Wingz
Re: Business Directory Created
  • 2003/8/26 9:17

  • Wingz

  • Just popping in

  • Posts: 71

  • Since: 2002/8/23


G'day builderb ...

Great work! If I could code I'd help but look forward to it - will you be including web addresses and/or emails? Would make web links redundant then for business sites like ours.

Be glad to help beta test.



292112
builderb
Business Directory Created
  • 2003/8/26 6:14

  • builderb

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/8/4 2


I created a business directory using the MyLinks module as my base and modifying the MyLinks DB to accomodate address, city, state, phone, etc. I have it working really well but I need to add a few things that are a little out of my range before it's ready for official release.

You can check out the xDirectory Module currently running on my site.

I've done alot of the tedius work but now I would like to create a few more things that would make it a very usable module.
First I would like to create a section at the top of each category listing page where I can have sponsored listings(like yahoo) I would also like to list all the sponsored listings on the home page instead of the latest listings.

If someone out there would like to help I'll provide a download of what I have now.

If anyone can think of anything else it needs let me know.



292113
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!



292114
nuker
Re: item update problems in myxoopscart
  • 2003/8/25 13:19

  • nuker

  • Not too shy to talk

  • Posts: 129

  • Since: 2002/12/14


thank you very, very much!



292115
qubix
Re: Site Name and Slogan won't take.
  • 2003/8/25 12:02

  • qubix

  • Just popping in

  • Posts: 2

  • Since: 2003/8/15


The solution didn't work for me (or maybe I did someting wrong).
My host is yourspace.be, using CPanel 7 and fantastico to install the XOOPS script...

if you want to help me on this, add me on msn: bzork@hotmail.com

Thx!



292116
chapi
Re: item update problems in myxoopscart
  • 2003/8/25 11:03

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


Hi, I found the problem!

In admin/updateItem2.php - line 68
echo "<select name=\"CategoryID\" size=\"1\">";

change CategoryID to Category and it should work ok.



292117
matoba
Re: I would like to work on new translation for xoops 2.0.x
  • 2003/8/25 10:41

  • matoba

  • Just popping in

  • Posts: 2

  • Since: 2003/6/21


I just want to know what is going on Korean language pack. Now I'm running Japanese site, but soon I'd like to use Korean in my site!



292118
nuker
item update problems in myxoopscart
  • 2003/8/25 8:33

  • nuker

  • Not too shy to talk

  • Posts: 129

  • Since: 2002/12/14


when updating an item in myxoopscart (uh, installed on XOOPS 2.0.3!) the item disappears from the catalogue on the user end.

but, the item is still available and editable from the admin side. no matter what i do, the item will not display.

the only way that seems to work is to delete the item, and add it again.

so far it works pretty good on XOOPS 2. just the above problem.

thanks!



292119
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!



292120
DaBoyz
Re: Is anyone interested ine a Genealogy Module for Xoops2?
  • 2003/8/23 9:10

  • DaBoyz

  • Just popping in

  • Posts: 79

  • Since: 2002/8/8 1


Perhaps you know GeneWeb ...

It could be interesting to adapt it.







Login

Who's Online

207 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 207


more...

Donat-O-Meter

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

Latest GitHub Commits