Gallerie Script !

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
shakkalakka
Posts: 21
Joined: Thu 16. Dec 2004, 22:52
Location: Winterthur, Switzerland
Contact:

Post by shakkalakka »

cyaneo wrote:Hmm - I didn't get it work - the links aren't correct...
That's right - I forgot to add the phpwcmsalias variable. Go and download it again. At the beginning of the script you'll find a config variable called $phpwcmsalias. Set this to the alias of your gallerysite in phpwcms (it's important to have an alias for it). then it should work fine.
cyaneo
Posts: 128
Joined: Sun 6. Feb 2005, 01:23
Contact:

Post by cyaneo »

Sorry - still not working....

What I did:

first of all, I downloaded the new package today.

1. in gallery.inc.php I enter for the path:

Code: Select all

www/htdocs/user1212/galerie
also I try http://www.domain.de/galerie/ (w/o http://)

2. gallery.inc.php $phpwcmsalias="mygalery"

3. copy the content of the zip into "galerie" (http://www.domain.de/galerie/)

4. New Article with plain Text, content:

Code: Select all

{PHP:galerie/gallery.inc.php}
Also {PHP:http://www.domain.de/galerie/gallery.inc.php} doesnt work (w/o http://)

Also I try:
New Article with code:
[PHP]include ("galerie/gallery.inc.php")[/PHP] or any other path (URL and absolute path)

Now, the link of a gallery is

Code: Select all

http://www.domain.de/index.php?mygallery&mghash=3906bd72a7bc4604bfe70bb316ca287f&mggal=1
but all these links still redirects to the startpage of my phpWCMS...
Gruss
cyaneo
Zen Cart - The Art of e-Commerce

Wenn jeder dem anderen helfen wollte, wäre allen geholfen.
-------------------------------------------
Ein Problem ist halb gelöst, wenn es klar formuliert ist.
shakkalakka
Posts: 21
Joined: Thu 16. Dec 2004, 22:52
Location: Winterthur, Switzerland
Contact:

Post by shakkalakka »

What do you mean by 'I enter for the path'?

Be sure to have set the $pathtoscript ,at the beginning of the gallery.inc.php file, to $pathtoscript="galerie/"; (in your case).

The $pathtoscript variable describes the path from the file where the script is included in to the folder where the gallery.inc.php script is.
cyaneo
Posts: 128
Joined: Sun 6. Feb 2005, 01:23
Contact:

Post by cyaneo »

My $pathtoscript="www/htdocs/user1212/galerie/";

correct?
Gruss
cyaneo
Zen Cart - The Art of e-Commerce

Wenn jeder dem anderen helfen wollte, wäre allen geholfen.
-------------------------------------------
Ein Problem ist halb gelöst, wenn es klar formuliert ist.
shakkalakka
Posts: 21
Joined: Thu 16. Dec 2004, 22:52
Location: Winterthur, Switzerland
Contact:

Post by shakkalakka »

No. Please re-read the thread above...
Be sure to have set the $pathtoscript ,at the beginning of the gallery.inc.php file, to $pathtoscript="galerie/"; (in your case).
cyaneo
Posts: 128
Joined: Sun 6. Feb 2005, 01:23
Contact:

Post by cyaneo »

Now I set it to

Code: Select all

$pathtoscript="galerie/";
and get this error:

Code: Select all

Fatal error: Cannot redeclare class mdasort in /www/htdocs/user1212/galerie/gallery.inc.php on line 159
Gruss
cyaneo
Zen Cart - The Art of e-Commerce

Wenn jeder dem anderen helfen wollte, wäre allen geholfen.
-------------------------------------------
Ein Problem ist halb gelöst, wenn es klar formuliert ist.
shakkalakka
Posts: 21
Joined: Thu 16. Dec 2004, 22:52
Location: Winterthur, Switzerland
Contact:

Post by shakkalakka »

it doesn't make sense to discuss everything over this forum. Contact me under ICQ or MSN, you'll find the numbers/addresses on http://www.planetluc.com/support.php?navid=9
cyaneo
Posts: 128
Joined: Sun 6. Feb 2005, 01:23
Contact:

Post by cyaneo »

Sorry - I dont have ICQ or MSN (just skype)...

But:

I changed the $phpwcmsalias="mygallery"; to $phpwcmsalias="fotogalerie";

and - why ever - now it works!

Thank you 1000times!!!
Gruss
cyaneo
Zen Cart - The Art of e-Commerce

Wenn jeder dem anderen helfen wollte, wäre allen geholfen.
-------------------------------------------
Ein Problem ist halb gelöst, wenn es klar formuliert ist.
shakkalakka
Posts: 21
Joined: Thu 16. Dec 2004, 22:52
Location: Winterthur, Switzerland
Contact:

Post by shakkalakka »

I changed the $phpwcmsalias="mygallery"; to $phpwcmsalias="fotogalerie";

and - why ever - now it works!
Under which alias does the gallery run in phpwcms? Is it 'fotogalerie'...? :wink:
cyaneo
Posts: 128
Joined: Sun 6. Feb 2005, 01:23
Contact:

Post by cyaneo »

Thats right man! :wink:


:idea: That's now I learn that the $phpwcmsalias must be the same alias of the structur alias

"sometimes you have to stand up, cause you sitting on the cable"

(german proverb) :lol:
Gruss
cyaneo
Zen Cart - The Art of e-Commerce

Wenn jeder dem anderen helfen wollte, wäre allen geholfen.
-------------------------------------------
Ein Problem ist halb gelöst, wenn es klar formuliert ist.
shakkalakka
Posts: 21
Joined: Thu 16. Dec 2004, 22:52
Location: Winterthur, Switzerland
Contact:

Post by shakkalakka »

Guys, I'm sorry but I was a bit too fast in releasing it. I'd better have tested the script before uploading it... Anyway I fixed some bugs:

- Now you can set captions, add/delete pics in gallery edit mode too.

So please d/l i t again at http://www.planetluc.com/scripts_mygall ... ?navid=3|5

Cheers, Lukas
rushclub
Posts: 915
Joined: Tue 17. Feb 2004, 18:52

tutorial

Post by rushclub »

i am working on a site with the mygallery-script and i will make a tutorial with screenshots in the forum on this topic asap. so it is easy for others to set it up. :wink:

cheers
rush
3 (!) Jahre warten reichen mir. Ich bin erst mal weg.
Findus
Posts: 48
Joined: Fri 15. Apr 2005, 10:56
Location: Neustadt
Contact:

Re: tutorial

Post by Findus »

rushclub wrote:i am working on a site with the mygallery-script and i will make a tutorial with screenshots in the forum on this topic asap. so it is easy for others to set it up. :wink:

cheers
rush
Hi,

have you finished any documentation?

Findus

PS: Documantation is like ****. Bad one is better then nothing at all. :oops:
rushclub
Posts: 915
Joined: Tue 17. Feb 2004, 18:52

Post by rushclub »

1. create a directory in include/inc_ext/ called mygallery

2. download the script under http://www.planetluc.com/scripts_mygall ... ry_1.3.zip and upload the files to the created dir

3. chmod as desrcibed in the readme

4. open gallery.inc.php

5. define $adminlogin and $adminpwd

6. define $pathtoscript (in my case: "include/inc_ext/mygallery/")

7. define $phpwcmsalias (in my case "bilder")

8. safe the changes

9. go to backend of phpwcms and define a category with an alias called "bilder" ($phpwcmsalias)

10. create a new article with a contentpart "text" and insert:

{PHP:include/inc_ext/mygallery/gallery.inc.php}

thats it
cheers
rush
3 (!) Jahre warten reichen mir. Ich bin erst mal weg.
Findus
Posts: 48
Joined: Fri 15. Apr 2005, 10:56
Location: Neustadt
Contact:

Post by Findus »

Hi,

ich habe MyGallery auf einem 1und1 Server eingerichtet. Da dort das ZIP-Modul für PHP nicht mit übersetzt wurde :evil: , habe ich in dem Script ein FTP-Import eingebaut :lol: , analog zur Bilderübernahme.

Den SourceCode habe ich an Lukas gesendet.

Sollte Interesse bestehen und Lukas die Änderungen noch nicht frei gegeben hat, dann meldet euch.

Gruß
Findus

PS: Mir würde hier nur noch eine Trennung von Frontend und Backend fehlen.
Last edited by Findus on Wed 11. May 2005, 08:44, edited 1 time in total.
Image
Post Reply