Author Topic: [Mod] [Beta] Shop Mod für 4images (no support)  (Read 266192 times)

0 Members and 1 Guest are viewing this topic.

Offline pawel852

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #60 on: May 14, 2005, 03:59:42 AM »
Hi there,
I did everything as you write... (ver. 4images 1.7)  i get files from http://www.rustynet.de/cat187.html and modefied rest of the files.
Gallery started... shop mod works but... when im loged in to the gallery i can add pic. to cart, next when i click on button 'go to shopping card'  gallery show... "Errorr please login" when i loged in second time & click on 'go to s.c.' button i see my shopping card but when i click on for exp. 'remove pic. from card' i get this same msg: Error please login. Every times when i click on something i must relogin. Another function like download or control pannel works fine there is no need to login every time when i click on.
Maybe someone could help me, i dont know what is it.
thanks
 

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #61 on: May 14, 2005, 09:28:23 AM »
i am not sure but the shop could work with cookies - do you let them into your computer?

vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline pawel852

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #62 on: May 14, 2005, 01:05:52 PM »
I have allowed coockies .

Offline pawel852

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #63 on: May 14, 2005, 02:22:56 PM »
U have right... its cookies problem,  when i add my domain to trusted domain problem was solved.
Tx for help
 

Offline pawel852

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #64 on: May 15, 2005, 01:00:20 AM »
One more question, how can I add row price position to image datails or is another way to displey price for example under image?

Offline pawel852

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #65 on: May 15, 2005, 01:30:31 AM »

Offline picster

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • enzos-fineart-gallery
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #66 on: May 22, 2005, 12:13:50 AM »
Hi,
ich habe den Shop installiert (rustys files, nutze 4images 1.7.1), und alles x-mal auf Übertragungsfehler gecheckt - aber nichts gefunden. Ich kann jetzt nach der installation die site aufrufen, komme aber nicht über die index.php hinaus, da bei jedem Aufruf (z.B. categories.php) ein parse error kommt: >unexpected T_String in line 230<

Line 230 sieht aber ganz ok aus, ohne  ein einsames  '  oder so etwas... Bitte, kann mir jemand helfen????

DANKE!!!!



I have the Shop installed (rustys files, using 4images 1.7.1) double-checked everything precisely whithout having found any mistake. Now, after installation, I can  call the site,, but unfortunately I have to remain on the index.php, as with any call (i.e. to categories.php) there is a parse-error: <unexpected T_String on line 230<

This line looks quite ok to me, no single or lonely  '  or something like that... Please, can somebody help me????


THANKS!!!


these are the lines 228 - 243:

  //Shop
  if ($user_info['user_level'] != GUEST && $image_row['price_1'] != 0) {

//This is line 230!!!   
    $warenkorb_url = $self_url;

    $warenkorb_url .= (!empty($mode)) ? ((preg_match("/\?/", $warenkorb_url)) ? "&amp;" : "?")."mode=".$mode : "";
    $warenkorb_url .= preg_match("/\?/", $warenkorb_url) ? "&amp;" : "?";
    if (check_warenkorb($image_row['image_id'])) {
      $warenkorb_url .= "action=removefromwarenkorb&amp;id=".$image_row['image_id'];
      $warenkorb_button = "<a href=\"".$site_sess->url($warenkorb_url)."\"><img src=\"".get_gallery_image("warenkorb_no_kl.gif")."\" border=\"0\" align=\"\" alt=\"Remove item from shopping cart\" /></a>";
      $warenkorb_button_kl = "<a href=\"".$site_sess->url($warenkorb_url)."\"><img src=\"".get_gallery_image("warenkorb_no_kl.gif")."\" border=\"0\" align=\"\" alt=\" Remove item from shopping cart \" /></a>";
    }
    else {
      $warenkorb_url .= "action=addtowarenkorb&amp;id=".$image_row['image_id'];
      $warenkorb_button = "<a href=\"".$site_sess->url($warenkorb_url)."\"><img src=\"".get_gallery_image("warenkorb_yes_kl.gif")."\" border=\"0\" align=\"\" alt=\" Add to shopping cart\" /></a>";
      $warenkorb_button_kl = "<a href=\"".$site_sess->url($warenkorb_url)."\"><img src=\"".get_gallery_image("warenkorb_yes_kl.gif")."\" border=\"0\" align=\"\" alt=\" Add to shopping cart\" /></a>";
    }
  }

Offline max.cady

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #67 on: May 22, 2005, 11:19:46 AM »
In welchem Document wird denn der Fehler angezeigt? Bei einer Fehlermeldung steht ja immer der Pfad zum entsprechenden Dokument da. Wenn ich das richtig sehe, gehört categories.php ja nicht zu den Dateien, die geändert wurden. Also liegt der Fehler wohl in irgendeiner der include-Dateien (nur meine Vermutung ;))

Jedenfalls ist unexpected T-String irgendwas, was auf einem Flüchtigkeitsfehler beruht
http://www.php-fehlermeldungen.de/artikel,18,parse-error-parse-error--unexpected-t_string,.html


Offline picster

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • enzos-fineart-gallery
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #68 on: May 22, 2005, 10:17:50 PM »
Danke für den link, leider fand ich dort auch nichts erhellendes zur Problemlösung o:, ich hatte auch schon auf aanderen php-seiten gesucht, aber auch die Beispiele trafen nicht mein Problem - weil:

die Fehlermeldung bezieht sich auf die Zeile $warenkorb_url = $self_url; - und die hat nix "stehen gelassenes" und ist der Originalcode aus dem Shop-Mod...

Und - sorry, ich hatte das vergessen: der Parse-Error bezieht sich auf die includes/function (also "unexpected T_STRING in xxx/includes/function on line 230") Hilft Dir/uns das weiter??? H I L F E  !!!! ;->

Offline max.cady

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #69 on: May 23, 2005, 06:55:47 AM »
Hast du deine main.php in lang mit den Warenkorb-Zusätzen versehen?
Vielleicht erkennt er das url_warenkorb nicht?

Und wie siehts aus mit der Datenbankergänzung price_1? Das wäre die Zeile
vorher ... ist die Spalte in deiner Tabelle drin?

Bin leider ein php newbie deshalb kann ich nur Vermutungen anstellen ;)

Offline fotograf74

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #70 on: May 26, 2005, 04:10:49 PM »
Hallo,
gibt es irgendwelche Besipielseiten die den Shop im Einsatz haben?

Kann man das mit dem Shop machen?

Bilderverkauf mit direkten Download der Bilder:
- der Kunde legt sozusagen ein Bild (mit Wasserzeichen) in den Warenkorb
- nach dem Einkauf bestätigt er seine Bestellung mit allem was dazu gehört (wie halt eine normale Bestellung in einem Online-Shop)
- Nachdem die Bestellung durchgeführt wurde, kann er direkt das Original-Bild (ohne Wasserzeichen) in hoher Auflösung und Größe downloaden

Ist das mit dem Shop möglich? Und kann das Downloadbild extern liegen (wegen der größe)

THanks

Offline SantaZ

  • Hero Member
  • *****
  • Posts: 885
    • View Profile
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #71 on: June 07, 2005, 04:24:30 PM »
hallo,

auf den alten Seiten gab es noch ein SQLquery womit man in einem rutsch die kompletten Preise editieren kann.

Kann mir mal bitte jemand sagen wie dieser Query aussehen muss?
cu SantaZ

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #72 on: June 09, 2005, 02:50:41 PM »
why is this whole topic in german ?  :?  :?

In the topic on "pic security" the bottom line is that you cannot secure your pictures for 100 %.

How is security with this shop ?
Is it 100 % safe ? or can visitors find the pics you try to sell ?




Offline JLT

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #73 on: June 10, 2005, 02:02:52 PM »
Hello everybody!

I look forward to see the script running. But I am not that prof. so I have a question about a part of the script that need to be changed.
What is ment with:

IMPORTANT:
Replace X with the last Setting-Group No. + 1 !!!
eg. $setting_group[8] / #setting_group_8

In document admin/settings.php

what do I have to fill in by the X part. Where can I find the "setting-group???

Hopefully somebode can help.

Greetz,
jelte

Ps. I wrote this in English because my german isn't that good I am from the Netherlands

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] [Beta] Shop Mod für 4images
« Reply #74 on: June 10, 2005, 02:47:47 PM »
before u change that file, find last instance of $setting_group
look what number it has, then add one to that number (for example if number is 8 then 8+1=9, nine is your number) and then after changing the file with the new code, replace X with the number you got.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)